Constructor and Description |
---|
SourceCreate() |
Modifier and Type | Method and Description |
---|---|
String |
getBody()
Value of the request body.
|
Map<String,Object> |
getBodyAsMap()
Value of the request body as a Map.
|
String |
getEndpoint()
Path and query parameters of a URL.
|
Map<String,String> |
getHeaders()
Map of request-specific HTTP headers. |
Http.Method |
getHttpMethod()
HTTP method.
|
Source |
getResponse(byte[] in,
int code,
Map<String,String> responseHeaders)
Response handler.
|
Http.Accept |
getResponseType()
HTTP Accept header.
|
boolean |
hasBody()
Whether or not the request has a body.
|
public Http.Method getHttpMethod()
Request
getHttpMethod
in interface Request<Source>
public String getEndpoint()
Request
getEndpoint
in interface Request<Source>
public boolean hasBody()
Request
public String getBody()
Request
public Map<String,Object> getBodyAsMap()
Request
getBodyAsMap
in interface Request<Source>
public Http.Accept getResponseType()
Request
getResponseType
in interface Request<Source>
Http.Accept
public Map<String,String> getHeaders()
Request
Map
of request-specific HTTP headers.getHeaders
in interface Request<Source>
public Source getResponse(byte[] in, int code, Map<String,String> responseHeaders)
Request
getResponse
in interface Request<Source>
in
- Data returned from the request.code
- HTTP status code.T
as specified by an individual request.Copyright © 2017. All rights reserved.