public class OARestInvokeInfo extends Object
This info has http and lower level details.
For access this info when a method is called, a method can can include an OARestInvokeInfo for one of the method params, or for it's
return value.
Modifier and Type | Field and Description |
---|---|
Object[] |
args
Arguments from method that was invoked.
|
byte[] |
byteArrayBody |
String |
contentType |
String |
finalUrl
Final http url used to connect to server.
Created using value from urlPath & urlQuery in the format: "protocol://host[:port][/oarest|contextname]/urlPath?urlQuery" |
String |
formData
Uses http content type
Used for params annotated as FormNameValue. |
HashMap<String,String> |
hsCookieOut |
HashMap<String,String> |
hsHeaderIn |
HashMap<String,String> |
hsHeaderOut |
String |
httpMethod
HTTP method used, ex: GET, POST, etc
|
String |
jsonBody
Json object (text) for http request body
|
OARestMethodInfo |
methodInfo
MethodInfo for this invoke.
|
Class |
methodReturnClass |
String |
responseBody |
int |
responseCode |
String |
responseCodeMessage |
Exception |
responseException |
Object |
returnObject |
String |
textBody |
long |
tsEnd
Milisecond (timestamp) for start, http msg sent, and end.
|
long |
tsSent
Milisecond (timestamp) for start, http msg sent, and end.
|
long |
tsStart
Milisecond (timestamp) for start, http msg sent, and end.
|
String |
urlPath
HTTP url path.
|
String |
urlQuery
HTTP url query.
|
Constructor and Description |
---|
OARestInvokeInfo() |
public OARestMethodInfo methodInfo
public Object[] args
public long tsStart
public long tsSent
public long tsEnd
public String httpMethod
public String urlPath
public String urlQuery
public String finalUrl
public String jsonBody
Depends on methodType:
OASearch: search param(s), if any used
OAObjectMethodCall: JSON array, params that are annotated with MethodCallArg
OARemote: JSON array, params that are annotated with MethodCallArg
params that are annotated with BodyObject, BodyJson
public String contentType
public String textBody
public String formData
public byte[] byteArrayBody
public Class methodReturnClass
public int responseCode
public String responseCodeMessage
public String responseBody
public Exception responseException
public Object returnObject
Copyright © 1999–2025 ViaOA. All rights reserved.