public class HTTPURIHandler
extends URIHandlerImpl
HTTPURIHandler, and default values can be overridden setting the
org.geotools.xsd.http.connection.timeout and org.geotools.xsd.http.read.timeout
system variables.| Constructor and Description |
|---|
HTTPURIHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(URI uri) |
InputStream |
createInputStream(URI uri,
Map<?,?> options)
Creates an input stream for the URI, assuming it's a URL, and returns it.
|
protected HttpURLConnection |
getConnection(URI uri) |
int |
getConnectionTimeout()
The current connection timeout
|
int |
getReadTimeout()
The current read timeout
|
void |
setConnectionTimeout(int connectionTimeout)
Sets the connection timeout, in milliseconds.
|
void |
setReadTimeout(int readTimeout)
Sets the read timeout, in milliseconds.
|
public boolean canHandle(URI uri)
canHandle in interface URIHandlercanHandle in class URIHandlerImplpublic InputStream createInputStream(URI uri, Map<?,?> options) throws IOException
createInputStream in interface URIHandlercreateInputStream in class URIHandlerImplIOException - if there is a problem obtaining an open input stream.protected HttpURLConnection getConnection(URI uri) throws IOException
IOExceptionpublic int getConnectionTimeout()
public void setConnectionTimeout(int connectionTimeout)
URLConnection.setConnectTimeout(int)connectionTimeout - public int getReadTimeout()
public void setReadTimeout(int readTimeout)
URLConnection.setReadTimeout(int)connectionTimeout - Copyright © 1996–2019 Geotools. All rights reserved.