org.codehaus.groovy.grails.web.util
Class IncludedContent

java.lang.Object
  extended by org.codehaus.groovy.grails.web.util.IncludedContent

public class IncludedContent
extends Object

A class that represents some content that has been used in an include request

Since:
1.1.1

Created: Mar 26, 2009

Author:
Graeme Rocher

Constructor Summary
IncludedContent(String redirectURL)
           
IncludedContent(String contentType, String content)
           
 
Method Summary
 String getContent()
          Returns the included content
 String getContentType()
          Returns the included content type (default is text/html;charset=UTF=8)
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IncludedContent

public IncludedContent(String contentType,
                       String content)

IncludedContent

public IncludedContent(String redirectURL)
Method Detail

getRedirectURL

public 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 String getContentType()
Returns the included content type (default is text/html;charset=UTF=8)

Returns:
The content type

getContent

public String getContent()
Returns the included content

Returns:
The content


Copyright (c) 2005-2009 The Grails project