Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager
11g (11.1.1)

E10689-01


oracle.wsm.common.util
Class CommonUtil

java.lang.Object
  extended by oracle.wsm.common.util.CommonUtil


public class CommonUtil
extends Object
Author:
mmalhotr

Constructor Summary
CommonUtil()
           

 

Method Summary
static String getAvailableClassName(String overrideProperty, String[] listOfClassNames)
          This method will return the classname of the available class.
static String getLocalizedMessage(String bundleType, Locale currentLocale, String msgcode, Object[] args)
           
static Subject getWLSSubject()
           
static boolean isJ2EE()
          Determine whether this JVM is running in a J2EE or J2SE context.
static boolean isManagedContainer()
          Determine whether this JVM is running in a managed or standalone container.
static boolean isMtomAttachment(Object obj)
           
static boolean isOC4J()
          To check if the app server is Oc4j.
static boolean isStreamedAttachments(javax.xml.soap.SOAPMessage soapMsg)
           
static boolean isWLS()
          To check if the app server is WLS.

 

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

 

Constructor Detail

CommonUtil

public CommonUtil()

Method Detail

isJ2EE

public static boolean isJ2EE()
Determine whether this JVM is running in a J2EE or J2SE context.
Returns:
true if JVM is J2EE, false if J2SE

isManagedContainer

public static boolean isManagedContainer()
Determine whether this JVM is running in a managed or standalone container.
Returns:
true if MAS managed, false if standalone

getLocalizedMessage

public static String getLocalizedMessage(String bundleType,
                                         Locale currentLocale,
                                         String msgcode,
                                         Object[] args)
Returns:
String The Localized message based on the bundle type

isOC4J

public static boolean isOC4J()
To check if the app server is Oc4j.
Returns:
true if the container is oc4j

isWLS

public static boolean isWLS()
To check if the app server is WLS.
Returns:
true if the container is WLS.

isStreamedAttachments

public static boolean isStreamedAttachments(javax.xml.soap.SOAPMessage soapMsg)
                                     throws InvocationTargetException,
                                            IllegalAccessException,
                                            NoSuchMethodException
Throws:
InvocationTargetException
IllegalAccessException
NoSuchMethodException

isMtomAttachment

public static boolean isMtomAttachment(Object obj)
                                throws InvocationTargetException,
                                       IllegalAccessException,
                                       NoSuchMethodException
Throws:
InvocationTargetException
IllegalAccessException
NoSuchMethodException

getWLSSubject

public static Subject getWLSSubject()

getAvailableClassName

public static String getAvailableClassName(String overrideProperty,
                                           String[] listOfClassNames)
This method will return the classname of the available class. It will first of all check whether the overrideProperty is set in policy-config.xml. If not then it will try to check if any of classnames in the listOfClassNames is available in the classpath.
Parameters:
overrideProperty -
listOfClassNames -
Returns:

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager
11g (11.1.1)

E10689-01


Copyright © 2007, 2009, Oracle and/or its affiliates. All rights reserved.