|
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.apache3.impl.HttpApache3Method<M>
M
-public abstract class HttpApache3Method<M extends HttpMethodBase>
Method implementation for Apache 3.x
Field Summary | |
---|---|
protected M |
apacheMethod |
protected HttpApache3Client |
ridcClient |
protected ServiceLog |
serviceLog |
Constructor Summary | |
---|---|
HttpApache3Method() |
Method Summary | |
---|---|
void |
addRequestHeader(String name, String value) Add a request header |
int |
execute() Execute this method |
M |
getDelegateObject() Get the delegated object |
InputStream |
getResponseBodyAsStream() Get the response body as a stream |
RIDCHttpHeader |
getResponseHeader(String headerName) Get the response header |
List<RIDCHttpHeader> |
getResponseHeaders() Get the response headers |
RIDCHttpClient |
getRidcClient() Get the associated client with this method |
int |
getStatusCode() Get the status code |
String |
getStatusLine() Get the status line of the response |
URI |
getURI() Get the URI of this method |
protected void |
logRequest(String logID, M method) |
protected void |
logResponse(String logID, M method) |
void |
releaseConnection() Release the connection |
void |
setCookiePolicy(String cookiePolicy) Set the cookie policy |
void |
setFollowRedirects(boolean followRedirects) set if the client should follow redirects |
void |
setParameter(String param, String value) Set the request parameter |
void |
setQueryString(List<NameValuePair> params) Set the query string for the URL of this method |
void |
setRequestHeader(String headerName, String headerValue) Set the request header |
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 HttpMethodBase apacheMethod
protected HttpApache3Client ridcClient
protected ServiceLog serviceLog
Constructor Detail |
---|
public HttpApache3Method()
Method Detail |
---|
public void releaseConnection()
releaseConnection
in interface RIDCHttpMethod
public M getDelegateObject()
public int getStatusCode()
getStatusCode
in interface RIDCHttpMethod
public URI getURI() throws URISyntaxException
getURI
in interface RIDCHttpMethod
URISyntaxException
URIException
public InputStream getResponseBodyAsStream() throws IOException
getResponseBodyAsStream
in interface RIDCHttpMethod
IOException
public void setRequestHeader(String headerName, String headerValue)
setRequestHeader
in interface RIDCHttpMethod
headerName
- header nameheaderValue
- header valuepublic RIDCHttpHeader getResponseHeader(String headerName)
getResponseHeader
in interface RIDCHttpMethod
headerName
- header namepublic void setQueryString(List<NameValuePair> params)
setQueryString
in interface RIDCHttpMethod
params
-public List<RIDCHttpHeader> getResponseHeaders()
getResponseHeaders
in interface RIDCHttpMethod
public String getStatusLine()
getStatusLine
in interface RIDCHttpMethod
public void setFollowRedirects(boolean followRedirects)
setFollowRedirects
in interface RIDCHttpMethod
followRedirects
-public void addRequestHeader(String name, String value)
addRequestHeader
in interface RIDCHttpMethod
name
- the header namevalue
- the header valuepublic void setCookiePolicy(String cookiePolicy)
setCookiePolicy
in interface RIDCHttpMethod
cookiePolicy
- policy namepublic void setParameter(String param, String value)
setParameter
in interface RIDCHttpMethod
param
- param namevalue
- param valuepublic 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)
|
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 |