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 HttpApache3PostMethod

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

All Implemented Interfaces:
RIDCHttpMethod, RIDCHttpPostMethod

public class HttpApache3PostMethod
extends HttpApache3Method<PostMethod>
implements RIDCHttpPostMethod

Http Post method implementation for Apache 3.x


Field Summary

 

Fields inherited from class oracle.stellent.ridc.protocol.http.apache3.impl.HttpApache3Method
apacheMethod, ridcClient, serviceLog

 

Constructor Summary
HttpApache3PostMethod(String url, HttpApache3Client httpApache3Client)
          Constructor

 

Method Summary
 void addLoginFormCredentials(IdcContext.LoginForm loginForm, Credentials.BasicCredentials credentials)
          Add credentials for a form-based login
 void addParameter(String paramName, String paramValue)
          Add a parameter to the request
protected  void logRequest(String logID, PostMethod method)
           
 void setParameter(String parameterName, Object parameterValue)
          Set the parameter to the request
 void setRequestEntity(List<RIDCHttpPart<?>> multipartParts, String encoding)
          Set entities for multipart post
 void setRequestEntity(String content, String contentType, String encoding)
          Set a string entity to the request

 

Methods inherited from class oracle.stellent.ridc.protocol.http.apache3.impl.HttpApache3Method
addRequestHeader, execute, getDelegateObject, getResponseBodyAsStream, getResponseHeader, getResponseHeaders, getRidcClient, getStatusCode, getStatusLine, getURI, logResponse, releaseConnection, setCookiePolicy, setFollowRedirects, setParameter, setQueryString, setRequestHeader, setServiceLog

 

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
addRequestHeader, execute, getResponseBodyAsStream, getResponseHeader, getResponseHeaders, getRidcClient, getStatusCode, getStatusLine, getURI, releaseConnection, setCookiePolicy, setFollowRedirects, setParameter, setQueryString, setRequestHeader, setServiceLog

 

Constructor Detail

HttpApache3PostMethod

public HttpApache3PostMethod(String url,
                             HttpApache3Client httpApache3Client)
Constructor
Parameters:
url - the url
httpApache3Client - the associated client

Method Detail

addParameter

public void addParameter(String paramName,
                         String paramValue)
Add a parameter to the request
Specified by:
addParameter in interface RIDCHttpPostMethod
Parameters:
paramName - the parameter name
paramValue - the parameter value

setParameter

public void setParameter(String parameterName,
                         Object parameterValue)
Set the parameter to the request
Parameters:
parameterName - the parameter name
parameterValue - the parameter value

setRequestEntity

public void setRequestEntity(String content,
                             String contentType,
                             String encoding)
                      throws UnsupportedEncodingException
Set a string entity to the request
Specified by:
setRequestEntity in interface RIDCHttpPostMethod
Parameters:
content - the content to be posted
contentType - the content type
encoding - the content encoding
Throws:
UnsupportedEncodingException

setRequestEntity

public void setRequestEntity(List<RIDCHttpPart<?>> multipartParts,
                             String encoding)
Set entities for multipart post
Specified by:
setRequestEntity in interface RIDCHttpPostMethod
Parameters:
multipartParts - the content "parts" to be posted
encoding -

addLoginFormCredentials

public void addLoginFormCredentials(IdcContext.LoginForm loginForm,
                                    Credentials.BasicCredentials credentials)
Add credentials for a form-based login
Specified by:
addLoginFormCredentials in interface RIDCHttpPostMethod
Parameters:
loginForm - the login form
credentials - the login credentials

logRequest

protected void logRequest(String logID,
                          PostMethod method)
Overrides:
logRequest in class HttpApache3Method<PostMethod>

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.