Package com.xebialabs.restito.semantics
Class Call
java.lang.Object
com.xebialabs.restito.semantics.Call
Call that happened to server. Handy wrapper for Request values.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Call
fromRequest
(org.glassfish.grizzly.http.server.Request request) Factory methodReturns an authorization header, or null if doesn't existContent type of the callMap of headersorg.glassfish.grizzly.http.Method
Http methodMap of parameters.In case of POST request - returns post bodyorg.glassfish.grizzly.http.server.Request
Returns raw HTTP requestgetUri()
URI of the callgetUrl()
-
Method Details
-
fromRequest
Factory method -
getUri
URI of the call -
getContentType
Content type of the call -
getUrl
-
getHeaders
Map of headers -
getMethod
public org.glassfish.grizzly.http.Method getMethod()Http method -
getParameters
Map of parameters. All parameters considered as if they were multi-valued. -
getPostBody
In case of POST request - returns post body -
getAuthorization
Returns an authorization header, or null if doesn't exist -
getRequest
public org.glassfish.grizzly.http.server.Request getRequest()Returns raw HTTP request
-