org.opennms.protocols.http
Class HttpUrlHandler

java.lang.Object
  extended by java.net.URLStreamHandler
      extended by org.opennms.protocols.http.HttpUrlHandler

public class HttpUrlHandler
extends URLStreamHandler

The class for handling HTTP URL Connection using Apache HTTP Client

Author:
Alejandro Galue

Field Summary
static String PROTOCOL
          The Constant PROTOCOL.
 
Constructor Summary
HttpUrlHandler()
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROTOCOL

public static final String PROTOCOL
The Constant PROTOCOL.

See Also:
Constant Field Values
Constructor Detail

HttpUrlHandler

public HttpUrlHandler()
Method Detail

getDefaultPort

protected int getDefaultPort()
Overrides:
getDefaultPort in class URLStreamHandler

openConnection

protected URLConnection openConnection(URL url)
                                throws IOException
Specified by:
openConnection in class URLStreamHandler
Throws:
IOException


Copyright © 2011. All Rights Reserved.