com.taursys.servlet.respond
Class ContentResponder

java.lang.Object
  extended bycom.taursys.servlet.respond.AbstractResponder
      extended bycom.taursys.servlet.respond.ContentResponder
All Implemented Interfaces:
Responder
Direct Known Subclasses:
HTMLResponder, StreamResponder

public abstract class ContentResponder
extends AbstractResponder

ContentResponder is abstract responder which has a contentType

Version:
1.0
Author:
Marty Phelan

Constructor Summary
ContentResponder()
          Constructs a new ContentResponder
 
Method Summary
 java.lang.String getContentType()
          Get the mime type for the response content.
 void setContentType(java.lang.String newContentType)
          Set the mime type for the response content.
 
Methods inherited from class com.taursys.servlet.respond.AbstractResponder
getServletForm, respond, setServletForm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentResponder

public ContentResponder()
Constructs a new ContentResponder

Method Detail

setContentType

public void setContentType(java.lang.String newContentType)
Set the mime type for the response content. The default is "text"html"

Parameters:
newContentType - the mime type for the response content.

getContentType

public java.lang.String getContentType()
Get the mime type for the response content. The default is "text"html"

Returns:
the mime type for the response content.


Copyright © 2007 Martin T Phelan. All Rights Reserved.