public class IncludedContent
extends java.lang.Object
implements groovy.lang.Writable
| Constructor and Description |
|---|
IncludedContent(java.lang.String redirectURL) |
IncludedContent(java.lang.String contentType,
java.lang.Object content) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getContent()
Returns the included content
|
char[] |
getContentAsCharArray() |
java.lang.String |
getContentType()
Returns the included content type (default is text/html;charset=UTF=8)
|
java.lang.String |
getRedirectURL()
Returns the URL of a redirect if a redirect was issue in the Include
otherwise it returns null if there was no redirect.
|
java.io.Writer |
writeTo(java.io.Writer target) |
public IncludedContent(java.lang.String contentType,
java.lang.Object content)
public IncludedContent(java.lang.String redirectURL)
public java.lang.String getRedirectURL()
public java.lang.String getContentType()
public java.lang.Object getContent()
public java.io.Writer writeTo(java.io.Writer target)
throws java.io.IOException
writeTo in interface groovy.lang.Writablejava.io.IOExceptionpublic char[] getContentAsCharArray()