Class ProducerInPayloadLoggerInterceptor
- 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.producer.ProducerInPayloadLoggerInterceptor
-
- All Implemented Interfaces:
org.apache.camel.Processor
,Chainable
,Interceptor<MllpEndpoint<?,?,?>>
public class ProducerInPayloadLoggerInterceptor extends InterceptorSupport<MllpEndpoint<?,?,?>>
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 Modifier and Type Class Description static class
ProducerInPayloadLoggerInterceptor.Factory
-
Constructor Summary
Constructors Constructor Description ProducerInPayloadLoggerInterceptor(String fileNamePattern)
Instantiation, implicitly using aSpringExpressionResolver
ProducerInPayloadLoggerInterceptor(ExpressionResolver resolver)
Instantiation, explicitly using a ExpressionResolver instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canProcess()
int
getErrorCountLimit()
ExpressionResolver
getExpressionResolver()
boolean
isEnabled()
void
logPayload(org.apache.camel.Exchange exchange, InteractionId interactionId)
void
process(org.apache.camel.Exchange exchange)
void
resetErrorCount()
void
setEnabled(boolean enabled)
void
setErrorCountLimit(int errorCountLimit)
void
setExpressionResolver(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
-
ProducerInPayloadLoggerInterceptor
public ProducerInPayloadLoggerInterceptor(String fileNamePattern)
Instantiation, implicitly using aSpringExpressionResolver
- Parameters:
fileNamePattern
- file name pattern
-
ProducerInPayloadLoggerInterceptor
public ProducerInPayloadLoggerInterceptor(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, 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 ExpressionResolver getExpressionResolver()
-
setExpressionResolver
public void setExpressionResolver(ExpressionResolver resolver)
-
-