Package org.bitbucket.restgap.client
Interface RestCall
- All Known Implementing Classes:
RestCallImpl
public interface RestCall
When the created client instance has a
CallHandler
installed,
the handler's CallHandler.handleCall(RestCallContext)
method will be called before
the actual RestTemplate method is invoked. A RestCall
instance
contains selected call parameters for the RestTemplate call, which the
call handler may modify before the RestTemplate instance is invoked.- Author:
- count
-
Method Summary
Modifier and TypeMethodDescriptiongetPlan()
getUri()
void
setHttpBody
(Object body) void
setHttpMethod
(String httpMethod) Set a new HttpMethod to call the REST resource.void
-
Method Details
-
getPlan
Plan getPlan() -
getHttpBody
Object getHttpBody()- Returns:
- the HttpEntity to make the REST call. Provides access to HTTP headers and request body.
-
setHttpBody
-
getHttpMethod
String getHttpMethod()- Returns:
- the HTTP method that will be used to call the resource.
-
setHttpMethod
Set a new HttpMethod to call the REST resource. Use with care.- Parameters:
httpMethod
- the new HttpMethod that should be used instead to call the resource.
-
getUri
String getUri() -
setUri
-
getHeaders
-
getPathParams
-
getResponseType
Type getResponseType() -
getQueryParams
-
getFormParams
-