Package org.apache.openejb.server.httpd
Interface HttpRequest
- All Superinterfaces:
jakarta.servlet.http.HttpServletRequest,Serializable,jakarta.servlet.ServletRequest
- All Known Implementing Classes:
HttpRequestImpl,ServletRequestAdapter
An interface to take care of HTTP Requests. It parses headers, content, form and url
parameters.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringthe Accept headerstatic final Stringthe Accept-Encoding headerstatic final Stringthe Accept-Language headerstatic final Stringthe Cache-Control headerstatic final Stringthe Connection headerstatic final Stringthe Content-Length headerstatic final Stringthe Content-Type headerstatic final Stringthe Cookie headerstatic final Stringthe Host headerstatic final Stringthe Set-Cookie headerstatic final Stringthe User-Agent headerstatic final StringIf the https server implementation is based on Servlets, the real ServletContext will be registered in the request attributes using this name.static final StringIf the https server implementation is based on Servlets, the real HttpServletRequest will be registered in the request attributes using this name.static final StringIf the https server implementation is based on Servlets, the real HttpServletResponse will be registered in the request attributes using this name.Fields inherited from interface jakarta.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String name) intgetParameter(String name) Gets a form or URL query parameter based on the name passed in.Gets all the form and URL query parametersgetURI()Gets the URI for the current URL page.voidsetAttribute(String name, Object value) 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, upgradeMethods inherited from interface jakarta.servlet.ServletRequest
getAsyncContext, getAttributeNames, getCharacterEncoding, getContentLengthLong, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameterMap, getParameterNames, getParameterValues, getProtocol, getProtocolRequestId, getReader, getRemoteHost, getRemotePort, getRequestDispatcher, getRequestId, getScheme, getServerName, getServerPort, getServletConnection, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setCharacterEncoding, startAsync, startAsync
-
Field Details
-
HEADER_ACCEPT
the Accept header- See Also:
-
HEADER_ACCEPT_ENCODING
the Accept-Encoding header- See Also:
-
HEADER_ACCEPT_LANGUAGE
the Accept-Language header- See Also:
-
HEADER_CONTENT_TYPE
the Content-Type header- See Also:
-
HEADER_CONTENT_LENGTH
the Content-Length header- See Also:
-
HEADER_CONNECTION
the Connection header- See Also:
-
HEADER_CACHE_CONTROL
the Cache-Control header- See Also:
-
HEADER_HOST
the Host header- See Also:
-
HEADER_USER_AGENT
the User-Agent header- See Also:
-
HEADER_SET_COOKIE
the Set-Cookie header- See Also:
-
HEADER_COOKIE
the Cookie header- See Also:
-
SERVLET_REQUEST
If the https server implementation is based on Servlets, the real HttpServletRequest will be registered in the request attributes using this name. -
SERVLET_RESPONSE
If the https server implementation is based on Servlets, the real HttpServletResponse will be registered in the request attributes using this name. -
SERVLET_CONTEXT
If the https server implementation is based on Servlets, the real ServletContext will be registered in the request attributes using this name. Note: a ServletContext may not be registered even if HttpServletRequest and HttpServletResponse objects are registered.
-
-
Method Details
-
getParameter
Gets a form or URL query parameter based on the name passed in.- Specified by:
getParameterin interfacejakarta.servlet.ServletRequest- Parameters:
name-
-
getParameters
Map getParameters()Gets all the form and URL query parameters- Returns:
- All the form and URL query parameters
-
getURI
URI getURI()Gets the URI for the current URL page.- Returns:
- The URI
-
getContentLength
int getContentLength()- Specified by:
getContentLengthin interfacejakarta.servlet.ServletRequest
-
getContentType
String getContentType()- Specified by:
getContentTypein interfacejakarta.servlet.ServletRequest
-
getAttribute
- Specified by:
getAttributein interfacejakarta.servlet.ServletRequest
-
setAttribute
- Specified by:
setAttributein interfacejakarta.servlet.ServletRequest
-
getRemoteAddr
String getRemoteAddr()- Specified by:
getRemoteAddrin interfacejakarta.servlet.ServletRequest
-