Class DumpCommandResult
java.lang.Object
za.co.wethinkcode.robots.server.serverCommands.DumpCommandResult
- All Implemented Interfaces:
CommandResult
Evaluated Result of a Dump Command
-
Constructor Summary
ConstructorsConstructorDescriptionDumpCommandResult(Map<String, Argument> args, WorldState worldState, InternalResponseCode internalResponseCode) Standard Constructor for Dump Command Result -
Method Summary
Modifier and TypeMethodDescriptionExplicitly forces Command Results to return a responseCodetoJson()Jackson serialisation stringvoidAllows us to write our output to diskMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface za.co.wethinkcode.robots.shared.CommandResult
toString
-
Constructor Details
-
Method Details
-
writeToDisk
public void writeToDisk()Allows us to write our output to disk- Specified by:
writeToDiskin interfaceCommandResult
-
toJson
Jackson serialisation string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
getInternalResponseCode
Explicitly forces Command Results to return a responseCode- Specified by:
getInternalResponseCodein interfaceCommandResult- Returns:
- a response code
-