Package io.varhttp
Class JdkHttpServletRequest
java.lang.Object
io.varhttp.JdkHttpServletRequest
- All Implemented Interfaces:
- jakarta.servlet.http.HttpServletRequest,- jakarta.servlet.ServletRequest
public class JdkHttpServletRequest
extends Object
implements jakarta.servlet.http.HttpServletRequest
- 
Field SummaryFields inherited from interface jakarta.servlet.http.HttpServletRequestBASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
- 
Constructor SummaryConstructorsConstructorDescriptionJdkHttpServletRequest(HttpExchange ex, Map<String, String[]> postData, jakarta.servlet.ServletInputStream is, jakarta.servlet.ServletContext context, VarConfig config) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanauthenticate(jakarta.servlet.http.HttpServletResponse response) jakarta.servlet.AsyncContextgetAttribute(String name) intlongjakarta.servlet.http.Cookie[]longgetDateHeader(String name) jakarta.servlet.DispatcherTypegetHeaders(String name) jakarta.servlet.ServletInputStreamintgetIntHeader(String name) intgetParameter(String name) String[]getParameterValues(String name) jakarta.servlet.http.PartCollection<jakarta.servlet.http.Part>getParts()intjakarta.servlet.RequestDispatchergetRequestDispatcher(String path) intjakarta.servlet.ServletConnectionjakarta.servlet.ServletContextjakarta.servlet.http.HttpSessionjakarta.servlet.http.HttpSessiongetSession(boolean create) booleanbooleanbooleanbooleanbooleanbooleanisSecure()booleanisUserInRole(String role) voidvoidlogout()voidremoveAttribute(String name) voidsetAttribute(String name, Object o) voidjakarta.servlet.AsyncContextjakarta.servlet.AsyncContextstartAsync(jakarta.servlet.ServletRequest servletRequest, jakarta.servlet.ServletResponse servletResponse) <T extends jakarta.servlet.http.HttpUpgradeHandler>
 TMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.servlet.http.HttpServletRequestgetHttpServletMapping, getTrailerFields, isTrailerFieldsReady, newPushBuilder
- 
Constructor Details- 
JdkHttpServletRequestpublic JdkHttpServletRequest(HttpExchange ex, Map<String, String[]> postData, jakarta.servlet.ServletInputStream is, jakarta.servlet.ServletContext context, VarConfig config) 
 
- 
- 
Method Details- 
getHeader- Specified by:
- getHeaderin interface- jakarta.servlet.http.HttpServletRequest
 
- 
getHeaders- Specified by:
- getHeadersin interface- jakarta.servlet.http.HttpServletRequest
 
- 
getHeaderNames- Specified by:
- getHeaderNamesin interface- jakarta.servlet.http.HttpServletRequest
 
- 
getIntHeader- Specified by:
- getIntHeaderin interface- jakarta.servlet.http.HttpServletRequest
 
- 
getAttribute- Specified by:
- getAttributein interface- jakarta.servlet.ServletRequest
 
- 
setAttribute- Specified by:
- setAttributein interface- jakarta.servlet.ServletRequest
 
- 
removeAttribute- Specified by:
- removeAttributein interface- jakarta.servlet.ServletRequest
 
- 
getLocale- Specified by:
- getLocalein interface- jakarta.servlet.ServletRequest
 
- 
getLocales- Specified by:
- getLocalesin interface- jakarta.servlet.ServletRequest
 
- 
isSecurepublic boolean isSecure()- Specified by:
- isSecurein interface- jakarta.servlet.ServletRequest
 
- 
getRequestDispatcher- Specified by:
- getRequestDispatcherin interface- jakarta.servlet.ServletRequest
 
- 
getRemotePortpublic int getRemotePort()- Specified by:
- getRemotePortin interface- jakarta.servlet.ServletRequest
 
- 
getLocalName- Specified by:
- getLocalNamein interface- jakarta.servlet.ServletRequest
 
- 
getLocalAddr- Specified by:
- getLocalAddrin interface- jakarta.servlet.ServletRequest
 
- 
getLocalPortpublic int getLocalPort()- Specified by:
- getLocalPortin interface- jakarta.servlet.ServletRequest
 
