Class HttpURLConnectionClient
java.lang.Object
oracle.stellent.ridc.protocol.http.httpurlconnection.impl.HttpURLConnectionClient
- All Implemented Interfaces:
RIDCHttpClient
RIDC http protocol implemented using
HttpURLConnection-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCookie(RIDCCookie cookie) Add cookie to the connectionvoidclear()Clear the params and headers from the connectionGet the cookies from the connectionReturns the underlying client objectgetGetMethod(String url) Get the method to execute for HTTP GETgetPostMethod(String url) Get the method to execute for HTTP POSTvoidReset the state of the connectionvoidsetAuthenticationPreemptive(boolean b) Set authentication preemptivevoidsetCredentials(String scope, Credentials idcCredentials) Set credentials for the connectionvoidsetProxy(String proxyHost, int proxyPort, String proxyUsername, String proxyPassword, String proxyRealm) Set proxy for the connectionvoidsetSocketTimeout(int socketTimeout) Set the socket timeout
-
Constructor Details
-
HttpURLConnectionClient
- Throws:
IdcClientException
-
-
Method Details
-
addCookie
Description copied from interface:RIDCHttpClientAdd cookie to the connection- Specified by:
addCookiein interfaceRIDCHttpClient
-
clear
public void clear()Description copied from interface:RIDCHttpClientClear the params and headers from the connection- Specified by:
clearin interfaceRIDCHttpClient
-
getCookies
Description copied from interface:RIDCHttpClientGet the cookies from the connection- Specified by:
getCookiesin interfaceRIDCHttpClient- Returns:
- list of cookies
-
resetState
public void resetState()Description copied from interface:RIDCHttpClientReset the state of the connection- Specified by:
resetStatein interfaceRIDCHttpClient
-
setAuthenticationPreemptive
public void setAuthenticationPreemptive(boolean b) Description copied from interface:RIDCHttpClientSet authentication preemptive- Specified by:
setAuthenticationPreemptivein interfaceRIDCHttpClient
-
setCredentials
Description copied from interface:RIDCHttpClientSet credentials for the connection- Specified by:
setCredentialsin interfaceRIDCHttpClient
-
setProxy
public void setProxy(String proxyHost, int proxyPort, String proxyUsername, String proxyPassword, String proxyRealm) Description copied from interface:RIDCHttpClientSet proxy for the connection- Specified by:
setProxyin interfaceRIDCHttpClient- Parameters:
proxyHost- proxy host nameproxyPort- proxy host portproxyUsername- proxy user name, null if not requiredproxyPassword- proxy user password, null if not requiredproxyRealm- proxy realm, null if not required
-
setSocketTimeout
public void setSocketTimeout(int socketTimeout) Description copied from interface:RIDCHttpClientSet the socket timeout- Specified by:
setSocketTimeoutin interfaceRIDCHttpClient- Parameters:
socketTimeout- timeout value on milli seconds
-
getGetMethod
Description copied from interface:RIDCHttpClientGet the method to execute for HTTP GET- Specified by:
getGetMethodin interfaceRIDCHttpClient- Parameters:
url- the url- Returns:
- the appropriate method implementation
-
getPostMethod
Description copied from interface:RIDCHttpClientGet the method to execute for HTTP POST- Specified by:
getPostMethodin interfaceRIDCHttpClient- Parameters:
url- the url- Returns:
- the appropriate method implementation
-
getDelegateObject
Description copied from interface:RIDCHttpClientReturns the underlying client object- Specified by:
getDelegateObjectin interfaceRIDCHttpClient- Returns:
- underlying client object
-