Class AbstractRequestHandler
java.lang.Object
org.jolokia.server.core.service.api.AbstractJolokiaService<RequestHandler>
org.jolokia.server.core.service.request.AbstractRequestHandler
- All Implemented Interfaces:
Comparable<RequestHandler>,JolokiaService<RequestHandler>,RequestHandler
public abstract class AbstractRequestHandler
extends AbstractJolokiaService<RequestHandler>
implements RequestHandler
Base class for request handlers which provides some utilities methods like deciding on
a request based on a configured provider.
- Since:
- 21.11.13
- Author:
- roland
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jolokia.server.core.service.api.JolokiaService
JolokiaService.Init -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandle(JolokiaRequest pJolokiaRequest) Check whether current dispatcher can handle the given requestprotected booleancheckProvider(JolokiaRequest pRequest) Check whether the given request match the provider for which this handler is responsibleGet the provider for which this handler is responsibleDefault implementation doesn't return any extra information, butnull.Methods inherited from class org.jolokia.server.core.service.api.AbstractJolokiaService
compareTo, destroy, getJolokiaContext, getOrder, getType, init, registerJolokiaMBean, unregisterJolokiaMBeanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.jolokia.server.core.service.api.JolokiaService
destroy, getOrder, getType, initMethods inherited from interface org.jolokia.server.core.service.request.RequestHandler
handleRequest
-
Constructor Details
-
AbstractRequestHandler
-
-
Method Details
-
canHandle
Check whether current dispatcher can handle the given request- Specified by:
canHandlein interfaceRequestHandler- Parameters:
pJolokiaRequest- request to check- Returns:
- true if this dispatcher can handle the request
-
checkProvider
Check whether the given request match the provider for which this handler is responsible- Parameters:
pRequest- request to check- Returns:
- true if this handler can handle this.
-
getProvider
Get the provider for which this handler is responsible- Specified by:
getProviderin interfaceRequestHandler- Returns:
- provider name for which this handler is responsible.
-
getRuntimeInfo
Default implementation doesn't return any extra information, butnull.- Specified by:
getRuntimeInfoin interfaceRequestHandler- Returns:
- extra runtime information to add for a version request
-