Package dev.voidframework.web.http
Interface WebSocketRequest
- All Known Implementing Classes:
UndertowWebSocketRequest
public interface WebSocketRequest
A WebSocket request.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptContentType(String contentType) Checks if the current request accept a specific content type.Returns a single header.Returns all headers.Returns the query string, without the leading "?".getQueryStringParameter(String parameterName) Returns the query string parameter value.Returns all query string parameters.Returns the original request URI.
-
Method Details
-
acceptContentType
Checks if the current request accept a specific content type.- Parameters:
contentType- The content type- Returns:
trueif the content type is accepted, otherwise,false
-
getHeader
Returns a single header.- Parameters:
headerName- The header name- Returns:
- The requested header value, otherwise, a null value
-
getHeaders
Returns all headers.- Returns:
- All headers
-
getQueryString
String getQueryString()Returns the query string, without the leading "?".- Returns:
- The query string
-
getQueryStringParameters
Returns all query string parameters.- Returns:
- All query string parameters
-
getQueryStringParameter
Returns the query string parameter value.- Parameters:
parameterName- The parameter name- Returns:
- The query string parameter value
-
getRequestURI
String getRequestURI()Returns the original request URI. This is not decoded in any way, and does not include the query string.- Returns:
- The request URI
-