org.xwiki.rest.internal
Class XWikiSetupCleanupFilter

java.lang.Object
  extended by Filter
      extended by org.xwiki.rest.internal.XWikiSetupCleanupFilter

public class XWikiSetupCleanupFilter
extends Filter

The Setup cleanup filter is used to populate the Restlet context with relevant variables that are used by JAX-RS resources. It is also used to release the JAX-RS resources that are instantiated by using the component manager, in order to avoid memory leaks.


Constructor Summary
XWikiSetupCleanupFilter()
           
 
Method Summary
protected  void afterHandle(Request request, Response response)
           
protected  int beforeHandle(Request request, Response response)
           
protected static HttpServletRequest getHttpRequest(Request req)
           Retrieves the original servlet request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XWikiSetupCleanupFilter

public XWikiSetupCleanupFilter()
Method Detail

beforeHandle

protected int beforeHandle(Request request,
                           Response response)

afterHandle

protected void afterHandle(Request request,
                           Response response)

getHttpRequest

protected static HttpServletRequest getHttpRequest(Request req)

Retrieves the original servlet request.

Parameters:
req - The Restlet request to handle.
Returns:
httpServletRequest The original HTTP servlet request.