public interface RIDCHttpPostMethod extends RIDCHttpMethod
Modifier and Type | Method and Description |
---|---|
void |
addLoginFormCredentials(IdcContext.LoginForm loginForm,
Credentials.BasicCredentials credentials)
Add credentials for a login form
|
void |
addParameter(String name,
String value)
Add a parameter to the request
|
void |
setRequestEntity(List<RIDCHttpPart<?>> multipartParts,
String encoding)
Set multipart request data for POST action
|
void |
setRequestEntity(String content,
String contentType,
String encoding)
Set request data for POST action
|
addRequestHeader, execute, getResponseBodyAsStream, getResponseHeader, getResponseHeaders, getRidcClient, getStatusCode, getStatusLine, getURI, releaseConnection, setCookiePolicy, setFollowRedirects, setParameter, setQueryString, setRequestConfig, setRequestHeader, setServiceLog
void setRequestEntity(String content, String contentType, String encoding) throws UnsupportedEncodingException
content
- the content to be postedcontentType
- the content typeencoding
- the content encodingUnsupportedEncodingException
void setRequestEntity(List<RIDCHttpPart<?>> multipartParts, String encoding) throws UnsupportedEncodingException, IOException
multipartParts
- the content "parts" to be postedencoding
- UnsupportedEncodingException
IOException
void addParameter(String name, String value)
name
- parameter namevalue
- parameter valuevoid addLoginFormCredentials(IdcContext.LoginForm loginForm, Credentials.BasicCredentials credentials) throws UnsupportedEncodingException
loginForm
- the login formcredentials
- the login credentialsUnsupportedEncodingException