Class InterceptorSupport

java.lang.Object
org.openehealth.ipf.commons.ihe.core.chain.ChainableImpl
org.openehealth.ipf.platform.camel.ihe.core.InterceptorSupport
All Implemented Interfaces:
Processor, Chainable, Interceptor
Direct Known Subclasses:
ConsumerAdaptingInterceptor, ConsumerAuditInterceptor, ConsumerAuthenticationFailureInterceptor, ConsumerDispatchingInterceptor, ConsumerInPayloadLoggerInterceptor, ConsumerInteractiveResponseSenderInterceptor, ConsumerMarshalInterceptor, ConsumerOutPayloadLoggerInterceptor, ConsumerRequestAcceptanceInterceptor, ConsumerRequestDefragmenterInterceptor, ConsumerRequestInteractionSetterInterceptor, ConsumerResponseAcceptanceInterceptor, ConsumerSegmentEchoingInterceptor, ConsumerStringProcessingInterceptor, ConsumerTracingInterceptor, MllpAuditInterceptorSupport, ProducerAdaptingInterceptor, ProducerAuditInterceptor, ProducerInPayloadLoggerInterceptor, ProducerMarshalAndInteractiveResponseReceiverInterceptor, ProducerMarshalInterceptor, ProducerOutPayloadLoggerInterceptor, ProducerRequestAcceptanceInterceptor, ProducerRequestFragmenterInterceptor, ProducerResponseAcceptanceInterceptor, ProducerStringProcessingInterceptor, ProducerTracingInterceptor

public abstract class InterceptorSupport extends ChainableImpl implements Interceptor
Convenience implementation of Interceptor for inheritance
Since:
3.1
  • Constructor Details

    • InterceptorSupport

      public InterceptorSupport()
  • Method Details

    • getWrappedProcessor

      public Processor getWrappedProcessor()
      Specified by:
      getWrappedProcessor in interface Interceptor
      Returns:
      the processor instance wrapped by this interceptor.
    • setWrappedProcessor

      public void setWrappedProcessor(Processor wrappedProcessor)
      Description copied from interface: Interceptor
      Lets this interceptor wrap the given processor.
      Specified by:
      setWrappedProcessor in interface Interceptor
      Parameters:
      wrappedProcessor - processor instance to be wrapped.
    • getEndpoint

      public Endpoint getEndpoint()
      Specified by:
      getEndpoint in interface Interceptor
      Returns:
      the endpoint that uses this interceptor
    • setEndpoint

      public void setEndpoint(Endpoint endpoint)
      Description copied from interface: Interceptor
      Sets the endpoint that uses this interceptor
      Specified by:
      setEndpoint in interface Interceptor
      Parameters:
      endpoint - the endpoint that uses this interceptor
    • characterSet

      protected static String characterSet(Exchange exchange)
      Returns character set configured in the given Camel exchange, or, when none found, the system default character set.
      Parameters:
      exchange - Camel exchange.
      Returns:
      character set name.