TorqueBox 3.1.2

org.torquebox.web.servlet
Class SendfileFilter

java.lang.Object
  extended by org.torquebox.web.servlet.SendfileFilter
All Implemented Interfaces:
javax.servlet.Filter

public class SendfileFilter
extends Object
implements javax.servlet.Filter


Constructor Summary
SendfileFilter()
           
 
Method Summary
 void destroy()
           
protected  void doFilter(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain)
           
 void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
           
 void init(javax.servlet.FilterConfig filterConfig)
           
protected  void sendFile(org.torquebox.web.servlet.SendfileFilter.SendfileRequest request, org.torquebox.web.servlet.SendfileFilter.SendfileResponse response, File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SendfileFilter

public SendfileFilter()
Method Detail

init

public void init(javax.servlet.FilterConfig filterConfig)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Filter
Throws:
javax.servlet.ServletException

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Filter

doFilter

public void doFilter(javax.servlet.ServletRequest request,
                     javax.servlet.ServletResponse response,
                     javax.servlet.FilterChain chain)
              throws IOException,
                     javax.servlet.ServletException
Specified by:
doFilter in interface javax.servlet.Filter
Throws:
IOException
javax.servlet.ServletException

doFilter

protected void doFilter(javax.servlet.http.HttpServletRequest request,
                        javax.servlet.http.HttpServletResponse response,
                        javax.servlet.FilterChain chain)
                 throws IOException,
                        javax.servlet.ServletException
Throws:
IOException
javax.servlet.ServletException

sendFile

protected void sendFile(org.torquebox.web.servlet.SendfileFilter.SendfileRequest request,
                        org.torquebox.web.servlet.SendfileFilter.SendfileResponse response,
                        File file)

TorqueBox 3.1.2

Copyright © 2015 JBoss by Red Hat. All Rights Reserved.