|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectm.c.m.proxyma.plugins.transformers.AbstractTransformer
m.c.m.proxyma.plugins.transformers.HtmlUrlRewriteTransformer
public class HtmlUrlRewriteTransformer
This plugin implements an URL Rewriter.
It scans the HTML page contained into the response-data searching for any URL.
When it finds an URL relative to any of the proxy folders configured into the current context,
it uses the UrlRewriterEngine to modify the URL.
Its purpose is to make pages and link relative only to proxyma URIs in order to fully
masquerde the real source of the resources.
NOTE: this software is released under GPL License. See the LICENSE of this distribution for more informations.
| Constructor Summary | |
|---|---|
HtmlUrlRewriteTransformer(ProxymaContext context)
The default constructor for this class It prepares the context logger and the logger for the access-log. |
|
| Method Summary | |
|---|---|
java.lang.String |
getHtmlDescription()
Returns a short description of what the plugin does.. |
java.lang.String |
getName()
Returns the name of the plugin. |
void |
process(ProxymaResource aResource)
It scans the HTML page contained into the response searching for any URL. |
| Methods inherited from class m.c.m.proxyma.plugins.transformers.AbstractTransformer |
|---|
getType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HtmlUrlRewriteTransformer(ProxymaContext context)
| Method Detail |
|---|
public void process(ProxymaResource aResource)
throws java.lang.Exception
process in interface ResourceHandlerprocess in class AbstractTransformeraResource - any ProxymaResource
java.lang.Exceptionpublic java.lang.String getName()
getName in interface ResourceHandlergetName in class AbstractTransformerpublic java.lang.String getHtmlDescription()
getHtmlDescription in interface ResourceHandlergetHtmlDescription in class AbstractTransformer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||