com.sun.enterprise.util.net
Class URLPattern

java.lang.Object
  extended by com.sun.enterprise.util.net.URLPattern

public class URLPattern
extends Object


Constructor Summary
URLPattern()
           
 
Method Summary
static boolean containsCRorLF(String urlPattern)
          This method is used to check whether a url pattern contains a CR(#xD) or LF (#xA).
static boolean isValid(String urlPattern)
          This method is used to check the validity of url pattern according to the spec.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLPattern

public URLPattern()
Method Detail

isValid

public static boolean isValid(String urlPattern)
This method is used to check the validity of url pattern according to the spec. It is used in the following places: 1. in WebResourceCollection 2. in ServletMapping 3. in ServletFilterMapping (above three see Servlet Spec, from version 2.3 on, Secion 13.2: "Rules for Processing the Deployment Descriptor") 4. in jsp-property-group (see JSP.3.3: "JSP Property Groups")

Parameters:
urlPattern - the url pattern
Returns:
false for invalid url pattern

containsCRorLF

public static boolean containsCRorLF(String urlPattern)
This method is used to check whether a url pattern contains a CR(#xD) or LF (#xA). According to the Servlet spec the developer must be informed when it does.

Parameters:
urlPattern - the url pattern (must not be null)
Returns:
true if it contains one or more CRs or LFs


Copyright © 2012 GlassFish Community. All Rights Reserved.