|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.vaadin.server.VaadinServlet
public class VaadinServlet
| Nested Class Summary | |
|---|---|
class |
VaadinServlet.RequestError
|
protected static class |
VaadinServlet.RequestType
Deprecated. might be refactored or removed before 7.0.0 |
static class |
VaadinServlet.ServletService
|
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
VaadinServlet()
|
|
| Method Summary | |
|---|---|
CommunicationManager |
createCommunicationManager(VaadinSession application)
Deprecated. Instead of overriding this method, override VaadinServletSession implementation via
getApplicationContext(HttpSession)
method and in that customized implementation return your
CommunicationManager in
VaadinServletSession#getApplicationManager(VaadinSession, VaadinServlet)
method. |
protected DeploymentConfiguration |
createDeploymentConfiguration(java.util.Properties initParameters)
|
protected VaadinServlet.ServletService |
createServletService(DeploymentConfiguration deploymentConfiguration)
|
protected WrappedHttpServletRequest |
createWrappedRequest(javax.servlet.http.HttpServletRequest request)
Create a wrapped request for a http servlet request. |
protected void |
criticalNotification(WrappedHttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String caption,
java.lang.String message,
java.lang.String details,
java.lang.String url)
Deprecated. might be refactored or removed before 7.0.0 |
void |
destroy()
|
protected VaadinSession |
getApplicationContext(javax.servlet.http.HttpSession session)
Deprecated. might be refactored or removed before 7.0.0 |
protected java.net.URL |
getApplicationUrl(javax.servlet.http.HttpServletRequest request)
Deprecated. might be refactored or removed before 7.0.0 |
static java.lang.String |
getDefaultTheme()
Returns the default theme. |
protected VaadinSession |
getExistingApplication(javax.servlet.http.HttpServletRequest request,
boolean allowSessionCreation)
Deprecated. might be refactored or removed before 7.0.0 |
protected java.lang.String |
getRequestPathInfo(javax.servlet.http.HttpServletRequest request)
Deprecated. might be refactored or removed before 7.0.0 |
protected VaadinServlet.RequestType |
getRequestType(WrappedHttpServletRequest request)
Deprecated. might be refactored or removed before 7.0.0 |
java.lang.String |
getResourceLocation(java.lang.String theme,
ThemeResource resource)
Deprecated. might be refactored or removed before 7.0.0 |
protected static java.lang.String |
getResourcePath(javax.servlet.ServletContext servletContext,
java.lang.String path)
Deprecated. might be refactored or removed before 7.0.0 |
protected VaadinServlet.ServletService |
getVaadinService()
Gets a the vaadin service for this servlet. |
void |
init(javax.servlet.ServletConfig servletConfig)
Called by the servlet container to indicate to a servlet that the servlet is being placed into service. |
protected boolean |
isAllowedVAADINResourceUrl(javax.servlet.http.HttpServletRequest request,
java.net.URL resourceUrl)
Deprecated. might be refactored or removed before 7.0.0 |
protected void |
onVaadinSessionStarted(WrappedHttpServletRequest request,
VaadinServletSession session)
|
static java.lang.String |
safeEscapeForHtml(java.lang.String unsafe)
Deprecated. might be refactored or removed before 7.0.0 |
protected void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Receives standard HTTP requests from the public service method and dispatches them. |
protected static java.lang.String |
stripSpecialChars(java.lang.String themeName)
Deprecated. might be refactored or removed before 7.0.0 |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VaadinServlet()
| Method Detail |
|---|
public void init(javax.servlet.ServletConfig servletConfig)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletservletConfig - the object containing the servlet's configuration and
initialization parameters
javax.servlet.ServletException - if an exception has occurred that interferes with the
servlet's normal operation.protected DeploymentConfiguration createDeploymentConfiguration(java.util.Properties initParameters)
protected VaadinServlet.ServletService createServletService(DeploymentConfiguration deploymentConfiguration)
public void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServlet
protected void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
service in class javax.servlet.http.HttpServletrequest - the object that contains the request the client made of the
servlet.response - the object that contains the response the servlet returns to
the client.
javax.servlet.ServletException - if an input or output error occurs while the servlet is
handling the TRACE request.
java.io.IOException - if the request for the TRACE cannot be handled.protected WrappedHttpServletRequest createWrappedRequest(javax.servlet.http.HttpServletRequest request)
request - the original http servlet request
protected VaadinServlet.ServletService getVaadinService()
@Deprecated
protected void criticalNotification(WrappedHttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String caption,
java.lang.String message,
java.lang.String details,
java.lang.String url)
throws java.io.IOException
request - the HTTP request instance.response - the HTTP response to write to.caption - the notification captionmessage - to notification bodydetails - a detail message to show in addition to the message. Currently
shown directly below the message but could be hidden behind a
details drop down in the future. Mainly used to give
additional information not necessarily useful to the end user.url - url to load when the message is dismissed. Null will reload
the current page.
java.io.IOException - if the writing failed due to input/output error.
protected void onVaadinSessionStarted(WrappedHttpServletRequest request,
VaadinServletSession session)
throws javax.servlet.ServletException
javax.servlet.ServletException
@Deprecated
protected static java.lang.String getResourcePath(javax.servlet.ServletContext servletContext,
java.lang.String path)
servletContext - path - the resource path.
@Deprecated protected static java.lang.String stripSpecialChars(java.lang.String themeName)
themeName -
public static java.lang.String getDefaultTheme()
@Deprecated
protected boolean isAllowedVAADINResourceUrl(javax.servlet.http.HttpServletRequest request,
java.net.URL resourceUrl)
request - resourceUrl -
@Deprecated protected VaadinServlet.RequestType getRequestType(WrappedHttpServletRequest request)
request -
@Deprecated
protected java.net.URL getApplicationUrl(javax.servlet.http.HttpServletRequest request)
throws java.net.MalformedURLException
request - the HTTP request.
java.net.MalformedURLException - if the application is denied access to the persistent data
store represented by the given URL.
@Deprecated
protected VaadinSession getExistingApplication(javax.servlet.http.HttpServletRequest request,
boolean allowSessionCreation)
throws java.net.MalformedURLException,
SessionExpiredException
request - the HTTP request.allowSessionCreation - true if a session should be created if no session exists,
false if no session should be created
java.net.MalformedURLException - if the application is denied access to the persistent data
store represented by the given URL.
java.lang.IllegalAccessException
java.lang.InstantiationException
SessionExpiredException@Deprecated protected java.lang.String getRequestPathInfo(javax.servlet.http.HttpServletRequest request)
request -
@Deprecated
public java.lang.String getResourceLocation(java.lang.String theme,
ThemeResource resource)
theme - the Theme name.resource - the Theme resource.
@Deprecated protected VaadinSession getApplicationContext(javax.servlet.http.HttpSession session)
session -
@Deprecated public CommunicationManager createCommunicationManager(VaadinSession application)
VaadinServletSession implementation via
getApplicationContext(HttpSession)
method and in that customized implementation return your
CommunicationManager in
VaadinServletSession#getApplicationManager(VaadinSession, VaadinServlet)
method.
application -
@Deprecated public static final java.lang.String safeEscapeForHtml(java.lang.String unsafe)
unsafe -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||