com.google.visualization.datasource
Class DataSourceServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.google.visualization.datasource.DataSourceServlet
- All Implemented Interfaces:
- DataTableGenerator, java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public abstract class DataSourceServlet
- extends javax.servlet.http.HttpServlet
- implements DataTableGenerator
An abstract class for data source servlet implementations.
- Author:
- Yaniv S.
- See Also:
- Serialized Form
|
Method Summary |
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
Capabilities |
getCapabilities()
Returns the capabilities supported by this data table generator. |
protected boolean |
isRestrictedAccessMode()
Returns a flag that indicates whether the servlet is in restricted-access mode. |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataSourceServlet
public DataSourceServlet()
doGet
protected void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws java.io.IOException
- Overrides:
doGet in class javax.servlet.http.HttpServlet
- Throws:
java.io.IOException
isRestrictedAccessMode
protected boolean isRestrictedAccessMode()
- Returns a flag that indicates whether the servlet is in restricted-access mode.
In restricted-access mode the server serves only requests coming from the same domain as the
server domain (i.e., same origin policy).
This protects the server from XSRF attacks while limiting the requests to which the server
can respond.
- Returns:
- True if this servlet operates in restricted-access mode, false otherwise.
doPost
protected void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws java.io.IOException
- Overrides:
doPost in class javax.servlet.http.HttpServlet
- Throws:
java.io.IOException
getCapabilities
public Capabilities getCapabilities()
- Description copied from interface:
DataTableGenerator
- Returns the capabilities supported by this data table generator.
The query that
generateDataTable accepts will only contain clauses
corresponding to these capabilities.
(see Capabilities).
- Specified by:
getCapabilities in interface DataTableGenerator
- Returns:
- The capabilities supported by this datasource.
Copyright © 2009 Google. All Rights Reserved.