Package org.opennms.protocols.http
Class HttpUrlHandler
- java.lang.Object
-
- java.net.URLStreamHandler
-
- org.opennms.protocols.http.HttpUrlHandler
-
- Direct Known Subclasses:
HttpsUrlHandler
public class HttpUrlHandler extends URLStreamHandler
The class for handling HTTP URL Connection using Apache HTTP Client- Author:
- Alejandro Galue
-
-
Constructor Summary
Constructors Constructor Description HttpUrlHandler(Request request)
Instantiates a new HTTP URL handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
getDefaultPort()
protected URLConnection
openConnection(URL url)
-
Methods inherited from class java.net.URLStreamHandler
equals, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm
-
-
-
-
Field Detail
-
HTTP
public static final String HTTP
The Constant PROTOCOL.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HttpUrlHandler
public HttpUrlHandler(Request request)
Instantiates a new HTTP URL handler.- Parameters:
request
- the request
-
-
Method Detail
-
getDefaultPort
protected int getDefaultPort()
- Overrides:
getDefaultPort
in classURLStreamHandler
-
openConnection
protected URLConnection openConnection(URL url) throws IOException
- Specified by:
openConnection
in classURLStreamHandler
- Throws:
IOException
-
-