java.lang.Object
com.broadleafcommerce.common.extension.intercommunication.MockWebRequest
All Implemented Interfaces:
org.springframework.web.context.request.NativeWebRequest, org.springframework.web.context.request.RequestAttributes, org.springframework.web.context.request.WebRequest

@Deprecated(forRemoval=true) public class MockWebRequest extends Object implements org.springframework.web.context.request.NativeWebRequest
Deprecated, for removal: This API element is subject to removal in a future version.
use the facilities in com.broadleafcommerce.data.tracking.core.interlink.DefaultInterlinkClient instead.
Using known values from ExternalRequest and URI related information, provide a subset of data about the request in the form of a NativeRequest instance. This is useful for ContextInfo construction during direct method calls in ExternalClient instances.
  • Field Summary

    Fields inherited from interface org.springframework.web.context.request.RequestAttributes

    REFERENCE_REQUEST, REFERENCE_SESSION, SCOPE_REQUEST, SCOPE_SESSION
  • Constructor Summary

    Constructors
    Constructor
    Description
    MockWebRequest(ExternalRequest request, org.springframework.web.util.UriComponents uriComponents)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    checkNotModified(long lastModifiedTimestamp)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    checkNotModified(String etag, long lastModifiedTimestamp)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    getAttribute(String name, int scope)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    getAttributeNames(int scope)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    getDescription(boolean includeClientInfo)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    getHeader(String headerName)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    getHeaderValues(String headerName)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    <T> T
    getNativeRequest(Class<T> requiredType)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    <T> T
    getNativeResponse(Class<T> requiredType)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    getParameter(String paramName)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    registerDestructionCallback(String name, Runnable callback, int scope)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    removeAttribute(String name, int scope)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setAttribute(String name, Object value, int scope)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • MockWebRequest

      public MockWebRequest(ExternalRequest request, org.springframework.web.util.UriComponents uriComponents)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getNativeRequest

      public Object getNativeRequest()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getNativeRequest in interface org.springframework.web.context.request.NativeWebRequest
    • getNativeResponse

      public Object getNativeResponse()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getNativeResponse in interface org.springframework.web.context.request.NativeWebRequest
    • getNativeRequest

      public <T> T getNativeRequest(Class<T> requiredType)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getNativeRequest in interface org.springframework.web.context.request.NativeWebRequest
    • getNativeResponse

      public <T> T getNativeResponse(Class<T> requiredType)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getNativeResponse in interface org.springframework.web.context.request.NativeWebRequest
    • getHeader

      public String getHeader(String headerName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getHeader in interface org.springframework.web.context.request.WebRequest
    • getHeaderValues

      public String[] getHeaderValues(String headerName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getHeaderValues in interface org.springframework.web.context.request.WebRequest
    • getHeaderNames

      public Iterator<String> getHeaderNames()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getHeaderNames in interface org.springframework.web.context.request.WebRequest
    • getParameter

      public String getParameter(String paramName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getParameter in interface org.springframework.web.context.request.WebRequest
    • getParameterValues

      public String[] getParameterValues(String paramName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getParameterValues in interface org.springframework.web.context.request.WebRequest
    • getParameterNames

      public Iterator<String> getParameterNames()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getParameterNames in interface org.springframework.web.context.request.WebRequest
    • getParameterMap

      public Map<String,String[]> getParameterMap()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getParameterMap in interface org.springframework.web.context.request.WebRequest
    • getLocale

      public Locale getLocale()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getLocale in interface org.springframework.web.context.request.WebRequest
    • getContextPath

      public String getContextPath()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getContextPath in interface org.springframework.web.context.request.WebRequest
    • getRemoteUser

      public String getRemoteUser()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getRemoteUser in interface org.springframework.web.context.request.WebRequest
    • getUserPrincipal

      public Principal getUserPrincipal()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getUserPrincipal in interface org.springframework.web.context.request.WebRequest
    • isUserInRole

      public boolean isUserInRole(String role)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      isUserInRole in interface org.springframework.web.context.request.WebRequest
    • isSecure

      public boolean isSecure()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      isSecure in interface org.springframework.web.context.request.WebRequest
    • checkNotModified

      public boolean checkNotModified(long lastModifiedTimestamp)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      checkNotModified in interface org.springframework.web.context.request.WebRequest
    • checkNotModified

      public boolean checkNotModified(String etag)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      checkNotModified in interface org.springframework.web.context.request.WebRequest
    • checkNotModified

      public boolean checkNotModified(String etag, long lastModifiedTimestamp)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      checkNotModified in interface org.springframework.web.context.request.WebRequest
    • getDescription

      public String getDescription(boolean includeClientInfo)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getDescription in interface org.springframework.web.context.request.WebRequest
    • getAttribute

      public Object getAttribute(String name, int scope)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getAttribute in interface org.springframework.web.context.request.RequestAttributes
    • setAttribute

      public void setAttribute(String name, Object value, int scope)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      setAttribute in interface org.springframework.web.context.request.RequestAttributes
    • removeAttribute

      public void removeAttribute(String name, int scope)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      removeAttribute in interface org.springframework.web.context.request.RequestAttributes
    • getAttributeNames

      public String[] getAttributeNames(int scope)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getAttributeNames in interface org.springframework.web.context.request.RequestAttributes
    • registerDestructionCallback

      public void registerDestructionCallback(String name, Runnable callback, int scope)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      registerDestructionCallback in interface org.springframework.web.context.request.RequestAttributes
    • resolveReference

      public Object resolveReference(String key)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      resolveReference in interface org.springframework.web.context.request.RequestAttributes
    • getSessionId

      public String getSessionId()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getSessionId in interface org.springframework.web.context.request.RequestAttributes
    • getSessionMutex

      public Object getSessionMutex()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getSessionMutex in interface org.springframework.web.context.request.RequestAttributes
    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toString in class Object