com.esri.wms.http
Class HttpClientConnectionChannelImpl
java.lang.Object
com.esri.wms.http.HttpConnectionChannel
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpClientConnectionChannelImpl
public HttpClientConnectionChannelImpl()
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