Package request.logic.sender
Class RequestSender
java.lang.Object
request.logic.sender.RequestSender
- All Implemented Interfaces:
ExceptionProvider,ServerResponseProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidacceptResponse(byte[] response) voidremoveListener(ApplicationResponseProvider<BaseResponse> provider) final voidsendRequest(BaseRequest request, ServerConnection connection, ProviderRuleSet[] ruleSets, ApplicationResponseProvider<BaseResponse>... providers) final voidsendRequest(BaseRequest request, ServerConnection connection, ApplicationResponseProvider<BaseResponse>... providers)
-
Constructor Details
-
RequestSender
public RequestSender()
-
-
Method Details
-
sendRequest
@SafeVarargs public final void sendRequest(BaseRequest request, ServerConnection connection, ApplicationResponseProvider<BaseResponse>... providers) throws IOException - Throws:
IOException
-
sendRequest
@SafeVarargs public final void sendRequest(BaseRequest request, ServerConnection connection, ProviderRuleSet[] ruleSets, ApplicationResponseProvider<BaseResponse>... providers) throws IOException - Throws:
IOException
-
removeListener
-
acceptResponse
public void acceptResponse(byte[] response) - Specified by:
acceptResponsein interfaceServerResponseProvider
-
acceptException
- Specified by:
acceptExceptionin interfaceExceptionProvider
-