Class PeppolPMode

java.lang.Object
com.helger.phase4.profile.peppol.PeppolPMode

@Immutable public final class PeppolPMode extends Object
PMode creation code.
Author:
Philip Helger
  • Field Details

    • DEFAULT_AGREEMENT_ID

      public static final String DEFAULT_AGREEMENT_ID
      See Also:
    • DEFAULT_PARTY_TYPE_ID

      public static final String DEFAULT_PARTY_TYPE_ID
      See Also:
    • CERTIFICATE_SUBJECT_CONSTRAINT_PATTERN

      public static final Pattern CERTIFICATE_SUBJECT_CONSTRAINT_PATTERN
  • Method Details

    • generatePModeLegProtocol

      @Nonnull public static com.helger.phase4.model.pmode.leg.PModeLegProtocol generatePModeLegProtocol(@Nullable String sAddress)
      Parameters:
      sAddress - The endpoint address URL. Maybe null.
      Returns:
      The new PModeLegProtocol. Never null.
    • generatePModeLegBusinessInformation

      @Nonnull public static com.helger.phase4.model.pmode.leg.PModeLegBusinessInformation generatePModeLegBusinessInformation()
    • generatePModeLegErrorHandling

      @Nonnull public static com.helger.phase4.model.pmode.leg.PModeLegErrorHandling generatePModeLegErrorHandling()
    • generatePModeLegSecurity

      @Nonnull public static com.helger.phase4.model.pmode.leg.PModeLegSecurity generatePModeLegSecurity()
    • generatePModeLeg

      @Nonnull public static com.helger.phase4.model.pmode.leg.PModeLeg generatePModeLeg(@Nullable String sAddress)
      Parameters:
      sAddress - The endpoint address URL. Maybe null.
      Returns:
      The new PModeLeg. Never null.
      See Also:
    • generatePModeReceptionAwareness

      @Nonnull public static com.helger.phase4.model.pmode.PModeReceptionAwareness generatePModeReceptionAwareness()
    • createParty

      @Nonnull public static com.helger.phase4.model.pmode.PModeParty createParty(@Nonnull @Nonempty String sPartyID, @Nonnull @Nonempty String sRole)
    • createPeppolPMode

      @Nonnull public static com.helger.phase4.model.pmode.PMode createPeppolPMode(@Nonnull @Nonempty String sInitiatorID, @Nonnull @Nonempty String sResponderID, @Nullable String sAddress, @Nonnull com.helger.phase4.model.pmode.IPModeIDProvider aPModeIDProvider, boolean bPersist)
      One-Way Version of the Peppol pmode uses one-way push
      Parameters:
      sInitiatorID - Initiator ID. May neither be null nor empty.
      sResponderID - Responder ID. May neither be null nor empty.
      sAddress - Endpoint address URL. May be null.
      aPModeIDProvider - PMode ID provider. May not be null.
      bPersist - true to persist the PMode in the PModeManager, false to have it only in memory.
      Returns:
      New PMode and never null.