Interface CometDResponse


public interface CometDResponse

An abstraction over HTTP responses.

This abstraction allows CometD to be independent from Servlet, or server-specific HTTP APIs.

  • Method Details

    • addHeader

      void addHeader(String name, String value)

      Adds an HTTP header to this response.

      Parameters:
      name - the HTTP header name
      value - the HTTP header value
    • setContentType

      void setContentType(String contentType)
      Parameters:
      contentType - the content type of the response body
    • getOutput

      Returns:
      the sink to write the response body to