org.glassfish.web.plugin.common
Class EnvEntry.Util

java.lang.Object
  extended by org.glassfish.web.plugin.common.EnvEntry.Util
Enclosing interface:
EnvEntry

public static class EnvEntry.Util
extends java.lang.Object

Utility class.


Constructor Summary
EnvEntry.Util()
           
 
Method Summary
static void validateValue(java.lang.String type, java.lang.String value)
          Validates the specified value string against the indicated type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnvEntry.Util

public EnvEntry.Util()
Method Detail

validateValue

public static void validateValue(java.lang.String type,
                                 java.lang.String value)
Validates the specified value string against the indicated type. The recognized types are (from the spec):

Parameters:
type - valid type for env-entry-type (from the spec)
value - value to be checked
Throws:
java.lang.IllegalArgumentException - if the type does not match one of the legal ones
java.lang.NumberFormatException - if the value cannot be parsed according to the type


Copyright © 2012 GlassFish Community. All Rights Reserved.