m.c.m.proxyma.rewrite
Class URLRewriteEngine

java.lang.Object
  extended by m.c.m.proxyma.rewrite.URLRewriteEngine

public class URLRewriteEngine
extends java.lang.Object

This Class implements the logic od the URL rewriter engine.
It is used by the plugins that performs URL rewriting.

NOTE: this software is released under GPL License. See the LICENSE of this distribution for more informations.

Version:
$Id: URLRewriteEngine.java 176 2010-07-03 09:02:14Z marcolinuz $
Author:
Marco Casavecchia Morganti (marcolinuz) [marcolinuz-at-gmail.com];

Constructor Summary
URLRewriteEngine(ProxymaContext context)
           
 
Method Summary
 java.lang.String masqueradeURL(java.lang.String theURL, ProxymaResource aResource)
          This method rewrites the passed url if it siteMatches the path of the specified proxy-folder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLRewriteEngine

public URLRewriteEngine(ProxymaContext context)
Method Detail

masqueradeURL

public java.lang.String masqueradeURL(java.lang.String theURL,
                                      ProxymaResource aResource)
This method rewrites the passed url if it siteMatches the path of the specified proxy-folder. If not, it tryes to match any other configured fproxy-folder to keep the client into the reverse proxy if possible.

Parameters:
theURLPath - the URL that have to be rewritten
aResource - the resource that is currently processed by the ProxyEngine.
Returns:
the rewritten URL.


Copyright © 2010. All Rights Reserved.