Skip navigation links
oracle.stellent.ridc.protocol.http.httpurlconnection.impl
Class HttpURLConnectionPostMethod
java.lang.Object
oracle.stellent.ridc.protocol.http.httpurlconnection.impl.HttpURLConnectionMethod
oracle.stellent.ridc.protocol.http.httpurlconnection.impl.HttpURLConnectionPostMethod
- All Implemented Interfaces:
- RIDCHttpMethod, RIDCHttpPostMethod
-
public final class HttpURLConnectionPostMethod
- extends HttpURLConnectionMethod
- implements RIDCHttpPostMethod
| Methods inherited from class oracle.stellent.ridc.protocol.http.httpurlconnection.impl.HttpURLConnectionMethod |
addRequestHeader, execute, getResponseBodyAsStream, getResponseHeader, getResponseHeaders, getRidcClient, getStatusCode, getStatusLine, getURI, releaseConnection, setCookiePolicy, 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, setParameter, setQueryString, setRequestHeader, setServiceLog |
HttpURLConnectionPostMethod
protected HttpURLConnectionPostMethod(String uri,
HttpURLConnectionClient client)
setFollowRedirects
public void setFollowRedirects(boolean followRedirects)
- Description copied from interface:
RIDCHttpMethod
- Set the follow directs option for the connection
-
- Specified by:
setFollowRedirects in interface RIDCHttpMethod
setRequestEntity
public void setRequestEntity(String content,
String contentType,
String encoding)
throws UnsupportedEncodingException
- Description copied from interface:
RIDCHttpPostMethod
- 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:
UnsupportedEncodingException
setRequestEntity
public void setRequestEntity(List<RIDCHttpPart<?>> multipartParts,
String encoding)
throws UnsupportedEncodingException,
IOException
- Description copied from interface:
RIDCHttpPostMethod
- Set multipart request data for POST action
-
- Specified by:
setRequestEntity in interface RIDCHttpPostMethod
-
- Parameters:
multipartParts - the content "parts" to be posted
- Throws:
UnsupportedEncodingException
IOException
addParameter
public void addParameter(String name,
String value)
- Description copied from interface:
RIDCHttpPostMethod
- 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 UnsupportedEncodingException
- Description copied from interface:
RIDCHttpPostMethod
- Add credentials for a login form
-
- Specified by:
addLoginFormCredentials in interface RIDCHttpPostMethod
-
- Parameters:
loginForm - the login form
credentials - the login credentials
- Throws:
UnsupportedEncodingException
Skip navigation links
Copyright © 2008, 2013, Oracle and/or its affiliates. All rights reserved.