org.geotools.wfs.protocol
Interface ConnectionFactory

All Known Implementing Classes:
DefaultConnectionFactory

Deprecated. in favour of HTTPProtocol

public interface ConnectionFactory

Interface to abstract out the plain connection and stream set up against the target WFS

Since:
2.5.x
Version:
$Id: ConnectionFactory.java 31823 2008-11-11 16:11:49Z groldan $
Author:
Gabriel Roldan (TOPP)

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.  
 

Method Detail

getAuthUsername

java.lang.String getAuthUsername()
Deprecated. 

getAuthPassword

java.lang.String getAuthPassword()
Deprecated. 

isTryGzip

boolean isTryGzip()
Deprecated. 

getEncoding

java.nio.charset.Charset getEncoding()
Deprecated. 
Returns the preferred character encoding name to encode requests in

Returns:

getConnection

java.net.HttpURLConnection getConnection(java.net.URL query,
                                         HttpMethod method)
                                         throws java.io.IOException
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.

Parameters:
query -
method -
Returns:
Throws:
java.io.IOException

getInputStream

java.io.InputStream getInputStream(java.net.HttpURLConnection hc)
                                   throws java.io.IOException
Deprecated. 
Throws:
java.io.IOException

getInputStream

java.io.InputStream getInputStream(java.net.URL query,
                                   HttpMethod method)
                                   throws java.io.IOException
Deprecated. 
Shortcut for conn = getConnection(url, method); getInputStream(conn);

Parameters:
query -
method -
Returns:
Throws:
java.io.IOException


Copyright © 1996-2010 Geotools. All Rights Reserved.