Package org.apache.juneau.rest
Class RestOperations.Builder
- Enclosing class:
RestOperations
Builder class.
-
Constructor Summary
-
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.protected RestOperations
Creates the bean when the bean type isnull or is the default value.Overrides the bean returned by theBeanBuilder.build()
method.Overrides the bean type produced by theBeanBuilder.build()
method.
-
Constructor Details
-
Builder
Constructor.- Parameters:
beanStore
- The bean store to use for creating beans.
-
-
Method Details
-
buildDefault
Description copied from class:BeanBuilder
Creates the bean when the bean type isnull or is the default value.- Overrides:
buildDefault
in classBeanBuilder<RestOperations>
- Returns:
- A new bean.
-
add
Adds a method context to this builder.- Parameters:
value
- The REST method context to add.- Returns:
- Adds a method context to this builder.
-
add
Adds a method context to this builder.- Parameters:
httpMethodName
- The HTTP method name.value
- The REST method context to add.- Returns:
- Adds a method context to this builder.
-
impl
Description copied from class:BeanBuilder
Overrides the bean returned by theBeanBuilder.build()
method.Use this method if you want this builder to return an already-instantiated bean.
- Overrides:
impl
in classBeanBuilder<RestOperations>
- Parameters:
value
- The setting value.- Returns:
- This object.
-
type
Description copied from class:BeanBuilder
Overrides the bean type produced by theBeanBuilder.build()
method.Use this method if you want to instantiated a bean subclass.
- Overrides:
type
in classBeanBuilder<RestOperations>
- Parameters:
value
- The setting value.- Returns:
- This object.
-