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