Class HttpURLConnectionMethod
java.lang.Object
oracle.stellent.ridc.protocol.http.httpurlconnection.impl.HttpURLConnectionMethod
- All Implemented Interfaces:
RIDCHttpMethod
- Direct Known Subclasses:
HttpURLConnectionGetMethod,HttpURLConnectionPostMethod
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpURLConnectionMethod(String uri, String method, HttpURLConnectionClient client) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRequestHeader(String name, String value) Add a request headerintexecute()Execute the requestGet the response as a streamgetResponseHeader(String headerName) Get response headerGet all response headersGet the connection instance that this method is associated withintGet the status code of the responseGet the status line of the responsegetURI()Get the uri of the requestvoidRelease the connectionvoidsetCookiePolicy(String policy) Set Cookie policy for this actionvoidsetParameter(String param, String value) Set request parametersvoidsetQueryString(List<NameValuePair> paramList) Set the query string for the requestvoidsetRequestConfig(IdcRequestConfig requestConfig) Set the request-specific config for the requestvoidsetRequestHeader(String headerName, String headerValue) Set the request header for the requestvoidsetServiceLog(ServiceLog serviceLog) Set the service log for the requestMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface oracle.stellent.ridc.common.http.RIDCHttpMethod
setFollowRedirects
-
Field Details
-
serviceLog
-
requestConfig
-
-
Constructor Details
-
HttpURLConnectionMethod
-
-
Method Details
-
addRequestHeader
Description copied from interface:RIDCHttpMethodAdd a request header- Specified by:
addRequestHeaderin interfaceRIDCHttpMethod- Parameters:
name- the header namevalue- the header value
-
getResponseBodyAsStream
Description copied from interface:RIDCHttpMethodGet the response as a stream- Specified by:
getResponseBodyAsStreamin interfaceRIDCHttpMethod- Returns:
- the response stream
- Throws:
IOExceptionProtocolException
-
getResponseHeader
Description copied from interface:RIDCHttpMethodGet response header- Specified by:
getResponseHeaderin interfaceRIDCHttpMethod- Returns:
- Throws:
ProtocolException
-
getResponseHeaders
Description copied from interface:RIDCHttpMethodGet all response headers- Specified by:
getResponseHeadersin interfaceRIDCHttpMethod- Returns:
- list of headers
- Throws:
ProtocolException
-
getStatusCode
Description copied from interface:RIDCHttpMethodGet the status code of the response- Specified by:
getStatusCodein interfaceRIDCHttpMethod- Returns:
- Throws:
ProtocolException
-
getStatusLine
Description copied from interface:RIDCHttpMethodGet the status line of the response- Specified by:
getStatusLinein interfaceRIDCHttpMethod- Returns:
- Throws:
ProtocolException
-
getURI
Description copied from interface:RIDCHttpMethodGet the uri of the request- Specified by:
getURIin interfaceRIDCHttpMethod- Returns:
- Throws:
URISyntaxException
-
releaseConnection
public void releaseConnection()Description copied from interface:RIDCHttpMethodRelease the connection- Specified by:
releaseConnectionin interfaceRIDCHttpMethod
-
setCookiePolicy
Description copied from interface:RIDCHttpMethodSet Cookie policy for this action- Specified by:
setCookiePolicyin interfaceRIDCHttpMethod
-
setParameter
Description copied from interface:RIDCHttpMethodSet request parameters- Specified by:
setParameterin interfaceRIDCHttpMethod- Parameters:
param- param namevalue- param value
-
setQueryString
Description copied from interface:RIDCHttpMethodSet the query string for the request- Specified by:
setQueryStringin interfaceRIDCHttpMethod
-
setRequestHeader
Description copied from interface:RIDCHttpMethodSet the request header for the request- Specified by:
setRequestHeaderin interfaceRIDCHttpMethod
-
getRidcClient
Description copied from interface:RIDCHttpMethodGet the connection instance that this method is associated with- Specified by:
getRidcClientin interfaceRIDCHttpMethod- Returns:
-
execute
Description copied from interface:RIDCHttpMethodExecute the request- Specified by:
executein interfaceRIDCHttpMethod- Returns:
- status code of the response
- Throws:
IOExceptionProtocolException
-
setServiceLog
Description copied from interface:RIDCHttpMethodSet the service log for the request- Specified by:
setServiceLogin interfaceRIDCHttpMethod
-
setRequestConfig
Description copied from interface:RIDCHttpMethodSet the request-specific config for the request- Specified by:
setRequestConfigin interfaceRIDCHttpMethod
-