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.apache3.impl
Class HttpApache3Client

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

All Implemented Interfaces:
RIDCHttpClient

public class HttpApache3Client
extends Object
implements RIDCHttpClient

Implementation of the Client for Apache version 3


Constructor Summary
HttpApache3Client(boolean multithreaded)
          Create a Apache3 Client

 

Method Summary
 void addCookie(RIDCCookie cookie)
          Add a cookie to this client
 void clear()
          Clear the parameters from the client instance
 List<RIDCCookie> getCookies()
          Get the Cookies
 HttpClient getDelegateObject()
          Returns the underlying client object
 HttpApache3GetMethod getGetMethod(String url)
          Get a method which can do "GET" request
 HttpApache3PostMethod getPostMethod(String url)
          Get the method of POST requests
 void resetState()
          Reset the Http State of the client
 void setAuthenticationPreemptive(boolean preemptive)
          Set if the basic auth should be preemptive
 void setCredentials(String any, Credentials idcCredentials)
          Set the credentials
 void setProxy(String proxyHost, int proxyPort, String proxyUsername, String proxyPassword, String proxyRealm)
          Set the proxy
 void setSocketTimeout(int socketTimeout)
          Set the socket timeout for this client

 

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

 

Constructor Detail

HttpApache3Client

public HttpApache3Client(boolean multithreaded)
Create a Apache3 Client
Parameters:
multithreaded -

Method Detail

clear

public void clear()
Clear the parameters from the client instance
Specified by:
clear in interface RIDCHttpClient

setSocketTimeout

public void setSocketTimeout(int socketTimeout)
Set the socket timeout for this client
Specified by:
setSocketTimeout in interface RIDCHttpClient
Parameters:
socketTimeout - timeout value on milli seconds

setProxy

public void setProxy(String proxyHost,
                     int proxyPort,
                     String proxyUsername,
                     String proxyPassword,
                     String proxyRealm)
Set the proxy
Specified by:
setProxy in interface RIDCHttpClient
Parameters:
proxyHost - proxy host name
proxyPort - proxy host port
proxyUsername - proxy user name, null if not required
proxyPassword - proxy user password, null if not required
proxyRealm - proxy realm, null if not required

setCredentials

public void setCredentials(String any,
                           Credentials idcCredentials)
Set the credentials
Specified by:
setCredentials in interface RIDCHttpClient
Parameters:
any -
idcCredentials -

setAuthenticationPreemptive

public void setAuthenticationPreemptive(boolean preemptive)
Set if the basic auth should be preemptive
Specified by:
setAuthenticationPreemptive in interface RIDCHttpClient
Parameters:
preemptive -

getCookies

public List<RIDCCookie> getCookies()
Get the Cookies
Specified by:
getCookies in interface RIDCHttpClient
Returns:
the cookies

addCookie

public void addCookie(RIDCCookie cookie)
Add a cookie to this client
Specified by:
addCookie in interface RIDCHttpClient
Parameters:
cookie -

resetState

public void resetState()
Reset the Http State of the client
Specified by:
resetState in interface RIDCHttpClient

getGetMethod

public HttpApache3GetMethod getGetMethod(String url)
Get a method which can do "GET" request
Specified by:
getGetMethod in interface RIDCHttpClient
Parameters:
url - the url
Returns:

getPostMethod

public HttpApache3PostMethod getPostMethod(String url)
Get the method of POST requests
Specified by:
getPostMethod in interface RIDCHttpClient
Parameters:
url - the url
Returns:

getDelegateObject

public HttpClient getDelegateObject()
Returns the underlying client object
Specified by:
getDelegateObject in interface RIDCHttpClient
Returns:
underlying client object

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.