com.esri.wms.http
Class HttpConnectionChannel

java.lang.Object
  extended by com.esri.wms.http.HttpConnectionChannel
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
HttpClientConnectionChannelImpl, URLConnectionChannelImpl

public abstract class HttpConnectionChannel
extends Object
implements Serializable

Abstract HttpConnectionChannel Class to choose the HTTP Connection You can change the connection.properties file and have it in the classpath or classes folder of the web application to override the HTTP connection channel. We have provided HttpClientConnectionChannel and URLConnectionChannel(default). This file need not be present for the default behavior.

See Also:
Serialized Form

Field Summary
static String HTTP_REFERRER
           
 
Constructor Summary
HttpConnectionChannel()
           
 
Method Summary
abstract  InputStream sendURLRequest(String url)
          Send the URL request using the HTTP Connection channel available
abstract  InputStream sendURLRequest(String url, String referrerURL)
          Send the URL request using the HTTP Connection channel available
abstract  InputStream sendURLRequest(String url, String referrerURL, String userName, String password)
          Send the URL request using the HTTP Connection channel available
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HTTP_REFERRER

public static final String HTTP_REFERRER
See Also:
Constant Field Values
Constructor Detail

HttpConnectionChannel

public HttpConnectionChannel()
Method Detail

sendURLRequest

public abstract InputStream sendURLRequest(String url)
                                    throws IOException
Send the URL request using the HTTP Connection channel available

Parameters:
url - the URL to send the request.
Returns:
Returns the InputStream from the connection.
Throws:
IOException

sendURLRequest

public abstract InputStream sendURLRequest(String url,
                                           String referrerURL)
                                    throws IOException
Send the URL request using the HTTP Connection channel available

Parameters:
url - the URL to send the request.
referrerURL - HTTP_REFERRER for the request.
Returns:
Returns the InputStream from the connection.
Throws:
IOException

sendURLRequest

public abstract InputStream sendURLRequest(String url,
                                           String referrerURL,
                                           String userName,
                                           String password)
                                    throws IOException
Send the URL request using the HTTP Connection channel available

Parameters:
url - the URL to send the request.
referrerURL - HTTP_REFERRER for the request.
userName - userName for connecting to the resource.
password - password for connecting to the resource.
Returns:
Returns the InputStream from the connection.
Throws:
IOException