public class FacesServletMapping extends Object
| Constructor and Description | 
|---|
| FacesServletMapping() | 
| Modifier and Type | Method and Description | 
|---|---|
| static FacesServletMapping | createExactMapping(String exact) | 
| static FacesServletMapping | createExtensionMapping(String extension)Creates a new FacesServletMapping object using extension mapping. | 
| static FacesServletMapping | createPrefixMapping(String path)Creates a new FacesServletMapping object using prefix mapping. | 
| String | getExact() | 
| String | getExtension()Returns the extension (".jsf", for example) which has been specified
 in the url-pattern of the FacesServlet mapping. | 
| String | getPrefix()Returns the path ("/faces", for example) which has been specified in
 the url-pattern of the FacesServlet mapping. | 
| String | getUrlPattern()Returns the url-pattern entry for this servlet mapping. | 
| boolean | isExactMapping() | 
| boolean | isExtensionMapping()Indicates whether this mapping is based on an extension (e.g. | 
| boolean | isPrefixMapping()Indicates whether this mapping is based on a prefix (e.g. | 
| void | setExact(String exact) | 
| void | setExtension(String extension)Sets the extension (".jsf", for example) which has been specified in
 the url-pattern of the FacesServlet mapping. | 
| void | setPrefix(String path)Sets the path ("/faces/", for example) which has been specified in
 the url-pattern. | 
| String | toString() | 
public static FacesServletMapping createPrefixMapping(String path)
path - The path ("/faces", for example) which has been specified
             in the url-pattern of the FacesServlet mapping.public static FacesServletMapping createExtensionMapping(String extension)
extension - The extension (".jsf", for example) which has been
             specified in the url-pattern of the FacesServlet mapping.public static FacesServletMapping createExactMapping(String exact)
public String getPrefix()
null will be returned. Note that this
 path is not the same as the specified url-pattern as the trailing
 "/*" is omitted.public void setPrefix(String path)
path - The path which has been specified in the url-patternpublic String getExtension()
null will be returned.public void setExtension(String extension)
extension - The extension which has been specified in the url-patternpublic boolean isExtensionMapping()
true, if this mapping is based is on an
         extension, false otherwisepublic boolean isPrefixMapping()
true, if this mapping is based is on a
         prefix, false otherwisepublic String getUrlPattern()
public String getExact()
public void setExact(String exact)
public boolean isExactMapping()
Copyright © 2022 The Apache Software Foundation. All rights reserved.