Package net.bull.javamelody
Class PayloadNameRequestWrapper
java.lang.Object
jakarta.servlet.ServletRequestWrapper
jakarta.servlet.http.HttpServletRequestWrapper
net.bull.javamelody.PayloadNameRequestWrapper
- All Implemented Interfaces:
HttpServletRequest,ServletRequest
Simple Wrapper class to inspect payload for name.
- Author:
- dhartford, roy.paterson, evernat
-
Field Summary
Fields inherited from interface jakarta.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BufferedInputStreamGet type of request.protected voidprotected voidMethods 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, upgradeMethods inherited from class jakarta.servlet.ServletRequestWrapper
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, isWrapperFor, isWrapperFor, removeAttribute, setAttribute, setCharacterEncoding, setRequest, startAsync, startAsyncMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.servlet.ServletRequest
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync
-
Constructor Details
-
PayloadNameRequestWrapper
Constructor.- Parameters:
request- the original HttpServletRequest
-
-
Method Details
-
initialize
- Throws:
IOException
-
getBufferedInputStream
- Throws:
IOException
-
resetBufferedInputStream
- Throws:
IOException
-
getReader
- Specified by:
getReaderin interfaceServletRequest- Overrides:
getReaderin classServletRequestWrapper- Throws:
IOException
-
getInputStream
- Specified by:
getInputStreamin interfaceServletRequest- Overrides:
getInputStreamin classServletRequestWrapper- Throws:
IOException
-
getPayloadRequestName
- Returns:
- name of request, or null if we can't figure out a good name based on the request payload @null
-
getPayloadRequestType
Get type of request. IfgetPayloadRequestName()returns non-null then this method also returns non-null.- Returns:
- type of request if or null if don't know @null
-