Class AtomFeedResource

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable, BasicUniversalConfig, DefaultConfig, DefaultHtmlConfig, BasicRestOperations

public class AtomFeedResource extends BasicRestServlet
Sample resource that shows how to generate ATOM feeds.
See Also:
  • Constructor Details

  • Method Details

    • init

      public void init()
      Overrides:
      init in class jakarta.servlet.GenericServlet
    • get

      public Feed get()
      [HTTP GET /dto/atom] Get the sample ATOM feed
      Returns:
      The sample ATOM feed.
    • put

      public Feed put(@Content Feed feed)
      [HTTP PUT /dto/atom] Overwrite the sample ATOM feed
      Parameters:
      feed - The new ATOM feed.
      Returns:
      The updated ATOM feed.