Class TenantWebScriptServletRequest

java.lang.Object
org.springframework.extensions.webscripts.WebScriptRequestImpl
org.springframework.extensions.webscripts.servlet.WebScriptServletRequest
org.alfresco.repo.web.scripts.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 String
     
    protected String
     

    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

    Modifier and Type
    Method
    Description
     
    protected String
     
     
     
    protected void
     

    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 Details

    • tenant

      protected String tenant
    • pathInfo

      protected String pathInfo
  • Constructor Details

    • 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 Details

    • parse

      protected void parse()
    • getServiceContextPath

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

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

      public String getTenant()
    • getRealPathInfo

      protected String getRealPathInfo()