com.noelios.restlet.ext.xdb
Class XdbServletWarClient

java.lang.Object
  extended by org.restlet.Uniform
      extended by org.restlet.Restlet
          extended by org.restlet.Connector
              extended by org.restlet.Client
                  extended by com.noelios.restlet.ext.xdb.XdbServletWarClient

public class XdbServletWarClient
extends Client

Connector acting as a WAR client for a Servlet Application. It internally uses one of the available connectors registered with the current Restlet implementation.

Here is an example of WAR URI that can be resolved by this client: "war:///WEB-INF/web.xml" If XdbServerServlet is running with SCOTT's credentials and register with a Servlet Name HelloRestlet a WAR URI will be translated to an XMLDB directory: /home/SCOTT/wars/HelloRestlet/WEB-INF/web.xml Concurrency note: instances of this class or its subclasses can be invoked by several threads at the same time and therefore must be thread-safe. You should be especially careful when storing state in member variables.

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

Constructor Summary
XdbServletWarClient(Context context, ServletConfig config, java.sql.Connection conn)
          Constructor.
 
Method Summary
 void handle(Request request, Response response)
           
 void start()
           
 void stop()
           
 
Methods inherited from class org.restlet.Client
getConnectTimeout, setConnectTimeout
 
Methods inherited from class org.restlet.Connector
getProtocols, setProtocols
 
Methods inherited from class org.restlet.Restlet
getApplication, getContext, getLogger, init, isStarted, isStopped, setContext
 
Methods inherited from class org.restlet.Uniform
delete, delete, get, get, handle, head, head, options, options, post, post, put, put
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XdbServletWarClient

public XdbServletWarClient(Context context,
                           ServletConfig config,
                           java.sql.Connection conn)
Constructor.

Parameters:
context - The context.
config - The Servlet config object.
conn - The JDBC Connection to XMLDB repository.
Method Detail

handle

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

start

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

stop

public void stop()
          throws java.lang.Exception
Overrides:
stop in class Client
Throws:
java.lang.Exception


Copyright © 2005-2008 Noelios Technologies.