org.dspace.app.xmlui.cocoon
Class DSpaceCocoonServletFilter

java.lang.Object
  extended by org.dspace.app.xmlui.cocoon.DSpaceCocoonServletFilter
All Implemented Interfaces:
javax.servlet.Filter

public class DSpaceCocoonServletFilter
extends Object
implements javax.servlet.Filter

This is a wrapper servlet around the cocoon servlet that prefroms two functions, 1) it initializes DSpace / XML UI configuration parameters, and 2) it will preform inturrupted request resumption.

Author:
scott philips

Field Summary
static String DSPACE_CONFIG_PARAMETER
          The DSpace config paramater, this is where the path to the DSpace configuration file can be obtained
 
Constructor Summary
DSpaceCocoonServletFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain arg2)
          Before passing off a request to the cocoon servlet check to see if there is a request that should be resumed? If so replace the real request with a faked request and pass that off to cocoon.
 void init(javax.servlet.FilterConfig arg0)
          Before this servlet will become functional replace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DSPACE_CONFIG_PARAMETER

public static final String DSPACE_CONFIG_PARAMETER
The DSpace config paramater, this is where the path to the DSpace configuration file can be obtained

See Also:
Constant Field Values
Constructor Detail

DSpaceCocoonServletFilter

public DSpaceCocoonServletFilter()
Method Detail

init

public void init(javax.servlet.FilterConfig arg0)
          throws javax.servlet.ServletException
Before this servlet will become functional replace

Specified by:
init in interface javax.servlet.Filter
Throws:
javax.servlet.ServletException

doFilter

public void doFilter(javax.servlet.ServletRequest request,
                     javax.servlet.ServletResponse response,
                     javax.servlet.FilterChain arg2)
              throws IOException,
                     javax.servlet.ServletException
Before passing off a request to the cocoon servlet check to see if there is a request that should be resumed? If so replace the real request with a faked request and pass that off to cocoon.

Specified by:
doFilter in interface javax.servlet.Filter
Throws:
IOException
javax.servlet.ServletException

destroy

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


Copyright © 2012 DuraSpace. All Rights Reserved.