|
Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC) 11g Release 1 (11.1) E17274-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HttpURLConnectionFactory
This interface provides a way for client to construct their own HttpURLConnection, allowing the use of alternate libraries based on HttpURLConnection (for example OkHttp).
Implement this interface and provide the name of the implementing class on IdcHttpClientConfig through IdcClientConfig.setProperty(String, String), using PROP_HTTP_URL_CONNECTION_FACTORY as the key.
| Field Summary | |
|---|---|
static String |
PROP_HTTP_URL_CONNECTION_FACTORY |
| Method Summary | |
|---|---|
HttpURLConnection |
openConnection(URL url)Opens a HTTP connection to the specified URL. |
void |
setProxy(Proxy proxy)Sets the HTTP proxy that will be used by connections created by this factory. |
| Field Detail |
|---|
static final String PROP_HTTP_URL_CONNECTION_FACTORY
| Method Detail |
|---|
void setProxy(Proxy proxy)
proxy - the Proxy through which connections will be made. If direct connection is desired, Proxy.NO_PROXY should be specified.
HttpURLConnection openConnection(URL url)
throws IOException
url - the URL to connect toHttpURLConnection to the URL.IOExceptionURL.openConnection()
|
Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC) 11g Release 1 (11.1) E17274-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||