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
Author:
Gabriel Roldan (TOPP)
Module:
modules/unsupported/wfs (gt-wfs.jar)

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.  
 

Method Detail

getAuthUsername

String getAuthUsername()
Deprecated. 

getAuthPassword

String getAuthPassword()
Deprecated. 

isTryGzip

boolean isTryGzip()
Deprecated. 

getEncoding

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

Returns:

getConnection

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

getInputStream

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

getInputStream

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

Parameters:
query -
method -
Returns:
Throws:
IOException


Copyright © 1996-2009 Geotools. All Rights Reserved.