Skip navigation links

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

E67681-01


oracle.adfinternal.model.adapter.utils
Class Utility

java.lang.Object
  extended by oracle.adfinternal.model.adapter.utils.Utility


public class Utility
extends java.lang.Object

This class contains various utilities used across the adapter data control. The major utility methods included here are -

 1. Get the the parameter list from the string containing params
 2. Substitute the param values in the string containing params
 

Constructor Summary
Utility()
           

 

Method Summary
static java.lang.String getAcceptLanguageString(java.util.Locale loc)
           
static java.io.InputStream getLocationStream(AdapterContext adapterCtx, java.lang.String connectionName, java.lang.String loc)
           
static java.util.List getParamList(java.lang.String inStr)
          Get the list of parameters from a string containing params marked between ## marks.
static boolean invokeExecute(java.lang.String operationInstanceName, AbstractImpl def, java.util.Map bindingContext, OperationBinding action)
           
static java.lang.String substituteParamValue(java.lang.String inStr, java.util.Map params)
          Substitute the parameters with the encoded values.
static java.lang.String substituteParamValue(java.lang.String inStr, java.util.Map params, boolean useDefaultValue)
          Substitute the parameters with the encoded values.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

Utility

public Utility()

Method Detail

getParamList

public static java.util.List getParamList(java.lang.String inStr)
Get the list of parameters from a string containing params marked between ## marks.
Parameters:
inStr - Input string to search for pameters.
Returns:
The list of paramater names.

substituteParamValue

public static java.lang.String substituteParamValue(java.lang.String inStr,
                                                    java.util.Map params)
Substitute the parameters with the encoded values. Params are stuffed within ##. If the encoding fails then use the unencoded value The values of the parameters are defined in the name value pair passed.
Parameters:
inStr - String that may contain parameters.
params - Parameter name value pairs.

substituteParamValue

public static java.lang.String substituteParamValue(java.lang.String inStr,
                                                    java.util.Map params,
                                                    boolean useDefaultValue)
Substitute the parameters with the encoded values. Params are stuffed within ##. If the encoding fails then use the unencoded value The values of the parameters are defined in the name value pair passed.
Parameters:
inStr - String that may contain parameters.
params - Parameter name value pairs.
useDefaultValue - If the value is not present in Map, substitute default value "default"

getLocationStream

public static java.io.InputStream getLocationStream(AdapterContext adapterCtx,
                                                    java.lang.String connectionName,
                                                    java.lang.String loc)
                                             throws AdapterException
Parameters:
adapterCtx -
connectionName -
loc -
Returns:
Throws:
AdapterException

invokeExecute

public static boolean invokeExecute(java.lang.String operationInstanceName,
                                    AbstractImpl def,
                                    java.util.Map bindingContext,
                                    OperationBinding action)

getAcceptLanguageString

public static java.lang.String getAcceptLanguageString(java.util.Locale loc)

Skip navigation links

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

E67681-01


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