Liferay 6.0.5

com.liferay.portal.servlet.filters.strip
Class StripFilter

java.lang.Object
  extended by com.liferay.portal.kernel.servlet.BaseFilter
      extended by com.liferay.portal.servlet.filters.BasePortalFilter
          extended by com.liferay.portal.servlet.filters.strip.StripFilter
All Implemented Interfaces:
javax.servlet.Filter

public class StripFilter
extends BasePortalFilter


Field Summary
static String SKIP_FILTER
           
 
Constructor Summary
StripFilter()
           
 
Method Summary
protected  String extractContent(CharBuffer charBuffer, int length)
           
protected  boolean hasMarker(CharBuffer charBuffer, char[] marker)
           
 void init(javax.servlet.FilterConfig filterConfig)
           
protected  boolean isAlreadyFiltered(javax.servlet.http.HttpServletRequest request)
           
protected  boolean isInclude(javax.servlet.http.HttpServletRequest request)
           
protected  boolean isStrip(javax.servlet.http.HttpServletRequest request)
           
protected  void outputCloseTag(CharBuffer charBuffer, Writer writer, String closeTag)
           
protected  void outputOpenTag(CharBuffer charBuffer, Writer writer, char[] openTag)
           
protected  void processCSS(CharBuffer charBuffer, Writer writer)
           
protected  void processFilter(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain)
           
protected  void processJavaScript(CharBuffer charBuffer, Writer writer, char[] openTag)
           
protected  void processPre(CharBuffer oldCharBuffer, Writer writer)
           
protected  void processTextArea(CharBuffer oldCharBuffer, Writer writer)
           
protected  boolean skipWhiteSpace(CharBuffer charBuffer, Writer writer)
           
protected  void strip(CharBuffer charBuffer, Writer writer)
           
 
Methods inherited from class com.liferay.portal.servlet.filters.BasePortalFilter
getLog, isFilterEnabled
 
Methods inherited from class com.liferay.portal.kernel.servlet.BaseFilter
destroy, doFilter, getFilterConfig, processFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SKIP_FILTER

public static final String SKIP_FILTER
Constructor Detail

StripFilter

public StripFilter()
Method Detail

init

public void init(javax.servlet.FilterConfig filterConfig)
Specified by:
init in interface javax.servlet.Filter
Overrides:
init in class BaseFilter

extractContent

protected String extractContent(CharBuffer charBuffer,
                                int length)

hasMarker

protected boolean hasMarker(CharBuffer charBuffer,
                            char[] marker)

isAlreadyFiltered

protected boolean isAlreadyFiltered(javax.servlet.http.HttpServletRequest request)

isInclude

protected boolean isInclude(javax.servlet.http.HttpServletRequest request)

isStrip

protected boolean isStrip(javax.servlet.http.HttpServletRequest request)

outputCloseTag

protected void outputCloseTag(CharBuffer charBuffer,
                              Writer writer,
                              String closeTag)
                       throws IOException
Throws:
IOException

outputOpenTag

protected void outputOpenTag(CharBuffer charBuffer,
                             Writer writer,
                             char[] openTag)
                      throws IOException
Throws:
IOException

processCSS

protected void processCSS(CharBuffer charBuffer,
                          Writer writer)
                   throws IOException
Throws:
IOException

processFilter

protected void processFilter(javax.servlet.http.HttpServletRequest request,
                             javax.servlet.http.HttpServletResponse response,
                             javax.servlet.FilterChain filterChain)
                      throws Exception
Specified by:
processFilter in class BaseFilter
Throws:
Exception

processJavaScript

protected void processJavaScript(CharBuffer charBuffer,
                                 Writer writer,
                                 char[] openTag)
                          throws IOException
Throws:
IOException

processPre

protected void processPre(CharBuffer oldCharBuffer,
                          Writer writer)
                   throws IOException
Throws:
IOException

processTextArea

protected void processTextArea(CharBuffer oldCharBuffer,
                               Writer writer)
                        throws IOException
Throws:
IOException

skipWhiteSpace

protected boolean skipWhiteSpace(CharBuffer charBuffer,
                                 Writer writer)
                          throws IOException
Throws:
IOException

strip

protected void strip(CharBuffer charBuffer,
                     Writer writer)
              throws IOException
Throws:
IOException

Liferay 6.0.5