public abstract class J4pResponse<T extends J4pRequest> extends Object
Modifier | Constructor and Description |
---|---|
protected |
J4pResponse(T pRequest,
org.json.simple.JSONObject pJsonResponse) |
Modifier and Type | Method and Description |
---|---|
org.json.simple.JSONObject |
asJSONObject()
Get response as JSON Object
|
T |
getRequest()
Get the request associated with this response
|
Date |
getRequestDate()
Date when the request was processed
|
J4pType |
getType()
Get the request/response type
|
<V> V |
getValue()
Get the value of this response
|
protected J4pResponse(T pRequest, org.json.simple.JSONObject pJsonResponse)
public T getRequest()
public J4pType getType()
public Date getRequestDate()
public <V> V getValue()
public org.json.simple.JSONObject asJSONObject()
Copyright © 2021. All rights reserved.