|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jdmk.comm.CommunicatorServer
com.sun.jdmk.comm.GenericHttpConnectorServer
com.sun.jdmk.comm.HttpConnectorServer
JdmkLegacyConnector
.
public class HttpConnectorServer
This class implements the server part of the HTTP/TCP connector. This class inherits most of its behavior. It performs only TCP-specific tasks:
HttpConnectorClient
Field Summary |
---|
Fields inherited from class com.sun.jdmk.comm.CommunicatorServer |
---|
HTML_TYPE, HTTP_TYPE, HTTPS_TYPE, OFFLINE, ONLINE, RMI_TYPE, SNMP_TYPE, STARTING, STOPPING |
Constructor Summary | |
---|---|
HttpConnectorServer()
Deprecated. Constructs an HttpConnectorServer . |
|
HttpConnectorServer(int port)
Deprecated. Constructs an HttpConnectorServer . |
|
HttpConnectorServer(int port,
AuthInfo[] authInfoList)
Deprecated. Constructs an HttpConnectorServer . |
|
HttpConnectorServer(int port,
AuthInfo[] authInfoList,
InetAddress bindAddr)
Deprecated. Constructs an HttpConnectorServer . |
|
HttpConnectorServer(int port,
InetAddress bindAddr)
Deprecated. Constructs an HttpConnectorServer . |
Method Summary | |
---|---|
String |
getProtocol()
Deprecated. Returns the name of the protocol used. |
int |
getTimeout()
Deprecated. Returns setting for Timeout. |
ObjectName |
preRegister(MBeanServer server,
ObjectName name)
Deprecated. Allows the MBean to perform any operations it needs before being registered in the MBean server. |
void |
setTimeout(int value)
Deprecated. Enables/disables Timeout with the specified timeout, in milliseconds. |
Methods inherited from class com.sun.jdmk.comm.GenericHttpConnectorServer |
---|
addUserAuthenticationInfo, doBind, doError, doProcess, doReceive, doUnbind, getActiveClientCount, getLastConnectedClient, getMaxActiveClientCount, getServedClientCount, isAuthenticationOn, postDeregister, postRegister, preDeregister, removeUserAuthenticationInfo, setMaxActiveClientCount, setMBeanServer, stop |
Methods inherited from class com.sun.jdmk.comm.CommunicatorServer |
---|
addNotificationListener, getHost, getMBeanServer, getNotificationInfo, getPort, getState, getStateString, isActive, removeNotificationListener, run, setPort, start, waitState |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.sun.jdmk.comm.GenericHttpConnectorServerMBean |
---|
getActiveClientCount, getLastConnectedClient, getMaxActiveClientCount, getServedClientCount, isAuthenticationOn, setMaxActiveClientCount |
Methods inherited from interface com.sun.jdmk.comm.CommunicatorServerMBean |
---|
getHost, getPort, getState, getStateString, isActive, setPort, start, stop, waitState |
Constructor Detail |
---|
public HttpConnectorServer()
HttpConnectorServer
.
Initializes this connector server with the default port (8081).
public HttpConnectorServer(int port)
HttpConnectorServer
.
Initializes this connector server with the specified port.
port
- The port number.public HttpConnectorServer(int port, AuthInfo[] authInfoList)
HttpConnectorServer
.
Initializes this connector server with the specified port and user authentication information list.
port
- The port number.authInfoList
- The user authentication information list.public HttpConnectorServer(int port, InetAddress bindAddr)
HttpConnectorServer
.
Initializes this connector server with the specified port.
port
- The port number.bindAddr
- The local InetAddress the server will bind to.public HttpConnectorServer(int port, AuthInfo[] authInfoList, InetAddress bindAddr)
HttpConnectorServer
.
Initializes this connector server with the specified port and user authentication information list.
port
- The port number.authInfoList
- The user authentication information list.bindAddr
- The local InetAddress the server will bind to.Method Detail |
---|
public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
com.sun.jdmk.ServiceName.DOMAIN
:
com.sun.jdmk.ServiceName.HTTP_CONNECTOR_SERVER
.
If any exception is raised, the HTTP connector server MBean will not be registered in the MBean server.
preRegister
in interface MBeanRegistration
preRegister
in class GenericHttpConnectorServer
server
- The MBeanServer in which the MBean will be registered.name
- The object name of the MBean.
Exception
- This exception should be caught by the MBeanServer
and re-thrown as an MBeanRegistrationException.public String getProtocol()
getProtocol
in interface CommunicatorServerMBean
getProtocol
in class CommunicatorServer
public int getTimeout()
0 returns implies that the option is disabled (i.e. timeout of infinity).
The default value for timeout is 60000 milliseconds.
getTimeout
in interface HttpConnectorServerMBean
public void setTimeout(int value) throws IllegalStateException
With this option set to a non-zero timeout, a read() call on the
InputStream associated with this Socket will block for only this
amount of time. If the timeout expires, a InterruptedIOException
is raised, though the Socket
is still valid. The option must be enabled prior to entering the
blocking operation to have effect. The timeout must be > 0.
A timeout of zero is interpreted as an infinite timeout.
setTimeout
in interface HttpConnectorServerMBean
value
- The new value of the property.
IllegalStateException
- This method has been invoked
while the connector was ONLINE or STARTING.
|
Open Source build 02 opendmk-1.0-b02 2007.10.01_19:17:46_MEST |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |