Package request.logic.sender
Class ArgumentRequestSender<T extends Serializable>
java.lang.Object
request.logic.sender.ArgumentRequestSender<T>
- All Implemented Interfaces:
ExceptionProvider
,ApplicationResponseProvider<BaseResponse>
public class ArgumentRequestSender<T extends Serializable>
extends Object
implements ApplicationResponseProvider<BaseResponse>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
acceptResponse
(BaseResponse response) final void
sendCommand
(CommandDescription command, String[] args, T argument, ServerConnection connection, ApplicationResponseProvider<CommandStatusResponse>... providers)
-
Constructor Details
-
ArgumentRequestSender
public ArgumentRequestSender()
-
-
Method Details
-
sendCommand
@SafeVarargs public final void sendCommand(CommandDescription command, String[] args, T argument, ServerConnection connection, ApplicationResponseProvider<CommandStatusResponse>... providers) -
acceptException
- Specified by:
acceptException
in interfaceExceptionProvider
-
acceptResponse
- Specified by:
acceptResponse
in interfaceApplicationResponseProvider<T extends Serializable>
-