Class ResponseProcessorList.Builder

java.lang.Object
org.apache.juneau.rest.server.processor.ResponseProcessorList.Builder
Enclosing class:
ResponseProcessorList

public static class ResponseProcessorList.Builder extends Object
Builder class.
  • Constructor Details

    • Builder

      protected Builder(BeanStore beanStore)
      Constructor.
      Parameters:
      beanStore - The bean store to use for creating beans.
  • Method Details

    • beanStore

      public BeanStore beanStore()
      Returns the bean store used by this builder.
      Returns:
      The bean store used by this builder.
    • add

      public ResponseProcessorList.Builder add(Class<?>... values)
      Appends the specified rest response processor classes to the list.

      Same-class deduplication is applied: if an entry of the same Class already exists in the list, the duplicate is silently skipped.

      Parameters:
      values - The values to add.
      Must not be null.
      Returns:
      This object.
      Throws:
      IllegalArgumentException - if any class does not extend from ResponseProcessor.
    • add

      Appends the specified rest response processor objects to the list.

      Same-class deduplication is applied: if an entry of the same Class already exists in the list, the duplicate is silently skipped.

      Parameters:
      values - The values to add.
      Must not be null.
      Returns:
      This object.
    • build

      Builds the list.
      Returns:
      A new ResponseProcessorList.