Interface IResponse

All Known Implementing Classes:
NettyHttpResponse, NettyTcpResponse, ResponseAdapter

public interface IResponse
The Interface IResponse abstracts response.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the scmp.
    boolean
    Checks if is response content is large.
    void
    Sets the scmp.
    void
    Write the response.
  • Method Details

    • getSCMP

      SCMPMessage getSCMP()
      Gets the scmp.
      Returns:
      the scmp
    • setSCMP

      void setSCMP(SCMPMessage scmp)
      Sets the scmp.
      Parameters:
      scmp - the new scmp
    • write

      void write() throws Exception
      Write the response.
      Throws:
      Exception - the exception
    • isLarge

      boolean isLarge()
      Checks if is response content is large.
      Returns:
      true, if is large