Package org.apache.juneau.rest
Class RestChildren
java.lang.Object
org.apache.juneau.rest.RestChildren
- Direct Known Subclasses:
RestChildren.Void
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder class.final class
Represents a null value for theRest.restChildrenClass()
annotation. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasMap()
Returns the children in this object as a map.static RestChildren.Builder
Static creator.void
destroy()
Called during servlet destruction on all children to invoke allRestDestroy
andServlet.destroy()
methods.findMatch
(RestSession.Builder builder) Looks through the registered children of this object and returns the best match.void
postInit()
Called during servlet initialization on all children to invoke allRestPostInit
child-last methods.void
Called during servlet initialization on all children to invoke allRestPostInit
child-first methods.
-
Constructor Details
-
RestChildren
Constructor.- Parameters:
builder
- The builder containing the settings for this object.
-
-
Method Details
-
create
Static creator.- Parameters:
beanStore
- The bean store to use for creating beans.- Returns:
- A new builder for this object.
-
findMatch
Looks through the registered children of this object and returns the best match.- Parameters:
builder
- The HTTP call builder.- Returns:
- The child that best matches the call, or an empty
Optional
if a match could not be made.
-
asMap
Returns the children in this object as a map.The keys are the
paths
of the child contexts.- Returns:
- The children as an unmodifiable map.
-
postInit
Called during servlet initialization on all children to invoke allRestPostInit
child-last methods.- Throws:
jakarta.servlet.ServletException
- Error occurred.
-
postInitChildFirst
Called during servlet initialization on all children to invoke allRestPostInit
child-first methods.- Throws:
jakarta.servlet.ServletException
- Error occurred.
-
destroy
Called during servlet destruction on all children to invoke allRestDestroy
andServlet.destroy()
methods.
-