public final class HttpURLConnectionPostMethod extends HttpURLConnectionMethod implements RIDCHttpPostMethod
requestConfig, serviceLog| Modifier | Constructor and Description |
|---|---|
protected |
HttpURLConnectionPostMethod(String uri, HttpURLConnectionClient client) |
| 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 |
setFollowRedirects(boolean followRedirects)
Set the follow directs option for the connection
|
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, setParameter, setQueryString, setRequestConfig, setRequestHeader, setServiceLogclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddRequestHeader, execute, getResponseBodyAsStream, getResponseHeader, getResponseHeaders, getRidcClient, getStatusCode, getStatusLine, getURI, releaseConnection, setCookiePolicy, setParameter, setQueryString, setRequestConfig, setRequestHeader, setServiceLogprotected HttpURLConnectionPostMethod(String uri, HttpURLConnectionClient client)
public void setFollowRedirects(boolean followRedirects)
RIDCHttpMethodsetFollowRedirects in interface RIDCHttpMethodpublic void setRequestEntity(String content, String contentType, String encoding) throws UnsupportedEncodingException
RIDCHttpPostMethodsetRequestEntity in interface RIDCHttpPostMethodcontent - the content to be postedcontentType - the content typeencoding - the content encodingUnsupportedEncodingExceptionpublic void setRequestEntity(List<RIDCHttpPart<?>> multipartParts, String encoding) throws UnsupportedEncodingException, IOException
RIDCHttpPostMethodsetRequestEntity in interface RIDCHttpPostMethodmultipartParts - the content "parts" to be postedUnsupportedEncodingExceptionIOExceptionpublic void addParameter(String name, String value)
RIDCHttpPostMethodaddParameter in interface RIDCHttpPostMethodname - parameter namevalue - parameter valuepublic void addLoginFormCredentials(IdcContext.LoginForm loginForm, Credentials.BasicCredentials credentials) throws UnsupportedEncodingException
RIDCHttpPostMethodaddLoginFormCredentials in interface RIDCHttpPostMethodloginForm - the login formcredentials - the login credentialsUnsupportedEncodingException