Package org.serviceconnector.net.req
Interface IRequest
- All Known Implementing Classes:
NettyHttpRequest,NettyTcpRequest,RequestAdapter
public interface IRequest
The Interface IRequest abstracts a request.
-
Method Summary
Modifier and TypeMethodDescriptiongetKey()Gets the message type.Gets the socket address.Gets the message.Gets the remote socket address.voidload()Load content on socket to the request.voidsetMessage(SCMPMessage message) Sets the scmp message in the request.
-
Method Details
-
getKey
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
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
Load content on socket to the request. Decodes network frame into an scmp.- Throws:
Exception- the exception
-