|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.5.0) E10653-06 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.adf.model.connection.url.HttpURLConnection
public class HttpURLConnection
URLConnectionImpl represents a URLConnection resource, providing the services published by the URLConnection.
URLConnection| Field Summary | |
|---|---|
protected AuthenticationScheme |
mAuthenticationScheme |
| Fields inherited from interface oracle.adf.model.connection.url.URLConnection |
|---|
ATTR_NAME, ATTR_URL |
| Constructor Summary | |
|---|---|
protected |
HttpURLConnection(java.lang.String name, DocumentFragment description, java.util.Hashtable environment)Instantiate this URLConnection instance from the description and the corresponding environment. |
protected |
HttpURLConnection(java.lang.String name, java.net.URL url)Instantiate this URLConnection instance for the URL resource |
| Method Summary | |
|---|---|
void |
close()Close this connection. |
protected DocumentFragment |
describe()Create the DocumentFragment that describes this connection to the Connection Architecture. |
boolean |
equals(java.lang.Object connection)Tests for the equality of another URLConnection instance with the current instance. |
AuthenticationScheme |
getAuthenticationScheme()Get the AuthenticationScheme used by this connection to authenticate against the endpoint |
java.lang.Object |
getInteraction()Start the communication session. |
java.lang.String |
getName()Get the name of this Connection |
Proxy |
getProxy()Get the proxy details associated with this connection instance |
javax.naming.Reference |
getReference()Return the Reference that describes the details of this connection. |
int |
getTimeout()Get the timeout set on this connection. |
java.net.URL |
getURL()Get the URL resource represented by this connection |
void |
open()Open the connection. |
void |
release()Release this connection instance back to the pool. |
protected void |
setAuthenticationScheme(AuthenticationScheme authScheme)Registers an AuthenticationScheme for this connection to use when authenticating against the Resource. |
protected void |
setPool(ConnectionPool pool)Set the Connection pool on this instance. |
void |
setProxy(Proxy proxy)Configure the proxy details for the URL access |
void |
setTimeout(int timeout)Set the timeout property for the connection. |
java.lang.String |
toString()Returns a String representation of this Connection. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected AuthenticationScheme mAuthenticationScheme
| Constructor Detail |
|---|
protected HttpURLConnection(java.lang.String name,
java.net.URL url)
throws ConnectionException
name - The Name of this Connection.url - The URL resource{@link - ConnectionException} if the connection instance could not be created.ConnectionException
protected HttpURLConnection(java.lang.String name,
DocumentFragment description,
java.util.Hashtable environment)
throws ConnectionException
name - The Name of this Connection.description - The DocumentFragment describing this connectionEnvironment - The Environment having the necessary credential information for this connection.{@link - ConnectionException} if the connection instance could not be created.ConnectionException| Method Detail |
|---|
public java.lang.String getName()
getName in interface URLConnection
public void open()
throws ConnectionException
open in interface URLConnection{@link - ConnectionException} if the connection failed to open.ConnectionException
public java.lang.Object getInteraction()
throws ConnectionException
open() before starting the interaction. This is necessary to initialize and prepare the atual physical channel for communication. The default interaction model for the URLConnection is the HttpClient.HTTPConnection. The HTTPConnection supports the HTTP and HTTPS protocols of communication.getInteraction in interface URLConnectionHTTPConnection that represents the underlying communication channel.{@link - ConnectionException} if an error occurred in starting the interaction.ConnectionExceptionpublic void setProxy(Proxy proxy)
setProxy in interface URLConnectionproxy - The Proxy details needed to access the URLpublic Proxy getProxy()
getProxy in interface URLConnection
public javax.naming.Reference getReference()
throws javax.naming.NamingException
Reference that describes the details of this connection.getReference in interface javax.naming.Referenceablejava.naming.Reference instance describing this connectionjavax.naming.NamingException - if an error was encountered.public AuthenticationScheme getAuthenticationScheme()
AuthenticationScheme used by this connection to authenticate against the endpointgetAuthenticationScheme in interface URLConnectionAuthenticationScheme used by this connection. If the connection does not use any authentication null is returned.public int getTimeout()
getTimeout in interface URLConnectionpublic void setTimeout(int timeout)
setTimeout in interface URLConnectiontimeout - The timeout to be set on the connection instance.
public void close()
throws ConnectionException
open() on the connection again. Reopening the connection will reset the state of the interaction associated with this connection.close in interface URLConnection{@link - ConnectionException} if a failure occured in closing the connection.ConnectionException
public void release()
throws ConnectionException
release in interface URLConnection{@link - ConnectionException} if the connection could be released to the pool.ConnectionExceptionpublic boolean equals(java.lang.Object connection)
equals in class java.lang.Objecttrue if the connection instances are the same falseotherwise.public java.lang.String toString()
toString in class java.lang.Objectpublic java.net.URL getURL()
getURL in interface URLConnectionURL resource of this connectionprotected void setAuthenticationScheme(AuthenticationScheme authScheme)
AuthenticationScheme for this connection to use when authenticating against the Resource. The AuthenticationScheme allows for extensions, to define custom authentication modules for a connection.authScheme - AuthenticationScheme to be used when authenticating against the resource.protected void setPool(ConnectionPool pool)
pool -
protected DocumentFragment describe()
throws ConnectionException
DocumentFragment describing this connection instance.ConnectionException
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.5.0) E10653-06 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||