Class ProducerInPayloadLoggerInterceptor
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.producer.ProducerInPayloadLoggerInterceptor
- All Implemented Interfaces:
Processor,Chainable,Interceptor
Producer-side MLLP interceptor which stores incoming 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
ConstructorsConstructorDescriptionProducerInPayloadLoggerInterceptor(String fileNamePattern) Instantiation, implicitly using aSpringExpressionResolverInstantiation, explicitly using a ExpressionResolver instance -
Method Summary
Modifier and TypeMethodDescriptionbooleanintbooleanvoidlogPayload(Exchange exchange, InteractionId interactionId) voidvoidvoidsetEnabled(boolean enabled) voidsetErrorCountLimit(int errorCountLimit) voidsetExpressionResolver(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
-
ProducerInPayloadLoggerInterceptor
Instantiation, implicitly using aSpringExpressionResolver- Parameters:
fileNamePattern- file name pattern
-
ProducerInPayloadLoggerInterceptor
Instantiation, explicitly using a ExpressionResolver instance- Parameters:
resolver- ExpressionResolver instance- Since:
- 3.1
-
-
Method Details
-
process
- Throws:
Exception
-
logPayload
-
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
-
setExpressionResolver
-