public interface HttpBaseRequest<Q extends HttpBaseRequest<?,?>,R extends ConnectorResponse> extends ConnectorRequest<R>
| Modifier and Type | Field and Description |
|---|---|
static String |
HEADER_CONTENT_TYPE |
static String |
PARAM_NAME_REQUEST_HEADERS |
static String |
PARAM_NAME_REQUEST_METHOD |
static String |
PARAM_NAME_REQUEST_PAYLOAD |
static String |
PARAM_NAME_REQUEST_URL |
| Modifier and Type | Method and Description |
|---|---|
Q |
contentType(String contentType)
Set the content type header for this request.
|
String |
getContentType() |
String |
getHeader(String field) |
Map<String,String> |
getHeaders() |
String |
getMethod() |
String |
getPayload() |
String |
getUrl() |
Q |
header(String field,
String value)
Set a HTTP header for this request.
|
Q |
method(String method)
Sets the method of this request.
|
Q |
payload(String payload)
Set the payload of this request.
|
Q |
url(String url)
Set the url of this request.
|
execute, getRequestParameter, getRequestParameters, setRequestParameter, setRequestParametersstatic final String PARAM_NAME_REQUEST_URL
static final String PARAM_NAME_REQUEST_HEADERS
static final String PARAM_NAME_REQUEST_METHOD
static final String PARAM_NAME_REQUEST_PAYLOAD
static final String HEADER_CONTENT_TYPE
Q url(String url)
url - the url to setString getUrl()
Q header(String field, String value)
field - HTTP header fieldvalue - HTTP header valueString getHeader(String field)
Map<String,String> getHeaders()
Q contentType(String contentType)
contentType - the content typeString getContentType()
Q payload(String payload)
payload - the payload to setString getPayload()
Q method(String method)
method - the method to setString getMethod()
Copyright © 2014–2019 Camunda Services GmbH. All rights reserved.