|
Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC) 11g Release 1 (11.1) E17274-04 |
|||||||||
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 |
protected ServiceLog |
serviceLog |
Constructor Summary | |
---|---|
HttpApache4Method() |
Method Summary | |
---|---|
void |
addRequestHeader(String name, String value) Add a request header |
int |
execute() Execute the request |
InputStream |
getResponseBodyAsStream() Get the response as a stream |
RIDCHttpHeader |
getResponseHeader(String headerName) Get response header |
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 |
String |
getStatusLine() Get the status line of the response |
URI |
getURI() Get the uri of the request |
protected void |
logRequest(String logID, M method) |
protected void |
logResponse(String logID, M method, org.apache.http.HttpResponse httpResponse) |
void |
releaseConnection() Release the connection |
void |
setCookiePolicy(String cookiePolicy) Set Cookie policy for this action |
void |
setFollowRedirects(boolean followRedirects) Set the follow directs option for the connection |
void |
setParameter(String param, String value) Set request parameters |
void |
setQueryString(List<NameValuePair> nvpairList) Set the query string for the request |
void |
setRequestHeader(String headerName, String headerValue) Set the request header for the request |
void |
setServiceLog(ServiceLog serviceLog) Set the service log 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
protected ServiceLog serviceLog
Constructor Detail |
---|
public HttpApache4Method()
Method Detail |
---|
public void addRequestHeader(String name, String value)
addRequestHeader
in interface RIDCHttpMethod
name
- the header namevalue
- the header valuepublic InputStream getResponseBodyAsStream() throws IOException
getResponseBodyAsStream
in interface RIDCHttpMethod
IOException
public RIDCHttpHeader getResponseHeader(String headerName)
getResponseHeader
in interface RIDCHttpMethod
headerName
- the header namepublic List<RIDCHttpHeader> getResponseHeaders()
getResponseHeaders
in interface RIDCHttpMethod
public int getStatusCode()
getStatusCode
in interface RIDCHttpMethod
public String getStatusLine()
getStatusLine
in interface RIDCHttpMethod
public URI getURI() throws URISyntaxException
getURI
in interface RIDCHttpMethod
URISyntaxException
public void releaseConnection()
releaseConnection
in interface RIDCHttpMethod
public void setCookiePolicy(String cookiePolicy)
setCookiePolicy
in interface RIDCHttpMethod
cookiePolicy
-public void setFollowRedirects(boolean followRedirects)
setFollowRedirects
in interface RIDCHttpMethod
followRedirects
-public void setRequestHeader(String headerName, String headerValue)
setRequestHeader
in interface RIDCHttpMethod
headerName
-headerValue
-public void setParameter(String param, String value)
setParameter
in interface RIDCHttpMethod
param
- param namevalue
- param valuepublic void setQueryString(List<NameValuePair> nvpairList)
setQueryString
in interface RIDCHttpMethod
paramList
-public RIDCHttpClient getRidcClient()
getRidcClient
in interface RIDCHttpMethod
public int execute() throws IOException
execute
in interface RIDCHttpMethod
IOException
public void setServiceLog(ServiceLog serviceLog)
setServiceLog
in interface RIDCHttpMethod
serviceLog
-IOException
protected void logRequest(String logID, M method)
protected void logResponse(String logID, M method, org.apache.http.HttpResponse httpResponse)
|
Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC) 11g Release 1 (11.1) E17274-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |