public LocalRasterServerRetriever(AVList parameters, RasterServer rasterServer, RetrievalPostProcessor postProcessor) { if (null != parameters) { this.setValues(params); } this.server = rasterServer; this.postProcessor = postProcessor; }
/** * @param url the URL of the resource to retrieve. * @param postProcessor the retrieval post-processor to invoke when the resource is retrieved. May be null. * * @throws ArgumentException if <code>url</code>. */ public URLRetriever(URL url, RetrievalPostProcessor postProcessor) { if (url == null) { String message = Logging.getMessage("nullValue.URLIsNull"); Logging.logger().severe(message); throw new ArgumentException(message); } this.url = url; this.postProcessor = postProcessor; }
public Retriever createRetriever(AVList tileParams, RetrievalPostProcessor postProcessor) { LocalRasterServerRetriever retriever = new LocalRasterServerRetriever(tileParams, this.rasterServer, postProcessor); // copy only values that do not exist in destination AVList // from rasterServerParams (source) to retriever (destination) String[] keysToCopy = new String[] { AVKey.DATASET_NAME, AVKey.DISPLAY_NAME, AVKey.FILE_STORE, AVKey.IMAGE_FORMAT, AVKey.FORMAT_SUFFIX }; WWUtil.copyValues(rasterServerParams, retriever, keysToCopy, false); return(retriever); }
public Retriever createRetriever(AVList tileParams, RetrievalPostProcessor postProcessor) { LocalRasterServerRetriever retriever = new LocalRasterServerRetriever(tileParams, rasterServer, postProcessor); // copy only values that do not exist in destination AVList // from rasterServerParams (source) to retriever (destination) String[] keysToCopy = new String[] { AVKey.DATASET_NAME, AVKey.DISPLAY_NAME, AVKey.FILE_STORE, AVKey.BYTE_ORDER, AVKey.IMAGE_FORMAT, AVKey.DATA_TYPE, AVKey.FORMAT_SUFFIX, AVKey.MISSING_DATA_SIGNAL, AVKey.MISSING_DATA_REPLACEMENT, AVKey.ELEVATION_MIN, AVKey.ELEVATION_MAX, }; WWUtil.copyValues(rasterServerParams, retriever, keysToCopy, false); return(retriever); }
/** * Create the appropriate retriever for a URL's protocol. * * @param url the url that will be the source of the retrieval. * @param postProcessor the retriever's post-processor. * * @return a retriever for the protocol specified in the url, or null if no retriever exists for the protocol. * * @throws ArgumentException if the url is null. */ public static URLRetriever createRetriever(URL url, RetrievalPostProcessor postProcessor) { if (url == null) { String message = Logging.getMessage("nullValue.URLIsNull"); Logging.logger().severe(message); throw new ArgumentException(message); } String protocol = url.getProtocol(); if ("http".equalsIgnoreCase(protocol) || "https".equalsIgnoreCase(protocol)) { return(new HTTPRetriever(url, postProcessor)); } else if ("jar".equalsIgnoreCase(protocol)) { return(new JarRetriever(url, postProcessor)); } else { return(null); } }
public JarRetriever(URL url, RetrievalPostProcessor postProcessor) { super(url, postProcessor); }