public class ConfiguredServletMappingImpl extends Object implements ConfiguredServletMapping
| Constructor and Description |
|---|
ConfiguredServletMappingImpl(String servletName,
String urlPattern,
boolean implicit) |
| Modifier and Type | Method and Description |
|---|---|
String |
getExtension()
If the servlet-mapping url-pattern is extension-mapped (like *.faces), then this method returns the .faces
extension.
|
String |
getServletName()
Returns the servlet-mapping servlet-name.
|
String |
getServletPath()
If the servlet-mapping url-pattern is path-mapped (like /views/foo/bar/*), then this method returns the
/views/foo/bar path.
|
String |
getUrlPattern()
Returns the servlet-mapping url-pattern.
|
boolean |
isExtensionMapped()
Flag indicating whether or not the servlet-mapping url-pattern is extension-mapped.
|
boolean |
isImplicit()
Flag indicating whether or not the servlet-mapping is implicit, meaning it is associated with
ViewHandler.DEFAULT_SUFFIX or ViewHandler.DEFAULT_SUFFIX_PARAM_NAME. |
boolean |
isMatch(String uri)
Flag indicating whether or not the specified
uri matches the servlet-mapping url-pattern. |
boolean |
isPathMapped()
Flag indicating whether or not the servlet-mapping url-pattern is path-mapped.
|
String |
toString() |
public String getExtension()
ConfiguredServletMappinggetExtension in interface ConfiguredServletMappingpublic String getServletName()
ConfiguredServletMappinggetServletName in interface ConfiguredServletMappingpublic String getServletPath()
ConfiguredServletMappinggetServletPath in interface ConfiguredServletMappingpublic String getUrlPattern()
ConfiguredServletMappinggetUrlPattern in interface ConfiguredServletMappingpublic boolean isExtensionMapped()
ConfiguredServletMappingisExtensionMapped in interface ConfiguredServletMappingpublic boolean isImplicit()
ConfiguredServletMappingViewHandler.DEFAULT_SUFFIX or ViewHandler.DEFAULT_SUFFIX_PARAM_NAME.isImplicit in interface ConfiguredServletMappingpublic boolean isMatch(String uri)
ConfiguredServletMappinguri matches the servlet-mapping url-pattern.isMatch in interface ConfiguredServletMappingpublic boolean isPathMapped()
ConfiguredServletMappingisPathMapped in interface ConfiguredServletMappingCopyright © 2016 Liferay, Inc.. All rights reserved.