Interface IWebResponse

All Known Implementing Classes:
NettyWebResponse

public interface IWebResponse
The Interface IWebResponse abstracts a web response.
  • Method Details

    • addHeader

      void addHeader(String name, String value)
      Adds the header.
      Parameters:
      name - the name
      value - the value
    • getOutputStream

      OutputStream getOutputStream()
      Gets the output stream.
      Returns:
      the output stream
    • getBytes

      byte[] getBytes()
      Gets the bytes.
      Returns:
      the bytes
    • setContentType

      void setContentType(String string)
      Sets the content type.
      Parameters:
      string - the new content type
    • redirect

      void redirect(String path)
      Redirect.
      Parameters:
      path - the path
    • isRedirect

      boolean isRedirect()
      Checks if is redirect.
      Returns:
      true, if is redirect