@Deprecated public class XdbServerServlet extends ServerServlet
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>Restlet adapter</display-name>
<!-- Restlet adapter -->
<servlet>
<servlet-name>XdbServerServlet</servlet-name>
<servlet-class>
org.restlet.ext.xdb.XdbServerServlet
</servlet-class>
<!-- Your application class name -->
<init-param
xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd">
<param-name>org.restlet.application</param-name>
<param-value>
SCOTT:org.restlet.example.tutorial.Part12
</param-value>
<description>REST Application</description>
</init-param>
</servlet>
<!-- Catch all requests -->
<servlet-mapping>
<servlet-name>XdbServerServlet</servlet-name>
<url-pattern>/userapp/*</url-pattern>
</servlet-mapping>
</web-app>
The enumeration of initParameters of your Servlet will be copied to the
"context.parameters" property of your application. This way, you can pass
additional initialization parameters to your Restlet application, and share
them with existing Servlets.| Constructor and Description |
|---|
XdbServerServlet()
Deprecated.
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
closeDbResources(Statement statement,
ResultSet resultSet)
Deprecated.
Closes JDBC resources
|
protected ServerCall |
createCall(Server server,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
Creates a new Servlet call wrapping a Servlet request/response couple and
a Server connector.
|
protected Client |
createWarClient(Context appCtx,
javax.servlet.ServletConfig config)
Deprecated.
Creates a new client for the WAR protocol.
|
void |
destroy()
Deprecated.
|
static Connection |
getConnection()
Deprecated.
Returns a JDBC connection.
|
protected String |
getContextPath(javax.servlet.http.HttpServletRequest request)
Deprecated.
Intercepter method need for subclasses such as XdbServerServlet.
|
String |
getInitParameter(String name,
String defaultValue)
Deprecated.
Returns the value of a given initialization parameter, first from the
Servlet configuration, then from the Web Application context.
|
protected String |
getLocalAddr(javax.servlet.http.HttpServletRequest request)
Deprecated.
Intercepter method need for subclasses such as XdbServerServlet.
|
protected int |
getLocalPort(javax.servlet.http.HttpServletRequest request)
Deprecated.
Intercepter method need for subclasses such as XdbServerServlet.
|
void |
init()
Deprecated.
|
protected Class<?> |
loadClass(String className)
Deprecated.
Returns a class for a given qualified class name.
|
createApplication, createComponent, createServer, getApplication, getComponent, getServer, init, init, servicedoDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, servicepublic static void closeDbResources(Statement statement, ResultSet resultSet)
statement - Any statement.resultSet - Any result set.public static Connection getConnection() throws javax.servlet.ServletException
javax.servlet.ServletExceptionprotected ServerCall createCall(Server server, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
ServerServletcreateCall in class ServerServletserver - The Server connector.request - The Servlet request.response - The Servlet response.protected Client createWarClient(Context appCtx, javax.servlet.ServletConfig config)
ServerServletcreateWarClient in class ServerServletappCtx - The parent context.config - The Servlet config.public void destroy()
destroy in interface javax.servlet.Servletdestroy in class ServerServletprotected String getContextPath(javax.servlet.http.HttpServletRequest request)
ServerServletgetContextPath in class ServerServletrequest - The Servlet request.public String getInitParameter(String name, String defaultValue)
ServerServletgetInitParameter in class ServerServletname - The parameter name.defaultValue - The default to use in case the parameter is not found.protected String getLocalAddr(javax.servlet.http.HttpServletRequest request)
ServerServletgetLocalAddr in class ServerServletrequest - The Servlet request.protected int getLocalPort(javax.servlet.http.HttpServletRequest request)
ServerServletgetLocalPort in class ServerServletrequest - The Servlet request.public void init()
throws javax.servlet.ServletException
init in class ServerServletjavax.servlet.ServletExceptionprotected Class<?> loadClass(String className) throws ClassNotFoundException
ServerServletloadClass in class ServerServletclassName - The class name to lookup.ClassNotFoundExceptionCopyright © 2005–2015. All rights reserved.