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:
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
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Instantiation, implicitly using a SpringExpressionResolver
    ProducerInPayloadLoggerInterceptor(org.openehealth.ipf.commons.ihe.core.payload.ExpressionResolver resolver)
    Instantiation, explicitly using a ExpressionResolver instance
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
    org.openehealth.ipf.commons.ihe.core.payload.ExpressionResolver
     
    boolean
     
    void
    logPayload(org.apache.camel.Exchange exchange, org.openehealth.ipf.commons.ihe.core.InteractionId interactionId)
     
    void
    process(org.apache.camel.Exchange exchange)
     
    void
     
    void
    setEnabled(boolean enabled)
     
    void
    setErrorCountLimit(int errorCountLimit)
     
    void
    setExpressionResolver(org.openehealth.ipf.commons.ihe.core.payload.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

    • 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 Details

    • 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)