public final class ParserPluginUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.base.Optional<org.geotools.styling.Style> |
loadStyleAsURI(org.springframework.http.client.ClientHttpRequestFactory clientHttpRequestFactory,
java.lang.String styleRef,
com.google.common.base.Function<byte[],com.google.common.base.Optional<org.geotools.styling.Style>> loadFunction)
Load data using
Configuration.loadFile(String) and using http. |
public static com.google.common.base.Optional<org.geotools.styling.Style> loadStyleAsURI(org.springframework.http.client.ClientHttpRequestFactory clientHttpRequestFactory,
java.lang.String styleRef,
com.google.common.base.Function<byte[],com.google.common.base.Optional<org.geotools.styling.Style>> loadFunction)
throws java.io.IOException
Configuration.loadFile(String) and using http. If data is able to be loaded
it will be passed to the loadFunction to be turned into a style.clientHttpRequestFactory - the factory to use for http requestsstyleRef - the uri/file/else for attempting to load a styleloadFunction - the function to call when data has been loaded.java.io.IOException