com.adventnet.adaptors.http
Class HttpRequestHandlerImpl
java.lang.Object
|
+--com.adventnet.adaptors.http.HttpRequestHandlerImpl
- public class HttpRequestHandlerImpl
- extends java.lang.Object
- implements NotificationFilter, NotificationListener
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.
- Since:
- AdventNet Agent Toolkit (Java Edition) 4.2 release.
- See Also:
HttpConnectorServerImpl, Serialized Form
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
adaptorName
static ObjectName adaptorName
authorisationEnabled
public boolean authorisationEnabled
authenticationEnabled
public boolean authenticationEnabled
handback
int handback
enableNotif
boolean enableNotif
clientTable
java.util.Hashtable clientTable
mbeanTable
java.util.Hashtable mbeanTable
HttpRequestHandlerImpl
public HttpRequestHandlerImpl()
- constructor to process the received HttpRequest.
HttpRequestHandlerImpl
public HttpRequestHandlerImpl(MBeanServer server)
- constructor to process the received HttpRequest.
- Parameters:
server - The MBeanServer used to process requests.
handle
public byte[] handle(byte[] request)
throws java.lang.Exception
- This method will be called by WebServer's HttpRequestHandler
to process the HttpRequest and return the result.
- Parameters:
request - The request stream of bytes.- Returns:
- The response stream of bytes.
- Throws:
- java.lang.Exception - on error while processing request.
getViewAccessMBeans
public java.util.Set getViewAccessMBeans(java.util.Set names)
getViewAccessNames
public java.util.Set getViewAccessNames(java.util.Set names)
getAccessViewMBeanInfo
public MBeanInfo getAccessViewMBeanInfo(MBeanInfo mbeanInfo,
ObjectName name)
serialize
static byte[] serialize(java.lang.Object obj)
isNotificationEnabled
public boolean isNotificationEnabled(Notification notification)
- Returns true if the notification is enabled.
- Specified by:
- isNotificationEnabled in interface NotificationFilter
- Parameters:
notification - The notification to be sent.- Returns:
- True if the notification has to be sent to the listener, false otherwise.
handleNotification
public void handleNotification(Notification notification,
java.lang.Object handback)
- Invoked when an JMX notification occurs.
- Specified by:
- handleNotification in interface NotificationListener
- Parameters:
notification - 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.