public class Markup extends java.lang.Object implements Renderable
Constructor and Description |
---|
Markup(java.lang.CharSequence contentType,
java.nio.charset.Charset encoding,
Closure<?> definition) |
Modifier and Type | Method and Description |
---|---|
java.lang.CharSequence |
getContentType() |
Closure<?> |
getDefinition() |
java.nio.charset.Charset |
getEncoding() |
void |
render(Context context)
Render this object to the response.
|
public Markup(java.lang.CharSequence contentType, java.nio.charset.Charset encoding, Closure<?> definition)
public java.lang.CharSequence getContentType()
public java.nio.charset.Charset getEncoding()
public Closure<?> getDefinition()
public void render(Context context) throws java.lang.Exception
Renderable
render
in interface Renderable
context
- the request handling contextjava.lang.Exception
- any