All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
|
+----com.sun.jaw.impl.adaptor.generic.AdaptorServer
|
+----com.sun.jaw.impl.adaptor.html.AdaptorServerImpl
AdaptorServerImpl is started, it creates a TCP/IP socket and
listens for client connections. When a client tries to connect, the
AdaptorServerImpl creates a thread which receives and processes all
subsequent requests from this client. The number of clients is limited by
the maxActiveClientCount property. The default value of the
maxActiveClientCount is 10.
When an HTML AdaptorServerImpl is stopped, all current HTTP connections
are interrupted (some requests may be terminated abruptly) and the TCP/IP
socket is closed.
When an HTML AdaptorServerImpl is registered in the framework, it
parses its ObjectName and updates the port number that it uses with
the value of the 'port' key. If the ObjectName
does not contain a port key, the default port (8082) is used.
For example, if you want to use the port 80, register your HTML
AdaptorServerImpl with the following name:
domain:com.sun.jaw.reference.adaptor.AdaptorMO.protocol=html,port=80
An HTML AdaptorServerImpl can perform authentication.
Authentication uses the AuthenticationInfo property. If the
AuthenticationInfo property is null, no authentication is
performed.
An HTML AdaptorServerImpl 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 'Basic Authentication
Scheme' as define in RFC 1945, section 11.1.
AdaptorServerImpl using the default port (8082).
AdaptorServerImpl using the specified port.
AdaptorServer.
AdaptorServerImpl.
public AdaptorServerImpl()
AdaptorServerImpl using the default port (8082).
public AdaptorServerImpl(int p)
AdaptorServerImpl using the specified port.
public void setPort(Integer p)
AdaptorServerImpl.
If this AdaptorServerImpl is ONLINE,
it must be stopped and then restarted to use the new port value.
public void initCmf(Framework f,
ObjectName name,
boolean db,
ModificationList list) throws InstanceAlreadyExistException
Parses the object name and updates the port with the value associated to
the 'port' key (if any).
Then calls the ancestor initCmf.
public String getLastConnectedClient()
public String getClassVersion()
public String getProtocol()
AdaptorServer.
public synchronized void addUserAuthenticationInfo(AuthInfo authinfo)
public synchronized void removeUserAuthenticationInfo(AuthInfo authinfo)
public boolean isAuthenticationOn()
public Boolean getFlattenView()
When the flatten view flag is true, inherited properties are displayed in the property list HTML page. When the flag is false, only the properties defined by the object are displayed.
public void setFlattenView(Boolean value)
public Boolean getSortMbeanProperties()
When the SortMbeanProperties flag is true, properties of the M-Bean are displayed in alphabetics order.
public void setSortMbeanProperties(Boolean value)
public String getPageBodyOption()
public void setPageBodyOption(String value)
Example:
BGCOLOR=#ffffff
set the background of HTML pages to white
public synchronized boolean checkChallengeResponse(String response)
Check if the response sent by the client matches any of the login/password pairs stored in the server. If the match is successful then the client has been authenticated and the method returns true. False, otherwise.
public void performStop()
All Packages Class Hierarchy This Package Previous Next Index