com.senseidb.servlet
Class AbstractSenseiRestServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.senseidb.servlet.ZookeeperConfigurableServlet
              extended by com.senseidb.servlet.AbstractSenseiClientServlet
                  extended by com.senseidb.servlet.AbstractSenseiRestServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
Direct Known Subclasses:
DefaultSenseiJSONServlet

public abstract class AbstractSenseiRestServlet
extends AbstractSenseiClientServlet

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.senseidb.servlet.AbstractSenseiClientServlet
BQL_PARSING_ERROR
 
Fields inherited from class com.senseidb.servlet.ZookeeperConfigurableServlet
clusterClientName, clusterName, connectTimeoutMillis, loadBalancerFactory, maxConnectionsPerNode, staleRequestCleanupFrequencyMins, staleRequestTimeoutMins, versionComparator, writeTimeoutMillis, zkTimeout, zkurl
 
Constructor Summary
AbstractSenseiRestServlet()
           
 
Method Summary
protected abstract  String buildResultString(SenseiRequest req, SenseiResult res)
           
protected abstract  String buildResultString(SenseiSystemInfo info)
           
protected abstract  SenseiRequest buildSenseiRequest(org.apache.commons.configuration.DataConfiguration params)
           
protected  SenseiRequest buildSenseiRequest(javax.servlet.http.HttpServletRequest req)
           
protected  void convertResult(SenseiRequest req, SenseiResult res, OutputStream ostream)
           
protected  void convertResult(SenseiSystemInfo info, OutputStream ostream)
           
 
Methods inherited from class com.senseidb.servlet.AbstractSenseiClientServlet
destroy, doGet, doOptions, doPost, getParameters, init
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSenseiRestServlet

public AbstractSenseiRestServlet()
Method Detail

buildSenseiRequest

protected abstract SenseiRequest buildSenseiRequest(org.apache.commons.configuration.DataConfiguration params)
                                             throws Exception
Throws:
Exception

buildSenseiRequest

protected SenseiRequest buildSenseiRequest(javax.servlet.http.HttpServletRequest req)
                                    throws Exception
Specified by:
buildSenseiRequest in class AbstractSenseiClientServlet
Throws:
Exception

buildResultString

protected abstract String buildResultString(SenseiRequest req,
                                            SenseiResult res)
                                     throws Exception
Throws:
Exception

buildResultString

protected abstract String buildResultString(SenseiSystemInfo info)
                                     throws Exception
Throws:
Exception

convertResult

protected void convertResult(SenseiSystemInfo info,
                             OutputStream ostream)
                      throws Exception
Specified by:
convertResult in class AbstractSenseiClientServlet
Throws:
Exception

convertResult

protected void convertResult(SenseiRequest req,
                             SenseiResult res,
                             OutputStream ostream)
                      throws Exception
Specified by:
convertResult in class AbstractSenseiClientServlet
Throws:
Exception


Copyright © 2010-2012. All Rights Reserved.