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 Summary
Constructors Constructor Description AbstractReceiverHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClientInfo(Socket aSocket)IHTTPIncomingDumpergetEffectiveHttpIncomingDumper()Get the customized incoming dumper, falling back to the global incoming dumper if no specific dumper is set.IHTTPIncomingDumpergetHttpIncomingDumper()Consumer<X509Certificate>getVerificationCertificateConsumer()voidsetHttpIncomingDumper(IHTTPIncomingDumper aHttpIncomingDumper)Set the specific incoming dumper of this receiver.AbstractReceiverHandlersetVerificationCertificateConsumer(Consumer<X509Certificate> aVerificationCertificateConsumer)Set the consumer for the effective certificate upon signature verification.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.helger.as2lib.processor.receiver.net.INetModuleHandler
handle
-
-
-
-
Method Detail
-
getVerificationCertificateConsumer
@Nullable public final Consumer<X509Certificate> getVerificationCertificateConsumer()
- Returns:
- The consumer for the effective certificate upon signature
verification. May be
null. The default isnull. - 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 benull.- 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 benull.- Since:
- v4.4.5
-
-