Class TenantWebScriptServletRequest

  • All Implemented Interfaces:
    org.springframework.extensions.webscripts.WebScriptRequest
    Direct Known Subclasses:
    PublicApiTenantWebScriptServletRequest

    public class TenantWebScriptServletRequest
    extends org.springframework.extensions.webscripts.servlet.WebScriptServletRequest
    Web Script Request which can handle a tenant id in their servlet path
    Author:
    davidc
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String pathInfo  
      protected java.lang.String tenant  
      • Fields inherited from class org.springframework.extensions.webscripts.WebScriptRequestImpl

        MULTIPART_FORM_DATA
    • Constructor Summary

      Constructors 
      Constructor Description
      TenantWebScriptServletRequest​(org.springframework.extensions.webscripts.Runtime container, javax.servlet.http.HttpServletRequest req, org.springframework.extensions.webscripts.Match serviceMatch, org.springframework.extensions.config.ServerProperties serverProperties)
      Construction
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getPathInfo()  
      protected java.lang.String getRealPathInfo()  
      java.lang.String getServiceContextPath()  
      java.lang.String getTenant()  
      protected void parse()  
      • Methods inherited from class org.springframework.extensions.webscripts.servlet.WebScriptServletRequest

        forceSuccessStatus, getAgent, getContent, getContentType, getContextPath, getFileField, getHeader, getHeaderNames, getHeaderValues, getHttpServletRequest, getParameter, getParameterNames, getParameterValues, getQueryString, getServerPath, getServiceMatch, getServicePath, getURL, resolveUserAgent, toString
      • Methods inherited from class org.springframework.extensions.webscripts.WebScriptRequestImpl

        getExtensionPath, getFormat, getFormatStyle, getJSONCallback, getRuntime, isGuest, parseContent
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • tenant

        protected java.lang.String tenant
      • pathInfo

        protected java.lang.String pathInfo
    • Constructor Detail

      • TenantWebScriptServletRequest

        public TenantWebScriptServletRequest​(org.springframework.extensions.webscripts.Runtime container,
                                             javax.servlet.http.HttpServletRequest req,
                                             org.springframework.extensions.webscripts.Match serviceMatch,
                                             org.springframework.extensions.config.ServerProperties serverProperties)
        Construction
        Parameters:
        container - Runtime
        req - HttpServletRequest
        serviceMatch - Match
        serverProperties - ServerProperties
    • Method Detail

      • parse

        protected void parse()
      • getServiceContextPath

        public java.lang.String getServiceContextPath()
        Specified by:
        getServiceContextPath in interface org.springframework.extensions.webscripts.WebScriptRequest
        Overrides:
        getServiceContextPath in class org.springframework.extensions.webscripts.servlet.WebScriptServletRequest
      • getPathInfo

        public java.lang.String getPathInfo()
        Specified by:
        getPathInfo in interface org.springframework.extensions.webscripts.WebScriptRequest
        Overrides:
        getPathInfo in class org.springframework.extensions.webscripts.servlet.WebScriptServletRequest
      • getTenant

        public java.lang.String getTenant()
      • getRealPathInfo

        protected java.lang.String getRealPathInfo()