Package com.sun.enterprise.util.net
Class URLPattern
java.lang.Object
com.sun.enterprise.util.net.URLPattern
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancontainsCRorLF(String urlPattern) This method is used to check whether a url pattern contains a CR(#xD) or LF (#xA).static booleanThis method is used to check the validity of url pattern according to the spec.
-
Constructor Details
-
URLPattern
public URLPattern()
-
-
Method Details
-
isValid
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
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
-