Class ProducerInPayloadLoggerInterceptor

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.ProducerInPayloadLoggerInterceptor
All Implemented Interfaces:
Processor, Chainable, Interceptor

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

    • ProducerInPayloadLoggerInterceptor

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

      public ProducerInPayloadLoggerInterceptor(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)