|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectURIHandlerImpl
HTTPURIHandler
public class HTTPURIHandler
A URI handler that handles HTTP connections with connection timeouts and read timeouts. The
default timeouts are 10 seconds, they can be set interactively on an instance of the
HTTPURIHandler
, and default values can be overridden setting the
org.geotools.xsd.http.connection.timeout
and
org.geotools.xsd.http.read.timeout
system variables.
Field Summary |
---|
Fields inherited from interface URIHandler |
---|
DEFAULT_HANDLERS |
Constructor Summary | |
---|---|
HTTPURIHandler()
|
Method Summary | |
---|---|
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. |
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. |
Methods inherited from class URIHandlerImpl |
---|
contentDescription, createOutputStream, delete, exists, getAttributes, getRequestedAttributes, getResponse, getURIConverter, setAttributes |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HTTPURIHandler()
Method Detail |
---|
public boolean canHandle(URI uri)
canHandle
in interface URIHandler
canHandle
in class URIHandlerImpl
public InputStream createInputStream(URI uri, Map<?,?> options) throws IOException
createInputStream
in interface URIHandler
createInputStream
in class URIHandlerImpl
IOException
- if there is a problem obtaining an open input stream.public int getConnectionTimeout()
public void setConnectionTimeout(int connectionTimeout)
URLConnection.setConnectTimeout(int)
connectionTimeout
- public int getReadTimeout()
public void setReadTimeout(int readTimeout)
URLConnection.setReadTimeout(int)
connectionTimeout
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |