Class URLPattern

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

public class URLPattern extends Object
  • Constructor Details

    • URLPattern

      public URLPattern()
  • Method Details

    • 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