com.liferay.faces.bridge.config
Class ServletMappingImpl

java.lang.Object
  extended by com.liferay.faces.bridge.config.ServletMappingImpl
All Implemented Interfaces:
ServletMapping

public class ServletMappingImpl
extends Object
implements ServletMapping

This class represents a servlet-mapping found in the WEB-INF/web.xml descriptor.

Author:
Neil Griffin

Constructor Summary
ServletMappingImpl(String urlPattern)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletMappingImpl

public ServletMappingImpl(String urlPattern)
Method Detail

isExtensionMapped

public boolean isExtensionMapped()
Description copied from interface: ServletMapping
Flag indicating whether or not the servlet-mapping url-pattern is extension-mapped.

Specified by:
isExtensionMapped in interface ServletMapping

isPathMapped

public boolean isPathMapped()
Description copied from interface: ServletMapping
Flag indicating whether or not the servlet-mapping url-pattern is path-mapped.

Specified by:
isPathMapped in interface ServletMapping

getExtension

public String getExtension()
Description copied from interface: ServletMapping
If the servlet-mapping url-pattern is extension-mapped (like *.faces), then this method returns the .faces extension. Otherwise returns null.

Specified by:
getExtension in interface ServletMapping

isMatch

public boolean isMatch(String uri)
Description copied from interface: ServletMapping
Flag indicating whether or not the specified uri matches the servlet-mapping url-pattern.

Specified by:
isMatch in interface ServletMapping

getServletPath

public String getServletPath()
Description copied from interface: ServletMapping
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.

Specified by:
getServletPath in interface ServletMapping

getUrlPattern

public String getUrlPattern()
Description copied from interface: ServletMapping
Returns the servlet-mapping url-pattern.

Specified by:
getUrlPattern in interface ServletMapping


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