Interface CometDResponse
public interface CometDResponse
An abstraction over HTTP responses.
This abstraction allows CometD to be independent from Servlet, or server-specific HTTP APIs.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
The sink of the response body. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds an HTTP header to this response.void
setContentType
(String contentType)
-
Method Details
-
addHeader
-
setContentType
- Parameters:
contentType
- the content type of the response body
-
getOutput
CometDResponse.Output getOutput()- Returns:
- the sink to write the response body to
-