com.esri.wms.http
Class HttpConnectionChannel
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTTP_REFERRER
public static final String HTTP_REFERRER
- See Also:
- Constant Field Values
HttpConnectionChannel
public HttpConnectionChannel()
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