Package org.flowable.http.common.api
Class HttpRequest
java.lang.Object
org.flowable.http.common.api.HttpRequest
- Author:
- Harsha Teja Kanna.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected StringForm parameters to be sent in the request.protected HttpHeadersprotected Stringprotected Collection<MultiValuePart> Multi-value parts to be sent in the request.protected booleanprotected HttpHeadersAdditional headers tohttpHeadersthat which can be used and won't be saved in plain text.protected intprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFormParameter(String key, String value) voidgetBody()intgetUrl()booleanvoidvoidsetBodyEncoding(String bodyEncoding) voidsetHttpHeaders(HttpHeaders httpHeaders) voidvoidsetNoRedirects(boolean noRedirects) voidsetSecureHttpHeaders(HttpHeaders secureHttpHeaders) voidsetTimeout(int timeout) void
-
Field Details
-
method
-
url
-
httpHeaders
-
secureHttpHeaders
Additional headers tohttpHeadersthat which can be used and won't be saved in plain text. -
body
-
bodyEncoding
-
multiValueParts
Multi-value parts to be sent in the request. This is used for multipart/form-data requests and will be encoded as such. -
formParameters
Form parameters to be sent in the request. This is used for form submissions and will be encoded as application/x-www-form-urlencoded. -
timeout
protected int timeout -
noRedirects
protected boolean noRedirects
-
-
Constructor Details
-
HttpRequest
public HttpRequest()
-
-
Method Details
-
getMethod
-
setMethod
-
getUrl
-
setUrl
-
getHttpHeaders
-
getHttpHeadersAsString
-
setHttpHeaders
-
getSecureHttpHeaders
-
getSecureHttpHeadersAsString
-
setSecureHttpHeaders
-
getBody
-
setBody
-
getBodyEncoding
-
setBodyEncoding
-
getMultiValueParts
-
addMultiValuePart
-
getFormParameters
-
addFormParameter
-
getTimeout
public int getTimeout() -
setTimeout
public void setTimeout(int timeout) -
isNoRedirects
public boolean isNoRedirects() -
setNoRedirects
public void setNoRedirects(boolean noRedirects)
-