org.geotools.wfs.protocol
Class DefaultConnectionFactory

Object
  extended by DefaultConnectionFactory
All Implemented Interfaces:
ConnectionFactory

Deprecated. use DefaultHTTPProtocol

public class DefaultConnectionFactory
extends 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
Author:
Gabriel Roldan
Module:
trunk/gt/modules   (gt-modules.jar) (Maven report) (SVN head)

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

DefaultConnectionFactory

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

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

getEncoding

public 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 HttpURLConnection getConnection(URL query,
                                       HttpMethod method)
                                throws 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:
IOException

getInputStream

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

getInputStream

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

Specified by:
getInputStream in interface ConnectionFactory
Returns:
Throws:
IOException

getAuthPassword

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

getAuthUsername

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

isTryGzip

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


Copyright © 1996-2009 Geotools. All Rights Reserved.