Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.4.0)

E17483-05

oracle.adfinternal.model.adapter.url
Class URLUtil

java.lang.Object
  extended by oracle.adfinternal.model.adapter.url.URLUtil

public class URLUtil
extends java.lang.Object


Constructor Summary
URLUtil()
          Instantiate this ProviderFactory
 
Method Summary
static URLConnection createURLConnection(java.lang.String connName, java.lang.String urlEndPoint, java.lang.String userName, java.lang.String password, java.lang.String realm, java.lang.String authType)
          Creates a new URL Connection with given end point.
static boolean isInstanceOf(javax.naming.Referenceable connection)
          Check if the specified Referenceable instance describes a URLConnection
static java.lang.String testConnection(URLConnection urlConn)
          Test the URL connection.
static java.lang.String testConnection(URLConnection urlConn, java.lang.String urlQuery, java.util.Map paramsMap, java.lang.String httpMethod)
          Test the URL connection with given source path, parameters and for specific request method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLUtil

public URLUtil()
Instantiate this ProviderFactory

Method Detail

isInstanceOf

public static boolean isInstanceOf(javax.naming.Referenceable connection)
Check if the specified Referenceable instance describes a URLConnection

Parameters:
connection - The Refereneable instance
Returns:
true if the Referenceable instance represents a URLConnection instance falseotherwise.

testConnection

public static java.lang.String testConnection(URLConnection urlConn)
Test the URL connection.

Parameters:
urlConn - The connection.
Returns:

testConnection

public static java.lang.String testConnection(URLConnection urlConn,
                                              java.lang.String urlQuery,
                                              java.util.Map paramsMap,
                                              java.lang.String httpMethod)
Test the URL connection with given source path, parameters and for specific request method.

Parameters:
urlConn - The connection
urlQuery - The source path that needs to be appended with url
paramsMap - Query parameters
httpMethod - Http method.
Returns:
The test result.

createURLConnection

public static URLConnection createURLConnection(java.lang.String connName,
                                                java.lang.String urlEndPoint,
                                                java.lang.String userName,
                                                java.lang.String password,
                                                java.lang.String realm,
                                                java.lang.String authType)
                                         throws java.lang.Exception
Creates a new URL Connection with given end point. If the connection is not URLConnection this method will return null.

Parameters:
connName -
urlEndPoint -
userName -
password -
realm -
authType -
Returns:
Throws:
java.lang.Exception

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.4.0)

E17483-05

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