Class RestOperations.Builder

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

public static class RestOperations.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

      Adds a method context to this builder.
      Parameters:
      value - The REST method context to add. Must not be null.
      Returns:
      This object.
    • add

      public RestOperations.Builder add(String httpMethodName, RestOpContext value)
      Adds a method context to this builder.
      Parameters:
      httpMethodName - The HTTP method name. Must not be null.
      value - The REST method context to add. Must not be null.
      Returns:
      This object.
    • build

      Builds the operations.
      Returns:
      A new RestOperations.