- All Superinterfaces:
jakarta.servlet.http.HttpServletRequest
,jakarta.servlet.ServletRequest
- All Known Implementing Classes:
AsyncHttpDispatchWrapper
,DefaultWebApplicationRequest
,EmbeddedRequest
,HttpWebApplicationRequest
public interface WebApplicationRequest
extends jakarta.servlet.http.HttpServletRequest
The WebApplicationRequest API.
- Author:
- Manfred Riem ([email protected])
-
Field Summary
Fields inherited from interface jakarta.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
-
Method Summary
Modifier and TypeMethodDescriptiondefault jakarta.servlet.MultipartConfigElement
Returns the multipartConfig.default jakarta.servlet.http.HttpUpgradeHandler
Returns the upgrade handler.default boolean
Returns true when upgraded, false otherwise.void
setAuthType
(String authType) Set the auth type.void
setContextPath
(String contextPath) Set the context path.void
setDispatcherType
(jakarta.servlet.DispatcherType dispatcherType) Set the dispatcher type.void
setServletPath
(String servletPath) Set the servlet path.void
setUserPrincipal
(Principal userPrincipal) Set the user principal.void
setWebApplication
(WebApplication webApplication) Set the web application.Methods inherited from interface jakarta.servlet.http.HttpServletRequest
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, isRequestedSessionIdValid, isTrailerFieldsReady, isUserInRole, login, logout, newPushBuilder, upgrade
Methods inherited from interface jakarta.servlet.ServletRequest
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getProtocolRequestId, getReader, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getRequestId, getScheme, getServerName, getServerPort, getServletConnection, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync
-
Method Details
-
getMultipartConfig
default jakarta.servlet.MultipartConfigElement getMultipartConfig()Returns the multipartConfig.- Returns:
- the multipartConfig
-
getUpgradeHandler
default jakarta.servlet.http.HttpUpgradeHandler getUpgradeHandler()Returns the upgrade handler.- Returns:
- the upgrade handler
-
isUpgraded
default boolean isUpgraded()Returns true when upgraded, false otherwise.- Returns:
- true when upgraded, false otherwise
-
setAuthType
Set the auth type.- Parameters:
authType
- the auth type.
-
setContextPath
Set the context path.- Parameters:
contextPath
- the context path.
-
setDispatcherType
void setDispatcherType(jakarta.servlet.DispatcherType dispatcherType) Set the dispatcher type.- Parameters:
dispatcherType
- the dispatcher type.
-
setServletPath
Set the servlet path.- Parameters:
servletPath
- the servlet path.
-
setUserPrincipal
Set the user principal.- Parameters:
userPrincipal
- the user principal.
-
setWebApplication
Set the web application.- Parameters:
webApplication
- the web application.
-