Package org.apache.juneau.rest.server
Class RestOperations.Builder
java.lang.Object
org.apache.juneau.rest.server.RestOperations.Builder
- Enclosing class:
- RestOperations
Builder class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(String httpMethodName, RestOpContext value) Adds a method context to this builder.add(RestOpContext value) Adds a method context to this builder.Returns the bean store used by this builder.build()Builds the operations.
-
Constructor Details
-
Builder
Constructor.- Parameters:
beanStore- The bean store to use for creating beans.
-
-
Method Details
-
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 benull .- Returns:
- This object.
-
add
Adds a method context to this builder.- Parameters:
httpMethodName- The HTTP method name. Must not benull .value- The REST method context to add. Must not benull .- Returns:
- This object.
-
build
Builds the operations.- Returns:
- A new
RestOperations.
-