public abstract class JmxObjectNameRequest extends JmxRequest
| Constructor and Description |
|---|
JmxObjectNameRequest(Map<String,?> pRequestMap,
ProcessingParameters pParams)
Constructor for POST requests
|
JmxObjectNameRequest(RequestType pType,
String pObjectName,
List<String> pPathParts,
ProcessingParameters pProcessingParams)
Constructor for GET requests
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getInfo()
Textual description of this request containing base information.
|
ObjectName |
getObjectName()
Get object name of MBean
|
String |
getObjectNameAsString()
String representation of the object name for this request.
|
String |
getOrderedObjectName(ObjectName pName)
Name prepared according to requested formatting note.
|
org.json.simple.JSONObject |
toJSON()
Convert this request to a JSON object, which can be used as a part of a return value.
|
getHttpMethod, getParameter, getParameterAsBool, getParameterAsInt, getPath, getPathParts, getTargetConfig, getType, getValueFaultHandlerpublic JmxObjectNameRequest(RequestType pType, String pObjectName, List<String> pPathParts, ProcessingParameters pProcessingParams) throws MalformedObjectNameException
pType - request typepObjectName - object name, which must not be null.pPathParts - parts of an pathpProcessingParams - optional init paramsMalformedObjectNameException - if the given MBean name is not a valid object namepublic JmxObjectNameRequest(Map<String,?> pRequestMap, ProcessingParameters pParams) throws MalformedObjectNameException
pRequestMap - object representation of the requestpParams - processing parametersMalformedObjectNameException - if the given MBean name (key: "mbean") is not a valid object name.public org.json.simple.JSONObject toJSON()
toJSON in class JmxRequestprotected String getInfo()
JmxRequestgetInfo in class JmxRequestpublic ObjectName getObjectName()
public String getObjectNameAsString()
public String getOrderedObjectName(ObjectName pName)
ConfigKey.CANONICAL_NAMING. If not given or set to "true",
then the canonical order is used, if set to "initial" the name is given to construction time
is used.pName - name to formatCopyright © 2017. All rights reserved.