com.sun.jaw.impl.adaptor.https
Class AdaptorServerImpl
java.lang.Object
|
+--com.sun.jaw.impl.adaptor.generic.AdaptorServer
|
+--com.sun.jaw.impl.adaptor.comm.AdaptorServerImpl
|
+--com.sun.jaw.impl.adaptor.https.AdaptorServerImpl
- public class AdaptorServerImpl
- extends AdaptorServerImpl
This class implements the server part of the HTTP/SSL adaptor.
This class inherits most of its behaviour. It performs only SSL-specific
tasks:
- it creates, reads, writes and closes the SSL sockets,
- it defines the default port of the adaptor: 8084.
- See Also:
AdaptorClient
,
AdaptorSocket
, Serialized Form
Constructor Summary |
AdaptorServerImpl()
Initializes this AdaptorServerImpl with the default port (8084). |
AdaptorServerImpl(int p)
Initializes this AdaptorServerImpl with the specified port. |
Method Summary |
protected AdaptorSocket |
createSocket()
For Java DMK internal use only. |
java.lang.String |
getProtocol()
Returns the name of the protocol (https). |
int |
getTimeout()
Returns setting for TIMEOUT. |
void |
setTimeout(int value)
Enable/disable TIMEOUT with the specified timeout, in milliseconds. |
Methods inherited from class com.sun.jaw.impl.adaptor.generic.AdaptorServer |
addAdaptorListener,
deleteCmf,
getActiveClientCount,
getMaxActiveClientCount,
getPort,
getServedClientCount,
getState,
getStateString,
isActive,
performStart,
performWaitState,
removeAdaptorListener,
setMaxActiveClientCount |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
AdaptorServerImpl
public AdaptorServerImpl()
- Initializes this AdaptorServerImpl with the default port (8084).
AdaptorServerImpl
public AdaptorServerImpl(int p)
- Initializes this AdaptorServerImpl with the specified port.
createSocket
protected AdaptorSocket createSocket()
- For Java DMK internal use only.
- Overrides:
- createSocket in class AdaptorServerImpl
getProtocol
public java.lang.String getProtocol()
- Returns the name of the protocol (https).
- Returns:
- the string "https".
- Overrides:
- getProtocol in class AdaptorServer
getTimeout
public int getTimeout()
- Returns setting for TIMEOUT.
0 returns implies that the option is disabled
(i.e., timeout of infinity).
- Returns:
- the current value of the "Timeout" property.
setTimeout
public void setTimeout(int value)
- Enable/disable TIMEOUT with the specified timeout, in milliseconds.
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 java.io.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 timeout can be set only after the call to doBind().
- Parameters:
value
- the new value of the property.