Class ConsumerOutPayloadLoggerInterceptor
java.lang.Object
org.openehealth.ipf.commons.ihe.core.chain.ChainableImpl
org.openehealth.ipf.platform.camel.ihe.core.InterceptorSupport
org.openehealth.ipf.platform.camel.ihe.mllp.core.intercept.consumer.ConsumerOutPayloadLoggerInterceptor
- All Implemented Interfaces:
org.apache.camel.Processor,org.openehealth.ipf.commons.ihe.core.chain.Chainable,org.openehealth.ipf.platform.camel.ihe.core.Interceptor
public class ConsumerOutPayloadLoggerInterceptor
extends org.openehealth.ipf.platform.camel.ihe.core.InterceptorSupport
Consumer-side MLLP interceptor which stores outgoing payload
into files with user-defined name patterns.
Members of MllpPayloadLoggerBase are mixed into this class.
- Author:
- Dmytro Rud
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionConsumerOutPayloadLoggerInterceptor(String fileNamePattern) Instantiation, implicitly using aSpringExpressionResolverConsumerOutPayloadLoggerInterceptor(org.openehealth.ipf.commons.ihe.core.payload.ExpressionResolver resolver) Instantiation, explicitly using a ExpressionResolver instance -
Method Summary
Modifier and TypeMethodDescriptionbooleanintorg.openehealth.ipf.commons.ihe.core.payload.ExpressionResolverbooleanvoidlogPayload(org.apache.camel.Exchange exchange, org.openehealth.ipf.commons.ihe.core.InteractionId interactionId) voidprocess(org.apache.camel.Exchange exchange) voidvoidsetEnabled(boolean enabled) voidsetErrorCountLimit(int errorCountLimit) voidsetExpressionResolver(org.openehealth.ipf.commons.ihe.core.payload.ExpressionResolver resolver) Methods inherited from class org.openehealth.ipf.platform.camel.ihe.core.InterceptorSupport
characterSet, getEndpoint, getWrappedProcessor, setEndpoint, setWrappedProcessorMethods inherited from class org.openehealth.ipf.commons.ihe.core.chain.ChainableImpl
addAfter, addBefore, getAfter, getBefore, getId, setIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openehealth.ipf.commons.ihe.core.chain.Chainable
getAfter, getBefore, getIdMethods inherited from interface org.openehealth.ipf.platform.camel.ihe.core.Interceptor
getEndpoint
-
Constructor Details
-
ConsumerOutPayloadLoggerInterceptor
Instantiation, implicitly using aSpringExpressionResolver- Parameters:
fileNamePattern- file name pattern
-
ConsumerOutPayloadLoggerInterceptor
public ConsumerOutPayloadLoggerInterceptor(org.openehealth.ipf.commons.ihe.core.payload.ExpressionResolver resolver) Instantiation, explicitly using a ExpressionResolver instance- Parameters:
resolver- ExpressionResolver instance- Since:
- 3.1
-
-
Method Details
-
process
- Throws:
Exception
-
logPayload
public void logPayload(org.apache.camel.Exchange exchange, org.openehealth.ipf.commons.ihe.core.InteractionId interactionId) -
canProcess
public boolean canProcess() -
resetErrorCount
public void resetErrorCount() -
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getErrorCountLimit
public int getErrorCountLimit() -
setErrorCountLimit
public void setErrorCountLimit(int errorCountLimit) -
getExpressionResolver
public org.openehealth.ipf.commons.ihe.core.payload.ExpressionResolver getExpressionResolver() -
setExpressionResolver
public void setExpressionResolver(org.openehealth.ipf.commons.ihe.core.payload.ExpressionResolver resolver)
-