Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC)
11g Release 1 (11.1)

E17274-04


oracle.stellent.ridc.protocol.http.oracle.impl
Class HttpOracleMethod

java.lang.Object
  extended by oracle.stellent.ridc.protocol.http.oracle.impl.HttpOracleMethod

All Implemented Interfaces:
RIDCHttpMethod
Direct Known Subclasses:
HttpOracleGetMethod, HttpOraclePostMethod

public abstract class HttpOracleMethod
extends Object
implements RIDCHttpMethod

Field Summary
protected  HttpOracleClient m_client
           
protected  boolean m_followRedirects
           
protected  List<HTTPClient.NVPair> m_formData
           
protected  List<HTTPClient.NVPair> m_headers
           
protected  HTTPClient.HTTPResponse m_response
           
protected  ServiceLog m_serviceLog
           
protected  URL m_url
           
protected static Class redir_mod
          the RedirectionModule class

 

Method Summary
 void addRequestHeader(String headerName, String headerValue)
          Add a request header
 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 setRequestHeader(String headerName, String headerValue)
          Set the request header for the request
 void setServiceLog(ServiceLog serviceLog)
          Set the service log for the request

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Methods inherited from interface oracle.stellent.ridc.common.http.RIDCHttpMethod
execute

 

Field Detail

m_url

protected URL m_url

m_client

protected HttpOracleClient m_client

m_headers

protected List<HTTPClient.NVPair> m_headers

m_formData

protected List<HTTPClient.NVPair> m_formData

m_response

protected HTTPClient.HTTPResponse m_response

m_followRedirects

protected boolean m_followRedirects

redir_mod

protected static final Class redir_mod
the RedirectionModule class

m_serviceLog

protected ServiceLog m_serviceLog

Method Detail

addRequestHeader

public void addRequestHeader(String headerName,
                             String headerValue)
Description copied from interface: RIDCHttpMethod
Add a request header
Specified by:
addRequestHeader in interface RIDCHttpMethod
Parameters:
headerName - the header name
headerValue - the header value

setRequestHeader

public void setRequestHeader(String headerName,
                             String headerValue)
Description copied from interface: RIDCHttpMethod
Set the request header for the request
Specified by:
setRequestHeader in interface RIDCHttpMethod

getResponseBodyAsStream

public InputStream getResponseBodyAsStream()
                                    throws IOException,
                                           ProtocolException
Description copied from interface: RIDCHttpMethod
Get the response as a stream
Specified by:
getResponseBodyAsStream in interface RIDCHttpMethod
Returns:
the response stream
Throws:
IOException
ProtocolException

getResponseHeader

public RIDCHttpHeader getResponseHeader(String headerName)
                                 throws ProtocolException
Description copied from interface: RIDCHttpMethod
Get response header
Specified by:
getResponseHeader in interface RIDCHttpMethod
Returns:
Throws:
ProtocolException

getResponseHeaders

public List<RIDCHttpHeader> getResponseHeaders()
                                        throws ProtocolException
Description copied from interface: RIDCHttpMethod
Get all response headers
Specified by:
getResponseHeaders in interface RIDCHttpMethod
Returns:
list of headers
Throws:
ProtocolException

getStatusCode

public int getStatusCode()
                  throws ProtocolException
Description copied from interface: RIDCHttpMethod
Get the status code of the response
Specified by:
getStatusCode in interface RIDCHttpMethod
Returns:
Throws:
ProtocolException

getStatusLine

public String getStatusLine()
                     throws ProtocolException
Description copied from interface: RIDCHttpMethod
Get the status line of the response
Specified by:
getStatusLine in interface RIDCHttpMethod
Returns:
Throws:
ProtocolException

getURI

public URI getURI()
           throws URISyntaxException
Description copied from interface: RIDCHttpMethod
Get the uri of the request
Specified by:
getURI in interface RIDCHttpMethod
Returns:
Throws:
URISyntaxException

releaseConnection

public void releaseConnection()
Description copied from interface: RIDCHttpMethod
Release the connection
Specified by:
releaseConnection in interface RIDCHttpMethod

setCookiePolicy

public void setCookiePolicy(String policy)
Description copied from interface: RIDCHttpMethod
Set Cookie policy for this action
Specified by:
setCookiePolicy in interface RIDCHttpMethod

setFollowRedirects

public void setFollowRedirects(boolean followRedirects)
Description copied from interface: RIDCHttpMethod
Set the follow directs option for the connection
Specified by:
setFollowRedirects in interface RIDCHttpMethod

setParameter

public void setParameter(String param,
                         String value)
Description copied from interface: RIDCHttpMethod
Set request parameters
Specified by:
setParameter in interface RIDCHttpMethod
Parameters:
param - param name
value - param value

setQueryString

public void setQueryString(List<NameValuePair> paramList)
Description copied from interface: RIDCHttpMethod
Set the query string for the request
Specified by:
setQueryString in interface RIDCHttpMethod

getRidcClient

public HttpOracleClient getRidcClient()
Description copied from interface: RIDCHttpMethod
Get the connection instance that this method is associated with
Specified by:
getRidcClient in interface RIDCHttpMethod
Returns:

setServiceLog

public void setServiceLog(ServiceLog serviceLog)
Set the service log for the request
Specified by:
setServiceLog in interface RIDCHttpMethod
Parameters:
serviceLog -

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC)
11g Release 1 (11.1)

E17274-04


Copyright © 2008, 2013, Oracle and/or its affiliates. All rights reserved.