net.sf.xaj.web
Class XmlDbWebService

java.lang.Object
  extended by org.springframework.context.support.ApplicationObjectSupport
      extended by org.springframework.web.context.support.WebApplicationObjectSupport
          extended by org.springframework.web.servlet.support.WebContentGenerator
              extended by org.springframework.web.servlet.mvc.AbstractController
                  extended by org.springframework.web.servlet.mvc.BaseCommandController
                      extended by org.springframework.web.servlet.mvc.AbstractCommandController
                          extended by net.sf.xaj.web.XmlDbWebService
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware, org.springframework.web.servlet.mvc.Controller

public class XmlDbWebService
extends org.springframework.web.servlet.mvc.AbstractCommandController

Simple web-based service for interacting with an XmlDb.

Version:
$Revision: 62 $ $Date: 2007-11-21 11:37:17 +1300 (Wed, 21 Nov 2007) $
Author:
matt

Nested Class Summary
static class XmlDbWebService.Command
          Command for making a request to XmlDbWebService.
 
Field Summary
static java.lang.String DEFAULT_XQUERY_RESULTS_MODEL_KEY
          The default value for the xQueryResultsModelKey property.
 
Fields inherited from class org.springframework.web.servlet.mvc.BaseCommandController
DEFAULT_COMMAND_NAME
 
Fields inherited from class org.springframework.web.servlet.support.WebContentGenerator
HEADER_CACHE_CONTROL, HEADER_EXPIRES, HEADER_PRAGMA, METHOD_GET, METHOD_HEAD, METHOD_POST
 
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport
logger
 
Constructor Summary
XmlDbWebService()
           
 
Method Summary
protected  java.lang.Object getCommand(javax.servlet.http.HttpServletRequest request)
           
 java.lang.String getResultView()
           
 XmlDbManager getXmlDbManager()
           
 java.lang.String getXQueryResultsModelKey()
           
protected  org.springframework.web.servlet.ModelAndView handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Object command, org.springframework.validation.BindException errors)
           
 void setResultView(java.lang.String resultView)
           
 void setXmlDbManager(XmlDbManager xmlDbManager)
           
 void setXQueryResultsModelKey(java.lang.String queryResultsModelKey)
           
 
Methods inherited from class org.springframework.web.servlet.mvc.AbstractCommandController
handleRequestInternal
 
Methods inherited from class org.springframework.web.servlet.mvc.BaseCommandController
bindAndValidate, checkCommand, createBinder, createCommand, getBindingErrorProcessor, getCommandClass, getCommandName, getMessageCodesResolver, getPropertyEditorRegistrars, getValidator, getValidators, initApplicationContext, initBinder, isValidateOnBinding, onBind, onBind, onBindAndValidate, setBindingErrorProcessor, setCommandClass, setCommandName, setMessageCodesResolver, setPropertyEditorRegistrar, setPropertyEditorRegistrars, setValidateOnBinding, setValidator, setValidators, suppressBinding, suppressValidation
 
Methods inherited from class org.springframework.web.servlet.mvc.AbstractController
handleRequest, isSynchronizeOnSession, setSynchronizeOnSession
 
Methods inherited from class org.springframework.web.servlet.support.WebContentGenerator
applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isRequireSession, isUseCacheControlHeader, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseExpiresHeader
 
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, isContextRequired
 
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, requiredContextClass, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_XQUERY_RESULTS_MODEL_KEY

public static final java.lang.String DEFAULT_XQUERY_RESULTS_MODEL_KEY
The default value for the xQueryResultsModelKey property.

See Also:
Constant Field Values
Constructor Detail

XmlDbWebService

public XmlDbWebService()
Method Detail

handle

protected org.springframework.web.servlet.ModelAndView handle(javax.servlet.http.HttpServletRequest request,
                                                              javax.servlet.http.HttpServletResponse response,
                                                              java.lang.Object command,
                                                              org.springframework.validation.BindException errors)
                                                       throws java.lang.Exception
Specified by:
handle in class org.springframework.web.servlet.mvc.AbstractCommandController
Throws:
java.lang.Exception

getCommand

protected java.lang.Object getCommand(javax.servlet.http.HttpServletRequest request)
                               throws java.lang.Exception
Overrides:
getCommand in class org.springframework.web.servlet.mvc.BaseCommandController
Throws:
java.lang.Exception

getXmlDbManager

public XmlDbManager getXmlDbManager()
Returns:
the xmlDbManager

setXmlDbManager

public void setXmlDbManager(XmlDbManager xmlDbManager)
Parameters:
xmlDbManager - the xmlDbManager to set

getXQueryResultsModelKey

public java.lang.String getXQueryResultsModelKey()
Returns:
the xQueryResultsModelKey

setXQueryResultsModelKey

public void setXQueryResultsModelKey(java.lang.String queryResultsModelKey)
Parameters:
queryResultsModelKey - the xQueryResultsModelKey to set

getResultView

public java.lang.String getResultView()
Returns:
the resultView

setResultView

public void setResultView(java.lang.String resultView)
Parameters:
resultView - the resultView to set