Class HttpOracleMethod
java.lang.Object
oracle.stellent.ridc.protocol.http.oracle.impl.HttpOracleMethod
- All Implemented Interfaces:
RIDCHttpMethod
- Direct Known Subclasses:
HttpOracleGetMethod,HttpOraclePostMethod
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected HttpOracleClientprotected booleanprotected List<HTTPClient.NVPair>protected List<HTTPClient.NVPair>protected IdcRequestConfigprotected HTTPClient.HTTPResponseprotected ServiceLogprotected URLprotected static final Classthe RedirectionModule class -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRequestHeader(String headerName, String headerValue) Add a request headervoidGet the response as a streamgetResponseHeader(String headerName) Get response headerGet all response headersGet the connection instance that this method is associated withintGet the status code of the responseGet the status line of the responsegetURI()Get the uri of the requestvoidRelease the connectionvoidsetCookiePolicy(String policy) Set Cookie policy for this actionvoidsetFollowRedirects(boolean followRedirects) Set the follow directs option for the connectionvoidsetParameter(String param, String value) Set request parametersvoidsetQueryString(List<NameValuePair> paramList) Set the query string for the requestvoidsetRequestConfig(IdcRequestConfig requestConfig) Set the request-specific config for the requestvoidsetRequestHeader(String headerName, String headerValue) Set the request header for the requestvoidsetServiceLog(ServiceLog serviceLog) Set the service log for the requestMethods 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
execute
-
Field Details
-
m_url
-
m_client
-
m_headers
-
m_formData
-
m_response
protected HTTPClient.HTTPResponse m_response -
m_followRedirects
protected boolean m_followRedirects -
redir_mod
the RedirectionModule class -
m_serviceLog
-
m_requestConfig
-
-
Method Details
-
addRequestHeader
Description copied from interface:RIDCHttpMethodAdd a request header- Specified by:
addRequestHeaderin interfaceRIDCHttpMethod- Parameters:
headerName- the header nameheaderValue- the header value
-
setRequestHeader
Description copied from interface:RIDCHttpMethodSet the request header for the request- Specified by:
setRequestHeaderin interfaceRIDCHttpMethod
-
getResponseBodyAsStream
Description copied from interface:RIDCHttpMethodGet the response as a stream- Specified by:
getResponseBodyAsStreamin interfaceRIDCHttpMethod- Returns:
- the response stream
- Throws:
IOExceptionProtocolException
-
getResponseHeader
Description copied from interface:RIDCHttpMethodGet response header- Specified by:
getResponseHeaderin interfaceRIDCHttpMethod- Returns:
- Throws:
ProtocolException
-
getResponseHeaders
Description copied from interface:RIDCHttpMethodGet all response headers- Specified by:
getResponseHeadersin interfaceRIDCHttpMethod- Returns:
- list of headers
- Throws:
ProtocolException
-
getStatusCode
Description copied from interface:RIDCHttpMethodGet the status code of the response- Specified by:
getStatusCodein interfaceRIDCHttpMethod- Returns:
- Throws:
ProtocolException
-
getStatusLine
Description copied from interface:RIDCHttpMethodGet the status line of the response- Specified by:
getStatusLinein interfaceRIDCHttpMethod- Returns:
- Throws:
ProtocolException
-
getURI
Description copied from interface:RIDCHttpMethodGet the uri of the request- Specified by:
getURIin interfaceRIDCHttpMethod- Returns:
- Throws:
URISyntaxException
-
applyRequestConfig
public void applyRequestConfig() -
releaseConnection
public void releaseConnection()Description copied from interface:RIDCHttpMethodRelease the connection- Specified by:
releaseConnectionin interfaceRIDCHttpMethod
-
setCookiePolicy
Description copied from interface:RIDCHttpMethodSet Cookie policy for this action- Specified by:
setCookiePolicyin interfaceRIDCHttpMethod
-
setFollowRedirects
public void setFollowRedirects(boolean followRedirects) Description copied from interface:RIDCHttpMethodSet the follow directs option for the connection- Specified by:
setFollowRedirectsin interfaceRIDCHttpMethod
-
setParameter
Description copied from interface:RIDCHttpMethodSet request parameters- Specified by:
setParameterin interfaceRIDCHttpMethod- Parameters:
param- param namevalue- param value
-
setQueryString
Description copied from interface:RIDCHttpMethodSet the query string for the request- Specified by:
setQueryStringin interfaceRIDCHttpMethod
-
getRidcClient
Description copied from interface:RIDCHttpMethodGet the connection instance that this method is associated with- Specified by:
getRidcClientin interfaceRIDCHttpMethod- Returns:
-
setServiceLog
Set the service log for the request- Specified by:
setServiceLogin interfaceRIDCHttpMethod- Parameters:
serviceLog-
-
setRequestConfig
Description copied from interface:RIDCHttpMethodSet the request-specific config for the request- Specified by:
setRequestConfigin interfaceRIDCHttpMethod
-