Oracle Application Server Wireless Java API Reference
B10400-01

oracle.panama.adapter
Class AdapterHelper

java.lang.Object
  |
  +--oracle.panama.adapter.AdapterHelper

Deprecated.

 As of 9.0.2.1.0, replaced by RuntimeAdapterHelper

public class AdapterHelper
extends java.lang.Object

A helper class for Panama Adapter programmers.


Constructor Summary
AdapterHelper()
          Deprecated. Empty Constructor

 

Method Summary
static boolean checkConditions(ServiceRequest sr, org.w3c.dom.Element wResult)
          Deprecated. Checks if OutputFilter-condition match against value.
static AdapterDefinition createAdapterDefinition()
          Deprecated. Helper to create an new AdapterDefinition instance.
static void createInputFields(org.w3c.dom.Element simpleForm, java.lang.String[] missingParameters, Arguments arg)
          Deprecated. Creates a SimpleFormItem for every missing parameter.
static org.w3c.dom.NodeList format(org.w3c.dom.Document owner, java.lang.String name, Arguments args, java.lang.Object[] objs)
          Deprecated. Formats an argument caption string.
static java.lang.String getURLPAoidParameter(Arguments args)
          Deprecated. Creates an URL pointing to the currently running Service.
static java.lang.String getURLPathParameter(Arguments args)
          Deprecated. replaced by getURLPAoidParameter(Arguments).

 

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

 

Constructor Detail

AdapterHelper

public AdapterHelper()
Deprecated. 
Empty Constructor
Method Detail

createAdapterDefinition

public static AdapterDefinition createAdapterDefinition()
Deprecated. 
Helper to create an new AdapterDefinition instance. The only published method to construct an AdapterDefinition instance. Each Adapter is responsible to declare it's AdapterDefinition.
Returns:
The new and empty AdapterDefinition instance.
See Also:
AdapterDefinition

getURLPathParameter

public static java.lang.String getURLPathParameter(Arguments args)
Deprecated. replaced by getURLPAoidParameter(Arguments).
Creates an URL pointing to the currently running Service. This mehtod can be used if we want to link something back to the same service, as creating an Input form with missing parameters, where the target URL should be the same as the current.
Parameters:
args - Arguments passed to this Adapter.
Returns:
The URL as a complete and encoded servicepath.

getURLPAoidParameter

public static java.lang.String getURLPAoidParameter(Arguments args)
Deprecated. 
Creates an URL pointing to the currently running Service. This mehtod can be used if we want to link something back to the same service, as creating an Input form with missing parameters, where the target URL should be the same as the current.
Parameters:
args - Arguments passed to this Adapter.
Returns:
The URL as PAoid=nnn, where nnn is the service object id

createInputFields

public static void createInputFields(org.w3c.dom.Element simpleForm,
                                     java.lang.String[] missingParameters,
Arguments arg)
Deprecated. 
Creates a SimpleFormItem for every missing parameter. The newly created SimpleFormItem are put into the SimpleForm.

If a parameter caption exists, this caption is used as display text, otherwise the name of the parameter is used.

SimpleFormItem is only created for parameters who have usage = USER or if PAdebug is true.

Parameters:
simpleForm - The parent SimpleForm.
missingParameters - An array with missing parameter names.
arg - Arguments passed to this Adapter.

format

public static org.w3c.dom.NodeList format(org.w3c.dom.Document owner,
                                          java.lang.String name,
Arguments args,
                                          java.lang.Object[] objs)
Deprecated. 
Formats an argument caption string.
Parameters:
owner - the owner document.
name - the argument name.
args - the arguments.
objs - the format argument list.
Returns:
the formatted node list.

checkConditions

public static boolean checkConditions(ServiceRequest sr,
                                      org.w3c.dom.Element wResult)
Deprecated. 
Checks if OutputFilter-condition match against value. Checks the proposed result and looks in the Element tree to find Filter-parameters. A FilterParamter is found as a name attribute in a SimpleTextItem or else as a tagname of the an Element.
Parameters:
sr - ServiceRequest
wResult - The proposed result from the Adapter
Returns:
true if all condition is matched or if no OutputFilter exist.

Oracle Application Server Wireless Java API Reference
B10400-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.