@RenderWith(value=TextActionResult.class) public class TextResult extends java.lang.Object
Constructor and Description |
---|
TextResult(java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
TextResult |
as(java.lang.String contentType)
Defines custom content type.
|
TextResult |
asHtml()
Sets content type to HTML.
|
java.lang.String |
contentType() |
static TextResult |
of(java.lang.String value) |
int |
status()
Returns status.
|
TextResult |
status(HttpStatus httpStatus) |
TextResult |
status(int status) |
java.lang.String |
value()
Returns text content.
|
public static TextResult of(java.lang.String value)
public TextResult asHtml()
public TextResult as(java.lang.String contentType)
public TextResult status(int status)
public TextResult status(HttpStatus httpStatus)
public java.lang.String value()
public int status()
public java.lang.String contentType()
Copyright © 2003-present Jodd Team