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 TypeMethodDescriptionvoidvoidacceptResponse(CommandStatusResponse response) booleanreceiveCommand(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:
receiveCommandin interfaceExternalBaseReceiver- Throws:
BuildObjectException
-
getArguemnt
- Specified by:
getArguemntin interfaceExternalArgumentReceiver<Route>
-
acceptException
- Specified by:
acceptExceptionin interfaceExceptionProvider
-
acceptResponse
- Specified by:
acceptResponsein interfaceApplicationResponseProvider<CommandStatusResponse>
-