Class HTMLResponse

java.lang.Object
com.morpheusdata.views.HTMLResponse

public class HTMLResponse extends Object
A response object that is passed back to morpheus-ui to render html.
  • Field Details

  • Constructor Details

    • HTMLResponse

      public HTMLResponse()
  • Method Details

    • success

      public static HTMLResponse success()
      Helper with empty response and 200 success.
      Returns:
      HTMLResponse success
    • success

      public static HTMLResponse success(String html)
      Helper with html response and 200 success.
      Parameters:
      html - to render
      Returns:
      HTMLResponse success
    • error

      public static HTMLResponse error(String html)
      Helper with html response and 200 success.
      Parameters:
      html - to render
      Returns:
      HTMLResponse
    • error

      public static HTMLResponse error(String html, Integer status)
      Helper with html and error response.
      Parameters:
      html - html to render
      status - error status code
      Returns:
      HTMLResponse