org.springframework.yarn.batch.repository
Interface JobRepositoryRemoteServiceInterceptor


public interface JobRepositoryRemoteServiceInterceptor

Interface for interceptors that are able to view and/or modify the messages when communication is handled with a service operating with BaseObject and BaseResponseObject.

Author:
Janne Valkealahti

Method Summary
 org.springframework.yarn.integration.ip.mind.binding.BaseResponseObject handleRequest(org.springframework.yarn.integration.ip.mind.binding.BaseObject baseObject)
          Handles request if at least one interceptor returned null from a preRequest(BaseObject) method.
 org.springframework.yarn.integration.ip.mind.binding.BaseResponseObject postRequest(org.springframework.yarn.integration.ip.mind.binding.BaseResponseObject baseResponseObject)
          Invoked after request is made using BaseObject and before BaseResponseObject is sent to further processing.
 org.springframework.yarn.integration.ip.mind.binding.BaseObject preRequest(org.springframework.yarn.integration.ip.mind.binding.BaseObject baseObject)
          Invoked after request is made using BaseObject.
 

Method Detail

preRequest

org.springframework.yarn.integration.ip.mind.binding.BaseObject preRequest(org.springframework.yarn.integration.ip.mind.binding.BaseObject baseObject)
Invoked after request is made using BaseObject. This allows modification of a request. If this method returns null, the interceptor chain will break indicating that one of the interceptor should handle the request in handleRequest(BaseObject) method.

Parameters:
baseObject - the request base object
Returns:
the base object

handleRequest

org.springframework.yarn.integration.ip.mind.binding.BaseResponseObject handleRequest(org.springframework.yarn.integration.ip.mind.binding.BaseObject baseObject)
Handles request if at least one interceptor returned null from a preRequest(BaseObject) method.

Parameters:
baseObject - the base object
Returns:
the base response object

postRequest

org.springframework.yarn.integration.ip.mind.binding.BaseResponseObject postRequest(org.springframework.yarn.integration.ip.mind.binding.BaseResponseObject baseResponseObject)
Invoked after request is made using BaseObject and before BaseResponseObject is sent to further processing. This allows modification of a response.

Parameters:
baseResponseObject - the response object
Returns:
the base response object