Search in sources :

Example 1 with AS4Profile

use of com.helger.phase4.profile.AS4Profile in project phase4 by phax.

the class AS4ENTSOGProfileRegistarSPI method registerAS4Profile.

public void registerAS4Profile(@Nonnull final IAS4ProfileRegistrar aRegistrar) {
    if (LOGGER.isDebugEnabled())
        LOGGER.debug("Registering phase4 profile '" + AS4_PROFILE_ID + "'");
    final Supplier<? extends IAS4ProfileValidator> aProfileValidatorProvider = ENTSOGCompatibilityValidator::new;
    final IAS4ProfilePModeProvider aDefaultPModeProvider = (i, r, a) -> ENTSOGPMode.createENTSOGPMode(i, r, a, PMODE_ID_PROVIDER, true);
    final AS4Profile aProfile = new AS4Profile(AS4_PROFILE_ID, AS4_PROFILE_NAME, aProfileValidatorProvider, aDefaultPModeProvider, PMODE_ID_PROVIDER, false);
    aRegistrar.registerProfile(aProfile);
}
Also used : Logger(org.slf4j.Logger) AS4Profile(com.helger.phase4.profile.AS4Profile) IAS4ProfileRegistrar(com.helger.phase4.profile.IAS4ProfileRegistrar) LoggerFactory(org.slf4j.LoggerFactory) IAS4ProfilePModeProvider(com.helger.phase4.profile.IAS4ProfilePModeProvider) Supplier(java.util.function.Supplier) Nonnull(javax.annotation.Nonnull) IsSPIImplementation(com.helger.commons.annotation.IsSPIImplementation) IAS4ProfileValidator(com.helger.phase4.profile.IAS4ProfileValidator) IPModeIDProvider(com.helger.phase4.model.pmode.IPModeIDProvider) IAS4ProfileRegistrarSPI(com.helger.phase4.profile.IAS4ProfileRegistrarSPI) IAS4ProfilePModeProvider(com.helger.phase4.profile.IAS4ProfilePModeProvider) AS4Profile(com.helger.phase4.profile.AS4Profile)

Example 2 with AS4Profile

use of com.helger.phase4.profile.AS4Profile in project phase4 by phax.

the class AS4PeppolProfileRegistarSPI method registerAS4Profile.

public void registerAS4Profile(@Nonnull final IAS4ProfileRegistrar aRegistrar) {
    if (LOGGER.isDebugEnabled())
        LOGGER.debug("Registering phase4 profile '" + AS4_PROFILE_ID + "'");
    final Supplier<? extends IAS4ProfileValidator> aProfileValidatorProvider = PeppolCompatibilityValidator::new;
    final IAS4ProfilePModeProvider aDefaultPModeProvider = (i, r, a) -> PeppolPMode.createPeppolPMode(i, r, a, PMODE_ID_PROVIDER, true);
    final AS4Profile aProfile = new AS4Profile(AS4_PROFILE_ID, AS4_PROFILE_NAME, aProfileValidatorProvider, aDefaultPModeProvider, PMODE_ID_PROVIDER, false);
    aRegistrar.registerProfile(aProfile);
    aRegistrar.setDefaultProfile(aProfile);
}
Also used : Logger(org.slf4j.Logger) AS4Profile(com.helger.phase4.profile.AS4Profile) IAS4ProfileRegistrar(com.helger.phase4.profile.IAS4ProfileRegistrar) LoggerFactory(org.slf4j.LoggerFactory) IAS4ProfilePModeProvider(com.helger.phase4.profile.IAS4ProfilePModeProvider) Supplier(java.util.function.Supplier) Nonnull(javax.annotation.Nonnull) IsSPIImplementation(com.helger.commons.annotation.IsSPIImplementation) IAS4ProfileValidator(com.helger.phase4.profile.IAS4ProfileValidator) IPModeIDProvider(com.helger.phase4.model.pmode.IPModeIDProvider) IAS4ProfileRegistrarSPI(com.helger.phase4.profile.IAS4ProfileRegistrarSPI) IAS4ProfilePModeProvider(com.helger.phase4.profile.IAS4ProfilePModeProvider) AS4Profile(com.helger.phase4.profile.AS4Profile)

Example 3 with AS4Profile

use of com.helger.phase4.profile.AS4Profile in project phase4 by phax.

the class AS4CEFProfileRegistarSPI method registerAS4Profile.

public void registerAS4Profile(@Nonnull final IAS4ProfileRegistrar aRegistrar) {
    if (LOGGER.isDebugEnabled())
        LOGGER.debug("Registering phase4 profile '" + AS4_PROFILE_ID + "'");
    final Supplier<? extends IAS4ProfileValidator> aProfileValidatorProvider = CEFCompatibilityValidator::new;
    final IAS4ProfilePModeProvider aDefaultPModeProvider = (i, r, a) -> CEFPMode.createCEFPMode(i, r, a, PMODE_ID_PROVIDER, true);
    final AS4Profile aProfile = new AS4Profile(AS4_PROFILE_ID, AS4_PROFILE_NAME, aProfileValidatorProvider, aDefaultPModeProvider, PMODE_ID_PROVIDER, false);
    aRegistrar.registerProfile(aProfile);
    aRegistrar.setDefaultProfile(aProfile);
}
Also used : Logger(org.slf4j.Logger) AS4Profile(com.helger.phase4.profile.AS4Profile) IAS4ProfileRegistrar(com.helger.phase4.profile.IAS4ProfileRegistrar) LoggerFactory(org.slf4j.LoggerFactory) IAS4ProfilePModeProvider(com.helger.phase4.profile.IAS4ProfilePModeProvider) Supplier(java.util.function.Supplier) Nonnull(javax.annotation.Nonnull) IsSPIImplementation(com.helger.commons.annotation.IsSPIImplementation) IAS4ProfileValidator(com.helger.phase4.profile.IAS4ProfileValidator) IPModeIDProvider(com.helger.phase4.model.pmode.IPModeIDProvider) IAS4ProfileRegistrarSPI(com.helger.phase4.profile.IAS4ProfileRegistrarSPI) IAS4ProfilePModeProvider(com.helger.phase4.profile.IAS4ProfilePModeProvider) AS4Profile(com.helger.phase4.profile.AS4Profile)

Aggregations

IsSPIImplementation (com.helger.commons.annotation.IsSPIImplementation)3 IPModeIDProvider (com.helger.phase4.model.pmode.IPModeIDProvider)3 AS4Profile (com.helger.phase4.profile.AS4Profile)3 IAS4ProfilePModeProvider (com.helger.phase4.profile.IAS4ProfilePModeProvider)3 IAS4ProfileRegistrar (com.helger.phase4.profile.IAS4ProfileRegistrar)3 IAS4ProfileRegistrarSPI (com.helger.phase4.profile.IAS4ProfileRegistrarSPI)3 IAS4ProfileValidator (com.helger.phase4.profile.IAS4ProfileValidator)3 Supplier (java.util.function.Supplier)3 Nonnull (javax.annotation.Nonnull)3 Logger (org.slf4j.Logger)3 LoggerFactory (org.slf4j.LoggerFactory)3