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.apache4.impl
Class HttpApache4Client

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

All Implemented Interfaces:
RIDCHttpClient

public class HttpApache4Client
extends Object
implements RIDCHttpClient

Implementation of the Apache 4.x Http client


Constructor Summary
HttpApache4Client()
          Create the client

 

Method Summary
 void addCookie(RIDCCookie cookie)
          Add cookie to the connection
 void clear()
          Clear the params and headers from the connection
 List<RIDCCookie> getCookies()
          Get the cookies from the connection
 org.apache.http.impl.client.DefaultHttpClient getDelegateObject()
          Returns the underlying client object
 HttpApache4GetMethod getGetMethod(String url)
          Get the method to execute for HTTP GET
 HttpApache4PostMethod getPostMethod(String url)
          Get the method to execute for HTTP POST
 void resetState()
          Reset the state of the connection
 void setAuthenticationPreemptive(boolean authPremptive)
          Set authentication preemptive
 void setCredentials(String scope, Credentials idcCredentials)
          Set credentials for the connection
 void setProxy(String proxyHost, int proxyPort, String proxyUsername, String proxyPassword, String proxyRealm)
          Set proxy for the connection
 void setSocketTimeout(int socketTimeout)
          Set the socket timeout

 

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

 

Constructor Detail

HttpApache4Client

public HttpApache4Client()
Create the client

Method Detail

addCookie

public void addCookie(RIDCCookie cookie)
Add cookie to the connection
Specified by:
addCookie in interface RIDCHttpClient
Parameters:
cookie -

clear

public void clear()
Clear the params and headers from the connection
Specified by:
clear in interface RIDCHttpClient

getCookies

public List<RIDCCookie> getCookies()
Get the cookies from the connection
Specified by:
getCookies in interface RIDCHttpClient
Returns:
list of cookies

resetState

public void resetState()
Reset the state of the connection
Specified by:
resetState in interface RIDCHttpClient

setAuthenticationPreemptive

public void setAuthenticationPreemptive(boolean authPremptive)
Set authentication preemptive
Specified by:
setAuthenticationPreemptive in interface RIDCHttpClient
Parameters:
authPremptive -

setCredentials

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

setProxy

public void setProxy(String proxyHost,
                     int proxyPort,
                     String proxyUsername,
                     String proxyPassword,
                     String proxyRealm)
Set proxy for the connection
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

setSocketTimeout

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

getGetMethod

public HttpApache4GetMethod getGetMethod(String url)
Get the method to execute for HTTP GET
Specified by:
getGetMethod in interface RIDCHttpClient
Parameters:
url - the url
Returns:
the appropriate method implementation

getPostMethod

public HttpApache4PostMethod getPostMethod(String url)
Get the method to execute for HTTP POST
Specified by:
getPostMethod in interface RIDCHttpClient
Parameters:
url - the url
Returns:
the appropriate method implementation

getDelegateObject

public org.apache.http.impl.client.DefaultHttpClient 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.