com.taggercat.controller
Class URIPatternActionMapping

java.lang.Object
  extended by com.taggercat.controller.ActionMapping
      extended by com.taggercat.controller.URIPatternActionMapping
All Implemented Interfaces:
java.lang.Comparable<ActionMapping>

public class URIPatternActionMapping
extends ActionMapping

This class represents an action (RequestHandler) mapped into the controller using a URI Patterns match.
URI Patterns are more configurable than URI regular expressions, and allow for easily creating sub-controllers off of the main controller. See the Developer's Guide for more details.

 

Constructor Summary
URIPatternActionMapping(URIPattern pattern, java.lang.String handlerName, java.lang.String premittedGroups, boolean validOnGets, boolean validOnPosts, boolean validOnPuts, boolean validOnDeletes, int priority, boolean firstMatchOnly, boolean requiresValidSession)
           
 
Method Summary
 void addLoginFollowUp(javax.servlet.http.HttpServletRequest request)
           
 URIPattern getUriPattern()
           
 boolean matches(javax.servlet.http.HttpServletRequest request)
           
 void setUriPattern(URIPattern uriPattern)
           
 
Methods inherited from class com.taggercat.controller.ActionMapping
compareTo, getHandlerName, getPriority, isFirstMatchOnly, isUserInPermittedActionRole, isValidOnDeletes, isValidOnGets, isValidOnPosts, isValidOnPuts, isValidRequestMethod, requiresValidSession, setFirstMatchOnly, setHandlerName, setPriority, setRequiresValidSession, setValidOnDeletes, setValidOnGets, setValidOnPosts, setValidOnPuts
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URIPatternActionMapping

public URIPatternActionMapping(URIPattern pattern,
                               java.lang.String handlerName,
                               java.lang.String premittedGroups,
                               boolean validOnGets,
                               boolean validOnPosts,
                               boolean validOnPuts,
                               boolean validOnDeletes,
                               int priority,
                               boolean firstMatchOnly,
                               boolean requiresValidSession)
Method Detail

matches

public boolean matches(javax.servlet.http.HttpServletRequest request)
                throws javax.servlet.ServletException
Specified by:
matches in class ActionMapping
Throws:
javax.servlet.ServletException

addLoginFollowUp

public void addLoginFollowUp(javax.servlet.http.HttpServletRequest request)
Overrides:
addLoginFollowUp in class ActionMapping

getUriPattern

public URIPattern getUriPattern()

setUriPattern

public void setUriPattern(URIPattern uriPattern)