org.ocpsoft.rewrite.servlet.config
Class ServerPort
java.lang.Object
org.ocpsoft.rewrite.config.DefaultConditionBuilder
org.ocpsoft.rewrite.servlet.config.HttpCondition
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Copyright © 2012 OCPsoft. All Rights Reserved.