org.jboss.resteasy.plugins.server.servlet
Class FilterDispatcher

java.lang.Object
  extended by org.jboss.resteasy.plugins.server.servlet.FilterDispatcher
All Implemented Interfaces:
javax.servlet.Filter, HttpRequestFactory, HttpResponseFactory
Direct Known Subclasses:
Filter30Dispatcher

public class FilterDispatcher
extends java.lang.Object
implements javax.servlet.Filter, HttpRequestFactory, HttpResponseFactory

Version:
$Revision: 1 $
Author:
Bill Burke

Field Summary
protected  ServletContainerDispatcher servletContainerDispatcher
           
 
Constructor Summary
FilterDispatcher()
           
 
Method Summary
 HttpRequest createResteasyHttpRequest(java.lang.String httpMethod, javax.servlet.http.HttpServletRequest request, HttpHeaders headers, UriInfoImpl uriInfo, HttpResponse theResponse, javax.servlet.http.HttpServletResponse response)
           
 HttpResponse createResteasyHttpResponse(javax.servlet.http.HttpServletResponse response)
           
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain)
           
 Dispatcher getDispatcher()
           
 void init(javax.servlet.FilterConfig servletConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

servletContainerDispatcher

protected ServletContainerDispatcher servletContainerDispatcher
Constructor Detail

FilterDispatcher

public FilterDispatcher()
Method Detail

getDispatcher

public Dispatcher getDispatcher()

init

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

createResteasyHttpRequest

public HttpRequest createResteasyHttpRequest(java.lang.String httpMethod,
                                             javax.servlet.http.HttpServletRequest request,
                                             HttpHeaders headers,
                                             UriInfoImpl uriInfo,
                                             HttpResponse theResponse,
                                             javax.servlet.http.HttpServletResponse response)
Specified by:
createResteasyHttpRequest in interface HttpRequestFactory

createResteasyHttpResponse

public HttpResponse createResteasyHttpResponse(javax.servlet.http.HttpServletResponse response)
Specified by:
createResteasyHttpResponse in interface HttpResponseFactory

doFilter

public void doFilter(javax.servlet.ServletRequest servletRequest,
                     javax.servlet.ServletResponse servletResponse,
                     javax.servlet.FilterChain filterChain)
              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


Copyright © 2010. All Rights Reserved.