Class ServletWarClient
- java.lang.Object
-
- org.restlet.Restlet
-
- org.restlet.Connector
-
- org.restlet.Client
-
- org.forgerock.openam.rest.jakarta.servlet.internal.ServletWarClient
-
- All Implemented Interfaces:
org.restlet.Uniform
public class ServletWarClient extends org.restlet.ClientConnector 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
-
-
Constructor Summary
Constructors Constructor Description ServletWarClient(org.restlet.Context parentContext, jakarta.servlet.ServletContext servletContext)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandle(org.restlet.Request request, org.restlet.Response response)Handles a call.voidstart()Start callback.voidstop()Stop callback.
-
-
-
Method Detail
-
handle
public void handle(org.restlet.Request request, org.restlet.Response response)Handles a call.- Specified by:
handlein interfaceorg.restlet.Uniform- Overrides:
handlein classorg.restlet.Client- Parameters:
request- The request to handle.response- The response to update.
-
start
public void start() throws ExceptionStart callback.- Overrides:
startin classorg.restlet.Client- Throws:
Exception
-
-