public class Jsr160RequestDispatcher extends Object implements RequestDispatcher
Constructor and Description |
---|
Jsr160RequestDispatcher(Converters pConverters,
ServerHandle serverInfo,
Restrictor restrictor)
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 Jsr160RequestDispatcher(Converters pConverters, ServerHandle serverInfo, Restrictor restrictor)
pConverters
- object/string convertersserverInfo
- server info for dealing with version informationrestrictor
- restrictor for restricting access to certain MBeanspublic Object dispatchRequest(JmxRequest pJmxReq) throws InstanceNotFoundException, AttributeNotFoundException, ReflectionException, MBeanException, IOException, NotChangedException
dispatchRequest
in interface RequestDispatcher
pJmxReq
- the request to dispatchInstanceNotFoundException
AttributeNotFoundException
ReflectionException
MBeanException
IOException
NotChangedException
protected Map<String,Object> prepareEnv(Map<String,String> pTargetConfig)
pTargetConfig
- the target configuration as obtained from the requestpublic boolean canHandle(JmxRequest pJmxRequest)
canHandle
in interface RequestDispatcher
public boolean useReturnValueWithPath(JmxRequest pJmxRequest)
useReturnValueWithPath
in interface RequestDispatcher
Copyright © 2017. All rights reserved.