When the HTML protocol adaptor is started it creates a TCP/IP socket and listens for client connections.
The default port number of the socket is 8082. This default value can be changed by specifying a port number:
If a client tries to connect, the HtmlAdaptorServer 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 HtmlAdaptorServer is stopped, all current HTTP connections are interrupted (some requests may be terminated abruptly), and the TCP/IP socket is closed.
The HtmlAdaptorServer can perform user authentication. The add/remove user authentication info methods can be used to manage users and their corresponding authentication information. The HTML server uses the 'Basic Authentication Scheme' (as defined in RFC 1945, section 11.1) to authenticate clients connecting to the server.
Limitations of the HTML protocol adaptor:
boolean boolean[] Boolean Boolean[] byte Byte Byte[] char char[] Character Character[] Date Date[] e.g. September 30, 1999 8:49:04 PM CEST double double[] Double Double[] float float[] Float Float[] int int[] Integer Integer[] long Long Long[] Number javax.management.ObjectName javax.management.ObjectName[] short Short Short[] String String[] com.sun.jdmk.Enumerated: Supported for readable attributes. As com.sun.jdmk.Enumerated is an abstract class, only write-only attributes whose actual subclass is declared in the signature of its setter, can be set through the Html adaptor. toString() method is called. boolean Boolean byte Byte char Character Date e.g. September 30, 1999 8:49:04 PM CEST double Double float Float int Integer long Long Number javax.management.ObjectName short Short String Note 1: When reading a value of type Number the server tries to convert it first to an Integer, then a Long, then a Float and finally a Double, stopping at the first which succeeds.
Note 2: Use the "Reload" button displayed in the HTML page of an MBean view rather than the reload button of the web-browser, otherwise you may invoke again the setters of all attributes if this was your last action.
| |
| |
| |