com.google.appengine.api.blobstore.dev
Class ServeBlobFilter

java.lang.Object
  extended by com.google.appengine.api.blobstore.dev.ServeBlobFilter
All Implemented Interfaces:
javax.servlet.Filter

public final class ServeBlobFilter
extends java.lang.Object
implements javax.servlet.Filter

ServeBlobFilter implements the ability to serve a blob in the development environment. In production, the X-AppEngine-BlobKey header is intercepted above the runtime and turned into a streaming response. However, in the development environment we need to implement this in-process.


Nested Class Summary
static class ServeBlobFilter.ResponseWrapper
           
 
Constructor Summary
ServeBlobFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
           
 void init(javax.servlet.FilterConfig config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServeBlobFilter

public ServeBlobFilter()
Method Detail

init

public void init(javax.servlet.FilterConfig config)
Specified by:
init in interface javax.servlet.Filter

doFilter

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

destroy

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