java.lang.Object
java.io.InputStream
javax.servlet.ServletInputStream
cloud.piranha.webapp.impl.DefaultWebApplicationRequest
cloud.piranha.nano.NanoRequest
- All Implemented Interfaces:
WebApplicationRequest
,java.io.Closeable
,java.lang.AutoCloseable
,HttpServletRequest
,ServletRequest
public class NanoRequest extends DefaultWebApplicationRequest
The WebApplicationRequest class used by
NanoPiranha
- Author:
- Manfred Riem ([email protected])
- 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, webApplication
Fields inherited from interface javax.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 void
addHeader(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, verifyMultipartFormData
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface javax.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.
-