Package org.opennms.protocols.http
Class HttpUrlConnection
- java.lang.Object
-
- java.net.URLConnection
-
- org.opennms.protocols.http.HttpUrlConnection
-
public class HttpUrlConnection extends java.net.URLConnection
The class for managing HTTP URL Connection using Apache HTTP Client- Author:
- Alejandro Galue
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpUrlConnection(java.net.URL url, Request request)
Instantiates a new SFTP URL connection.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
connect()
void
disconnect()
Disconnectjava.io.InputStream
getInputStream()
-
Methods inherited from class java.net.URLConnection
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentLengthLong, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getLastModified, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
-
-
-
-
Constructor Detail
-
HttpUrlConnection
protected HttpUrlConnection(java.net.URL url, Request request)
Instantiates a new SFTP URL connection.- Parameters:
url
- the URLrequest
-
-
-
Method Detail
-
connect
public void connect() throws java.io.IOException
- Specified by:
connect
in classjava.net.URLConnection
- Throws:
java.io.IOException
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException
- Overrides:
getInputStream
in classjava.net.URLConnection
- Throws:
java.io.IOException
-
disconnect
public void disconnect()
Disconnect
-
-