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

java.lang.Object
  extended by oracle.stellent.ridc.protocol.http.apache4.impl.HttpApache4Method<org.apache.http.client.methods.HttpPost>
      extended by oracle.stellent.ridc.protocol.http.apache4.impl.HttpApache4PostMethod

All Implemented Interfaces:
RIDCHttpMethod, RIDCHttpPostMethod

public class HttpApache4PostMethod
extends HttpApache4Method<org.apache.http.client.methods.HttpPost>
implements RIDCHttpPostMethod

Http Post method implementation in Apache 4.x


Field Summary

 

Fields inherited from class oracle.stellent.ridc.protocol.http.apache4.impl.HttpApache4Method
httpClient, method

 

Constructor Summary
HttpApache4PostMethod(java.lang.String url, HttpApache4Client httpApache4Client)
          Constructor

 

Method Summary
 void addLoginFormCredentials(IdcContext.LoginForm loginForm, Credentials.BasicCredentials credentials)
          Add credentials for a login form
 void addParameter(java.lang.String name, java.lang.String value)
          Add a parameter to the request
 void setRequestEntity(java.util.List<RIDCHttpPart<?>> multipartParts, java.lang.String encoding)
          Set multipart request data for POST action
 void setRequestEntity(java.lang.String content, java.lang.String contentType, java.lang.String encoding)
          Set request data for POST action

 

Methods inherited from class oracle.stellent.ridc.protocol.http.apache4.impl.HttpApache4Method
addRequestHeader, execute, getResponseBodyAsStream, getResponseHeader, getResponseHeaders, getRidcClient, getStatusCode, getStatusLine, getURI, releaseConnection, setCookiePolicy, setFollowRedirects, setParameter, setQueryString, setRequestHeader

 

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

 

Constructor Detail

HttpApache4PostMethod

public HttpApache4PostMethod(java.lang.String url,
                             HttpApache4Client httpApache4Client)
Constructor
Parameters:
url -
httpApache4Client -

Method Detail

setRequestEntity

public void setRequestEntity(java.lang.String content,
                             java.lang.String contentType,
                             java.lang.String encoding)
                      throws java.io.UnsupportedEncodingException
Set request data for POST action
Specified by:
setRequestEntity in interface RIDCHttpPostMethod
Parameters:
content - the content to be posted
contentType - the content type
encoding - the content encoding
Throws:
java.io.UnsupportedEncodingException

setRequestEntity

public void setRequestEntity(java.util.List<RIDCHttpPart<?>> multipartParts,
                             java.lang.String encoding)
                      throws java.io.IOException
Set multipart request data for POST action
Specified by:
setRequestEntity in interface RIDCHttpPostMethod
Parameters:
multipartParts - the content "parts" to be posted
encoding -
Throws:
java.io.UnsupportedEncodingException
java.io.IOException

addParameter

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

addLoginFormCredentials

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

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.