com.google.visualization.datasource
Class ResponseWriter
java.lang.Object
com.google.visualization.datasource.ResponseWriter
public class ResponseWriter
- extends Object
A helper class responsible for writing a response message on a HttpServletResponse.
- Author:
- Nimrod T.
|
Method Summary |
static void |
setServletResponse(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 |
setServletResponse
public static void setServletResponse(String responseMessage,
DataSourceParameters dataSourceParameters,
javax.servlet.http.HttpServletResponse res)
throws 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:
IOException - In case of a I/O error.
Copyright © 2012 Google. All Rights Reserved.