public abstract class JmxRequest extends Object
Modifier | Constructor and Description |
---|---|
|
JmxRequest(Map<String,?> pMap,
ProcessingParameters pInitParams)
Constructor used for
HttpMethod.POST requests, which receive a JSON payload. |
protected |
JmxRequest(RequestType pType,
List<String> pPathParts,
ProcessingParameters pProcessingParams)
Constructor used for representing
HttpMethod.GET requests. |
Modifier and Type | Method and Description |
---|---|
HttpMethod |
getHttpMethod()
HTTP method used for creating this request
|
protected String |
getInfo()
Textual description of this request containing base information.
|
String |
getParameter(ConfigKey pConfigKey)
Get a processing configuration or null if not set
|
Boolean |
getParameterAsBool(ConfigKey pConfigKey)
Get a processing configuration as a boolean value
|
int |
getParameterAsInt(ConfigKey pConfigKey)
Get a processing configuration as integer or null
if not set
|
String |
getPath()
Get the path combined with proper escaping
|
List<String> |
getPathParts()
Get the parts of a path
|
ProxyTargetConfig |
getTargetConfig()
Get the proxy target configuration provided with the request
|
RequestType |
getType()
Get request type
|
ValueFaultHandler |
getValueFaultHandler()
Get tha value fault handler, which can be passwed around.
|
JSONObject |
toJSON()
Convert this request to a JSON object, which can be used as a part of a return value.
|
protected JmxRequest(RequestType pType, List<String> pPathParts, ProcessingParameters pProcessingParams)
HttpMethod.GET
requests.pType
- request typepPathParts
- an optional path, splitted up in parts. Not all requests do handle a path.pProcessingParams
- init parameters provided as query params for a GET request. They are used to
to influence the processing.public JmxRequest(Map<String,?> pMap, ProcessingParameters pInitParams)
HttpMethod.POST
requests, which receive a JSON payload.pMap
- map containing requests parameterspInitParams
- optional processing parameters (obtained as query parameters or from within the
JSON request)public RequestType getType()
public String getParameter(ConfigKey pConfigKey)
pConfigKey
- configuration key to fetchnull
if not setpublic int getParameterAsInt(ConfigKey pConfigKey)
pConfigKey
- configuration to lookuppublic Boolean getParameterAsBool(ConfigKey pConfigKey)
pConfigKey
- configuration to lookuppublic ProxyTargetConfig getTargetConfig()
public HttpMethod getHttpMethod()
public ValueFaultHandler getValueFaultHandler()
protected String getInfo()
public List<String> getPathParts()
public String getPath()
public JSONObject toJSON()
Copyright © 2019. All rights reserved.