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

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

    • ConsumerInPayloadLoggerInterceptor

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

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