public class Jsr160RequestDispatcher extends Object implements RequestDispatcher
| Modifier and Type | Field and Description |
|---|---|
static String |
ALLOWED_TARGETS_ENV |
static String |
ALLOWED_TARGETS_SYSPROP |
| Constructor and Description |
|---|
Jsr160RequestDispatcher(Converters pConverters,
ServerHandle pServerInfo,
Restrictor pRestrictor,
Configuration pConfig)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(JmxRequest pJmxRequest)
The request can be handled when a target configuration is given.
|
Object |
dispatchRequest(JmxRequest pJmxReq)
Call a remote connector based on the connection information contained in
the request.
|
protected Map<String,Object> |
prepareEnv(Map<String,String> pTargetConfig)
Override this if a special environment setup is required for JSR-160 connection
|
boolean |
useReturnValueWithPath(JmxRequest pJmxRequest) |
public static final String ALLOWED_TARGETS_SYSPROP
public static final String ALLOWED_TARGETS_ENV
public Jsr160RequestDispatcher(Converters pConverters, ServerHandle pServerInfo, Restrictor pRestrictor, Configuration pConfig)
pConverters - object/string converterspServerInfo - server info for dealing with version informationpRestrictor - restrictor for restricting access to certain MBeanspublic Object dispatchRequest(JmxRequest pJmxReq) throws InstanceNotFoundException, AttributeNotFoundException, ReflectionException, MBeanException, IOException, NotChangedException
dispatchRequest in interface RequestDispatcherpJmxReq - the request to dispatchInstanceNotFoundExceptionAttributeNotFoundExceptionReflectionExceptionMBeanExceptionIOExceptionNotChangedExceptionprotected Map<String,Object> prepareEnv(Map<String,String> pTargetConfig)
pTargetConfig - the target configuration as obtained from the requestpublic boolean canHandle(JmxRequest pJmxRequest)
canHandle in interface RequestDispatcherpublic boolean useReturnValueWithPath(JmxRequest pJmxRequest)
useReturnValueWithPath in interface RequestDispatcherCopyright © 2018. All rights reserved.