Class ProducerInPayloadLoggerInterceptor

  • All Implemented Interfaces:
    org.apache.camel.Processor, org.openehealth.ipf.commons.ihe.core.chain.Chainable, org.openehealth.ipf.platform.camel.ihe.core.Interceptor

    public class ProducerInPayloadLoggerInterceptor
    extends org.openehealth.ipf.platform.camel.ihe.core.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 Detail

      • ProducerInPayloadLoggerInterceptor

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

        public ProducerInPayloadLoggerInterceptor​(org.openehealth.ipf.commons.ihe.core.payload.ExpressionResolver resolver)
        Instantiation, explicitly using a ExpressionResolver instance
        Parameters:
        resolver - ExpressionResolver instance
        Since:
        3.1
    • Method Detail

      • process

        public void process​(org.apache.camel.Exchange exchange)
                     throws Exception
        Throws:
        Exception
      • logPayload

        public void logPayload​(org.apache.camel.Exchange exchange,
                               org.openehealth.ipf.commons.ihe.core.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 org.openehealth.ipf.commons.ihe.core.payload.ExpressionResolver getExpressionResolver()
      • setExpressionResolver

        public void setExpressionResolver​(org.openehealth.ipf.commons.ihe.core.payload.ExpressionResolver resolver)