Package org.grails.web.util
Class IncludedContent
- java.lang.Object
-
- org.grails.web.util.IncludedContent
-
- All Implemented Interfaces:
groovy.lang.Writable
public class IncludedContent extends java.lang.Object implements groovy.lang.WritableRepresents some content that has been used in an include request.- Since:
- 1.1.1
-
-
Constructor Summary
Constructors Constructor Description IncludedContent(java.lang.String redirectURL)IncludedContent(java.lang.String contentType, java.lang.Object content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetContent()Returns the included contentchar[]getContentAsCharArray()java.lang.StringgetContentType()Returns the included content type (default is text/html;charset=UTF=8)java.lang.StringgetRedirectURL()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.WriterwriteTo(java.io.Writer target)
-
-
-
Method Detail
-
getRedirectURL
public 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.- Returns:
- The redirect URL
-
getContentType
public java.lang.String getContentType()
Returns the included content type (default is text/html;charset=UTF=8)- Returns:
- The content type
-
getContent
public java.lang.Object getContent()
Returns the included content- Returns:
- The content
-
writeTo
public java.io.Writer writeTo(java.io.Writer target) throws java.io.IOException- Specified by:
writeToin interfacegroovy.lang.Writable- Throws:
java.io.IOException
-
getContentAsCharArray
public char[] getContentAsCharArray()
-
-