| javax.servlet.http.HttpServletResponseWrapper clime.messadmin.filter.MessAdminResponseWrapper
MessAdminResponseWrapper | public class MessAdminResponseWrapper extends HttpServletResponseWrapper (Code) | | Pass-trough response wrapper, looking up for message injection.
IMPLEMENTATION NOTE: do not buffer response here: it can be quite large...
author: Cédrik LIME author: TODO: for version 2, try to put the script at an even more suitable location (immediatly after <body> or immediatly before </body> or </head>) |
Inner Class :protected class CountingInjectorPrintWriter extends PrintWriter | |
injectedMessageHTML | protected String injectedMessageHTML(Code) | | |
messageInjected | protected boolean messageInjected(Code) | | |
responseLength | protected long responseLength(Code) | | |
shouldInject | protected boolean shouldInject(Code) | | |
status | protected int status(Code) | | |
finish | public boolean finish() throws IOException(Code) | | Injects code in output stream
mess up with response encoding (convert message from UTF to XYZ)? No: handled by the PrintWriter
true if message was injected, false otherwise throws: IOException - |
getContentLength | public int getContentLength()(Code) | | |
getInjectedMessageHTML | public String getInjectedMessageHTML()(Code) | | |
getResponseLength | public long getResponseLength()(Code) | | Will only be valid at end of response cycle, when reponse is flush'ed.
byte count of response |
getStatus | public int getStatus()(Code) | | |
isMessageInjected | public boolean isMessageInjected()(Code) | | |
setContentLength | public void setContentLength(int len)(Code) | |
|
setInjectedMessageHTML | public void setInjectedMessageHTML(String in_injectedMessage)(Code) | | |
setStatus | public void setStatus(int sc)(Code) | |
|
setWarning | protected void setWarning()(Code) | | |
|
|