psdi.webclient.system.session

Class ClientQueueRequestWrapper

  • java.lang.Object
    • javax.servlet.ServletRequestWrapper
      • javax.servlet.http.HttpServletRequestWrapper
        • psdi.webclient.system.session.ClientQueueRequestWrapper
  • All Implemented Interfaces:
    javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest


    public class ClientQueueRequestWrapper
    extends javax.servlet.http.HttpServletRequestWrapper
    Provides a convenient implementation of the HttpServletRequest interface to adapt the request from client side queued events. Methods default to calling through to the wrapped request object.
    • Field Summary

      • Fields inherited from interface javax.servlet.http.HttpServletRequest

        BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
    • Constructor Summary

      Constructors 
      Constructor and Description
      ClientQueueRequestWrapper(javax.servlet.http.HttpServletRequest request, java.util.Map eventParameters) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getParameter(java.lang.String name)
      Get the parameter value first from the client side queue event JSONArray or from the request parameter if the client side queue event does not exist
      java.util.Map getParameterMap()
      Get the parameter map from the client side queue event JSONArray and the request parameter itself
      java.util.Enumeration getParameterNames()
      Get the parameter names from the client side queue event JSONArray and the request parameter itself
      java.lang.String[] getParameterValues(java.lang.String name)
      Get the parameter value from the client side queue event JSONArray or from the request parameter if the client side queue event does not exist
      • Methods inherited from class javax.servlet.http.HttpServletRequestWrapper

        getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole
      • Methods inherited from class javax.servlet.ServletRequestWrapper

        getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding, setRequest
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface javax.servlet.ServletRequest

        getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding
    • Constructor Detail

      • ClientQueueRequestWrapper

        public ClientQueueRequestWrapper(javax.servlet.http.HttpServletRequest request,
                                         java.util.Map eventParameters)
    • Method Detail

      • getParameter

        public java.lang.String getParameter(java.lang.String name)
        Get the parameter value first from the client side queue event JSONArray or from the request parameter if the client side queue event does not exist
        Specified by:
        getParameter in interface javax.servlet.ServletRequest
        Overrides:
        getParameter in class javax.servlet.ServletRequestWrapper
        Parameters:
        parameter - name
        Returns:
        parameter value
      • getParameterMap

        public java.util.Map getParameterMap()
        Get the parameter map from the client side queue event JSONArray and the request parameter itself
        Specified by:
        getParameterMap in interface javax.servlet.ServletRequest
        Overrides:
        getParameterMap in class javax.servlet.ServletRequestWrapper
      • getParameterValues

        public java.lang.String[] getParameterValues(java.lang.String name)
        Get the parameter value from the client side queue event JSONArray or from the request parameter if the client side queue event does not exist
        Specified by:
        getParameterValues in interface javax.servlet.ServletRequest
        Overrides:
        getParameterValues in class javax.servlet.ServletRequestWrapper
        Parameters:
        parameter - name
        Returns:
        parameter values
      • getParameterNames

        public java.util.Enumeration getParameterNames()
        Get the parameter names from the client side queue event JSONArray and the request parameter itself
        Specified by:
        getParameterNames in interface javax.servlet.ServletRequest
        Overrides:
        getParameterNames in class javax.servlet.ServletRequestWrapper