|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.jaw.impl.adaptor.generic.AdaptorServer | +--com.sun.jaw.impl.adaptor.comm.AdaptorServerImpl | +--com.sun.jaw.impl.adaptor.http.AdaptorServerImpl
This class implements the server part of the HTTP/TCP adaptor. This class inherits most of its behaviour. It performs only TCP-specific tasks:
AdaptorClient
, Serialized FormFields inherited from class com.sun.jaw.impl.adaptor.generic.AdaptorServer |
cmf,
maxActiveClientCount,
objectName,
OFFLINE,
ONLINE,
port,
STARTING,
state,
STOPPING |
Constructor Summary | |
AdaptorServerImpl()
Constructs an AdaptorServerImpl . |
|
AdaptorServerImpl(int p)
Constructs an AdaptorServerImpl . |
Method Summary | |
java.lang.String |
getProtocol()
Returns the name of the protocol used. |
int |
getTimeout()
Returns setting for Timeout. |
void |
setTimeout(int value)
Enables/disables Timeout with the specified timeout, in milliseconds. |
Methods inherited from class com.sun.jaw.impl.adaptor.comm.AdaptorServerImpl |
addUserAuthenticationInfo,
getClassVersion,
getLastConnectedClient,
initCmf,
isAuthenticationOn,
performStop,
removeUserAuthenticationInfo |
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 |
Constructor Detail |
public AdaptorServerImpl()
AdaptorServerImpl
.
Initializes this adaptor server with the default port (8081).
public AdaptorServerImpl(int p)
AdaptorServerImpl
.
Initializes this adaptor server with the specified port.
p
- The port number.Method Detail |
public java.lang.String getProtocol()
public int getTimeout()
0 returns implies that the option is disabled (i.e. timeout of infinity).
public void setTimeout(int value)
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.
value
- The new value of the property.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |