public class HTTPSchemaResolver extends Object implements SchemaResolver
| Constructor and Description |
|---|
HTTPSchemaResolver() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getChildren(String url)
Returns the list of child resources of the resource identified by the URL.
|
HttpClient |
getHttpClient() |
HttpClientConfiguration |
getHttpClientConfig() |
List<String> |
getSchemas() |
long |
getTimestamp(String url)
Returns the modification date of the resource.
|
void |
observeChange(String url,
Consumer<InputStream> consumer)
Calls the consumer when the InputStream for the requested URL changes.
|
InputStream |
resolve(String url)
Returns the InputStream for the requested URL.
|
void |
setHttpClientConfig(HttpClientConfiguration httpClientConfig) |
public HttpClient getHttpClient()
public List<String> getSchemas()
getSchemas in interface SchemaResolverResolverMap.public InputStream resolve(String url) throws ResourceRetrievalException
Resolverresolve in interface ResolverResourceRetrievalException - if the resource identified by the URL does not exist.public void observeChange(String url, Consumer<InputStream> consumer) throws ResourceRetrievalException
ResolverobserveChange in interface ResolverResourceRetrievalException - if the resource identified by the URL does not exist.public List<String> getChildren(String url)
ResolvergetChildren in interface Resolverpublic long getTimestamp(String url)
ResolvergetTimestamp in interface Resolverpublic HttpClientConfiguration getHttpClientConfig()
public void setHttpClientConfig(HttpClientConfiguration httpClientConfig)
Copyright © 2019. All Rights Reserved.