Interface IRequest

All Known Implementing Classes:
NettyHttpRequest, NettyTcpRequest, RequestAdapter

public interface IRequest
The Interface IRequest abstracts a request.
  • Method Details

    • getKey

      SCMPMsgType getKey() throws Exception
      Gets the message type.
      Returns:
      the key message type in request.
      Throws:
      Exception - the exception
    • getMessage

      SCMPMessage getMessage()
      Gets the message.
      Returns:
      the message
    • setMessage

      void setMessage(SCMPMessage message)
      Sets the scmp message in the request.
      Parameters:
      message - the new scmp message
    • getLocalSocketAddress

      InetSocketAddress getLocalSocketAddress()
      Gets the socket address.
      Returns:
      the socket address
    • getRemoteSocketAddress

      InetSocketAddress getRemoteSocketAddress()
      Gets the remote socket address.
      Returns:
      the remote socket address
    • load

      void load() throws Exception
      Load content on socket to the request. Decodes network frame into an scmp.
      Throws:
      Exception - the exception