|
Oracle® WebCenter Content Remote Intradoc Client (RIDC) Java API Reference 11g Release 1 (11.1) E17274-03 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.stellent.ridc.protocol.http.apache4.impl.HttpApache4Method<M>
M -public abstract class HttpApache4Method<M extends org.apache.http.client.methods.HttpRequestBase>
Abstract implementation of the GET and POST method in Apache 4.x
| Field Summary | |
|---|---|
protected HttpApache4Client |
httpClient |
protected M |
method |
| Constructor Summary | |
|---|---|
HttpApache4Method() |
|
| Method Summary | |
|---|---|
void |
addRequestHeader(java.lang.String name, java.lang.String value)Add a request header |
int |
execute()Execute the request |
java.io.InputStream |
getResponseBodyAsStream()Get the response as a stream |
RIDCHttpHeader |
getResponseHeader(java.lang.String headerName)Get response header |
java.util.List<RIDCHttpHeader> |
getResponseHeaders()Get all response headers |
RIDCHttpClient |
getRidcClient()Get the connection instance that this method is associated with |
int |
getStatusCode()Get the status code of the response |
java.lang.String |
getStatusLine()Get the status line of the response |
java.net.URI |
getURI()Get the uri of the request |
void |
releaseConnection()Release the connection |
void |
setCookiePolicy(java.lang.String cookiePolicy)Set Cookie policy for this action |
void |
setFollowRedirects(boolean followRedirects)Set the follow directs option for the connection |
void |
setParameter(java.lang.String param, java.lang.String value)Set request parameters |
void |
setQueryString(java.util.List<NameValuePair> nvpairList)Set the query string for the request |
void |
setRequestHeader(java.lang.String headerName, java.lang.String headerValue)Set the request header for the request |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected M extends org.apache.http.client.methods.HttpRequestBase method
protected HttpApache4Client httpClient
| Constructor Detail |
|---|
public HttpApache4Method()
| Method Detail |
|---|
public void addRequestHeader(java.lang.String name,
java.lang.String value)
addRequestHeader in interface RIDCHttpMethodname - the header namevalue - the header value
public java.io.InputStream getResponseBodyAsStream()
throws java.io.IOException
getResponseBodyAsStream in interface RIDCHttpMethodjava.io.IOExceptionpublic RIDCHttpHeader getResponseHeader(java.lang.String headerName)
getResponseHeader in interface RIDCHttpMethodheaderName - the header namepublic java.util.List<RIDCHttpHeader> getResponseHeaders()
getResponseHeaders in interface RIDCHttpMethodpublic int getStatusCode()
getStatusCode in interface RIDCHttpMethodpublic java.lang.String getStatusLine()
getStatusLine in interface RIDCHttpMethod
public java.net.URI getURI()
throws java.net.URISyntaxException,
org.apache.commons.httpclient.URIException
getURI in interface RIDCHttpMethodjava.net.URISyntaxExceptionorg.apache.commons.httpclient.URIExceptionpublic void releaseConnection()
releaseConnection in interface RIDCHttpMethodpublic void setCookiePolicy(java.lang.String cookiePolicy)
setCookiePolicy in interface RIDCHttpMethodcookiePolicy -public void setFollowRedirects(boolean followRedirects)
setFollowRedirects in interface RIDCHttpMethodfollowRedirects -
public void setRequestHeader(java.lang.String headerName,
java.lang.String headerValue)
setRequestHeader in interface RIDCHttpMethodheaderName -headerValue -
public void setParameter(java.lang.String param,
java.lang.String value)
setParameter in interface RIDCHttpMethodparam - param namevalue - param valuepublic void setQueryString(java.util.List<NameValuePair> nvpairList)
setQueryString in interface RIDCHttpMethodparamList -public RIDCHttpClient getRidcClient()
getRidcClient in interface RIDCHttpMethod
public int execute()
throws java.io.IOException
execute in interface RIDCHttpMethodjava.io.IOException
|
Oracle® WebCenter Content Remote Intradoc Client (RIDC) Java API Reference 11g Release 1 (11.1) E17274-03 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||