org.geotools.wfs.protocol
Class DefaultConnectionFactory

java.lang.Object
  extended by org.geotools.wfs.protocol.DefaultConnectionFactory
All Implemented Interfaces:
ConnectionFactory

Deprecated. use DefaultHTTPProtocol

public class DefaultConnectionFactory
extends java.lang.Object
implements ConnectionFactory

Handles setting up connections to a WFS based on a WFS capabilities document, taking care of GZIP and authentication.

Since:
2.5.x
Version:
$Id: DefaultConnectionFactory.java 29055 2008-02-02 17:38:44Z groldan $
Author:
Gabriel Roldan

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

DefaultConnectionFactory

public 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.

Parameters:
tryGzip -
user -
pass -
encoding -
Method Detail

getEncoding

public java.nio.charset.Charset getEncoding()
Deprecated. 
Description copied from interface: ConnectionFactory
Returns the preferred character encoding name to encode requests in

Specified by:
getEncoding in interface ConnectionFactory
Returns:

getConnection

public java.net.HttpURLConnection getConnection(java.net.URL query,
                                                HttpMethod method)
                                         throws java.io.IOException
Deprecated. 
Description copied from interface: ConnectionFactory
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.

Specified by:
getConnection in interface ConnectionFactory
Returns:
Throws:
java.io.IOException

getInputStream

public java.io.InputStream getInputStream(java.net.HttpURLConnection hc)
                                   throws java.io.IOException
Deprecated. 
Specified by:
getInputStream in interface ConnectionFactory
Throws:
java.io.IOException

getInputStream

public java.io.InputStream getInputStream(java.net.URL query,
                                          HttpMethod method)
                                   throws java.io.IOException
Deprecated. 
Description copied from interface: ConnectionFactory
Shortcut for conn = getConnection(url, method); getInputStream(conn);

Specified by:
getInputStream in interface ConnectionFactory
Returns:
Throws:
java.io.IOException

getAuthPassword

public java.lang.String getAuthPassword()
Deprecated. 
Specified by:
getAuthPassword in interface ConnectionFactory

getAuthUsername

public java.lang.String getAuthUsername()
Deprecated. 
Specified by:
getAuthUsername in interface ConnectionFactory

isTryGzip

public boolean isTryGzip()
Deprecated. 
Specified by:
isTryGzip in interface ConnectionFactory


Copyright © 1996-2010 Geotools. All Rights Reserved.