Class LoggingHttpServletRequestWrapper

  • All Implemented Interfaces:
    jakarta.servlet.http.HttpServletRequest, jakarta.servlet.ServletRequest

    public class LoggingHttpServletRequestWrapper
    extends jakarta.servlet.http.HttpServletRequestWrapper
    • Field Summary

      Fields 
      Modifier and Type Field Description
      boolean bodySkipped  
      long contentLength  
      • Fields inherited from interface jakarta.servlet.http.HttpServletRequest

        BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Map<String,​String> addHeader​(String headerKey, String headerValue)  
      String getContent()  
      Map<String,​String> getHeaders()  
      jakarta.servlet.ServletInputStream getInputStream()  
      String getParameter​(String name)  
      Map<String,​String[]> getParameterMap()  
      Enumeration<String> getParameterNames()  
      String[] getParameterValues​(String name)  
      BufferedReader getReader()  
      boolean isFormPost()  
      • Methods inherited from class jakarta.servlet.http.HttpServletRequestWrapper

        authenticate, changeSessionId, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getHttpServletMapping, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getTrailerFields, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isTrailerFieldsReady, isUserInRole, login, logout, newPushBuilder, upgrade
      • Methods inherited from class jakarta.servlet.ServletRequestWrapper

        getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getProtocol, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, isWrapperFor, isWrapperFor, removeAttribute, setAttribute, setCharacterEncoding, setRequest, startAsync, startAsync
      • Methods inherited from interface jakarta.servlet.ServletRequest

        getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getProtocol, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync
    • Field Detail

      • bodySkipped

        public boolean bodySkipped
      • contentLength

        public long contentLength
    • Constructor Detail

      • LoggingHttpServletRequestWrapper

        public LoggingHttpServletRequestWrapper​(jakarta.servlet.http.HttpServletRequest request,
                                                MoesifConfiguration config)
    • Method Detail

      • getInputStream

        public jakarta.servlet.ServletInputStream getInputStream()
                                                          throws IOException
        Specified by:
        getInputStream in interface jakarta.servlet.ServletRequest
        Overrides:
        getInputStream in class jakarta.servlet.ServletRequestWrapper
        Throws:
        IOException
      • getContent

        public String getContent()
      • getReader

        public BufferedReader getReader()
                                 throws IOException
        Specified by:
        getReader in interface jakarta.servlet.ServletRequest
        Overrides:
        getReader in class jakarta.servlet.ServletRequestWrapper
        Throws:
        IOException
      • getParameter

        public String getParameter​(String name)
        Specified by:
        getParameter in interface jakarta.servlet.ServletRequest
        Overrides:
        getParameter in class jakarta.servlet.ServletRequestWrapper
      • getParameterMap

        public Map<String,​String[]> getParameterMap()
        Specified by:
        getParameterMap in interface jakarta.servlet.ServletRequest
        Overrides:
        getParameterMap in class jakarta.servlet.ServletRequestWrapper
      • getParameterNames

        public Enumeration<String> getParameterNames()
        Specified by:
        getParameterNames in interface jakarta.servlet.ServletRequest
        Overrides:
        getParameterNames in class jakarta.servlet.ServletRequestWrapper
      • getParameterValues

        public String[] getParameterValues​(String name)
        Specified by:
        getParameterValues in interface jakarta.servlet.ServletRequest
        Overrides:
        getParameterValues in class jakarta.servlet.ServletRequestWrapper
      • isFormPost

        public boolean isFormPost()