com.noelios.restlet.ext.servlet
Class ServletWarClient

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.servlet.ServletWarClient

public class ServletWarClient
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"

Author:
Jerome Louvel (contact@noelios.com)

Constructor Summary
ServletWarClient(Context context, ServletContext servletContext)
          Constructor.
 
Method Summary
 void handle(Request request, Response response)
          Handles a call.
 void start()
          Start callback.
 void stop()
          Stop callback.
 
Methods inherited from class org.restlet.Connector
getProtocols
 
Methods inherited from class org.restlet.Restlet
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

ServletWarClient

public ServletWarClient(Context context,
                        ServletContext servletContext)
Constructor.

Parameters:
context - The context.
Method Detail

handle

public void handle(Request request,
                   Response response)
Handles a call.

Overrides:
handle in class Client
Parameters:
request - The request to handle.
response - The response to update.

start

public void start()
           throws Exception
Start callback.

Overrides:
start in class Client
Throws:
Exception

stop

public void stop()
          throws Exception
Stop callback.

Overrides:
stop in class Client
Throws:
Exception


Copyright © 2005-2007 Noelios Technologies.