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);
}
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);
}
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);
}
Aggregations