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

public class ProducerOutPayloadLoggerInterceptor extends InterceptorSupport
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
  • Constructor Details

    • ProducerOutPayloadLoggerInterceptor

      public ProducerOutPayloadLoggerInterceptor(String fileNamePattern)
      Instantiation, implicitly using a SpringExpressionResolver
      Parameters:
      fileNamePattern - file name pattern
    • ProducerOutPayloadLoggerInterceptor

      public ProducerOutPayloadLoggerInterceptor(ExpressionResolver resolver)
      Instantiation, explicitly using a ExpressionResolver instance
      Parameters:
      resolver - ExpressionResolver instance
      Since:
      3.1
  • Method Details

    • process

      public void process(Exchange exchange) throws Exception
      Throws:
      Exception
    • logPayload

      public void logPayload(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)