Class AbstractReceiverHandler

java.lang.Object
com.helger.as2lib.processor.receiver.net.AbstractReceiverHandler
All Implemented Interfaces:
INetModuleHandler
Direct Known Subclasses:
AS2MDNReceiverHandler, AS2ReceiverHandler

public abstract class AbstractReceiverHandler extends Object implements INetModuleHandler
Abstract base class for Message and MDN receive handlers.
Author:
Philip Helger
  • Constructor Details

    • AbstractReceiverHandler

      public AbstractReceiverHandler()
  • Method Details

    • getVerificationCertificateConsumer

      @Nullable public final Consumer<X509Certificate> getVerificationCertificateConsumer()
      Returns:
      The consumer for the effective certificate upon signature verification. May be null. The default is null.
      Since:
      4.4.1
    • setVerificationCertificateConsumer

      @Nonnull public final AbstractReceiverHandler setVerificationCertificateConsumer(@Nullable Consumer<X509Certificate> aVerificationCertificateConsumer)
      Set the consumer for the effective certificate upon signature verification.
      Parameters:
      aVerificationCertificateConsumer - The consumer to be used. May be null.
      Returns:
      this for chaining
      Since:
      4.4.1
    • getHttpIncomingDumper

      @Nullable public final IHTTPIncomingDumper getHttpIncomingDumper()
      Returns:
      The specific incoming dumper of this receiver. May be null.
      Since:
      v4.4.5
    • getEffectiveHttpIncomingDumper

      @Nullable public final IHTTPIncomingDumper getEffectiveHttpIncomingDumper()
      Get the customized incoming dumper, falling back to the global incoming dumper if no specific dumper is set.
      Returns:
      The effective incoming dumper. May be null.
      Since:
      v4.4.5
    • setHttpIncomingDumper

      public final void setHttpIncomingDumper(@Nullable IHTTPIncomingDumper aHttpIncomingDumper)
      Set the specific incoming dumper of this receiver. If this is set, it overrides the global dumper.
      Parameters:
      aHttpIncomingDumper - The specific incoming dumper to be used. May be null.
      Since:
      v4.4.5
    • getClientInfo

      @Nonnull @Nonempty public String getClientInfo(@Nonnull Socket aSocket)