com.taggercat.handlers
Class AbstractURIHandler

java.lang.Object
  extended by com.taggercat.handlers.AbstractRequestHandler
      extended by com.taggercat.handlers.AbstractURIHandler
All Implemented Interfaces:
com.taggercat.el.ELPropertyResolver, RequestHandler

public abstract class AbstractURIHandler
extends AbstractRequestHandler

This is a request handler to process requests with a matching URI regular expression. The first capture group of the reg ex is expected to be an Entity name. The second capture group is the action verb corresponding to a view type. Based upon the Entity name, and the action verb, the handler finds the corresponding default response page for the target entity, and additionally applies any request filter. This handler parses the URI for the entity name, and ID value or filter terms. The URI is expected to be in a format similar to:

/Requirement/search/1233 or /Requirement/edit/1239 or /Requirement/view/1239 or /Requirement/search/project/123/phase/4 Since this is an abstract class, it is not mapped into the default controller class. You must map in your implementation using an annotation similar to:

@Actions(URIRegex ="^/(Requirement|Project)/(search|edit|view)/(\\S+)*")

See the Programmer's Guide for more detailed information.

See Also:
URIRedirectResolver
 

Constructor Summary
AbstractURIHandler()
           
 
Method Summary
 com.taggercat.metadata.MetaEntity getTargetEntity(Model model)
          Get the target entity for this request, the first term is the entity's short name.
 
Methods inherited from class com.taggercat.handlers.AbstractRequestHandler
disableClientCache, getDataSourceName, getErrorException, getErrorPage, getErrorPageMethod, getErrorReason, getExplicitDataSourceName, getExplicitDSN, getMatchedPattern, getModel, getRequestController, getResponsePage, getResponsePageMethod, getSessionExpiredPage, getUserName4Log, init, isAjaxRequest, onChainCompleted, resolveProperty, serverTemporaryFile, serveTemporaryFile, service, setActionName, setErrorPage, setErrorPageMethod, setErrorPageMethodToRedirect, setExplicitDataSourceName, setExplicitDSN, setMatchedPattern, setResponsePage, setResponsePageMethod, setResponsePageMethodToRedirect, setSessionExpiredPage
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractURIHandler

public AbstractURIHandler()
Method Detail

getTargetEntity

public com.taggercat.metadata.MetaEntity getTargetEntity(Model model)
Get the target entity for this request, the first term is the entity's short name.

Parameters:
model - the model
Returns:
the target entity