public class LineageCommand extends Command<LineageResponse>
Modifier and Type | Class and Description |
---|---|
static class |
LineageCommand.Builder |
Command.CommonParameters, Command.Response
CONTENT_TYPE_JSON
Modifier and Type | Method and Description |
---|---|
LineageCommand |
copy()
Returns a copy of this object.
|
protected LineageResponse |
createResponse(java.lang.String text,
int statusCode,
java.lang.String contentType,
org.json.simple.JSONObject json)
Creates an instance of the response class, initialized with
the response text, the HTTP status code, and parsed JSONObject.
|
java.util.Map<java.lang.String,java.lang.Object> |
getParameters()
Returns the current parameter map, or null if a map has not yet been set.
|
static void |
main(java.lang.String[] args) |
_execute, checkThrowError, createRequest, execute, getActionName, getActionUrl, getControllerName, getHttpRequest, getParamValueAsString, getQueryString, getRequiredVersion, getTimeout, setParameters, setRequiredVersion, setTimeout
protected LineageResponse createResponse(java.lang.String text, int statusCode, java.lang.String contentType, org.json.simple.JSONObject json)
Command
Override this method to create an instance of a different class that extends CommandResponse
createResponse
in class Command<LineageResponse>
text
- The response text from the server.statusCode
- The HTTP status code.contentType
- The Content-Type header value.json
- The parsed JSONObject (or null if no JSON was returned).public java.util.Map<java.lang.String,java.lang.Object> getParameters()
Command
getParameters
in class Command<LineageResponse>
public LineageCommand copy()
Command
copy
in class Command<LineageResponse>
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception