|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.adaptors.http.HttpRequestHandlerImpl
public class HttpRequestHandlerImpl
This class is used to process the received HttpRequest.
The User implementing the HttpServerInterface to plug-in his web-server should call this class's handle method to handle HTTP requests for the agent.
HttpConnectorServerImpl,
Serialized Form| Nested Class Summary | |
|---|---|
(package private) class |
HttpRequestHandlerImpl.ClientProperty
|
| Field Summary | |
|---|---|
(package private) static javax.management.ObjectName |
adaptorName
|
boolean |
authenticationEnabled
|
boolean |
authorisationEnabled
|
(package private) java.util.Hashtable |
clientTable
|
(package private) boolean |
enableNotif
|
(package private) int |
handback
|
(package private) java.util.Hashtable |
mbeanTable
|
| Constructor Summary | |
|---|---|
HttpRequestHandlerImpl()
constructor to process the received HttpRequest. |
|
HttpRequestHandlerImpl(javax.management.MBeanServer server)
constructor to process the received HttpRequest. |
|
| Method Summary | |
|---|---|
javax.management.MBeanInfo |
getAccessViewMBeanInfo(javax.management.MBeanInfo mbeanInfo,
javax.management.ObjectName name)
|
java.util.Set |
getViewAccessMBeans(java.util.Set names)
|
java.util.Set |
getViewAccessNames(java.util.Set names)
|
byte[] |
handle(byte[] request)
This method will be called by WebServer's HttpRequestHandler to process the HttpRequest and return the result. |
void |
handleNotification(javax.management.Notification notification,
java.lang.Object handback)
Invoked when an JMX notification occurs. |
boolean |
isNotificationEnabled(javax.management.Notification notification)
Returns true if the notification is enabled. |
(package private) static byte[] |
serialize(java.lang.Object obj)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static javax.management.ObjectName adaptorName
public boolean authorisationEnabled
public boolean authenticationEnabled
int handback
boolean enableNotif
java.util.Hashtable clientTable
java.util.Hashtable mbeanTable
| Constructor Detail |
|---|
public HttpRequestHandlerImpl()
public HttpRequestHandlerImpl(javax.management.MBeanServer server)
server - The MBeanServer used to process requests.| Method Detail |
|---|
public byte[] handle(byte[] request)
throws java.lang.Exception
request - The request stream of bytes.
java.lang.Exception - on error while processing request.public java.util.Set getViewAccessMBeans(java.util.Set names)
public java.util.Set getViewAccessNames(java.util.Set names)
public javax.management.MBeanInfo getAccessViewMBeanInfo(javax.management.MBeanInfo mbeanInfo,
javax.management.ObjectName name)
static byte[] serialize(java.lang.Object obj)
public boolean isNotificationEnabled(javax.management.Notification notification)
isNotificationEnabled in interface javax.management.NotificationFilternotification - The notification to be sent.
public void handleNotification(javax.management.Notification notification,
java.lang.Object handback)
handleNotification in interface javax.management.NotificationListenernotification - The notification.handback - An opaque object which helps the listener to associate information
regarding the MBean emitter. This object was passed to the MBean
during the addListener call and resend, without modification,
to the listener. The MBean object should to use or modify the object.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||