com.esri.wms.http
Class URLConnectionChannelImpl

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

public class URLConnectionChannelImpl
extends HttpConnectionChannel

URLConnectionChannelImpl uses the URL Connection class available in the JDK to make URL connections and send request to. Default connection for WMS is through this class. This does not allow 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
URLConnectionChannelImpl()
           
 
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

URLConnectionChannelImpl

public URLConnectionChannelImpl()
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