rename of the project and packages
Further changes in the class layout, set DataHandler as abstract class,
and added a class ScottlandYardRallye class which extends the
DataHandler. With this we get the posibility to easily change the game
mode.
many changes:
- added a new database connection handler
- added the new way to add chat entries to the database: 2 steps now.
- added closes to every method (preparedStatement, resultSet and
connection objects).
- added a method to upload pictures to the DataHandler
- add code to create a thumpnail from a given pic (but this will throw
an exception for now) so dont use picture upload!
make working dir clean
added the libs for the mysql-connection-handler to git, some cleanup and documentations work.
some more cleanup, fixed the classpath file.
added the method user/login which is now beta (login is possible, some
error handling). Return HTTP 201 "login successful!" or HTTP 400 Bad
Request with error text.
added log4j 2.x for logging. created a WebAppExcept which extends from
WebApplicationException and allows to add messages. created a BlobStore
that allows to store to ram and disk, the BlobStore is organized as 2
layer cache: 1st Layer is a LinkedHashList and Second is a Directory on
the filesystem.
changed the location of the logging config file. changed the filenames
for the blobstore.
changed the scaler to a faster one, added a check for the picture
filesize.
fixed a bug in the BlobStore: if a file read from File, a file with 3MB
would be transfered to the client. now the correct size will read from
the file and the correct file will be returned. added a method in
BlobStore to allow to remove Blobs ( they will removed from 1st and 2nd
level cache).
change login to register, added unregister. changed register method to
return all chatrooms for the user. start changing the sql-querys to
preparedstatements.
changed the response type of all methods to response and catch all
exceptions in the dataHandler. if an exception is thrown a response with
400 (in case the user made a mistake), or 500 is a error occurred on the
server side, is returned. changed the picture type to "image/jpeg".
enabled the push-update via gcm.
Added a start-parameter to main, the first argument is now the host were
the server should be started (for testing, can be null). The current ip-address is
read out from the system and is used for the server if no
start-parameter is present. Added another lib to the project to run the
server with gcm. changed the debug.log to TRACE, to be able to see everything on the server.
added a Console on port 10100 to be able to stop the server. the console
is only available from localhost, all other connections will be closed.
some small improvements: port now are stored in dataHandler, getter for HttpPort and ConsolePort added.
added correct closing method for the mysql-connection handler, added also a maxIdleTime for the dataBase connections. fixed a bug in removeUser (Sql-command was not working). added gcm via json to getStatus, to be able to check if the client is already logged in.
added the methods / rest-commands getAllEdges und getConfig, moved /status to /system/status.
rename the method returnPicture to getPicture. remove the consumes tag from getPicture.
extracted the push stuff from datahandler to a structure that allows to easily add different push clients. in PushService will be different methods which call the different XXXPushServices. For now only GCM will be supported.