Package com.morpheusdata.views
Class HTMLResponse
java.lang.Object
com.morpheusdata.views.HTMLResponse
A response object that is passed back to morpheus-ui to render html.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic HTMLResponse
Helper with html response and 200 success.static HTMLResponse
Helper with html and error response.static HTMLResponse
success()
Helper with empty response and 200 success.static HTMLResponse
Helper with html response and 200 success.
-
Field Details
-
html
-
status
-
-
Constructor Details
-
HTMLResponse
public HTMLResponse()
-
-
Method Details
-
success
Helper with empty response and 200 success.- Returns:
- HTMLResponse success
-
success
Helper with html response and 200 success.- Parameters:
html
- to render- Returns:
- HTMLResponse success
-
error
Helper with html response and 200 success.- Parameters:
html
- to render- Returns:
- HTMLResponse
-
error
Helper with html and error response.- Parameters:
html
- html to renderstatus
- error status code- Returns:
- HTMLResponse
-