com.taggercat.handlers
Annotation Type Actions


@Retention(value=RUNTIME)
@Target(value=TYPE)
@Documented
public @interface Actions

This annotation can be used to map a request handler to:

  1. One or more action names using an exact match; Chained actions are specified as a comma separated list.
  2. A regular expression that is matched on the request query string
  3. A regular expression that is matched on the request URI path info
  4. An EL expression that returns true

 

Optional Element Summary
 java.lang.String expression
          A Tagger Cat EL expression that returns true to match this handler
 boolean firstMatchOnly
          Should pattern matching stop if this is included in the action chain
 java.lang.String names
          A comma separated list of action names supported by this handler
 int priority
          The search priority on this action
 java.lang.String queryStringRegex
          The regular expression matching the query string supported by this handler
 boolean requiresSession
          Does this action require a valid active session
 java.lang.String URIregex
          The Regular expression matching the URIs supported by this handler
 boolean validOnDelete
          Does this action apply to DELETE request
 boolean validOnGet
          Does this action apply to GET request
 boolean validOnPost
          Does this action apply to POST requests
 boolean validOnPut
          Does this action apply to PUT requests
 

names

public abstract java.lang.String names
A comma separated list of action names supported by this handler

Default:
""

queryStringRegex

public abstract java.lang.String queryStringRegex
The regular expression matching the query string supported by this handler

Returns:
the regular expression matching the query string supported by this handler
Default:
""

URIregex

public abstract java.lang.String URIregex
The Regular expression matching the URIs supported by this handler

Returns:
the Regular expression matching the URIs supported by this handler
Default:
""

expression

public abstract java.lang.String expression
A Tagger Cat EL expression that returns true to match this handler

Returns:
the Tagger Cat EL expression that returns true to match this handler
Default:
""

validOnPost

public abstract boolean validOnPost
Does this action apply to POST requests

Returns:
true if this action apply to POST requests
Default:
true

validOnGet

public abstract boolean validOnGet
Does this action apply to GET request

Returns:
true if this action apply to GET request
Default:
true

validOnPut

public abstract boolean validOnPut
Does this action apply to PUT requests

Returns:
true if this action apply to PUT requests
Default:
true

validOnDelete

public abstract boolean validOnDelete
Does this action apply to DELETE request

Returns:
true if this action apply to DELTE request
Default:
true

priority

public abstract int priority
The search priority on this action

Returns:
the search priority on this action
Default:
5

requiresSession

public abstract boolean requiresSession
Does this action require a valid active session

Returns:
returns true if this action require a valid active session
Default:
true

firstMatchOnly

public abstract boolean firstMatchOnly
Should pattern matching stop if this is included in the action chain

Returns:
true if this pattern matching should be stopped if this is included in the action chain
Default:
false