rewrite-impl-servlet 1.0.5.Final

org.ocpsoft.rewrite.servlet.config
Class ServerPort

java.lang.Object
  extended by org.ocpsoft.rewrite.config.DefaultConditionBuilder
      extended by org.ocpsoft.rewrite.servlet.config.HttpCondition
          extended by org.ocpsoft.rewrite.servlet.config.ServerPort
All Implemented Interfaces:
Condition, ConditionBuilder, ConfigurationElement

public class ServerPort
extends HttpCondition

Responsible for asserting on the ServletRequest.getServerPort()

Author:
Lincoln Baxter, III

Method Summary
 boolean evaluateHttp(HttpServletRewrite event, EvaluationContext context)
           
static ServerPort is(int... ports)
          Assert that the server port matches any of the given ports.
 
Methods inherited from class org.ocpsoft.rewrite.servlet.config.HttpCondition
evaluate
 
Methods inherited from class org.ocpsoft.rewrite.config.DefaultConditionBuilder
and, andNot, create, or, orNot, wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

is

public static ServerPort is(int... ports)
Assert that the server port matches any of the given ports.


evaluateHttp

public boolean evaluateHttp(HttpServletRewrite event,
                            EvaluationContext context)
Specified by:
evaluateHttp in class HttpCondition

rewrite-impl-servlet 1.0.5.Final

Copyright © 2012 OCPsoft. All Rights Reserved.