com.caucho.server.webapp
Class RewriteRealPath

java.lang.Object
  extended by com.caucho.server.webapp.RewriteRealPath

public class RewriteRealPath
extends java.lang.Object

Configuration for a rewrite-real-path


Nested Class Summary
static class RewriteRealPath.RealPath
           
static class RewriteRealPath.Rewrite
           
 
Constructor Summary
RewriteRealPath(Path appDir)
           
 
Method Summary
 void addPathPattern(java.lang.String urlPattern, java.lang.String realPath)
          Adds a path pattern.
 void addPathRegexp(java.lang.String urlRegexp, java.lang.String realPath)
          Adds a path pattern.
 void addRealPath(RewriteRealPath.RealPath realPath)
          Adds a real-path.
 void addRewrite(RewriteRealPath.Rewrite rewrite)
          Adds a rewrite
 java.lang.String mapToRealPath(java.lang.String uri)
          Maps the path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RewriteRealPath

public RewriteRealPath(Path appDir)
Method Detail

addRewrite

public void addRewrite(RewriteRealPath.Rewrite rewrite)
Adds a rewrite


addRealPath

public void addRealPath(RewriteRealPath.RealPath realPath)
Adds a real-path.


addPathPattern

public void addPathPattern(java.lang.String urlPattern,
                           java.lang.String realPath)
Adds a path pattern.


addPathRegexp

public void addPathRegexp(java.lang.String urlRegexp,
                          java.lang.String realPath)
Adds a path pattern.


mapToRealPath

public java.lang.String mapToRealPath(java.lang.String uri)
Maps the path.