Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Service Bus
11g Release 1 (11.1.1.6.3)

E15033-08


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

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


public class TransportUIContext
extends java.lang.Object

An object if this class is used to supply options for transport-provider specific user interface. It is passed by OSB console to each transport provider A JMXConnection can be retrieved from the context with the JMXCONNECTOR key The provider can then access the osb server MBeans using this object and populate properly the UI or validate inputs from the user. If no JMXConnector is available, or server MBeans are no more available, the processing must be done in "offline" mode.


Field Summary
static java.lang.String ISPROXY
           
static java.lang.String JMXCONNECTOR
           
static java.lang.String LOCALE
           
static java.lang.String SERVICEREF
           

 

Constructor Summary
TransportUIContext()
           

 

Method Summary
 java.lang.Object get(java.lang.Object option)
           
 java.util.Locale getLocale()
           
 Ref getServiceRef()
           
 boolean hasOption(java.lang.Object option)
           
static boolean hasOption(TransportUIContext options, java.lang.Object option)
           
 boolean isProxy()
           
 TransportUIContext put(java.lang.Object option)
          sets the option with a given key
 TransportUIContext put(java.lang.Object option, int value)
          sets the option with a given key to specified value
 TransportUIContext put(java.lang.Object option, java.lang.Object value)
          sets the option with a given key to specified value
 void remove(java.lang.Object option)
          removes the option with a given key
static java.lang.Object safeGet(TransportUIContext options, java.lang.Object option)
           
 TransportUIContext setIsProxy(boolean isproxy)
          Sets whether or not the wizard has been invoked with respect to a proxy service definition
 TransportUIContext setLocale(java.util.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.
 java.lang.String toString()
           

 

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

 

Field Detail

LOCALE

public static final java.lang.String LOCALE
See Also:
Constant Field Values

ISPROXY

public static final java.lang.String ISPROXY
See Also:
Constant Field Values

SERVICEREF

public static final java.lang.String SERVICEREF
See Also:
Constant Field Values

JMXCONNECTOR

public static final java.lang.String JMXCONNECTOR
See Also:
Constant Field Values

Constructor Detail

TransportUIContext

public TransportUIContext()

Method Detail

setLocale

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

getLocale

public java.util.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 OSB 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 OSB configuration.

hasOption

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

get

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

put

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

put

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

put

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

remove

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

safeGet

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

hasOption

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

toString

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

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Service Bus
11g Release 1 (11.1.1.6.3)

E15033-08


Copyright © 2008, 2012, Oracle. All rights reserved.