Class HttpNorthbounderConfig
- java.lang.Object
-
- org.opennms.netmgt.alarmd.northbounder.http.HttpNorthbounderConfig
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<HttpNorthbounderConfig>
public class HttpNorthbounderConfig extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<HttpNorthbounderConfig>
Configuration for HTTP NBI implementation. FIXME: This needs lots of work. FIXME: Make configuration mimic configuration of other HttpClient configurations: PSM, HttpCollector so that users can reuse their configuration knowledge and not have to configured HTTP based client configurations differently in every section of the software.- Author:
- David Hustace
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HttpNorthbounderConfig.HttpMethod
The Enumeration HttpMethod.
-
Constructor Summary
Constructors Constructor Description HttpNorthbounderConfig(java.lang.String host)
Instantiates a new HTTP northbounder configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(HttpNorthbounderConfig o)
boolean
equals(java.lang.Object o)
java.util.List<java.lang.String>
getAcceptableUeis()
Gets the acceptable UEIs.java.lang.String
getFragment()
Gets the fragment.java.lang.String
getHost()
Gets the host.java.lang.String
getHttpVersion()
Gets the HTTP version.HttpNorthbounderConfig.HttpMethod
getMethod()
Gets the method.java.lang.String
getPath()
Gets the path.java.lang.Integer
getPort()
Gets the port.java.lang.String
getQuery()
Gets the query.java.lang.String
getScheme()
Gets the scheme.java.net.URI
getURI()
Gets the URI.java.lang.String
getUserAgent()
Gets the user agent.java.lang.String
getUserInfo()
Gets the user info.java.lang.String
getVirtualHost()
Gets the virtual host.void
setAcceptableUeis(java.util.List<java.lang.String> acceptableUeis)
Sets the acceptable UEIs.void
setFragment(java.lang.String fragment)
Sets the fragment.void
setHost(java.lang.String host)
Sets the host.void
setHttpVersion(java.lang.String httpVersion)
Sets the HTTP version.void
setMethod(HttpNorthbounderConfig.HttpMethod method)
Sets the method.void
setPath(java.lang.String path)
Sets the path.void
setPort(java.lang.Integer port)
Sets the port.void
setQuery(java.lang.String query)
Sets the query.void
setScheme(java.lang.String scheme)
Sets the scheme.void
setUserAgent(java.lang.String userAgent)
Sets the user agent.void
setUserInfo(java.lang.String userInfo)
Sets the user info.void
setVirtualHost(java.lang.String virtualHost)
Sets the virtual host.
-
-
-
Method Detail
-
compareTo
public int compareTo(HttpNorthbounderConfig o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<HttpNorthbounderConfig>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
getMethod
public HttpNorthbounderConfig.HttpMethod getMethod()
Gets the method.- Returns:
- the method
-
setMethod
public void setMethod(HttpNorthbounderConfig.HttpMethod method)
Sets the method.- Parameters:
method
- the new method
-
getHttpVersion
public java.lang.String getHttpVersion()
Gets the HTTP version.- Returns:
- the HTTP version
-
setHttpVersion
public void setHttpVersion(java.lang.String httpVersion)
Sets the HTTP version.- Parameters:
httpVersion
- the new HTTP version
-
getUserAgent
public java.lang.String getUserAgent()
Gets the user agent.- Returns:
- the user agent
-
setUserAgent
public void setUserAgent(java.lang.String userAgent)
Sets the user agent.- Parameters:
userAgent
- the new user agent
-
getVirtualHost
public java.lang.String getVirtualHost()
Gets the virtual host.- Returns:
- the virtual host
-
setVirtualHost
public void setVirtualHost(java.lang.String virtualHost)
Sets the virtual host.- Parameters:
virtualHost
- the new virtual host
-
getScheme
public java.lang.String getScheme()
Gets the scheme.- Returns:
- the scheme
-
setScheme
public void setScheme(java.lang.String scheme)
Sets the scheme.- Parameters:
scheme
- the new scheme
-
getUserInfo
public java.lang.String getUserInfo()
Gets the user info.- Returns:
- the user info
-
setUserInfo
public void setUserInfo(java.lang.String userInfo)
Sets the user info.- Parameters:
userInfo
- the new user info
-
getHost
public java.lang.String getHost()
Gets the host.- Returns:
- the host
-
setHost
public void setHost(java.lang.String host)
Sets the host.- Parameters:
host
- the new host
-
getPort
public java.lang.Integer getPort()
Gets the port.- Returns:
- the port
-
setPort
public void setPort(java.lang.Integer port)
Sets the port.- Parameters:
port
- the new port
-
getPath
public java.lang.String getPath()
Gets the path.- Returns:
- the path
-
setPath
public void setPath(java.lang.String path)
Sets the path.- Parameters:
path
- the new path
-
getQuery
public java.lang.String getQuery()
Gets the query.- Returns:
- the query
-
setQuery
public void setQuery(java.lang.String query)
Sets the query.- Parameters:
query
- the new query
-
getFragment
public java.lang.String getFragment()
Gets the fragment.- Returns:
- the fragment
-
setFragment
public void setFragment(java.lang.String fragment)
Sets the fragment.- Parameters:
fragment
- the new fragment
-
getAcceptableUeis
public java.util.List<java.lang.String> getAcceptableUeis()
Gets the acceptable UEIs.- Returns:
- the acceptable UEIs
-
setAcceptableUeis
public void setAcceptableUeis(java.util.List<java.lang.String> acceptableUeis)
Sets the acceptable UEIs.- Parameters:
acceptableUeis
- the new acceptable UEIs
-
getURI
public java.net.URI getURI()
Gets the URI.- Returns:
- the URI
-
-