Class HttpURLConnectionPostMethod
java.lang.Object
oracle.stellent.ridc.protocol.http.httpurlconnection.impl.HttpURLConnectionMethod
oracle.stellent.ridc.protocol.http.httpurlconnection.impl.HttpURLConnectionPostMethod
- All Implemented Interfaces:
RIDCHttpMethod,RIDCHttpPostMethod
public final class HttpURLConnectionPostMethod
extends HttpURLConnectionMethod
implements RIDCHttpPostMethod
-
Field Summary
Fields inherited from class oracle.stellent.ridc.protocol.http.httpurlconnection.impl.HttpURLConnectionMethod
requestConfig, serviceLog -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpURLConnectionPostMethod(String uri, HttpURLConnectionClient client) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLoginFormCredentials(IdcContext.LoginForm loginForm, Credentials.BasicCredentials credentials) Add credentials for a login formvoidaddParameter(String name, String value) Add a parameter to the requestvoidsetFollowRedirects(boolean followRedirects) Set the follow directs option for the connectionvoidsetRequestEntity(String content, String contentType, String encoding) Set request data for POST actionvoidsetRequestEntity(List<RIDCHttpPart<?>> multipartParts, String encoding) Set multipart request data for POST actionMethods inherited from class oracle.stellent.ridc.protocol.http.httpurlconnection.impl.HttpURLConnectionMethod
addRequestHeader, execute, getResponseBodyAsStream, getResponseHeader, getResponseHeaders, getRidcClient, getStatusCode, getStatusLine, getURI, releaseConnection, setCookiePolicy, setParameter, setQueryString, setRequestConfig, setRequestHeader, setServiceLogMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface oracle.stellent.ridc.common.http.RIDCHttpMethod
addRequestHeader, execute, getResponseBodyAsStream, getResponseHeader, getResponseHeaders, getRidcClient, getStatusCode, getStatusLine, getURI, releaseConnection, setCookiePolicy, setParameter, setQueryString, setRequestConfig, setRequestHeader, setServiceLog
-
Constructor Details
-
HttpURLConnectionPostMethod
-
-
Method Details
-
setFollowRedirects
public void setFollowRedirects(boolean followRedirects) Description copied from interface:RIDCHttpMethodSet the follow directs option for the connection- Specified by:
setFollowRedirectsin interfaceRIDCHttpMethod
-
setRequestEntity
public void setRequestEntity(String content, String contentType, String encoding) throws UnsupportedEncodingException Description copied from interface:RIDCHttpPostMethodSet request data for POST action- Specified by:
setRequestEntityin interfaceRIDCHttpPostMethod- Parameters:
content- the content to be postedcontentType- the content typeencoding- the content encoding- Throws:
UnsupportedEncodingException
-
setRequestEntity
public void setRequestEntity(List<RIDCHttpPart<?>> multipartParts, String encoding) throws UnsupportedEncodingException, IOException Description copied from interface:RIDCHttpPostMethodSet multipart request data for POST action- Specified by:
setRequestEntityin interfaceRIDCHttpPostMethod- Parameters:
multipartParts- the content "parts" to be posted- Throws:
UnsupportedEncodingExceptionIOException
-
addParameter
Description copied from interface:RIDCHttpPostMethodAdd a parameter to the request- Specified by:
addParameterin interfaceRIDCHttpPostMethod- Parameters:
name- parameter namevalue- parameter value
-
addLoginFormCredentials
public void addLoginFormCredentials(IdcContext.LoginForm loginForm, Credentials.BasicCredentials credentials) throws UnsupportedEncodingException Description copied from interface:RIDCHttpPostMethodAdd credentials for a login form- Specified by:
addLoginFormCredentialsin interfaceRIDCHttpPostMethod- Parameters:
loginForm- the login formcredentials- the login credentials- Throws:
UnsupportedEncodingException
-