Package org.serviceconnector.net.res
Interface IResponse
- All Known Implementing Classes:
NettyHttpResponse,NettyTcpResponse,ResponseAdapter
public interface IResponse
The Interface IResponse abstracts response.
-
Method Summary
Modifier and TypeMethodDescriptiongetSCMP()Gets the scmp.booleanisLarge()Checks if is response content is large.voidsetSCMP(SCMPMessage scmp) Sets the scmp.voidwrite()Write the response.
-
Method Details
-
getSCMP
SCMPMessage getSCMP()Gets the scmp.- Returns:
- the scmp
-
setSCMP
Sets the scmp.- Parameters:
scmp- the new scmp
-
write
Write the response.- Throws:
Exception- the exception
-
isLarge
boolean isLarge()Checks if is response content is large.- Returns:
- true, if is large
-