boolean
authenticate(HttpServletResponse response)
Use the container login mechanism configured for the ServletContext
to authenticate the user making this request.
String
changeSessionId()
Change the session id of the current session associated with this request and return the new session id.
String
getAuthType()
Returns the name of the authentication scheme used to protect the servlet.
String
getContextPath()
Returns the portion of the request URI that indicates the context of the request.
Cookie[]
getCookies()
Returns an array containing all of the Cookie
objects the client sent with this request.
long
getDateHeader(String name)
Returns the value of the specified request header as a long
value that represents a Date
object.
String
getHeader(String name)
Returns the value of the specified request header as a String
.
Enumeration<String>
getHeaderNames()
Returns an enumeration of all the header names this request contains.
Enumeration<String>
getHeaders(String name)
Returns all the values of the specified request header as an Enumeration
of String
objects.
default HttpServletMapping
getHttpServletMapping()
int
getIntHeader(String name)
Returns the value of the specified request header as an int
.
String
getMethod()
Returns the name of the HTTP method with which this request was made, for example, GET, POST, or PUT.
Part
getPart(String name)
Gets the
Part
with the given name.
Collection<Part>
getParts()
Gets all the
Part
components of this request, provided that it is of type
multipart/form-data
.
String
getPathInfo()
Returns any extra path information associated with the URL the client sent when it made this request.
String
getPathTranslated()
Returns any extra path information after the servlet name but before the query string, and translates it to a real path.
String
getQueryString()
Returns the query string that is contained in the request URL after the path.
String
getRemoteUser()
Returns the login of the user making this request, if the user has been authenticated, or null
if the user has not been authenticated.
String
getRequestedSessionId()
Returns the session ID specified by the client.
String
getRequestURI()
Returns the part of this request's URL from the protocol name up to the query string in the first line of the HTTP request.
StringBuffer
getRequestURL()
Reconstructs the URL the client used to make the request.
String
getServletPath()
Returns the part of this request's URL that calls the servlet.
HttpSession
getSession()
Returns the current session associated with this request, or if the request does not have a session, creates one.
HttpSession
getSession(boolean create)
Returns the current HttpSession
associated with this request or, if there is no current session and create
is true, returns a new session.
default Map<String,String>
getTrailerFields()
Get the request trailer fields.
Principal
getUserPrincipal()
Returns a java.security.Principal
object containing the name of the current authenticated user.
boolean
isRequestedSessionIdFromCookie()
Checks whether the requested session ID was conveyed to the server as an HTTP cookie.
boolean
isRequestedSessionIdFromUrl()
boolean
isRequestedSessionIdFromURL()
Checks whether the requested session ID was conveyed to the server as part of the request URL.
boolean
isRequestedSessionIdValid()
Checks whether the requested session ID is still valid.
default boolean
isTrailerFieldsReady()
Return a boolean indicating whether trailer fields are ready to read using
getTrailerFields()
.
boolean
isUserInRole(String role)
Returns a boolean indicating whether the authenticated user is included in the specified logical "role".
void
login(String username, String password)
Validate the provided username and password in the password validation realm used by the web container login mechanism configured for the ServletContext
.
void
logout()
Establish null
as the value returned when getUserPrincipal
, getRemoteUser
, and getAuthType
is called on the request.
default PushBuilder
newPushBuilder()
Instantiates a new instance of
PushBuilder
for issuing server push responses from the current request.
<T extends HttpUpgradeHandler>
T
upgrade(Class<T> handlerClass)
Creates an instance of HttpUpgradeHandler
for a given class and uses it for the http protocol upgrade processing.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.3