com.liferay.faces.bridge.config
Interface ServletMapping

All Known Implementing Classes:
ServletMappingImpl

public interface ServletMapping

The ServletMapping interface provides a representation of a servlet-mapping entry from the WEB-INF/web.xml descriptor.

Author:
Neil Griffin

Method Summary
 String getExtension()
          If the servlet-mapping url-pattern is extension-mapped (like *.faces), then this method returns the .faces extension.
 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 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.
 

Method Detail

isExtensionMapped

boolean isExtensionMapped()
Flag indicating whether or not the servlet-mapping url-pattern is extension-mapped.


isPathMapped

boolean isPathMapped()
Flag indicating whether or not the servlet-mapping url-pattern is path-mapped.


getExtension

String getExtension()
If the servlet-mapping url-pattern is extension-mapped (like *.faces), then this method returns the .faces extension. Otherwise returns null.


isMatch

boolean isMatch(String uri)
Flag indicating whether or not the specified uri matches the servlet-mapping url-pattern.


getServletPath

String getServletPath()
If the servlet-mapping url-pattern is path-mapped (like /views/foo/bar/*), then this method returns the /views/foo/bar path. Otherwise returns null.


getUrlPattern

String getUrlPattern()
Returns the servlet-mapping url-pattern.



Copyright © 2014 Liferay, Inc.. All Rights Reserved.