Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.4.0)

E10653-05

oracle.adf.model.connection.url
Class Proxy

java.lang.Object
  extended by oracle.adf.model.connection.url.Proxy

public class Proxy
extends java.lang.Object

Proxy allows the various connection implementations to define the details of a proxy host which may be needed to access the resource represented by them. A proxy instance defines all the needed information including authentication to configure a proxy host.

Since:
10.1.3

Constructor Summary
Proxy(Node description)
          Instantiate this proxy from the serialized info
Proxy(java.lang.String host, int port)
          Instantiate this proxy configuration.
 
Method Summary
 void authenticate()
          Enforce poxy authentication to happnen at runtime.
protected  Node describe()
          Describe this proxy to enable it to be persisted by the Connection metadata
 java.lang.String getHost()
          Get the host name of this proxy server.
 int getPort()
          Get the port on which the proxy is accepting requests
 void setAuthenticationScheme(AuthenticationScheme authScheme)
          Set the AuthenticationScheme on this proxy needed for authentication.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Proxy

public Proxy(java.lang.String host,
             int port)
Instantiate this proxy configuration.

Parameters:
host - The hostname of the proxy server
port - The port on which the proxy server is accepting requests

Proxy

public Proxy(Node description)
      throws ConnectionException
Instantiate this proxy from the serialized info

Parameters:
description - The Node describing this proxy
Throws:
{@link - ConnectionException} if an error occured reading the description to initialize the proxy.
ConnectionException
Method Detail

setAuthenticationScheme

public void setAuthenticationScheme(AuthenticationScheme authScheme)
Set the AuthenticationScheme on this proxy needed for authentication.

Parameters:
authScheme - The AuthenticationScheme used by this proxy for authentication.

authenticate

public void authenticate()
                  throws ConnectionException
Enforce poxy authentication to happnen at runtime. The Connection initialization will call this to allow for proxy authentication

Throws:
{@link - ConnectionException} if there was a failure or error authenticating against the proxy.
ConnectionException

getHost

public java.lang.String getHost()
Get the host name of this proxy server.

Returns:
The Hostname of this proxy server

getPort

public int getPort()
Get the port on which the proxy is accepting requests

Returns:
The port on which the proxy is accepting requests.

describe

protected Node describe()
                 throws ConnectionException
Describe this proxy to enable it to be persisted by the Connection metadata

Returns:
Node describing this Proxy.
Throws:
{@link - ConnectionException} if the description cannot be provided.
ConnectionException

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.4.0)

E10653-05

Copyright © 1997, 2011, Oracle. All rights reserved.