Skip navigation links

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

E17274-03


oracle.stellent.ridc.protocol.http.apache3.impl
Class HttpApache3Method<M extends org.apache.commons.httpclient.HttpMethodBase>

java.lang.Object
  extended by oracle.stellent.ridc.protocol.http.apache3.impl.HttpApache3Method<M>

Type Parameters:
M -
All Implemented Interfaces:
RIDCHttpMethod
Direct Known Subclasses:
HttpApache3GetMethod, HttpApache3PostMethod

public abstract class HttpApache3Method<M extends org.apache.commons.httpclient.HttpMethodBase>
extends java.lang.Object
implements RIDCHttpMethod

Method implementation for Apache 3.x


Field Summary
protected  M apacheMethod
           
protected  HttpApache3Client ridcClient
           

 

Constructor Summary
HttpApache3Method()
           

 

Method Summary
 void addRequestHeader(java.lang.String name, java.lang.String value)
          Add a request header
 int execute()
          Execute this method
 M getDelegateObject()
          Get the delegated object
 java.io.InputStream getResponseBodyAsStream()
          Get the response body as a stream
 RIDCHttpHeader getResponseHeader(java.lang.String headerName)
          Get the response header
 java.util.List<RIDCHttpHeader> getResponseHeaders()
          Get the response headers
 RIDCHttpClient getRidcClient()
          Get the associated client with this method
 int getStatusCode()
          Get the status code
 java.lang.String getStatusLine()
          Get the status line of the response
 java.net.URI getURI()
          Get the URI of this method
 void releaseConnection()
          Release the connection
 void setCookiePolicy(java.lang.String cookiePolicy)
          Set the cookie policy
 void setFollowRedirects(boolean followRedirects)
          set if the client should follow redirects
 void setParameter(java.lang.String param, java.lang.String value)
          Set the request parameter
 void setQueryString(java.util.List<NameValuePair> params)
          Set the query string for the URL of this method
 void setRequestHeader(java.lang.String headerName, java.lang.String headerValue)
          Set the request header

 

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

 

Field Detail

apacheMethod

protected M extends org.apache.commons.httpclient.HttpMethodBase apacheMethod

ridcClient

protected HttpApache3Client ridcClient

Constructor Detail

HttpApache3Method

public HttpApache3Method()

Method Detail

releaseConnection

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

getDelegateObject

public M getDelegateObject()
Get the delegated object
Returns:
the delegated object

getStatusCode

public int getStatusCode()
Get the status code
Specified by:
getStatusCode in interface RIDCHttpMethod
Returns:
the status code

getURI

public java.net.URI getURI()
                    throws java.net.URISyntaxException,
                           org.apache.commons.httpclient.URIException
Get the URI of this method
Specified by:
getURI in interface RIDCHttpMethod
Returns:
Throws:
java.net.URISyntaxException
org.apache.commons.httpclient.URIException

getResponseBodyAsStream

public java.io.InputStream getResponseBodyAsStream()
                                            throws java.io.IOException
Get the response body as a stream
Specified by:
getResponseBodyAsStream in interface RIDCHttpMethod
Returns:
the response stream
Throws:
java.io.IOException

setRequestHeader

public void setRequestHeader(java.lang.String headerName,
                             java.lang.String headerValue)
Set the request header
Specified by:
setRequestHeader in interface RIDCHttpMethod
Parameters:
headerName - header name
headerValue - header value

getResponseHeader

public RIDCHttpHeader getResponseHeader(java.lang.String headerName)
Get the response header
Specified by:
getResponseHeader in interface RIDCHttpMethod
Parameters:
headerName - header name
Returns:

setQueryString

public void setQueryString(java.util.List<NameValuePair> params)
Set the query string for the URL of this method
Specified by:
setQueryString in interface RIDCHttpMethod
Parameters:
params -

getResponseHeaders

public java.util.List<RIDCHttpHeader> getResponseHeaders()
Get the response headers
Specified by:
getResponseHeaders in interface RIDCHttpMethod
Returns:

getStatusLine

public java.lang.String getStatusLine()
Get the status line of the response
Specified by:
getStatusLine in interface RIDCHttpMethod
Returns:

setFollowRedirects

public void setFollowRedirects(boolean followRedirects)
set if the client should follow redirects
Specified by:
setFollowRedirects in interface RIDCHttpMethod
Parameters:
followRedirects -

addRequestHeader

public void addRequestHeader(java.lang.String name,
                             java.lang.String value)
Add a request header
Specified by:
addRequestHeader in interface RIDCHttpMethod
Parameters:
name - the header name
value - the header value

setCookiePolicy

public void setCookiePolicy(java.lang.String cookiePolicy)
Set the cookie policy
Specified by:
setCookiePolicy in interface RIDCHttpMethod
Parameters:
cookiePolicy - policy name

setParameter

public void setParameter(java.lang.String param,
                         java.lang.String value)
Set the request parameter
Specified by:
setParameter in interface RIDCHttpMethod
Parameters:
param - param name
value - param value

getRidcClient

public RIDCHttpClient getRidcClient()
Get the associated client with this method
Specified by:
getRidcClient in interface RIDCHttpMethod
Returns:

execute

public int execute()
            throws java.io.IOException
Execute this method
Specified by:
execute in interface RIDCHttpMethod
Returns:
the status code
Throws:
java.io.IOException

Skip navigation links

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

E17274-03


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