Class RemoteHostFilter

  extended by org.apache.shale.application.AbstractRegExpFilter
      extended by org.apache.shale.application.RemoteHostFilter
All Implemented Interfaces:

public class RemoteHostFilter
extends AbstractRegExpFilter

Command that filters incoming requests based on matching the remote host name (or the remote address, if no remote host name is available) against regular expression patterns that are configured on this instance. See AbstractRegExpFilter for details of the matching algorithm.

USAGE NOTE: - This command will only be effective if used before the regular filter chain is processed. In other words, you should invoke it as part of a preprocess chain in the shale catalog.

$Id: 464373 2006-10-16 04:21:54Z rahul $

See Also:

Field Summary
Fields inherited from interface org.apache.commons.chain.Command
Constructor Summary
Method Summary
protected  String value(ShaleWebContext context)
          Return the value to be tested against exclude and include patterns.
Methods inherited from class org.apache.shale.application.AbstractRegExpFilter
accept, execute, getExcludes, getIncludes, getIncludesPatterns, matches, reject, setExcludes, setIncludes
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public RemoteHostFilter()
Method Detail


protected String value(ShaleWebContext context)

Return the value to be tested against exclude and include patterns. This will be the value of the remoteHost property (if any); otherwise the value of the remoteAddr property.

Specified by:
value in class AbstractRegExpFilter
context - Context for the current request

Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.