Interface Response

All Known Implementing Classes:
JettyResponseWrapper

public interface Response
  • Method Details

    • addCookie

      void addCookie(Cookie cookie)
    • addHeader

      void addHeader(String name, String value)
      Adds a header with the given name without replacing any same-named headers that already exist.
    • getHeaders

      Headers getHeaders()
      Returns:
      Read-only instance.
    • getStatus

      Status getStatus()
    • openBodyStream

      OutputStream openBodyStream() throws IOException
      Throws:
      IOException
    • setHeader

      void setHeader(String name, String value)
      Replaces all headers with the given name with a header with the given value.
    • setStatus

      void setStatus(Status status)
    • setStatus

      void setStatus(int status)