|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectDefaultConnectionFactory
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,
String user,
String pass,
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 | |
---|---|
String |
getAuthPassword()
Deprecated. |
String |
getAuthUsername()
Deprecated. |
HttpURLConnection |
getConnection(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. |
Charset |
getEncoding()
Deprecated. Returns the preferred character encoding name to encode requests in |
InputStream |
getInputStream(HttpURLConnection hc)
Deprecated. |
InputStream |
getInputStream(URL query,
HttpMethod method)
Deprecated. Shortcut for conn = getConnection(url, method); getInputStream(conn); |
boolean |
isTryGzip()
Deprecated. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultConnectionFactory(boolean tryGzip, String user, String pass, Charset encoding, int timeoutMillis)
tryGzip
- user
- pass
- encoding
- Method Detail |
---|
public Charset getEncoding()
ConnectionFactory
getEncoding
in interface ConnectionFactory
public HttpURLConnection getConnection(URL query, HttpMethod method) throws IOException
ConnectionFactory
getConnection
in interface ConnectionFactory
IOException
public InputStream getInputStream(HttpURLConnection hc) throws IOException
getInputStream
in interface ConnectionFactory
IOException
public InputStream getInputStream(URL query, HttpMethod method) throws IOException
ConnectionFactory
conn = getConnection(url, method); getInputStream(conn);
getInputStream
in interface ConnectionFactory
IOException
public String getAuthPassword()
getAuthPassword
in interface ConnectionFactory
public 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 |