com.vaadin.spring.server
Class SpringVaadinServletRequest

java.lang.Object
  extended by javax.servlet.ServletRequestWrapper
      extended by javax.servlet.http.HttpServletRequestWrapper
          extended by com.vaadin.server.VaadinServletRequest
              extended by com.vaadin.spring.server.SpringVaadinServletRequest
All Implemented Interfaces:
com.vaadin.server.VaadinRequest, Serializable, javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest

public class SpringVaadinServletRequest
extends com.vaadin.server.VaadinServletRequest

Custom Vaadin servlet request to handle getPathInfo() when the servlet is used via ServletForwardingController which does not set it.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
SpringVaadinServletRequest(javax.servlet.http.HttpServletRequest request, com.vaadin.server.VaadinServletService vaadinService, boolean clearServletPath)
          Construct a Spring servlet request
 
Method Summary
 String getPathInfo()
           
 String getServletPath()
           
 
Methods inherited from class com.vaadin.server.VaadinServletRequest
getHttpServletRequest, getService, getWrappedSession, getWrappedSession
 
Methods inherited from class javax.servlet.http.HttpServletRequestWrapper
authenticate, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPart, getParts, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole, login, logout
 
Methods inherited from class javax.servlet.ServletRequestWrapper
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getDispatcherType, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, isWrapperFor, isWrapperFor, removeAttribute, setAttribute, setCharacterEncoding, setRequest, startAsync, startAsync
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.vaadin.server.VaadinRequest
getAttribute, getAttributeNames, getAuthType, getCharacterEncoding, getContentLength, getContentType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getLocale, getLocales, getMethod, getParameter, getParameterMap, getReader, getRemoteAddr, getRemoteHost, getRemotePort, getRemoteUser, getUserPrincipal, isSecure, isUserInRole, removeAttribute, setAttribute
 
Methods inherited from interface javax.servlet.ServletRequest
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getDispatcherType, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync
 

Constructor Detail

SpringVaadinServletRequest

public SpringVaadinServletRequest(javax.servlet.http.HttpServletRequest request,
                                  com.vaadin.server.VaadinServletService vaadinService,
                                  boolean clearServletPath)
Construct a Spring servlet request

Parameters:
request -
vaadinService -
clearServletPath - true to use empty string as the servlet path (needed when using ServletForwardingController for bootstrap page requests), false to use the normal servlet path - for more information on this hack, see SpringVaadinServlet
Method Detail

getServletPath

public String getServletPath()
Specified by:
getServletPath in interface javax.servlet.http.HttpServletRequest
Overrides:
getServletPath in class javax.servlet.http.HttpServletRequestWrapper

getPathInfo

public String getPathInfo()
Specified by:
getPathInfo in interface com.vaadin.server.VaadinRequest
Specified by:
getPathInfo in interface javax.servlet.http.HttpServletRequest
Overrides:
getPathInfo in class javax.servlet.http.HttpServletRequestWrapper


Copyright © 2016 Vaadin Ltd. All Rights Reserved.