Package request.logic.sender
Class RequestSender
java.lang.Object
request.logic.sender.RequestSender
- All Implemented Interfaces:
ExceptionProvider
,ServerResponseProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
acceptResponse
(byte[] response) void
removeListener
(ApplicationResponseProvider<BaseResponse> provider) final void
sendRequest
(BaseRequest request, ServerConnection connection, ProviderRuleSet[] ruleSets, ApplicationResponseProvider<BaseResponse>... providers) final void
sendRequest
(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:
acceptResponse
in interfaceServerResponseProvider
-
acceptException
- Specified by:
acceptException
in interfaceExceptionProvider
-