org.hippoecm.hst.jaxrs.cxf
Class PersistableAnnotationInvokerPreprocessor

java.lang.Object
  extended by org.hippoecm.hst.jaxrs.cxf.PersistableAnnotationInvokerPreprocessor
All Implemented Interfaces:
InvokerPreprocessor

public class PersistableAnnotationInvokerPreprocessor
extends Object
implements InvokerPreprocessor

PersistableAnnotationInvokerPreprocessor

This InvokerPreprocessor implementation checks the Persistable annotations of the target operation and sets a persistable JCR session for the current request context if found.

Version:
$Id$

Constructor Summary
PersistableAnnotationInvokerPreprocessor()
           
 
Method Summary
 Object preprocoess(org.apache.cxf.message.Exchange exchange, Object request)
          If this preprocessor is able to decide a return message before continuing with the default JAXRS processing, then this method should return a message object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistableAnnotationInvokerPreprocessor

public PersistableAnnotationInvokerPreprocessor()
Method Detail

preprocoess

public Object preprocoess(org.apache.cxf.message.Exchange exchange,
                          Object request)
Description copied from interface: InvokerPreprocessor
If this preprocessor is able to decide a return message before continuing with the default JAXRS processing, then this method should return a message object. If this method returns null, then the next InvokerPreprocessor will be called or the default JAXRSInvoker will continue working.

Specified by:
preprocoess in interface InvokerPreprocessor
Returns:
null if it should continue with the next steps; non-null message object if processing should be stopped.


Copyright © 2008-2012 Hippo. All Rights Reserved.