public interface CometDRequest
An abstraction over HTTP requests.
This abstraction allows CometD to be independent from Servlet, or server-specific HTTP APIs.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
The source of the request body. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFailureHandler
(Consumer<Throwable> handler) Adds the given handler function to be invoked when a failure is detected for this request.getAttribute
(String name) getInput()
getParameterValues
(String name) void
setAttribute
(String name, Object value)
-
Method Details
-
getMethod
String getMethod()- Returns:
- the HTTP method
-
getProtocol
String getProtocol()- Returns:
- the HTTP protocol version
-
getParameterValues
-
getCharacterEncoding
String getCharacterEncoding()- Returns:
- the charset of the request body
-
getCookie
-
getInput
CometDRequest.Input getInput()- Returns:
- the input to read the request body from
-
getAttribute
-
setAttribute
-
addFailureHandler
-