Return-Path: Delivered-To: apmail-xml-axis-dev-archive@xml.apache.org Received: (qmail 24818 invoked by uid 500); 30 May 2002 15:01:59 -0000 Mailing-List: contact axis-dev-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@xml.apache.org Received: (qmail 24803 invoked by uid 500); 30 May 2002 15:01:59 -0000 Delivered-To: apmail-xml-axis-cvs@apache.org Date: 30 May 2002 15:01:58 -0000 Message-ID: <20020530150158.63198.qmail@icarus.apache.org> From: rsitze@apache.org To: xml-axis-cvs@apache.org Subject: cvs commit: xml-axis/java/src/org/apache/axis/deployment/wsdd WSDDConstants.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N rsitze 02/05/30 08:01:58 Modified: java/src/org/apache/axis/deployment/wsdd WSDDConstants.java Log: util method for validating scope Revision Changes Path 1.16 +14 -0 xml-axis/java/src/org/apache/axis/deployment/wsdd/WSDDConstants.java Index: WSDDConstants.java =================================================================== RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/deployment/wsdd/WSDDConstants.java,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- WSDDConstants.java 30 May 2002 03:06:07 -0000 1.15 +++ WSDDConstants.java 30 May 2002 15:01:58 -0000 1.16 @@ -166,5 +166,19 @@ public static final String ATTR_DESERIALIZER = "deserializer"; public static final String ATTR_ENCSTYLE = "encodingStyle"; + public static final String ATTR_SCOPE_REQUEST = "Request"; + public static final String ATTR_SCOPE_APPLICATION = "Application"; + public static final String ATTR_SCOPE_SESSION = "Session"; + + + public static boolean isValidScope(String scope) + { + return scope == null || + scope.length() == 0 || + scope.equalsIgnoreCase(ATTR_SCOPE_REQUEST) || + scope.equalsIgnoreCase(ATTR_SCOPE_APPLICATION) || + scope.equalsIgnoreCase(ATTR_SCOPE_SESSION); + } + public static final String NL = System.getProperty("line.separator"); }