Class AS4EndpointDetailProviderConstant
java.lang.Object
com.helger.phase4.dynamicdiscovery.AS4EndpointDetailProviderConstant
- All Implemented Interfaces:
IAS4EndpointDetailProvider
Implementation of
IAS4EndpointDetailProvider that uses constant
values.- Since:
- 0.10.6
- Author:
- Philip Helger
-
Constructor Summary
ConstructorsConstructorDescriptionAS4EndpointDetailProviderConstant(X509Certificate aReceiverCert, String sDestURL) -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(com.helger.peppolid.IDocumentTypeIdentifier aDocTypeID, com.helger.peppolid.IProcessIdentifier aProcID, com.helger.peppolid.IParticipantIdentifier aReceiverID) The initialization method is always called, before the details are queried.
-
Constructor Details
-
AS4EndpointDetailProviderConstant
public AS4EndpointDetailProviderConstant(@Nullable X509Certificate aReceiverCert, @Nonnull @Nonempty String sDestURL)
-
-
Method Details
-
init
public void init(@Nonnull com.helger.peppolid.IDocumentTypeIdentifier aDocTypeID, @Nonnull com.helger.peppolid.IProcessIdentifier aProcID, @Nonnull com.helger.peppolid.IParticipantIdentifier aReceiverID) Description copied from interface:IAS4EndpointDetailProviderThe initialization method is always called, before the details are queried. This method may be called multiple times, so you may cache internally.- Specified by:
initin interfaceIAS4EndpointDetailProvider- Parameters:
aDocTypeID- document type ID. May not benull.aProcID- Process ID. May not benull.aReceiverID- Participant ID of the receiver. May not benull.
-
getReceiverAPCertificate
- Specified by:
getReceiverAPCertificatein interfaceIAS4EndpointDetailProvider- Returns:
- The X509 AP Certificate of the receiver. May be
nullif it could not be acquired.
-
getReceiverAPEndpointURL
- Specified by:
getReceiverAPEndpointURLin interfaceIAS4EndpointDetailProvider- Returns:
- The AS4 endpoint URL of the receiver. May neither be
nullnor empty.
-