Class HttpNorthbounderConfig
- java.lang.Object
-
- org.opennms.netmgt.alarmd.northbounder.http.HttpNorthbounderConfig
-
- All Implemented Interfaces:
Serializable
,Comparable<HttpNorthbounderConfig>
public class HttpNorthbounderConfig extends Object implements Serializable, 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(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(Object o)
List<String>
getAcceptableUeis()
Gets the acceptable UEIs.String
getFragment()
Gets the fragment.String
getHost()
Gets the host.String
getHttpVersion()
Gets the HTTP version.HttpNorthbounderConfig.HttpMethod
getMethod()
Gets the method.String
getPath()
Gets the path.Integer
getPort()
Gets the port.String
getQuery()
Gets the query.String
getScheme()
Gets the scheme.URI
getURI()
Gets the URI.String
getUserAgent()
Gets the user agent.String
getUserInfo()
Gets the user info.String
getVirtualHost()
Gets the virtual host.void
setAcceptableUeis(List<String> acceptableUeis)
Sets the acceptable UEIs.void
setFragment(String fragment)
Sets the fragment.void
setHost(String host)
Sets the host.void
setHttpVersion(String httpVersion)
Sets the HTTP version.void
setMethod(HttpNorthbounderConfig.HttpMethod method)
Sets the method.void
setPath(String path)
Sets the path.void
setPort(Integer port)
Sets the port.void
setQuery(String query)
Sets the query.void
setScheme(String scheme)
Sets the scheme.void
setUserAgent(String userAgent)
Sets the user agent.void
setUserInfo(String userInfo)
Sets the user info.void
setVirtualHost(String virtualHost)
Sets the virtual host.
-
-
-
Constructor Detail
-
HttpNorthbounderConfig
public HttpNorthbounderConfig(String host)
Instantiates a new HTTP northbounder configuration.- Parameters:
host
- the host
-
-
Method Detail
-
compareTo
public int compareTo(HttpNorthbounderConfig o)
- Specified by:
compareTo
in interfaceComparable<HttpNorthbounderConfig>
-
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 String getHttpVersion()
Gets the HTTP version.- Returns:
- the HTTP version
-
setHttpVersion
public void setHttpVersion(String httpVersion)
Sets the HTTP version.- Parameters:
httpVersion
- the new HTTP version
-
getUserAgent
public String getUserAgent()
Gets the user agent.- Returns:
- the user agent
-
setUserAgent
public void setUserAgent(String userAgent)
Sets the user agent.- Parameters:
userAgent
- the new user agent
-
getVirtualHost
public String getVirtualHost()
Gets the virtual host.- Returns:
- the virtual host
-
setVirtualHost
public void setVirtualHost(String virtualHost)
Sets the virtual host.- Parameters:
virtualHost
- the new virtual host
-
getScheme
public String getScheme()
Gets the scheme.- Returns:
- the scheme
-
setScheme
public void setScheme(String scheme)
Sets the scheme.- Parameters:
scheme
- the new scheme
-
getUserInfo
public String getUserInfo()
Gets the user info.- Returns:
- the user info
-
setUserInfo
public void setUserInfo(String userInfo)
Sets the user info.- Parameters:
userInfo
- the new user info
-
getHost
public String getHost()
Gets the host.- Returns:
- the host
-
setHost
public void setHost(String host)
Sets the host.- Parameters:
host
- the new host
-
getPort
public Integer getPort()
Gets the port.- Returns:
- the port
-
setPort
public void setPort(Integer port)
Sets the port.- Parameters:
port
- the new port
-
getPath
public String getPath()
Gets the path.- Returns:
- the path
-
setPath
public void setPath(String path)
Sets the path.- Parameters:
path
- the new path
-
getQuery
public String getQuery()
Gets the query.- Returns:
- the query
-
setQuery
public void setQuery(String query)
Sets the query.- Parameters:
query
- the new query
-
getFragment
public String getFragment()
Gets the fragment.- Returns:
- the fragment
-
setFragment
public void setFragment(String fragment)
Sets the fragment.- Parameters:
fragment
- the new fragment
-
getAcceptableUeis
public List<String> getAcceptableUeis()
Gets the acceptable UEIs.- Returns:
- the acceptable UEIs
-
setAcceptableUeis
public void setAcceptableUeis(List<String> acceptableUeis)
Sets the acceptable UEIs.- Parameters:
acceptableUeis
- the new acceptable UEIs
-
getURI
public URI getURI()
Gets the URI.- Returns:
- the URI
-
-