source: josm/trunk/src/org/openstreetmap/josm/data/imagery/TileLoaderFactory.java@ 13750

Last change on this file since 13750 was 13733, checked in by wiktorn, 6 years ago

Imagery definition refactor

Extend imagery definitions by:

  • allowing setting default layers for WMS_ENDPOINT and WMTS
  • allowing setting minimum expires time for tile for this imagery
  • allowing setting custom headers that will be sent for all requests

(get map, get capabilities) for this imagery

Additional changes in code:

  • use TileJobOptions to pass miscellaneous options to loaders
  • refactor WMSImagery to use SAX parser

See: #15981, #7953, #16224, #15940, #16249

  • Property svn:eol-style set to native
File size: 824 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data.imagery;
3
4import java.util.Map;
5
6import org.openstreetmap.gui.jmapviewer.interfaces.TileLoader;
7import org.openstreetmap.gui.jmapviewer.interfaces.TileLoaderListener;
8
9/**
10 * Factory creating TileLoaders for layers
11 *
12 * @author Wiktor Niesiobędzki
13 * @since 8526
14 */
15@FunctionalInterface
16public interface TileLoaderFactory {
17
18 /**
19 * @param listener that will be notified, when tile has finished loading
20 * @param headers that will be sent with requests to TileSource. <code>null</code> indicates none
21 * @param minimumExpiryTime minimum expiry time
22 * @return TileLoader that uses both of above
23 */
24 TileLoader makeTileLoader(TileLoaderListener listener, Map<String, String> headers, long minimumExpiryTime);
25}
Note: See TracBrowser for help on using the repository browser.