org.hippoecm.hst.jaxrs.cxf
Interface InvokerPreprocessor

All Known Implementing Classes:
PersistableAnnotationInvokerPreprocessor, SecurityAnnotationInvokerPreprocessor

public interface InvokerPreprocessor

InvokerPreprocessor

Components implementing this interface can be plugged into AroundProcessableJAXRSInvoker, which preprocess Exchange and request object before the default JAXRSInvoker works.

For example, you may check Exchange information such as operation info in order to check some pre-conditions such as security annotation and return a custom HTTP error message instead of continuing with the default JAXRSInvoker.

Version:
$Id$
See Also:
AroundProcessableJAXRSInvoker}

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.
 

Method Detail

preprocoess

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. If this method returns null, then the next InvokerPreprocessor will be called or the default JAXRSInvoker will continue working.

Parameters:
exchange -
request -
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.