Package command.logic.external.reciever
Class NonArgumentReceiver
java.lang.Object
command.logic.external.reciever.NonArgumentReceiver
- All Implemented Interfaces:
ExternalBaseReceiver
,ExceptionProvider
,ApplicationResponseProvider<CommandStatusResponse>
public class NonArgumentReceiver
extends Object
implements ExternalBaseReceiver, ApplicationResponseProvider<CommandStatusResponse>
-
Constructor Summary
ConstructorDescriptionNonArgumentReceiver
(ApplicationResponseProvider<CommandStatusResponse>... providers) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
acceptResponse
(CommandStatusResponse response) boolean
receiveCommand
(CommandDescription command, String[] args)
-
Constructor Details
-
NonArgumentReceiver
@SafeVarargs public NonArgumentReceiver(ApplicationResponseProvider<CommandStatusResponse>... providers)
-
-
Method Details
-
receiveCommand
- Specified by:
receiveCommand
in interfaceExternalBaseReceiver
-
acceptException
- Specified by:
acceptException
in interfaceExceptionProvider
-
acceptResponse
- Specified by:
acceptResponse
in interfaceApplicationResponseProvider<CommandStatusResponse>
-