|
||||||||||
| 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.JSRewriteTransformer
public class JSRewriteTransformer
This plugin implements a basic and not complete Javascript Rewriter.
Its scans the html pages and the JS files seraching for javascript links.
If any link is found it will be rewritten it in order to masquerde its real source.
NOTE: this software is released under GPL License. See the LICENSE of this distribution for more informations.
| Field Summary | |
|---|---|
static java.lang.String |
SRC
|
| Constructor Summary | |
|---|---|
JSRewriteTransformer(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 or the JS file 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 |
| Field Detail |
|---|
public static final java.lang.String SRC
| Constructor Detail |
|---|
public JSRewriteTransformer(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 | |||||||||