Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC)
11g Release 1 (11.1)

E17274-05


oracle.stellent.ridc.protocol.http.httpurlconnection.impl
Interface HttpURLConnectionFactory


public interface HttpURLConnectionFactory

Class overview

This interface provides a way for client to construct their own HttpURLConnection, allowing the use of alternate libraries based on HttpURLConnection (for example OkHttp).

Usage

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

PROP_HTTP_URL_CONNECTION_FACTORY

static final String PROP_HTTP_URL_CONNECTION_FACTORY
See Also:
Constant Field Values

Method Detail

setProxy

void setProxy(Proxy proxy)
Sets the HTTP proxy that will be used by connections created by this factory.
Parameters:
proxy - the Proxy through which connections will be made. If direct connection is desired, Proxy.NO_PROXY should be specified.

openConnection

HttpURLConnection openConnection(URL url)
                                 throws IOException
Opens a HTTP connection to the specified URL.
Parameters:
url - the URL to connect to
Returns:
a HttpURLConnection to the URL.
Throws:
IOException
See Also:
URL.openConnection()

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC)
11g Release 1 (11.1)

E17274-05


Copyright © 2008, 2013, Oracle and/or its affiliates. All rights reserved.