Skip navigation links
oracle.stellent.ridc.protocol.http.apache4.impl
Class HttpApache4PostMethod
java.lang.Object
oracle.stellent.ridc.protocol.http.apache4.impl.HttpApache4Method<org.apache.http.client.methods.HttpPost>
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
| 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 |
HttpApache4PostMethod
public HttpApache4PostMethod(java.lang.String url,
HttpApache4Client httpApache4Client)
- Constructor
- Parameters:
url -
httpApache4Client -
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
Copyright © 2008, 2011, Oracle and/or its affiliates. All rights reserved.