|
|||||||||
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
This class implements the common behaviour for the server part of the HTTP-based adaptors. HTTP/TCP, HTTP/UDP and HTTP/SSL adaptors extend this class and inherit this behaviour.
HTTP/TCP, HTTP/UDP and HTTP/SSL adaptors differ by the socket type they use to communicate between the server and the client:
The data transmitted between the client and server parts is the same in both adaptors: these are serialized Java objects encoded as HTTP requests and responses.
The three adaptors can perform user authentication. The add/remove user authentication info methods are used to add/remove users and their corresponding authentication information. If this server carries out client authentication then clients connecting to this server are authenticated using the 'CRAM-MD5 Access Authentication Scheme' as defined in RFCs 2104 and 2195.
The three adaptors use the same default value (10) for the
maxActiveClientCount
property. When an adaptor is stopped, the
active requests are interrupted and an error result is sent to the clients.
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()
Initializes this AdaptorServerImpl with the default port. |
|
AdaptorServerImpl(int p)
Initializes this AdaptorServerImpl with the specified port. |
Method Summary | |
void |
addUserAuthenticationInfo(AuthInfo authinfo)
Adds user authentification information to this server. |
java.lang.String |
getClassVersion()
Gets the version of this class. |
java.lang.String |
getLastConnectedClient()
Gets the IP address of the last connected client. |
void |
initCmf(Framework f,
ObjectName name,
boolean db,
ModificationList list)
Starts the adaptor server after registration. |
boolean |
isAuthenticationOn()
Returns true if the list of users supported by this server is not empty. |
void |
performStop()
Stops this server. |
void |
removeUserAuthenticationInfo(AuthInfo authinfo)
Removes user authentication information from this server. |
Methods inherited from class com.sun.jaw.impl.adaptor.generic.AdaptorServer |
addAdaptorListener,
deleteCmf,
getActiveClientCount,
getMaxActiveClientCount,
getPort,
getProtocol,
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
with the default port.
The default port is protocol-specific: its value is defined by the
derived classes.public AdaptorServerImpl(int p)
AdaptorServerImpl
with the specified port.p
- The port number.Method Detail |
public void initCmf(Framework f, ObjectName name, boolean db, ModificationList list) throws InstanceAlreadyExistException
public java.lang.String getLastConnectedClient()
java.net.InetAddress
.InetAddress
public void addUserAuthenticationInfo(AuthInfo authinfo)
authinfo
- The user authentication information.public void removeUserAuthenticationInfo(AuthInfo authinfo)
authinfo
- The user authentication information.addUserAuthenticationInfo(com.sun.jaw.impl.adaptor.security.AuthInfo)
public boolean isAuthenticationOn()
public java.lang.String getClassVersion()
public void performStop()
AdaptorServer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |