Skip navigation links

Oracle® Fusion Middleware Remote Intradoc Client (RIDC) Java API Reference
11g Release 1 (11.1.1)

E17274-02


oracle.stellent.ridc.protocol.http
Class HttpClientUtils

java.lang.Object
  extended by oracle.stellent.ridc.protocol.http.HttpClientUtils


public abstract class HttpClientUtils
extends java.lang.Object

Utility methods for working with the HttpClient APIs


Constructor Summary
HttpClientUtils()
           

 

Method Summary
static void addRequestData(IdcContext context, org.apache.commons.httpclient.HttpClient httpClient, org.apache.commons.httpclient.HttpMethod httpMethod, boolean addCookies)
          Set standard request headers, cookies and other info into the HTTP method.
static org.apache.commons.httpclient.HttpClient createHttpClient(boolean multithreaded)
           
static org.apache.commons.httpclient.Credentials getCredentials(Credentials idcCredentials)
          Create the appropriate credentials from the given identity
static org.apache.commons.httpclient.Credentials getCrendentials(Credentials idcCredentials)
          Deprecated. Method name misspelled, replaced by getCredentials(oracle.stellent.ridc.auth.Credentials)
static java.util.Map<java.lang.String,java.lang.String> getResponseHeaders(org.apache.commons.httpclient.Header[] headers)
          Convert the header array into a map of string name to value
static boolean isRedirectStatus(int status)
          Determine if the given http status is a redirect

 

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

 

Constructor Detail

HttpClientUtils

public HttpClientUtils()

Method Detail

createHttpClient

public static org.apache.commons.httpclient.HttpClient createHttpClient(boolean multithreaded)
Parameters:
multithreaded - if true, assign the multithreaded manager
Returns:
a new instance of an HttpClient, setup for multithreaded use

getCredentials

public static org.apache.commons.httpclient.Credentials getCredentials(Credentials idcCredentials)
Create the appropriate credentials from the given identity
Parameters:
idcCredentials - the IDC credentials
Returns:
the HttpClient credentials

getCrendentials

public static org.apache.commons.httpclient.Credentials getCrendentials(Credentials idcCredentials)
Deprecated. Method name misspelled, replaced by getCredentials(oracle.stellent.ridc.auth.Credentials)
Create the appropriate credentials from the given identity
Parameters:
idcCredentials - the IDC credentials
Returns:
the HttpClient credentials

isRedirectStatus

public static boolean isRedirectStatus(int status)
Determine if the given http status is a redirect
Parameters:
status - the status
Returns:
true if this is a redirect status

addRequestData

public static void addRequestData(IdcContext context,
                                  org.apache.commons.httpclient.HttpClient httpClient,
                                  org.apache.commons.httpclient.HttpMethod httpMethod,
                                  boolean addCookies)
Set standard request headers, cookies and other info into the HTTP method.
Parameters:
context - the idc context
httpClient - the http client
httpMethod - the http method to set the parameters
addCookies -

getResponseHeaders

public static java.util.Map<java.lang.String,java.lang.String> getResponseHeaders(org.apache.commons.httpclient.Header[] headers)
Convert the header array into a map of string name to value
Parameters:
headers - the http method headers
Returns:
a map of strings mapping the header name to the header value

Skip navigation links

Oracle® Fusion Middleware Remote Intradoc Client (RIDC) Java API Reference
11g Release 1 (11.1.1)

E17274-02


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