com.noelios.restlet.ext.servlet
Class ServletWarClient
java.lang.Object
org.restlet.Uniform
org.restlet.Restlet
org.restlet.Connector
org.restlet.Client
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"
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:
- Jerome Louvel
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 |
ServletWarClient
public ServletWarClient(Context parentContext,
ServletContext servletContext)
- Constructor.
- Parameters:
parentContext
- The parent context.
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 java.lang.Exception
- Start callback.
- Overrides:
start
in class Client
- Throws:
java.lang.Exception
stop
public void stop()
throws java.lang.Exception
- Stop callback.
- Overrides:
stop
in class Client
- Throws:
java.lang.Exception
Copyright © 2005-2008 Noelios Technologies.