public class XdbServletWarClient extends Client
Constructor and Description |
---|
XdbServletWarClient(Context parentContext,
javax.servlet.ServletConfig config,
Connection conn)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
handle(Request request,
Response response)
Handles a call.
|
void |
start()
Starts the Restlet.
|
void |
stop()
Stops the Restlet.
|
getConnectTimeout, isAvailable, setConnectTimeout
getProtocols, setProtocols
createFinder, finalize, getApplication, getAuthor, getContext, getDescription, getFinderClass, getLogger, getName, getOwner, handle, handle, handle, isStarted, isStopped, setAuthor, setContext, setDescription, setFinderClass, setName, setOwner
public XdbServletWarClient(Context parentContext, javax.servlet.ServletConfig config, Connection conn)
parentContext
- The context.config
- The Servlet config object.conn
- The JDBC Connection to XMLDB repository.public void handle(Request request, Response response)
Restlet
Context.setCurrent(Context)
method and by attempting to start it, unless it was already started. If
an exception is thrown during the start action, then the response status
is set to Status.SERVER_ERROR_INTERNAL
.
Subclasses overriding this method should make sure that they call super.handle(request, response) before adding their own logic.
public void start() throws Exception
Restlet
Copyright © 2005–2013. All rights reserved.