|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.capsd.AbstractPlugin
org.opennms.netmgt.capsd.AbstractTcpPlugin
org.opennms.netmgt.capsd.plugins.HttpPlugin
org.opennms.netmgt.capsd.plugins.HttpsPlugin
public class HttpsPlugin
This class is designed to be used by the capabilities daemon to test for the existance of an HTTPS server on remote interfaces. The class implements the Plugin interface that allows it to be used along with other plugins by the daemon. This plugin generates a HTTP GET request and checks the return code returned by the remote host to determine if it supports the protocol. The remote host's response will be deemed valid if the return code falls in the 100 to 599 range (inclusive). This is based on the following information from RFC 1945 (HTTP 1.0) HTTP 1.0 GET return codes: 1xx: Informational - Not used, future use 2xx: Success 3xx: Redirection 4xx: Client error 5xx: Server error
This plugin generates a HTTP GET request and checks the return code returned by the remote host to determine if it supports the protocol. The remote host's response will be deemed valid if the return code falls in the 100 to 599 range (inclusive). This is based on the following information from RFC 1945 (HTTP 1.0) HTTP 1.0 GET return codes: 1xx: Informational - Not used, future use 2xx: Success 3xx: Redirection 4xx: Client error 5xx: Server error
| Field Summary |
|---|
| Fields inherited from class org.opennms.netmgt.capsd.plugins.HttpPlugin |
|---|
CHECK_RETURN_CODE, DEFAULT_URL, PROTOCOL_NAME, QUERY_STRING, RESPONSE_STRING |
| Constructor Summary | |
|---|---|
HttpsPlugin()
|
|
| Method Summary | |
|---|---|
protected java.net.Socket |
wrapSocket(java.net.Socket socket,
ConnectionConfig config)
|
| Methods inherited from class org.opennms.netmgt.capsd.plugins.HttpPlugin |
|---|
checkProtocol, getConnectionConfigList |
| Methods inherited from class org.opennms.netmgt.capsd.AbstractTcpPlugin |
|---|
checkConnection, closeSocket, createConnectionConfig, getKeyedInteger, getKeyedIntegerArray, getPluginName, getProtocolName, isProtocolSupported, isProtocolSupported, populateConnectionConfig, preconnectCheck, saveConfig, saveKeyedInteger, setPluginName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpsPlugin()
protocol - defaultPort - defaultTimeout - defaultRetries - | Method Detail |
|---|
protected java.net.Socket wrapSocket(java.net.Socket socket,
ConnectionConfig config)
throws java.lang.Exception
wrapSocket in class AbstractTcpPluginjava.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||