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 String
protected String
Form parameters to be sent in the request.protected HttpHeaders
protected String
protected Collection
<MultiValuePart> Multi-value parts to be sent in the request.protected boolean
protected HttpHeaders
Additional headers tohttpHeaders
that which can be used and won't be saved in plain text.protected int
protected String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFormParameter
(String key, String value) void
getBody()
int
getUrl()
boolean
void
void
setBodyEncoding
(String bodyEncoding) void
setHttpHeaders
(HttpHeaders httpHeaders) void
void
setNoRedirects
(boolean noRedirects) void
setSecureHttpHeaders
(HttpHeaders secureHttpHeaders) void
setTimeout
(int timeout) void
-
Field Details
-
method
-
url
-
httpHeaders
-
secureHttpHeaders
Additional headers tohttpHeaders
that 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)
-