Class ApplicationDescription.Builder

java.lang.Object
org.jboss.resteasy.core.ApplicationDescription.Builder
Enclosing class:
ApplicationDescription

public static class ApplicationDescription.Builder extends Object
Builds an application description.
Author:
James R. Perkins
  • Method Details

    • of

      public static ApplicationDescription.Builder of(jakarta.ws.rs.core.Application application)
      Creates a new build based on the application.
      Parameters:
      application - the application to create the description for, cannot be null
      Returns:
      the builder
    • type

      public ApplicationDescription.Builder type(Class<? extends jakarta.ws.rs.core.Application> type)
      Defines the type for the application. If set to null, the type will be resolved from the application.
      Parameters:
      type - the applications class
      Returns:
      the builder
    • path

      Defines the path of the application. If set to null, the path is resolved from the ApplicationPath. If the application is not annotated, an attempt to look up the defined mapping is done. If neither can be found, the assumed path is /.
      Parameters:
      path - the path for the application
      Returns:
      the builder
    • build

      public ApplicationDescription build()
      Builds the application description.
      Returns:
      the application description