Skip to content
lealdan edited this page Nov 2, 2016 · 3 revisions

##Overview The client-side code specified in the gs-rest-client directory contains a simple java REST client and some helper classes to aid in data transfer to a server.

##Classes

  • SimpleClient.java: A simple java REST client which takes commandline arguments that specify the action to take in our FixMyBug project. These arguments are 1) the .jar with dependencies to be run, 2) the file to be "fixed," 3) the beginning line number of a bug, 4) the ending line number of a bug, and 5) the method to be run by the server on the passed data.
  • ServerRequest.java: The wrapper object containing all data that will be sent to the server when a bug fix is requested. The object contains a String of buggy code and an error message.
  • DatabaseEntry.java: A wrapper object that holds data that is returned from the server. It replicates our master table table structure and holds an (id, errorType, buggyCode, fixedCode, and a count).

####Location These classes are located in the top-level directory gs-rest-client under src/main/java/client.

Clone this wiki locally