public class JShellJsonHandler
extends java.lang.Object
JSON requests are received here and forwarded to the appropriate handler for the given function family.
| Modifier and Type | Field and Description |
|---|---|
static boolean |
alwaysIncludeStatus
Whether to always include the ServerStatus object on all responses, even
if there is no special status to return.
|
| Constructor and Description |
|---|
JShellJsonHandler() |
| Modifier and Type | Method and Description |
|---|---|
BaseResponse |
handleRequest(BaseRequest req)
Handle a standard request by passing it on to a handler class, and return its results
|
java.lang.String |
handleRequest(java.lang.String reqString)
Handle a JSON request and return its results
|
public static final boolean alwaysIncludeStatus
public java.lang.String handleRequest(java.lang.String reqString)
reqString - The JSON request stringpublic BaseResponse handleRequest(BaseRequest req)
req - The request in the form of a standard request object