rewrite-impl-servlet 1.0.2.Final

org.ocpsoft.rewrite.servlet.config
Class QueryString

java.lang.Object
  extended by org.ocpsoft.rewrite.config.ConditionBuilder
      extended by org.ocpsoft.rewrite.servlet.config.HttpCondition
          extended by org.ocpsoft.rewrite.servlet.config.QueryString
All Implemented Interfaces:
Bindable<QueryString>, Condition

public abstract class QueryString
extends HttpCondition
implements Bindable<QueryString>

A Condition that inspects the value of HttpServletRewrite.getRequestQueryString()

Author:
Lincoln Baxter, III

Field Summary
protected  DefaultBindable<?> bindable
           
 
Constructor Summary
QueryString()
           
 
Method Summary
 QueryString bindsTo(Binding binding)
          Bind the values of this QueryString query to the given Binding.
 java.util.List<Binding> getBindings()
           
static QueryString matches(java.lang.String pattern)
          Return a new Condition matching against the entire HttpServletRequest.getQueryString()
static QueryString parameterExists(java.lang.String nameRegex)
          Return a new Condition matching against the existence of specific parameters within HttpServletRequest.getQueryString()
static QueryString valueExists(java.lang.String valueRegex)
          Return a new Condition matching against the existence of a parameter values within HttpServletRequest.getQueryString()
 
Methods inherited from class org.ocpsoft.rewrite.servlet.config.HttpCondition
evaluate, evaluateHttp
 
Methods inherited from class org.ocpsoft.rewrite.config.ConditionBuilder
and, andNot, or, orNot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bindable

protected final DefaultBindable<?> bindable
Constructor Detail

QueryString

public QueryString()
Method Detail

bindsTo

public QueryString bindsTo(Binding binding)
Bind the values of this QueryString query to the given Binding.

Specified by:
bindsTo in interface Bindable<QueryString>

getBindings

public java.util.List<Binding> getBindings()
Specified by:
getBindings in interface Bindable<QueryString>

matches

public static QueryString matches(java.lang.String pattern)
Return a new Condition matching against the entire HttpServletRequest.getQueryString()

This value may be bound using {param} statements.

See also: bindsTo(Binding)


parameterExists

public static QueryString parameterExists(java.lang.String nameRegex)
Return a new Condition matching against the existence of specific parameters within HttpServletRequest.getQueryString()

The values of all matching parameters may be bound. By default, matching values are bound to the EvaluationContext, and are stored by parameter name.

See also: bindsTo(Binding)


valueExists

public static QueryString valueExists(java.lang.String valueRegex)
Return a new Condition matching against the existence of a parameter values within HttpServletRequest.getQueryString()

The values of all matching parameter values may be bound. By default, matching values are bound to the EvaluationContext.

See also: bindsTo(Binding)


rewrite-impl-servlet 1.0.2.Final

Copyright © 2012 OCPsoft. All Rights Reserved.