Class RestChildren

java.lang.Object
org.apache.juneau.rest.RestChildren
Direct Known Subclasses:
RestChildren.Void

public class RestChildren extends Object
Implements the child resources of a Rest-annotated class.
See Also:
  • Constructor Details

  • Method Details

    • create

      public static RestChildren.Builder create(BeanStore beanStore)
      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

      public void postInit() throws jakarta.servlet.ServletException
      Called during servlet initialization on all children to invoke all RestPostInit child-last methods.
      Throws:
      jakarta.servlet.ServletException - Error occurred.
    • postInitChildFirst

      public void postInitChildFirst() throws jakarta.servlet.ServletException
      Called during servlet initialization on all children to invoke all RestPostInit child-first methods.
      Throws:
      jakarta.servlet.ServletException - Error occurred.
    • destroy

      public void destroy()
      Called during servlet destruction on all children to invoke all RestDestroy and Servlet.destroy() methods.