Class ConsumerInPayloadLoggerInterceptor
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.ConsumerInPayloadLoggerInterceptor
- All Implemented Interfaces:
Processor
,Chainable
,Interceptor
Consumer-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
-
Constructor Summary
ConstructorDescriptionConsumerInPayloadLoggerInterceptor
(String fileNamePattern) Instantiation, implicitly using aSpringExpressionResolver
Instantiation, explicitly using a ExpressionResolver instance -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
boolean
void
logPayload
(Exchange exchange, InteractionId interactionId) void
void
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.openehealth.ipf.commons.ihe.core.chain.Chainable
getAfter, getBefore, getId
Methods inherited from interface org.openehealth.ipf.platform.camel.ihe.core.Interceptor
getEndpoint
-
Constructor Details
-
ConsumerInPayloadLoggerInterceptor
Instantiation, implicitly using aSpringExpressionResolver
- Parameters:
fileNamePattern
- file name pattern
-
ConsumerInPayloadLoggerInterceptor
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
-