com.bea.wli.sb.transports.ui
Class TransportUIContext

java.lang.Object
  extended by com.bea.wli.sb.transports.ui.TransportUIContext

public class TransportUIContext
extends Object

An object if this class is used to supply options for transport-provider specific user interface. It is passed by ALSB console to each transport provider


Field Summary
static String ISPROXY
           
static String LOCALE
           
static String SERVICEREF
           
 
Constructor Summary
TransportUIContext()
           
 
Method Summary
 Object get(Object option)
           
 Locale getLocale()
           
 Ref getServiceRef()
           
 boolean hasOption(Object option)
           
static boolean hasOption(TransportUIContext options, Object option)
           
 boolean isProxy()
           
 TransportUIContext put(Object option)
          sets the option with a given key
 TransportUIContext put(Object option, int value)
          sets the option with a given key to specified value
 TransportUIContext put(Object option, Object value)
          sets the option with a given key to specified value
 void remove(Object option)
          removes the option with a given key
static Object safeGet(TransportUIContext options, Object option)
           
 TransportUIContext setIsProxy(boolean isproxy)
          Sets whether or not the wizard has been invoked with respect to a proxy service definition
 TransportUIContext setLocale(Locale val)
          sets the locale to use when returning labels and tooltips for each field
 TransportUIContext setServiceRef(Ref val)
          sets the serviceref of the proxy or business service being changed in the user interface.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOCALE

public static final String LOCALE
See Also:
Constant Field Values

ISPROXY

public static final String ISPROXY
See Also:
Constant Field Values

SERVICEREF

public static final String SERVICEREF
See Also:
Constant Field Values
Constructor Detail

TransportUIContext

public TransportUIContext()
Method Detail

setLocale

public TransportUIContext setLocale(Locale val)
sets the locale to use when returning labels and tooltips for each field


getLocale

public Locale getLocale()
Returns:
the locale to use when returning labels and tooltips for each field

setIsProxy

public TransportUIContext setIsProxy(boolean isproxy)
Sets whether or not the wizard has been invoked with respect to a proxy service definition


isProxy

public boolean isProxy()
Returns:
whether or not the wizard has been invoked with respect to a proxy service definition

setServiceRef

public TransportUIContext setServiceRef(Ref val)
sets the serviceref of the proxy or business service being changed in the user interface. Called by ALSB console


getServiceRef

public Ref getServiceRef()
Returns:
returns the service ref of the service being changed in the user interface. Notice that in cases when the user is registering a new service the service with the given ref may not necessarity be fully created in ALSB configuration.

hasOption

public boolean hasOption(Object option)
Returns:
whether or not an options with a given key exists

get

public Object get(Object option)
Returns:
the value of an option with a given key

put

public TransportUIContext put(Object option)
sets the option with a given key


put

public TransportUIContext put(Object option,
                              int value)
sets the option with a given key to specified value


put

public TransportUIContext put(Object option,
                              Object value)
sets the option with a given key to specified value


remove

public void remove(Object option)
removes the option with a given key


safeGet

public static Object safeGet(TransportUIContext options,
                             Object option)
Returns:
the value of an option with a given key

hasOption

public static boolean hasOption(TransportUIContext options,
                                Object option)
Returns:
whether or not an option with a specified key exists

toString

public String toString()
Overrides:
toString in class Object
Returns:
stringified view of this TransportUIContext