Class IncludedContent

  • All Implemented Interfaces:
    groovy.lang.Writable

    public class IncludedContent
    extends java.lang.Object
    implements groovy.lang.Writable
    Represents 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.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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IncludedContent

        public IncludedContent​(java.lang.String contentType,
                               java.lang.Object content)
      • IncludedContent

        public IncludedContent​(java.lang.String redirectURL)
    • 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:
        writeTo in interface groovy.lang.Writable
        Throws:
        java.io.IOException
      • getContentAsCharArray

        public char[] getContentAsCharArray()