com.caucho.server.rewrite
Class RewriteDispatch

java.lang.Object
  extended by com.caucho.server.rewrite.RewriteDispatch

public class RewriteDispatch
extends java.lang.Object

Configuration for a rewrite-dispatch


Constructor Summary
RewriteDispatch(Server server)
           
RewriteDispatch(WebApp webApp)
           
 
Method Summary
 void addAction(RewriteFilter action)
           
 void addBuilderProgram(ConfigProgram program)
          Adds to the builder program.
 void addDispatcherType(java.lang.String type)
          Sets the dispatcher type: REQUEST, INCLUDE, FORWARD
 void addRule(DispatchRule rule)
           
 void clearCache()
           
 WebApp getWebApp()
           
 void init()
           
 boolean isError()
          Returns true for an error dispatcher
 boolean isForward()
          Returns true for a forward dispatcher
 boolean isInclude()
          Returns true for an include dispatcher
 boolean isRequest()
          Returns true for a request dispatcher
 FilterChain map(DispatcherType type, java.lang.String uri, java.lang.String queryString, FilterChain chain)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RewriteDispatch

public RewriteDispatch(Server server)

RewriteDispatch

public RewriteDispatch(WebApp webApp)
Method Detail

getWebApp

public WebApp getWebApp()

addDispatcherType

public void addDispatcherType(java.lang.String type)
Sets the dispatcher type: REQUEST, INCLUDE, FORWARD


isRequest

public boolean isRequest()
Returns true for a request dispatcher


isInclude

public boolean isInclude()
Returns true for an include dispatcher


isForward

public boolean isForward()
Returns true for a forward dispatcher


isError

public boolean isError()
Returns true for an error dispatcher


addBuilderProgram

public void addBuilderProgram(ConfigProgram program)
Adds to the builder program.


addRule

public void addRule(DispatchRule rule)

addAction

public void addAction(RewriteFilter action)

init

@PostConstruct
public void init()

map

public FilterChain map(DispatcherType type,
                       java.lang.String uri,
                       java.lang.String queryString,
                       FilterChain chain)

clearCache

public void clearCache()

toString

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