java.lang.Object
java.io.InputStream
jakarta.servlet.ServletInputStream
cloud.piranha.webapp.impl.DefaultWebApplicationRequest
cloud.piranha.nano.NanoRequest
- All Implemented Interfaces:
cloud.piranha.webapp.api.WebApplicationRequest,HttpServletRequest,ServletRequest,java.io.Closeable,java.lang.AutoCloseable
public class NanoRequest extends DefaultWebApplicationRequest
The WebApplicationRequest class used by
NanoPiranha- Author:
- Manfred Riem (mriem@manorrock.com)
- See Also:
NanoPiranha
-
Field Summary
Fields inherited from class cloud.piranha.webapp.impl.DefaultWebApplicationRequest
asyncContext, asyncStarted, asyncSupported, attributeManager, authType, characterEncoding, contentLength, contentType, contextPath, cookies, currentSessionId, dispatcherType, gotInputStream, gotReader, headerManager, inputStream, localAddress, localName, localPort, method, parameters, parametersParsed, pathInfo, protocol, queryString, reader, remoteAddr, remoteHost, remotePort, requestedSessionId, requestedSessionIdFromCookie, requestedSessionIdFromURL, scheme, serverName, serverPort, servletPath, upgraded, upgradeHandler, userPrincipal, webApplicationFields inherited from interface jakarta.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH -
Constructor Summary
Constructors Constructor Description NanoRequest()Constructor. -
Method Summary
Modifier and Type Method Description voidaddHeader(java.lang.String name, java.lang.String value)Add a header.Methods inherited from class cloud.piranha.webapp.impl.DefaultWebApplicationRequest
authenticate, changeSessionId, getAsyncContext, getAttribute, getAttributeNames, getAuthType, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getContextPath, getCookies, getDateHeader, getDispatcherType, getHeader, getHeaderNames, getHeaders, getInputStream, getIntHeader, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getMethod, getParameter, getParameterMap, getParameterNames, getParametersFromRequest, getParameterValues, getPart, getParts, getPathInfo, getPathTranslated, getProtocol, getQueryString, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRemoteUser, getRequestDispatcher, getRequestedSessionId, getRequestURI, getRequestURIWithQueryString, getRequestURL, getScheme, getServerName, getServerPort, getServletContext, getServletPath, getSession, getSession, getUpgradeHandler, getUserPrincipal, isAsyncStarted, isAsyncSupported, isFinished, isReady, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isSecure, isUpgraded, isUserInRole, login, logout, read, removeAttribute, setAsyncStarted, setAsyncSupported, setAttribute, setAuthType, setCharacterEncoding, setContentLength, setContentType, setContextPath, setCookies, setDispatcherType, setHeader, setInputStream, setLocalAddr, setLocalName, setLocalPort, setMethod, setParameter, setPathInfo, setProtocol, setQueryString, setReadListener, setRemoteAddr, setRemoteHost, setRemotePort, setRequestedSessionId, setRequestedSessionIdFromCookie, setRequestedSessionIdFromURL, setScheme, setServerName, setServerPort, setServletPath, setUpgraded, setUserPrincipal, setWebApplication, startAsync, startAsync, toString, unwrap, upgrade, verifyMultipartFormDataMethods inherited from class jakarta.servlet.ServletInputStream
readLineMethods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.servlet.http.HttpServletRequest
getHttpServletMapping, getTrailerFields, isTrailerFieldsReady, newPushBuilder
-
Constructor Details
-
NanoRequest
public NanoRequest()Constructor.
-
-
Method Details
-
addHeader
public void addHeader(java.lang.String name, java.lang.String value)Add a header.- Parameters:
name- the name.value- the value.
-