com.caucho.server.dispatch
Class ServletMapping

java.lang.Object
  extended by com.caucho.server.dispatch.ServletConfigImpl
      extended by com.caucho.server.dispatch.ServletMapping
All Implemented Interfaces:
AlarmListener, java.util.EventListener, Registration, Registration.Dynamic, ServletConfig, ServletRegistration, ServletRegistration.Dynamic

public class ServletMapping
extends ServletConfigImpl

Configuration for a servlet.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.caucho.server.dispatch.ServletConfigImpl
ServletConfigImpl.FRAGMENT_MODE, ServletConfigImpl.RunAs
 
Nested classes/interfaces inherited from interface javax.servlet.ServletRegistration
ServletRegistration.Dynamic
 
Field Summary
 
Fields inherited from class com.caucho.server.dispatch.ServletConfigImpl
log
 
Constructor Summary
ServletMapping()
          Creates a new servlet mapping object.
 
Method Summary
 void addURLPattern(java.lang.String pattern)
          Sets the url pattern
 void addURLRegexp(java.lang.String pattern)
          Sets the url regexp
 void init(ServletMapper mapper)
          initialize.
 boolean isStrictMapping()
          True if strict mapping should be enabled.
 void setIfAbsent(boolean ifAbsent)
           
 void setStrictMapping(boolean isStrictMapping)
          Set if strict mapping should be enabled.
 java.lang.String toString()
          Returns a printable representation of the servlet config object.
 
Methods inherited from class com.caucho.server.dispatch.ServletConfigImpl
addMapping, addSecurityRoleRef, calculateServletClassName, checkConstructor, close, copyFrom, createInitParam, createMultipartConfig, createRegexpConfig, createRunAt, createServletChain, error, error, error, getBean, getClassName, getCron, getDisplayName, getInit, getInitParameter, getInitParameterNames, getInitParameters, getInitParamMap, getJspFile, getLoadOnStartup, getMappings, getMultipartConfig, getName, getRoleMap, getRunAsRole, getRunAt, getSecurityElement, getServlet, getServletClass, getServletClassName, getServletContext, getServletManager, getServletName, getServletNameDefault, handleAlarm, init, isAsyncSupported, isInFragmentMode, isServletConfig, merge, setAllowEL, setAsyncSupported, setBean, setConfigUriLocation, setCron, setDescription, setDisplayName, setIcon, setId, setInFragmentMode, setInit, setInitException, setInitParam, setInitParam, setInitParameter, setInitParameters, setJndiName, setJspFile, setLoadOnStartup, setMultipartConfig, setProtocol, setProtocolFactory, setRunAs, setRunAsRole, setServlet, setServletClass, setServletClass, setServletContext, setServletManager, setServletMapper, setServletName, setServletNameDefault, setServletSecurity, setVar, setWebApp, validateClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServletMapping

public ServletMapping()
Creates a new servlet mapping object.

Method Detail

setIfAbsent

public void setIfAbsent(boolean ifAbsent)

addURLPattern

public void addURLPattern(java.lang.String pattern)
Sets the url pattern


addURLRegexp

public void addURLRegexp(java.lang.String pattern)
Sets the url regexp


isStrictMapping

public boolean isStrictMapping()
True if strict mapping should be enabled.


setStrictMapping

public void setStrictMapping(boolean isStrictMapping)
Set if strict mapping should be enabled.


init

public void init(ServletMapper mapper)
          throws ServletException
initialize.

Throws:
ServletException

toString

public java.lang.String toString()
Returns a printable representation of the servlet config object.

Overrides:
toString in class ServletConfigImpl