Skip navigation links

Oracle® WebCenter Content Remote Intradoc Client (RIDC) Java API Reference
11g Release 1 (11.1)

E17274-03


oracle.stellent.ridc.common.http
Interface RIDCHttpPostMethod

All Superinterfaces:
RIDCHttpMethod
All Known Implementing Classes:
HttpApache3PostMethod, HttpApache4PostMethod

public interface RIDCHttpPostMethod
extends RIDCHttpMethod

Generic interface for HTTP POST Method


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 interface oracle.stellent.ridc.common.http.RIDCHttpMethod
addRequestHeader, execute, getResponseBodyAsStream, getResponseHeader, getResponseHeaders, getRidcClient, getStatusCode, getStatusLine, getURI, releaseConnection, setCookiePolicy, setFollowRedirects, setParameter, setQueryString, setRequestHeader

 

Method Detail

setRequestEntity

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

setRequestEntity

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

addParameter

void addParameter(java.lang.String name,
                  java.lang.String value)
Add a parameter to the request
Parameters:
name - parameter name
value - parameter value

addLoginFormCredentials

void addLoginFormCredentials(IdcContext.LoginForm loginForm,
                             Credentials.BasicCredentials credentials)
                             throws java.io.UnsupportedEncodingException
Add credentials for a login form
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.