org.kohsuke.stapler.jelly
Class ContentTypeTag

java.lang.Object
  extended by org.apache.commons.jelly.TagSupport
      extended by org.kohsuke.stapler.jelly.ContentTypeTag
All Implemented Interfaces:
org.apache.commons.jelly.Tag

@NoContent
public class ContentTypeTag
extends org.apache.commons.jelly.TagSupport

Set the HTTP Content-Type header of the page.

Author:
Kohsuke Kawaguchi

Field Summary
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, parent
 
Constructor Summary
ContentTypeTag()
           
 
Method Summary
 void doTag(org.apache.commons.jelly.XMLOutput output)
           
protected  javax.servlet.http.HttpServletRequest getRequest()
           
protected  javax.servlet.http.HttpServletResponse getResponse()
           
protected  javax.servlet.ServletContext getServletContext()
           
 void setValue(java.lang.String contentType)
          The content-type value, such as "text/html".
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentTypeTag

public ContentTypeTag()
Method Detail

setValue

@Required
public void setValue(java.lang.String contentType)
The content-type value, such as "text/html".


doTag

public void doTag(org.apache.commons.jelly.XMLOutput output)
           throws org.apache.commons.jelly.MissingAttributeException,
                  org.apache.commons.jelly.JellyTagException
Throws:
org.apache.commons.jelly.MissingAttributeException
org.apache.commons.jelly.JellyTagException

getRequest

protected javax.servlet.http.HttpServletRequest getRequest()

getResponse

protected javax.servlet.http.HttpServletResponse getResponse()

getServletContext

protected javax.servlet.ServletContext getServletContext()


Copyright © 2011. All Rights Reserved.