pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.service
Class VersionRewriteFilter.RequestRewriter

java.lang.Object
  extended by org.torweg.pulse.service.VersionRewriteFilter.RequestRewriter
Enclosing class:
VersionRewriteFilter

public static final class VersionRewriteFilter.RequestRewriter
extends java.lang.Object

Utility to rewrite a request.


Constructor Summary
VersionRewriteFilter.RequestRewriter(javax.servlet.ServletRequest req, java.lang.String base)
          creates a new rewritten request.
 
Method Summary
 javax.servlet.RequestDispatcher getRequestDispatcher()
          returns the request dispatcher for the rewritten URI.
 java.net.URI getRewrittenURI()
          returns the rewritten URI.
 boolean isRewritten()
          returns whether the URI of the request has actually been rewritten.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionRewriteFilter.RequestRewriter

public VersionRewriteFilter.RequestRewriter(javax.servlet.ServletRequest req,
                                            java.lang.String base)
creates a new rewritten request.

Parameters:
req - the wrapped request
base - the base URI
Method Detail

getRequestDispatcher

public javax.servlet.RequestDispatcher getRequestDispatcher()
returns the request dispatcher for the rewritten URI.

Returns:
the request dispatcher

isRewritten

public boolean isRewritten()
returns whether the URI of the request has actually been rewritten.

Returns:
true, if and only if the URI of the request has been rewritten. Otherwise false.

getRewrittenURI

public java.net.URI getRewrittenURI()
returns the rewritten URI.

Returns:
the rewritten URI