Class ValidationServiceChannelInterceptor
- java.lang.Object
-
- com.anaptecs.jeaf.core.servicechannel.validation.ValidationServiceChannelInterceptor
-
- All Implemented Interfaces:
com.anaptecs.jeaf.core.spi.ServiceChannelInterceptor
public class ValidationServiceChannelInterceptor extends java.lang.Object implements com.anaptecs.jeaf.core.spi.ServiceChannelInterceptor
Class implements a service channel interceptor that is used to ensure that Java Validation constraints are fulfilled on requests and responses.- Version:
- JEAF Release 1.3
- Author:
- JEAF Development Team
-
-
Constructor Summary
Constructors Constructor Description ValidationServiceChannelInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
postServiceCall(com.anaptecs.jeaf.core.spi.ServiceCall pServiceCall, com.anaptecs.jeaf.xfun.api.errorhandling.ApplicationException pApplicationException)
Through this method an interceptor will be notified, that the service described by the passed ServiceCall object was called and an exception occurred.void
postServiceCall(com.anaptecs.jeaf.core.spi.ServiceCall pServiceCall, com.anaptecs.jeaf.xfun.api.errorhandling.SystemException pSystemException)
Through this method an interceptor will be notified, that the service described by the passed ServiceCall object was called and an exception occurred.void
postServiceCall(com.anaptecs.jeaf.core.spi.ServiceCall pServiceCall, java.lang.Error pError)
Through this method an interceptor will be notified, that the service described by the passed ServiceCall object was called and an error occurred.void
postServiceCall(com.anaptecs.jeaf.core.spi.ServiceCall pServiceCall, java.lang.Object pResult)
Through this method an interceptor will be notified, that the service described by the passed ServiceCall object was called successfully.void
postServiceCall(com.anaptecs.jeaf.core.spi.ServiceCall pServiceCall, java.lang.RuntimeException pRuntimeException)
Through this method an interceptor will be notified, that the service described by the passed ServiceCall object was called and an exception occurred.void
preServiceCall(com.anaptecs.jeaf.core.spi.ServiceCall pServiceCall)
Through this method an interceptor will be notified, that the service described by the passed ServiceCall object will be called.
-
-
-
Method Detail
-
preServiceCall
public void preServiceCall(com.anaptecs.jeaf.core.spi.ServiceCall pServiceCall)
Through this method an interceptor will be notified, that the service described by the passed ServiceCall object will be called. This method will be invoked before the actual service call. This method will validate the constraints on the request parameters for the service call.- Specified by:
preServiceCall
in interfacecom.anaptecs.jeaf.core.spi.ServiceChannelInterceptor
- Parameters:
pServiceCall
- Object describing the service call. The parameter is never null.
-
postServiceCall
public void postServiceCall(com.anaptecs.jeaf.core.spi.ServiceCall pServiceCall, java.lang.Object pResult)
Through this method an interceptor will be notified, that the service described by the passed ServiceCall object was called successfully. This method will be invoked after the actual service call completed without any exception. This method will validate the constraints on the response of the service call.- Specified by:
postServiceCall
in interfacecom.anaptecs.jeaf.core.spi.ServiceChannelInterceptor
- Parameters:
pServiceCall
- Object describing the service call. The parameter is never null.pResult
- Result of the service call. Parameter may be null in case that method does not have a return value or null is returned by the service.
-
postServiceCall
public void postServiceCall(com.anaptecs.jeaf.core.spi.ServiceCall pServiceCall, java.lang.RuntimeException pRuntimeException)
Through this method an interceptor will be notified, that the service described by the passed ServiceCall object was called and an exception occurred. This method will be invoked after the actual service call completed with a runtime exception.- Specified by:
postServiceCall
in interfacecom.anaptecs.jeaf.core.spi.ServiceChannelInterceptor
- Parameters:
pServiceCall
- Object describing the service call. The parameter is never null.pRuntimeException
- Runtime exception that occurred during the service call. The parameter is never null.
-
postServiceCall
public void postServiceCall(com.anaptecs.jeaf.core.spi.ServiceCall pServiceCall, java.lang.Error pError)
Through this method an interceptor will be notified, that the service described by the passed ServiceCall object was called and an error occurred. This method will be invoked after the actual service call completed with an error.- Specified by:
postServiceCall
in interfacecom.anaptecs.jeaf.core.spi.ServiceChannelInterceptor
- Parameters:
pServiceCall
- Object describing the service call. The parameter is never null.pError
- Error object that occurred during the service call. The parameter is never null.
-
postServiceCall
public void postServiceCall(com.anaptecs.jeaf.core.spi.ServiceCall pServiceCall, com.anaptecs.jeaf.xfun.api.errorhandling.ApplicationException pApplicationException)
Through this method an interceptor will be notified, that the service described by the passed ServiceCall object was called and an exception occurred. This method will be invoked after the actual service call completed with an application exception.- Specified by:
postServiceCall
in interfacecom.anaptecs.jeaf.core.spi.ServiceChannelInterceptor
- Parameters:
pServiceCall
- Object describing the service call. The parameter is never null.pApplicationException
- Application exception that occurred during the service call. The parameter is never null.
-
postServiceCall
public void postServiceCall(com.anaptecs.jeaf.core.spi.ServiceCall pServiceCall, com.anaptecs.jeaf.xfun.api.errorhandling.SystemException pSystemException)
Through this method an interceptor will be notified, that the service described by the passed ServiceCall object was called and an exception occurred. This method will be invoked after the actual service call completed with a system exception.- Specified by:
postServiceCall
in interfacecom.anaptecs.jeaf.core.spi.ServiceChannelInterceptor
- Parameters:
pServiceCall
- Object describing the service call. The parameter is never null.pSystemException
- System exception that occurred during the service call. The parameter is never null
-
-