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