Class ProducerOutPayloadLoggerInterceptor
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.ProducerOutPayloadLoggerInterceptor
- All Implemented Interfaces:
Processor
,Chainable
,Interceptor
Producer-side MLLP interceptor which stores outgoing payload
into files with user-defined name patterns.
Members of MllpPayloadLoggerBase
are mixed into this class.
- Author:
- Dmytro Rud
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionProducerOutPayloadLoggerInterceptor
(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
-
ProducerOutPayloadLoggerInterceptor
Instantiation, implicitly using aSpringExpressionResolver
- Parameters:
fileNamePattern
- file name pattern
-
ProducerOutPayloadLoggerInterceptor
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
-