deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.ogcwebservices.csw.iso_profile.ebrim
Class CSWEbRIMFilter

java.lang.Object
  extended by org.deegree.ogcwebservices.csw.iso_profile.ebrim.CSWEbRIMFilter
All Implemented Interfaces:
javax.servlet.Filter

public class CSWEbRIMFilter
extends Object
implements javax.servlet.Filter

The CSWEbRIMFilter class is able to handle an incoming csw/wrs ebrim Transaction. This extra filter is necessary because the insertion of an ebrim object is handled different then the original csw:Insert.

The first difference is the usage of the form/multipart header which allows for ExtrinsicObjects to be defined outside the message Body and thus must be handled seperatly.

A second difference results after the insertion of an Object for every update and insertion leads to the extra insertion of an auditableEvent. The AuditableEvents result in an audit-trail (a version coontrol history ) for each inserted or updated app:RegistryObject.

Version:
$Revision: 1.13 $, $Date: 2007-11-27 12:50:25 $
Author:
Rutger Bezema, last edited by: $Author: poth $

Constructor Summary
CSWEbRIMFilter()
           
 
Method Summary
 void afterResponseEvaluation(OGCWebServiceRequest originalRequest, ServletResponseWrapper responsewrapper)
          This method is called after the CSWEbRIMFilter has successfully processed the incoming request, but did not actually write it to the Stream.
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
           
 CatalogueService getCatalogueService()
           
 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

CSWEbRIMFilter

public CSWEbRIMFilter()
Method Detail

init

public void init(javax.servlet.FilterConfig config)
          throws javax.servlet.ServletException
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 chain)
              throws IOException,
                     javax.servlet.ServletException
Specified by:
doFilter in interface javax.servlet.Filter
Throws:
IOException
javax.servlet.ServletException

afterResponseEvaluation

public void afterResponseEvaluation(OGCWebServiceRequest originalRequest,
                                    ServletResponseWrapper responsewrapper)
                             throws OGCWebServiceException
This method is called after the CSWEbRIMFilter has successfully processed the incoming request, but did not actually write it to the Stream. THis method could be overwritten to do postprocessing the stream without actually having to register a new filter.

Parameters:
originalRequest - containing deegree java bean which is represents the request.
responsewrapper - which should be used.
Throws:
OGCWebServiceException

destroy

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

getCatalogueService

public CatalogueService getCatalogueService()
Returns:
an instance of the catalogue service intiliazed in the init method.

deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org