|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object m.c.m.proxyma.rewrite.CookieRewriteEngine
public class CookieRewriteEngine
This Class implements the logic of the Cookies rewriter engine.
It is used by the plugins that performs Cookie rewriting stuff.
NOTE: this software is released under GPL License. See the LICENSE of this distribution for more informations.
Field Summary | |
---|---|
static java.lang.String |
PROXYMA_REWRITTEN_HEADER
The header added to the rewritten cookies that can be recognized by the preprocessor to restore the original values. |
Constructor Summary | |
---|---|
CookieRewriteEngine(ProxymaContext context)
|
Method Summary | |
---|---|
void |
masqueradeCookie(javax.servlet.http.Cookie cookie,
ProxymaResource aResource)
Masquerade to the client a cookie that comes froma a remote host by setting its domain to the domain of proxyma and the path to the path of the current proxy-folder. |
void |
unmasqueradeCookie(javax.servlet.http.Cookie cookie)
Rebuilds the original cookie from a masqueraded one. |
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 PROXYMA_REWRITTEN_HEADER
Constructor Detail |
---|
public CookieRewriteEngine(ProxymaContext context)
Method Detail |
---|
public void masqueradeCookie(javax.servlet.http.Cookie cookie, ProxymaResource aResource)
cookie
- the cookie to masqueradeaResource
- the resource that owns the Cookiepublic void unmasqueradeCookie(javax.servlet.http.Cookie cookie)
cookie
- the cookie to unmasquerade
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |