Skip to content

Profiles

Philip Helger edited this page Mar 21, 2022 · 10 revisions

To handle common parts of AS4 PModes this project uses so called "profiles". Currently the following profiles are provided out of the box:

Supported Profiles out of the box

Using predefined profiles

To use one of these profiles, the respective Maven artifacts must be added as dependencies to your project as in

    <dependency>
      <groupId>com.helger</groupId>
      <artifactId>phase4-profile-cef</artifactId>
      <version>x.y.z</version>
    </dependency>

or

    <dependency>
      <groupId>com.helger</groupId>
      <artifactId>phase4-profile-peppol</artifactId>
      <version>x.y.z</version>
    </dependency>

or

    <dependency>
      <groupId>com.helger</groupId>
      <artifactId>phase4-profile-entsog</artifactId>
      <version>x.y.z</version>
    </dependency>

Developing custom profiles

If you want to create your own profile, you need to provide an SPI implementation of the phase4-lib interface com.helger.phase4.profile.IAS4ProfileRegistrarSPI. See the above mentioned submodules as examples on how to do that.