rewrite-impl-servlet 1.0.3.Final

org.ocpsoft.rewrite.servlet.config
Class Forward

java.lang.Object
  extended by org.ocpsoft.rewrite.config.OperationBuilder
      extended by org.ocpsoft.rewrite.servlet.config.HttpOperation
          extended by org.ocpsoft.rewrite.servlet.config.Forward
All Implemented Interfaces:
Operation, Parameterized<OperationParameterBuilder<RegexOperationParameterBuilder,java.lang.String>,java.lang.String>, ParameterizedOperation<OperationParameterBuilder<RegexOperationParameterBuilder,java.lang.String>,java.lang.String>

public class Forward
extends HttpOperation
implements ParameterizedOperation<OperationParameterBuilder<RegexOperationParameterBuilder,java.lang.String>,java.lang.String>

An Operation that performs forwards via InboundServletRewrite.forward(String)

Author:
Lincoln Baxter, III

Method Summary
 void performHttp(HttpServletRewrite event, EvaluationContext context)
           
static Forward to(java.lang.String location)
          Forward the current request to the given location within the servlet container.
 java.lang.String toString()
           
 RegexOperationParameterBuilder where(java.lang.String param)
           
 RegexOperationParameterBuilder where(java.lang.String param, Binding binding)
           
 RegexOperationParameterBuilder where(java.lang.String param, java.lang.String pattern)
           
 RegexOperationParameterBuilder where(java.lang.String param, java.lang.String pattern, Binding binding)
           
 
Methods inherited from class org.ocpsoft.rewrite.servlet.config.HttpOperation
perform
 
Methods inherited from class org.ocpsoft.rewrite.config.OperationBuilder
and
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ocpsoft.rewrite.param.ParameterizedOperation
and
 
Methods inherited from interface org.ocpsoft.rewrite.config.Operation
perform
 

Method Detail

to

public static Forward to(java.lang.String location)
Forward the current request to the given location within the servlet container. This does not change the browser URL, all processing is handled within the current HttpServletRequest.

The given location may be parameterized using the following format:

/example/{param}
/example/{value}/sub/{value2}
... and so on

Parameters may be bound. By default, matching parameter values are extracted from bindings in the EvaluationContext.

See also where(String)


performHttp

public void performHttp(HttpServletRewrite event,
                        EvaluationContext context)
Specified by:
performHttp in class HttpOperation

where

public RegexOperationParameterBuilder where(java.lang.String param)
Specified by:
where in interface Parameterized<OperationParameterBuilder<RegexOperationParameterBuilder,java.lang.String>,java.lang.String>

where

public RegexOperationParameterBuilder where(java.lang.String param,
                                            java.lang.String pattern)
Specified by:
where in interface Parameterized<OperationParameterBuilder<RegexOperationParameterBuilder,java.lang.String>,java.lang.String>

where

public RegexOperationParameterBuilder where(java.lang.String param,
                                            java.lang.String pattern,
                                            Binding binding)
Specified by:
where in interface Parameterized<OperationParameterBuilder<RegexOperationParameterBuilder,java.lang.String>,java.lang.String>

where

public RegexOperationParameterBuilder where(java.lang.String param,
                                            Binding binding)
Specified by:
where in interface Parameterized<OperationParameterBuilder<RegexOperationParameterBuilder,java.lang.String>,java.lang.String>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

rewrite-impl-servlet 1.0.3.Final

Copyright © 2012 OCPsoft. All Rights Reserved.