- 
getServletContextpublic jakarta.servlet.ServletContext getServletContext()- Specified by:
- getServletContextin interface- jakarta.servlet.ServletRequest
 
- 
startAsync- Specified by:
- startAsyncin interface- jakarta.servlet.ServletRequest
- Throws:
- IllegalStateException
 
- 
startAsyncpublic jakarta.servlet.AsyncContext startAsync(jakarta.servlet.ServletRequest servletRequest, jakarta.servlet.ServletResponse servletResponse) throws IllegalStateException - Specified by:
- startAsyncin interface- jakarta.servlet.ServletRequest
- Throws:
- IllegalStateException
 
- 
isAsyncStartedpublic boolean isAsyncStarted()- Specified by:
- isAsyncStartedin interface- jakarta.servlet.ServletRequest
 
- 
isAsyncSupportedpublic boolean isAsyncSupported()- Specified by:
- isAsyncSupportedin interface- jakarta.servlet.ServletRequest
 
- 
getAsyncContextpublic jakarta.servlet.AsyncContext getAsyncContext()- Specified by:
- getAsyncContextin interface- jakarta.servlet.ServletRequest
 
- 
getDispatcherTypepublic jakarta.servlet.DispatcherType getDispatcherType()- Specified by:
- getDispatcherTypein interface- jakarta.servlet.ServletRequest
 
- 
getRequestId- Specified by:
- getRequestIdin interface- jakarta.servlet.ServletRequest
 
- 
getProtocolRequestId- Specified by:
- getProtocolRequestIdin interface- jakarta.servlet.ServletRequest
 
- 
getServletConnectionpublic jakarta.servlet.ServletConnection getServletConnection()- Specified by:
- getServletConnectionin interface- jakarta.servlet.ServletRequest
 
- 
getAttributeNames- Specified by:
- getAttributeNamesin interface- jakarta.servlet.ServletRequest
 
- 
getCharacterEncoding- Specified by:
- getCharacterEncodingin interface- jakarta.servlet.ServletRequest
 
- 
setCharacterEncoding- Specified by:
- setCharacterEncodingin interface- jakarta.servlet.ServletRequest
- Throws:
- UnsupportedEncodingException
 
- 
getContentLengthpublic int getContentLength()- Specified by:
- getContentLengthin interface- jakarta.servlet.ServletRequest
 
- 
getContentLengthLongpublic long getContentLengthLong()- Specified by:
- getContentLengthLongin interface- jakarta.servlet.ServletRequest
 
- 
getMethod- Specified by:
- getMethodin interface- jakarta.servlet.http.HttpServletRequest
 
- 
getInputStream- Specified by:
- getInputStreamin interface- jakarta.servlet.ServletRequest
- Throws:
- IOException
 
- 
getReader- Specified by:
- getReaderin interface- jakarta.servlet.ServletRequest
- Throws:
- IOException
 
- 
getRemoteAddr- Specified by:
- getRemoteAddrin interface- jakarta.servlet.ServletRequest
 
- 
getRemoteHost- Specified by:
- getRemoteHostin interface- jakarta.servlet.ServletRequest
 
- 
getPathInfo- Specified by:
- getPathInfoin interface- jakarta.servlet.http.HttpServletRequest
 
- 
getPathTranslated- Specified by:
- getPathTranslatedin interface- jakarta.servlet.http.HttpServletRequest
 
- 
getContextPath- Specified by:
- getContextPathin interface- jakarta.servlet.http.HttpServletRequest
 
- 
getQueryString- Specified by:
- getQueryStringin interface- jakarta.servlet.http.HttpServletRequest
 
- 
getRemoteUser- Specified by:
- getRemoteUserin interface- jakarta.servlet.http.HttpServletRequest
 
- 
isUserInRole- Specified by:
- isUserInRolein interface- jakarta.servlet.http.HttpServletRequest
 
- 
getUserPrincipal- Specified by:
- getUserPrincipalin interface- jakarta.servlet.http.HttpServletRequest
 
- 
getRequestedSessionId- Specified by:
- getRequestedSessionIdin interface- jakarta.servlet.http.HttpServletRequest
 
- 
getParameter- Specified by:
- getParameterin interface- jakarta.servlet.ServletRequest
 
- 
getParameterMap- Specified by:
- getParameterMapin interface- jakarta.servlet.ServletRequest
 
