public abstract class HttpOracleMethod extends Object implements RIDCHttpMethod
| Modifier and Type | Field and Description |
|---|---|
protected HttpOracleClient |
m_client |
protected boolean |
m_followRedirects |
protected List<HTTPClient.NVPair> |
m_formData |
protected List<HTTPClient.NVPair> |
m_headers |
protected IdcRequestConfig |
m_requestConfig |
protected HTTPClient.HTTPResponse |
m_response |
protected ServiceLog |
m_serviceLog |
protected URL |
m_url |
protected static Class |
redir_mod
the RedirectionModule class
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRequestHeader(String headerName,
String headerValue)
Add a request header
|
void |
applyRequestConfig() |
InputStream |
getResponseBodyAsStream()
Get the response as a stream
|
RIDCHttpHeader |
getResponseHeader(String headerName)
Get response header
|
List<RIDCHttpHeader> |
getResponseHeaders()
Get all response headers
|
HttpOracleClient |
getRidcClient()
Get the connection instance that this method is associated with
|
int |
getStatusCode()
Get the status code of the response
|
String |
getStatusLine()
Get the status line of the response
|
URI |
getURI()
Get the uri of the request
|
void |
releaseConnection()
Release the connection
|
void |
setCookiePolicy(String policy)
Set Cookie policy for this action
|
void |
setFollowRedirects(boolean followRedirects)
Set the follow directs option for the connection
|
void |
setParameter(String param,
String value)
Set request parameters
|
void |
setQueryString(List<NameValuePair> paramList)
Set the query string for the request
|
void |
setRequestConfig(IdcRequestConfig requestConfig)
Set the request-specific config for the request
|
void |
setRequestHeader(String headerName,
String headerValue)
Set the request header for the request
|
void |
setServiceLog(ServiceLog serviceLog)
Set the service log for the request
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteprotected URL m_url
protected HttpOracleClient m_client
protected List<HTTPClient.NVPair> m_headers
protected List<HTTPClient.NVPair> m_formData
protected HTTPClient.HTTPResponse m_response
protected boolean m_followRedirects
protected static final Class redir_mod
protected ServiceLog m_serviceLog
protected IdcRequestConfig m_requestConfig
public void addRequestHeader(String headerName, String headerValue)
RIDCHttpMethodaddRequestHeader in interface RIDCHttpMethodheaderName - the header nameheaderValue - the header valuepublic void setRequestHeader(String headerName, String headerValue)
RIDCHttpMethodsetRequestHeader in interface RIDCHttpMethodpublic InputStream getResponseBodyAsStream() throws IOException, ProtocolException
RIDCHttpMethodgetResponseBodyAsStream in interface RIDCHttpMethodIOExceptionProtocolExceptionpublic RIDCHttpHeader getResponseHeader(String headerName) throws ProtocolException
RIDCHttpMethodgetResponseHeader in interface RIDCHttpMethodProtocolExceptionpublic List<RIDCHttpHeader> getResponseHeaders() throws ProtocolException
RIDCHttpMethodgetResponseHeaders in interface RIDCHttpMethodProtocolExceptionpublic int getStatusCode()
throws ProtocolException
RIDCHttpMethodgetStatusCode in interface RIDCHttpMethodProtocolExceptionpublic String getStatusLine() throws ProtocolException
RIDCHttpMethodgetStatusLine in interface RIDCHttpMethodProtocolExceptionpublic URI getURI() throws URISyntaxException
RIDCHttpMethodgetURI in interface RIDCHttpMethodURISyntaxExceptionpublic void applyRequestConfig()
public void releaseConnection()
RIDCHttpMethodreleaseConnection in interface RIDCHttpMethodpublic void setCookiePolicy(String policy)
RIDCHttpMethodsetCookiePolicy in interface RIDCHttpMethodpublic void setFollowRedirects(boolean followRedirects)
RIDCHttpMethodsetFollowRedirects in interface RIDCHttpMethodpublic void setParameter(String param, String value)
RIDCHttpMethodsetParameter in interface RIDCHttpMethodparam - param namevalue - param valuepublic void setQueryString(List<NameValuePair> paramList)
RIDCHttpMethodsetQueryString in interface RIDCHttpMethodpublic HttpOracleClient getRidcClient()
RIDCHttpMethodgetRidcClient in interface RIDCHttpMethodpublic void setServiceLog(ServiceLog serviceLog)
setServiceLog in interface RIDCHttpMethodserviceLog - public void setRequestConfig(IdcRequestConfig requestConfig)
RIDCHttpMethodsetRequestConfig in interface RIDCHttpMethod