com.noelios.restlet.ext.xdb
Class XdbServletWarClientHelper

java.lang.Object
  extended by org.restlet.util.Helper<T>
      extended by com.noelios.restlet.ConnectorHelper<Client>
          extended by com.noelios.restlet.ClientHelper
              extended by com.noelios.restlet.local.LocalClientHelper
                  extended by com.noelios.restlet.local.EntityClientHelper
                      extended by com.noelios.restlet.ext.servlet.ServletWarClientHelper
                          extended by com.noelios.restlet.ext.xdb.XdbServletWarClientHelper

public class XdbServletWarClientHelper
extends ServletWarClientHelper

Local client connector based on a XMLDB repository. WARs are deployed at XMLDB repository using this directory layout /home/[SCHEMA]/wars/[AppName]/ where SCHEMA: is a database user, for example SCOTT AppName: is a Servlet Name configured with XdbServerServlet adapter Note: For Servlet running with PUBLIC grants run with an effective user ANONYMOUS so WARs deployment will be located at /home/ANONYMOUS/wars

Author:
Marcelo F. Ochoa (mochoa@ieee.org)

Constructor Summary
XdbServletWarClientHelper(Client client, ServletConfig config, java.sql.Connection conn)
          Constructor.
 
Method Summary
 ServletConfig getConfig()
          Returns the Servlet Config.
 void handle(Request request, Response response)
           
 void start()
           
 
Methods inherited from class com.noelios.restlet.ext.servlet.ServletWarClientHelper
getEntity, getServletContext
 
Methods inherited from class com.noelios.restlet.local.EntityClientHelper
createReference, getReencodedVariantEntityName, handleEntity, handleEntityGet
 
Methods inherited from class com.noelios.restlet.local.LocalClientHelper
getDefaultLanguage, getMetadataService, getTimeToLive, updateMetadata
 
Methods inherited from class com.noelios.restlet.ClientHelper
getConnectTimeout
 
Methods inherited from class com.noelios.restlet.ConnectorHelper
getProtocols, stop, update
 
Methods inherited from class org.restlet.util.Helper
getAttributes, getContext, getHelped, getHelpedParameters, getLogger, setHelped
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XdbServletWarClientHelper

public XdbServletWarClientHelper(Client client,
                                 ServletConfig config,
                                 java.sql.Connection conn)
Constructor.

Parameters:
client - The client to help.
config - The Servlet Config
conn - The JDBC Connection
Method Detail

getConfig

public ServletConfig getConfig()
Returns the Servlet Config.

Returns:
The Servlet Config.

handle

public void handle(Request request,
                   Response response)
Overrides:
handle in class ServletWarClientHelper

start

public void start()
           throws java.lang.Exception
Overrides:
start in class ConnectorHelper<Client>
Throws:
java.lang.Exception


Copyright © 2005-2008 Noelios Technologies.