Class RequestEchoResource

All Implemented Interfaces:
BasicUniversalConfig, DefaultConfig, DefaultHtmlConfig, BasicRestOperations

@Bean(on="HttpServletRequest",interfaceClass=jakarta.servlet.http.HttpServletRequest.class) @Bean(on="HttpSession",interfaceClass=jakarta.servlet.http.HttpSession.class) @Bean(on="ServletContext",interfaceClass=jakarta.servlet.ServletContext.class) public class RequestEchoResource extends BasicRestObject
Sample REST resource for echoing HttpServletRequests back to the browser.
See Also:
  • Constructor Details

  • Method Details

    • doGet

      public jakarta.servlet.http.HttpServletRequest doGet(RestRequest req)
      [HTTP GET /echo/*] GET request handler.
      Parameters:
      req - The HTTP servlet request.
      Returns:
      The same request to serialize as the response.