|
||||||||||
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.HttpsConnectorServer
JdmkLegacyConnector
.
public class HttpsConnectorServer
This class implements the server part of the HTTP/SSL connector. This class inherits most of its behavior. It performs only TCP-specific tasks:
HttpsConnectorClient
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 | |
---|---|
HttpsConnectorServer()
Deprecated. Constructs an HttpsConnectorServer . |
|
HttpsConnectorServer(int port)
Deprecated. Constructs an HttpsConnectorServer . |
|
HttpsConnectorServer(int port,
AuthInfo[] authInfoList)
Deprecated. Constructs an HttpsConnectorServer . |
|
HttpsConnectorServer(int port,
AuthInfo[] authInfoList,
InetAddress bindAddr)
Deprecated. Constructs an HttpsConnectorServer . |
|
HttpsConnectorServer(int port,
AuthInfo[] authInfoList,
InetAddress bindAddr,
boolean needClientAuth)
Deprecated. Constructs an HttpsConnectorServer . |
|
HttpsConnectorServer(int port,
InetAddress bindAddr)
Deprecated. Constructs an HttpsConnectorServer . |
Method Summary | |
---|---|
boolean |
getNeedClientAuth()
Deprecated. Returns true if client authentication is
required on SSL connections accepted by the server socket
created by this connector server. |
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 HttpsConnectorServer()
HttpsConnectorServer
.
Initializes this connector server with the default port (8084) and SSL client authentication required.
public HttpsConnectorServer(int port)
HttpsConnectorServer
.
Initializes this connector server with the specified port and SSL client authentication required.
port
- The port number.public HttpsConnectorServer(int port, AuthInfo[] authInfoList)
HttpsConnectorServer
.
Initializes this connector server with the specified port, user authentication information list and SSL client authentication required.
port
- The port number.authInfoList
- The user authentication information list.
If authInfoList
is null no user authentication
is performed.public HttpsConnectorServer(int port, InetAddress bindAddr)
HttpsConnectorServer
.
Initializes this connector server with the specified port, local IP address to bind to and SSL client authentication required.
port
- The port number.bindAddr
- The local IP address the server will bind to. If
bindAddr
is null, it will default accepting connections
on any/all local addresses.public HttpsConnectorServer(int port, AuthInfo[] authInfoList, InetAddress bindAddr)
HttpsConnectorServer
.
Initializes this connector server with the specified port, user authentication information list, local IP address to bind to and SSL client authentication required.
port
- The port number.authInfoList
- The user authentication information list.
If authInfoList
is null no user authentication
is performed.bindAddr
- The local IP address the server will bind to. If
bindAddr
is null, it will default accepting connections
on any/all local addresses.public HttpsConnectorServer(int port, AuthInfo[] authInfoList, InetAddress bindAddr, boolean needClientAuth)
HttpsConnectorServer
.
Initializes this connector server with the specified port, user authentication information list, local IP address to bind to and SSL client authentication flag.
port
- The port number.authInfoList
- The user authentication information list.
If authInfoList
is null no user authentication
is performed.bindAddr
- The local IP address the server will bind to. If
bindAddr
is null, it will default accepting connections
on any/all local addresses.needClientAuth
- true
to require client
authentication on SSL connections accepted by the server
socket created by this connector server; false
to not require client authentication.Method Detail |
---|
public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
com.sun.jdmk.ServiceName.DOMAIN
:
com.sun.jdmk.ServiceName.HTTPS_CONNECTOR_SERVER
.
If any exception is raised, the HTTPS 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 HttpsConnectorServerMBean
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.
The default value for timeout is 60000 milliseconds.
setTimeout
in interface HttpsConnectorServerMBean
value
- The new value of the property.
IllegalStateException
- This method has been invoked
while the connector was ONLINE or STARTING.public final boolean getNeedClientAuth()
Returns true
if client authentication is
required on SSL connections accepted by the server socket
created by this connector server.
true
if client authentication is required
|
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 |