electric.util.java
Class VMOptions

java.lang.Object
  extended byelectric.util.java.VMOptions

public class VMOptions
extends java.lang.Object

VMOptions

Author:
webMethods

Constructor Summary
VMOptions()
           
 
Method Summary
static java.lang.String getSystemProperty(java.lang.String name)
          Return the system property associated with the specified name.
static java.lang.String getSystemProperty(java.lang.String name, java.lang.String defaultValue)
          Return the system property associated with the specified name.
static java.lang.String getUTF8()
           
static boolean supportsCauseOnThrowable()
          This is a 1.4 feature.
static boolean supportsContextClassLoader()
           
static boolean supportsGetHeaders(java.lang.Object httpServletRequest)
           
static boolean supportsGetParent()
           
static boolean supportsNewClassLoaders()
           
static boolean supportsProxyGeneration()
           
static boolean supportsReflectionToPrivates()
           
static boolean supportsRuntimeAvailableProcessors()
           
static boolean supportsSSL()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VMOptions

public VMOptions()
Method Detail

supportsCauseOnThrowable

public static boolean supportsCauseOnThrowable()
This is a 1.4 feature.


supportsContextClassLoader

public static boolean supportsContextClassLoader()

supportsGetParent

public static boolean supportsGetParent()

supportsNewClassLoaders

public static boolean supportsNewClassLoaders()

supportsProxyGeneration

public static boolean supportsProxyGeneration()

supportsReflectionToPrivates

public static boolean supportsReflectionToPrivates()

supportsRuntimeAvailableProcessors

public static boolean supportsRuntimeAvailableProcessors()
Returns:

getUTF8

public static java.lang.String getUTF8()

supportsSSL

public static boolean supportsSSL()
Returns:
true if the javax.net.ssl package is available

supportsGetHeaders

public static boolean supportsGetHeaders(java.lang.Object httpServletRequest)
Parameters:
httpServletRequest - an HttpServletResposne
Returns:
true if the response supports the servlet 2.2+ getHeaders method.

getSystemProperty

public static java.lang.String getSystemProperty(java.lang.String name)
Return the system property associated with the specified name. If none exists, or security permission is not granted, return null.

Parameters:
name - The name of the system property.

getSystemProperty

public static java.lang.String getSystemProperty(java.lang.String name,
                                                 java.lang.String defaultValue)
Return the system property associated with the specified name. If none exists, or security permission is not granted, return the default value.

Parameters:
name - The name of the system property.
defaultValue - The default value.


copyright© 2001-2004 by webMethods All Rights Reserved.