com.google.visualization.datasource
Class ResponseWriter

java.lang.Object
  extended by com.google.visualization.datasource.ResponseWriter

public class ResponseWriter
extends java.lang.Object

A helper class responsible for writing a response message on a HttpServletResponse.

Author:
Nimrod T.

Method Summary
static void setServletResponse(java.lang.String responseMessage, DataSourceParameters dataSourceParameters, javax.servlet.http.HttpServletResponse res)
          Sets the specified responseMessage on the given HttpServletResponse.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setServletResponse

public static void setServletResponse(java.lang.String responseMessage,
                                      DataSourceParameters dataSourceParameters,
                                      javax.servlet.http.HttpServletResponse res)
                               throws java.io.IOException
Sets the specified responseMessage on the given HttpServletResponse. This method assumes the StatusType is 'OK'.

Parameters:
responseMessage - The response message.
dataSourceParameters - The datasource parameters.
res - The HTTP response.
Throws:
java.io.IOException - In case of a I/O error.


Copyright © 2009 Google. All Rights Reserved.