public class HttpApache3PostMethod extends HttpApache3Method<org.apache.commons.httpclient.methods.PostMethod> implements RIDCHttpPostMethod
apacheMethod, requestConfig, ridcClient, serviceLog| Constructor and Description |
|---|
HttpApache3PostMethod(String url, HttpApache3Client httpApache3Client)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
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, org.apache.commons.httpclient.methods.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
|
addRequestHeader, execute, getDelegateObject, getResponseBodyAsStream, getResponseHeader, getResponseHeaders, getRidcClient, getStatusCode, getStatusLine, getURI, logResponse, releaseConnection, setCookiePolicy, setFollowRedirects, setParameter, setQueryString, setRequestConfig, setRequestHeader, setServiceLogclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddRequestHeader, execute, getResponseBodyAsStream, getResponseHeader, getResponseHeaders, getRidcClient, getStatusCode, getStatusLine, getURI, releaseConnection, setCookiePolicy, setFollowRedirects, setParameter, setQueryString, setRequestConfig, setRequestHeader, setServiceLogpublic HttpApache3PostMethod(String url, HttpApache3Client httpApache3Client)
url - the urlhttpApache3Client - the associated clientpublic void addParameter(String paramName, String paramValue)
addParameter in interface RIDCHttpPostMethodparamName - the parameter nameparamValue - the parameter valuepublic void setParameter(String parameterName, Object parameterValue)
parameterName - the parameter nameparameterValue - the parameter valuepublic void setRequestEntity(String content, String contentType, String encoding) throws UnsupportedEncodingException
setRequestEntity in interface RIDCHttpPostMethodcontent - the content to be postedcontentType - the content typeencoding - the content encodingUnsupportedEncodingExceptionpublic void setRequestEntity(List<RIDCHttpPart<?>> multipartParts, String encoding)
setRequestEntity in interface RIDCHttpPostMethodmultipartParts - the content "parts" to be postedencoding -public void addLoginFormCredentials(IdcContext.LoginForm loginForm, Credentials.BasicCredentials credentials)
addLoginFormCredentials in interface RIDCHttpPostMethodloginForm - the login formcredentials - the login credentialsprotected void logRequest(String logID, org.apache.commons.httpclient.methods.PostMethod method)
logRequest in class HttpApache3Method<org.apache.commons.httpclient.methods.PostMethod>