001/*
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements.  See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License.  You may obtain a copy of the License at
008 *
009 *      http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017package org.apache.juneau.rest.springboot;
018
019import org.apache.juneau.rest.*;
020import org.apache.juneau.rest.annotation.*;
021import org.apache.juneau.rest.beans.*;
022import org.apache.juneau.rest.config.*;
023import org.apache.juneau.rest.servlet.*;
024
025/**
026 * Specialized subclass of {@link BasicSpringRestServlet} for showing "group" pages.
027 *
028 * <p>
029 * Meant as a base class for top-level REST resources in Spring Boot environments.
030 *
031 * <p>
032 * Provides support for JSON, XML, HTML, URL-Encoding, UON, XML, OpenAPI, and MessagePack.  See {@link BasicUniversalConfig}
033 * for details.
034 *
035 * <p>
036 * Implements the basic REST endpoints defined in {@link BasicRestOperations}.
037 *
038 * <p>
039 * Children are attached to this resource using the {@link Rest#children() @Rest(children)} annotation.
040 *
041 * <h5 class='section'>See Also:</h5><ul>
042 *    <li class='link'><a class="doclink" href="https://juneau.apache.org/docs/topics/JuneauRestServerSpringbootBasics">juneau-rest-server-springboot Basics</a>
043 *    <li class='link'><a class="doclink" href="https://juneau.apache.org/docs/topics/RestAnnotatedClassBasics">@Rest-Annotated Class Basics</a>
044 * </ul>
045 *
046 * @serial exclude
047 */
048@Rest
049public abstract class BasicSpringRestServletGroup extends BasicSpringRestServlet implements BasicGroupOperations {
050   private static final long serialVersionUID = 1L;
051
052
053   @Override /* BasicGroupOperations */
054   public ChildResourceDescriptions getChildren(RestRequest req) {
055      return ChildResourceDescriptions.of(req);
056   }
057}
058