Class ConsumerInPayloadLoggerInterceptor
- java.lang.Object
-
- org.openehealth.ipf.commons.ihe.core.chain.ChainableImpl
-
- org.openehealth.ipf.platform.camel.ihe.core.InterceptorSupport<MllpEndpoint<?,?,?>>
-
- org.openehealth.ipf.platform.camel.ihe.mllp.core.intercept.consumer.ConsumerInPayloadLoggerInterceptor
-
- All Implemented Interfaces:
org.apache.camel.Processor,org.openehealth.ipf.commons.ihe.core.chain.Chainable,org.openehealth.ipf.platform.camel.ihe.core.Interceptor<MllpEndpoint<?,?,?>>
public class ConsumerInPayloadLoggerInterceptor extends org.openehealth.ipf.platform.camel.ihe.core.InterceptorSupport<MllpEndpoint<?,?,?>>
Consumer-side MLLP interceptor which stores incoming payload into files with user-defined name patterns. Members ofMllpPayloadLoggerBaseare mixed into this class.- Author:
- Dmytro Rud
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConsumerInPayloadLoggerInterceptor.Factory
-
Constructor Summary
Constructors Constructor Description ConsumerInPayloadLoggerInterceptor(String fileNamePattern)Instantiation, implicitly using aSpringExpressionResolverConsumerInPayloadLoggerInterceptor(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
-
-
-
-
Constructor Detail
-
ConsumerInPayloadLoggerInterceptor
public ConsumerInPayloadLoggerInterceptor(String fileNamePattern)
Instantiation, implicitly using aSpringExpressionResolver- Parameters:
fileNamePattern- file name pattern
-
ConsumerInPayloadLoggerInterceptor
public ConsumerInPayloadLoggerInterceptor(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)
-
-