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:
org.apache.camel.Processor,org.openehealth.ipf.commons.ihe.core.chain.Chainable,org.openehealth.ipf.platform.camel.ihe.core.Interceptor
public class ProducerInPayloadLoggerInterceptor extends org.openehealth.ipf.platform.camel.ihe.core.InterceptorSupportProducer-side MLLP interceptor which stores incoming payload into files with user-defined name patterns.Members of
MllpPayloadLoggerBaseare mixed into this class.- Author:
- Dmytro Rud
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProducerInPayloadLoggerInterceptor.Factory
-
Constructor Summary
Constructors Constructor Description ProducerInPayloadLoggerInterceptor(String fileNamePattern)Instantiation, implicitly using aSpringExpressionResolverProducerInPayloadLoggerInterceptor(org.openehealth.ipf.commons.ihe.core.payload.ExpressionResolver resolver)Instantiation, explicitly using a ExpressionResolver instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanProcess()intgetErrorCountLimit()org.openehealth.ipf.commons.ihe.core.payload.ExpressionResolvergetExpressionResolver()booleanisEnabled()voidlogPayload(org.apache.camel.Exchange exchange, org.openehealth.ipf.commons.ihe.core.InteractionId interactionId)voidprocess(org.apache.camel.Exchange exchange)voidresetErrorCount()voidsetEnabled(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, setWrappedProcessor
-
Methods inherited from class org.openehealth.ipf.commons.ihe.core.chain.ChainableImpl
addAfter, addBefore, getAfter, getBefore, getId, setId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
ProducerInPayloadLoggerInterceptor
public ProducerInPayloadLoggerInterceptor(String fileNamePattern)
Instantiation, implicitly using aSpringExpressionResolver- Parameters:
fileNamePattern- file name pattern
-
ProducerInPayloadLoggerInterceptor
public ProducerInPayloadLoggerInterceptor(org.openehealth.ipf.commons.ihe.core.payload.ExpressionResolver resolver)
Instantiation, explicitly using a ExpressionResolver instance- Parameters:
resolver- ExpressionResolver instance- Since:
- 3.1
-
-
Method Detail
-
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)
-
-