|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.wfs.protocol.DefaultConnectionFactory
DefaultHTTPProtocol
public class DefaultConnectionFactory
Handles setting up connections to a WFS based on a WFS capabilities document, taking care of GZIP and authentication.
Constructor Summary | |
---|---|
DefaultConnectionFactory(boolean tryGzip,
java.lang.String user,
java.lang.String pass,
java.nio.charset.Charset encoding,
int timeoutMillis)
Deprecated. Creates a connection factory set up for the given tryGzip flag, HTTP authentication if needed, and default character encoding. |
Method Summary | |
---|---|
java.lang.String |
getAuthPassword()
Deprecated. |
java.lang.String |
getAuthUsername()
Deprecated. |
java.net.HttpURLConnection |
getConnection(java.net.URL query,
HttpMethod method)
Deprecated. Creates and returns a connection object for the supplied URL, settled up for the given HTTP method (GET or POST) and this connection factory tryGzip and authentication settings. |
java.nio.charset.Charset |
getEncoding()
Deprecated. Returns the preferred character encoding name to encode requests in |
java.io.InputStream |
getInputStream(java.net.HttpURLConnection hc)
Deprecated. |
java.io.InputStream |
getInputStream(java.net.URL query,
HttpMethod method)
Deprecated. Shortcut for conn = getConnection(url, method); getInputStream(conn); |
boolean |
isTryGzip()
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultConnectionFactory(boolean tryGzip, java.lang.String user, java.lang.String pass, java.nio.charset.Charset encoding, int timeoutMillis)
tryGzip
- user
- pass
- encoding
- Method Detail |
---|
public java.nio.charset.Charset getEncoding()
ConnectionFactory
getEncoding
in interface ConnectionFactory
public java.net.HttpURLConnection getConnection(java.net.URL query, HttpMethod method) throws java.io.IOException
ConnectionFactory
getConnection
in interface ConnectionFactory
java.io.IOException
public java.io.InputStream getInputStream(java.net.HttpURLConnection hc) throws java.io.IOException
getInputStream
in interface ConnectionFactory
java.io.IOException
public java.io.InputStream getInputStream(java.net.URL query, HttpMethod method) throws java.io.IOException
ConnectionFactory
conn = getConnection(url, method); getInputStream(conn);
getInputStream
in interface ConnectionFactory
java.io.IOException
public java.lang.String getAuthPassword()
getAuthPassword
in interface ConnectionFactory
public java.lang.String getAuthUsername()
getAuthUsername
in interface ConnectionFactory
public boolean isTryGzip()
isTryGzip
in interface ConnectionFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |