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, setServiceLog
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addRequestHeader, execute, getResponseBodyAsStream, getResponseHeader, getResponseHeaders, getRidcClient, getStatusCode, getStatusLine, getURI, releaseConnection, setCookiePolicy, setParameter, setQueryString, setRequestConfig, setRequestHeader, setServiceLog
protected HttpURLConnectionPostMethod(String uri, HttpURLConnectionClient client)
public void setFollowRedirects(boolean followRedirects)
RIDCHttpMethod
setFollowRedirects
in interface RIDCHttpMethod
public void setRequestEntity(String content, String contentType, String encoding) throws UnsupportedEncodingException
RIDCHttpPostMethod
setRequestEntity
in interface RIDCHttpPostMethod
content
- the content to be postedcontentType
- the content typeencoding
- the content encodingUnsupportedEncodingException
public void setRequestEntity(List<RIDCHttpPart<?>> multipartParts, String encoding) throws UnsupportedEncodingException, IOException
RIDCHttpPostMethod
setRequestEntity
in interface RIDCHttpPostMethod
multipartParts
- the content "parts" to be postedUnsupportedEncodingException
IOException
public void addParameter(String name, String value)
RIDCHttpPostMethod
addParameter
in interface RIDCHttpPostMethod
name
- parameter namevalue
- parameter valuepublic void addLoginFormCredentials(IdcContext.LoginForm loginForm, Credentials.BasicCredentials credentials) throws UnsupportedEncodingException
RIDCHttpPostMethod
addLoginFormCredentials
in interface RIDCHttpPostMethod
loginForm
- the login formcredentials
- the login credentialsUnsupportedEncodingException