public class HTMLResponse
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
html |
java.lang.Integer |
status |
| Constructor and Description |
|---|
HTMLResponse() |
| Modifier and Type | Method and Description |
|---|---|
static HTMLResponse |
error(java.lang.String html)
Helper with html response and 200 success.
|
static HTMLResponse |
error(java.lang.String html,
java.lang.Integer status)
Helper with html and error response.
|
static HTMLResponse |
success()
Helper with empty response and 200 success.
|
static HTMLResponse |
success(java.lang.String html)
Helper with html response and 200 success.
|
public static HTMLResponse success()
public static HTMLResponse success(java.lang.String html)
html - to renderpublic static HTMLResponse error(java.lang.String html)
html - to renderpublic static HTMLResponse error(java.lang.String html, java.lang.Integer status)
html - html to renderstatus - error status code