Class HttpOraclePostMethod
java.lang.Object
oracle.stellent.ridc.protocol.http.oracle.impl.HttpOracleMethod
oracle.stellent.ridc.protocol.http.oracle.impl.HttpOraclePostMethod
- All Implemented Interfaces:
RIDCHttpMethod,RIDCHttpPostMethod
-
Field Summary
Fields inherited from class oracle.stellent.ridc.protocol.http.oracle.impl.HttpOracleMethod
m_client, m_followRedirects, m_formData, m_headers, m_requestConfig, m_response, m_serviceLog, m_url, redir_mod -
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 requestintexecute()Execute the requestvoidsetRequestEntity(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.oracle.impl.HttpOracleMethod
addRequestHeader, applyRequestConfig, getResponseBodyAsStream, getResponseHeader, getResponseHeaders, getRidcClient, getStatusCode, getStatusLine, getURI, releaseConnection, setCookiePolicy, setFollowRedirects, 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, getResponseBodyAsStream, getResponseHeader, getResponseHeaders, getRidcClient, getStatusCode, getStatusLine, getURI, releaseConnection, setCookiePolicy, setFollowRedirects, setParameter, setQueryString, setRequestConfig, setRequestHeader, setServiceLog
-
Method Details
-
execute
Description copied from interface:RIDCHttpMethodExecute the request- Specified by:
executein interfaceRIDCHttpMethod- Returns:
- status code of the response
- Throws:
IOExceptionProtocolException
-
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
Description copied from interface:RIDCHttpPostMethodSet multipart request data for POST action- Specified by:
setRequestEntityin interfaceRIDCHttpPostMethod- Parameters:
multipartParts- the content "parts" to be posted
-
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) Description copied from interface:RIDCHttpPostMethodAdd credentials for a login form- Specified by:
addLoginFormCredentialsin interfaceRIDCHttpPostMethod- Parameters:
loginForm- the login formcredentials- the login credentials
-