com.esri.wms.http
Class HttpClientConnectionChannelImpl

java.lang.Object
  extended by com.esri.wms.http.HttpConnectionChannel
      extended by com.esri.wms.http.HttpClientConnectionChannelImpl
All Implemented Interfaces:
Serializable

public class HttpClientConnectionChannelImpl
extends HttpConnectionChannel

HttpClientConnectionChannelImpl uses the HTTP Client to make URL connections and send request to. This support for plugable authentication and allows users to connect to secured resource. 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.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.esri.wms.http.HttpConnectionChannel
HTTP_REFERRER
 
Constructor Summary
HttpClientConnectionChannelImpl()
           
 
Method Summary
 InputStream sendURLRequest(String url)
          Send the URL request using the HTTP Connection channel available
 InputStream sendURLRequest(String url, String referrerURL)
          Send the URL request using the HTTP Connection channel available
 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
 

Constructor Detail

HttpClientConnectionChannelImpl

public HttpClientConnectionChannelImpl()
Method Detail

sendURLRequest

public InputStream sendURLRequest(String url)
                           throws IOException
Description copied from class: HttpConnectionChannel
Send the URL request using the HTTP Connection channel available

Specified by:
sendURLRequest in class HttpConnectionChannel
Parameters:
url - the URL to send the request.
Returns:
Returns the InputStream from the connection.
Throws:
IOException

sendURLRequest

public InputStream sendURLRequest(String url,
                                  String referrerURL)
                           throws IOException
Description copied from class: HttpConnectionChannel
Send the URL request using the HTTP Connection channel available

Specified by:
sendURLRequest in class HttpConnectionChannel
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 InputStream sendURLRequest(String url,
                                  String referrerURL,
                                  String userName,
                                  String password)
                           throws IOException
Description copied from class: HttpConnectionChannel
Send the URL request using the HTTP Connection channel available

Specified by:
sendURLRequest in class HttpConnectionChannel
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