Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

oracle.jdeveloper.model
Class J2eePanelUtil

java.lang.Object
  extended by oracle.jdeveloper.model.J2eePanelUtil

public class J2eePanelUtil
extends java.lang.Object

A utility class with routines that can be shared among J2EE wizard panels


Constructor Summary
J2eePanelUtil()
           
 
Method Summary
static void checkValidWebAppContext(java.lang.String webAppContext, java.awt.Component parent, boolean allowInvalid, java.lang.String helpId)
          Checks if web application context string passed is valid.
static void checkValidWebAppName(java.lang.String webAppName, java.awt.Component parent, boolean allowInvalid, java.lang.String helpId)
          Checks if a web application name passed is valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

J2eePanelUtil

public J2eePanelUtil()
Method Detail

checkValidWebAppContext

public static void checkValidWebAppContext(java.lang.String webAppContext,
                                           java.awt.Component parent,
                                           boolean allowInvalid,
                                           java.lang.String helpId)
                                    throws TraversalException
Checks if web application context string passed is valid. Rules are from http://www.w3.org/Addressing/URL/4_URI_Recommentations.html . The behavior of this function in case of a validation failure depends on the parameter allowInvalid. If allowInvalid is false, and validation fails, then this function shows an error dialog and throws a TraversalException. If allowInvalid is true, then this function shows a warning dialog and does not throw any TraversalException.

Parameters:
webAppContext - The context string that has to be validated
parent - Parent component for error or message dialog that could be shown
allowInvalid - if true, an invalid webAppContext does not cause an exception to be thrown
helpId - Help id for the message and error dialogs
Throws:
TraversalException - if validation fails and allowInvalid is false

checkValidWebAppName

public static void checkValidWebAppName(java.lang.String webAppName,
                                        java.awt.Component parent,
                                        boolean allowInvalid,
                                        java.lang.String helpId)
                                 throws TraversalException
Checks if a web application name passed is valid. The web application name in most cases becomes the war or ear file name. So this routine uses file name validation rules for the web application name. Rules are from http://msdn.microsoft.com/en-us/library/aa365247.aspx . Space has been added as an additional invalid character for the benifit of unix users. The behavior of this function in case of a validation failure depends on the parameter allowInvalid. If allowInvalid is false, and validation fails, then this function shows an error dialog and throws a TraversalException. If allowInvalid is true, then this function shows a warning dialog and does not throw any TraversalException.

Parameters:
webAppName - the web application name string that has to be validated
parent - parent component for error or message dialog
allowInvalid - if true, supresses TraversalException. See method definition above
helpId - help text id for message or error dialogs
Throws:
TraversalException - if validation fails and allowInvalid is false

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

Copyright © 1997, 2011, Oracle. All rights reserved.