- 
getProtocol- Specified by:
- getProtocolin interface- jakarta.servlet.ServletRequest
 
- 
getScheme- Specified by:
- getSchemein interface- jakarta.servlet.ServletRequest
 
- 
getServerName- Specified by:
- getServerNamein interface- jakarta.servlet.ServletRequest
 
- 
getServerPortpublic int getServerPort()- Specified by:
- getServerPortin interface- jakarta.servlet.ServletRequest
 
- 
getParameterNames- Specified by:
- getParameterNamesin interface- jakarta.servlet.ServletRequest
 
- 
getParameterValues- Specified by:
- getParameterValuesin interface- jakarta.servlet.ServletRequest
 
- 
getRequestURI- Specified by:
- getRequestURIin interface- jakarta.servlet.http.HttpServletRequest
 
- 
getRequestURL- Specified by:
- getRequestURLin interface- jakarta.servlet.http.HttpServletRequest
 
- 
getContentType- Specified by:
- getContentTypein interface- jakarta.servlet.ServletRequest
 
- 
getServletPath- Specified by:
- getServletPathin interface- jakarta.servlet.http.HttpServletRequest
 
- 
getSessionpublic jakarta.servlet.http.HttpSession getSession(boolean create) - Specified by:
- getSessionin interface- jakarta.servlet.http.HttpServletRequest
 
- 
getSessionpublic jakarta.servlet.http.HttpSession getSession()- Specified by:
- getSessionin interface- jakarta.servlet.http.HttpServletRequest
 
- 
changeSessionId- Specified by:
- changeSessionIdin interface- jakarta.servlet.http.HttpServletRequest
 
- 
isRequestedSessionIdValidpublic boolean isRequestedSessionIdValid()- Specified by:
- isRequestedSessionIdValidin interface- jakarta.servlet.http.HttpServletRequest
 
- 
isRequestedSessionIdFromCookiepublic boolean isRequestedSessionIdFromCookie()- Specified by:
- isRequestedSessionIdFromCookiein interface- jakarta.servlet.http.HttpServletRequest
 
- 
isRequestedSessionIdFromURLpublic boolean isRequestedSessionIdFromURL()- Specified by:
- isRequestedSessionIdFromURLin interface- jakarta.servlet.http.HttpServletRequest
 
- 
authenticatepublic boolean authenticate(jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletException - Specified by:
- authenticatein interface- jakarta.servlet.http.HttpServletRequest
- Throws:
- IOException
- jakarta.servlet.ServletException
 
- 
login- Specified by:
- loginin interface- jakarta.servlet.http.HttpServletRequest
- Throws:
- jakarta.servlet.ServletException
 
- 
logoutpublic void logout() throws jakarta.servlet.ServletException- Specified by:
- logoutin interface- jakarta.servlet.http.HttpServletRequest
- Throws:
- jakarta.servlet.ServletException
 
- 
getPartspublic Collection<jakarta.servlet.http.Part> getParts() throws IOException, jakarta.servlet.ServletException- Specified by:
- getPartsin interface- jakarta.servlet.http.HttpServletRequest
- Throws:
- IOException
- jakarta.servlet.ServletException
 
- 
getPartpublic jakarta.servlet.http.Part getPart(String name) throws IOException, jakarta.servlet.ServletException - Specified by:
- getPartin interface- jakarta.servlet.http.HttpServletRequest
- Throws:
- IOException
- jakarta.servlet.ServletException
 
- 
upgradepublic <T extends jakarta.servlet.http.HttpUpgradeHandler> T upgrade(Class<T> handlerClass) throws IOException, jakarta.servlet.ServletException - Specified by:
- upgradein interface- jakarta.servlet.http.HttpServletRequest
- Throws:
- IOException
- jakarta.servlet.ServletException
 
- 
getAuthType- Specified by:
- getAuthTypein interface- jakarta.servlet.http.HttpServletRequest
 
- 
getCookiespublic jakarta.servlet.http.Cookie[] getCookies()- Specified by:
- getCookiesin interface- jakarta.servlet.http.HttpServletRequest
 
- 
getDateHeader- Specified by:
- getDateHeaderin interface- jakarta.servlet.http.HttpServletRequest
 
 
-