Package org.apache.juneau.rest
Class RestChildren
java.lang.Object
org.apache.juneau.rest.RestChildren
- Direct Known Subclasses:
RestChildren.Void
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class.final classRepresents a null value for theRest.restChildrenClass()annotation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasMap()Returns the children in this object as a map.static RestChildren.BuilderStatic creator.voiddestroy()Called during servlet destruction on all children to invoke allRestDestroyandServlet.destroy()methods.findMatch(RestSession.Builder builder) Looks through the registered children of this object and returns the best match.voidpostInit()Called during servlet initialization on all children to invoke allRestPostInitchild-last methods.voidCalled during servlet initialization on all children to invoke allRestPostInitchild-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.
-
asMap
Returns the children in this object as a map.The keys are the
pathsof the child contexts.- Returns:
- The children as an unmodifiable map.
-
destroy
Called during servlet destruction on all children to invoke allRestDestroyandServlet.destroy()methods. -
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
Optionalif a match could not be made.
-
postInit
Called during servlet initialization on all children to invoke allRestPostInitchild-last methods.- Throws:
jakarta.servlet.ServletException- Error occurred.
-
postInitChildFirst
Called during servlet initialization on all children to invoke allRestPostInitchild-first methods.- Throws:
jakarta.servlet.ServletException- Error occurred.
-