public class SpringServerServlet extends ServerServlet
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
APPLICATION_BEAN_PARAM_NAME
Name of the Servlet parameter containing a bean-id of the application to
use.
|
static java.lang.String |
Component_BEAN_PARAM_NAME
Name of the Servlet parameter containing a bean-id of the component to
use.
|
Constructor and Description |
---|
SpringServerServlet() |
Modifier and Type | Method and Description |
---|---|
Application |
createApplication(Context parentContext)
Lookups the single Restlet Application used by this Servlet from the
SpringContext inside the ServletContext.
|
Component |
createComponent()
Lookups the single Restlet Component used by this Servlet from Spring's
Context available inside the ServletContext.
|
org.springframework.web.context.WebApplicationContext |
getWebApplicationContext()
Get the Spring WebApplicationContext from the ServletContext.
|
createCall, createServer, createWarClient, destroy, getApplication, getComponent, getContextPath, getInitParameter, getLocalAddr, getLocalPort, getServer, init, init, init, loadClass, service
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
public static final java.lang.String APPLICATION_BEAN_PARAM_NAME
public static final java.lang.String Component_BEAN_PARAM_NAME
public Application createApplication(Context parentContext)
APPLICATION_BEAN_PARAM_NAME
.createApplication
in class ServerServlet
parentContext
- The parent component context.public Component createComponent()
Component_BEAN_PARAM_NAME
.createComponent
in class ServerServlet
public org.springframework.web.context.WebApplicationContext getWebApplicationContext()
Copyright © 2005-2020 Restlet.