@@ -0,0 +1,2483 @@
+package rest.notey;%0A%0Aimport javax.ws.rs.GET;%0Aimport javax.ws.rs.Path;%0Aimport javax.ws.rs.PathParam;%0Aimport javax.ws.rs.Produces;%0Aimport javax.ws.rs.core.*;%0Aimport javax.imageio.*;%0A%0Aimport java.sql.*;%0Aimport java.io.*;%0Aimport java.awt.image.*;%0Aimport java.util.Date;%0Aimport java.text.DateFormat;%0Aimport java.text.SimpleDateFormat;%0A%0A%0A// @Path here defines class level path. Identifies the URI path that %0A// a resource class will serve requests for.%0A@Path(%22notey%22)%0Apublic class Notey %7B%0A%0A%09// @GET here defines, this method will process HTTP GET requests.%0A%09// @Path here defines method level path. Identifies the URI path that a resource class method will serve requests for.%0A%09// @Produces here defines the media type(s) that the methods of a resource class can produce.%0A%09// @PathParam injects the value of URI parameter that defined in @Path expression, into the method.%0A%0A%09//GLOBAL Variables%0A%09public int GnSequence = 100;%09%09%09%09%09%09// sequence number for logins%0A%09private Connection connect = null;%0A%09private PreparedStatement preparedStatement = null;%0A%09private ResultSet resultSet = null;%0A%0A%09%0A%09// --------------------------------------------------------------------------------%0A%09// --------------------------------------------------------------------------------%0A%09// --------------------------------------------------------------------------------%0A%09// --------------------------------------------------------------------------------%0A%09// User FUnctions%0A%09// --------------------------------------------------------------------------------%0A%09// --------------------------------------------------------------------------------%0A%09// --------------------------------------------------------------------------------%0A%09// --------------------------------------------------------------------------------%0A%0A%0A%09// --------------------------------------------------------------------------------%0A%09// noteyTestPing: Returns a default string%0A%09// Parameters%09%0A%09// Returns:%09%09Alive%09%09%09String%09%09%09Alive message + current date and time%0A%09//%09%09%09%09%09%09%09%09%09%09%09%09Notey is alive @ 2014/07/18 13:24:56%0A%09// --------------------------------------------------------------------------------%0A%09@GET %0A%09@Path(%22/noteyTestPing%22) %0A%09@Produces(MediaType.APPLICATION_JSON)%0A%09public String noteyTestPing() %7B%0A%09%09DateFormat dateFormat = new SimpleDateFormat(%22yyyy/MM/dd HH:mm:ss%22);%0A%09%09Date date = new Date();%0A%09%09String sReturn = %22%7B %5C%22PING%5C%22: %5B %5Cn%7B%5C%22DESC%5C%22: %5C%22Notey is alive%5C%22, %5C%22TIME%5C%22: %5C%22%22 + dateFormat.format(date) + %22%5C%22 %7D %5Cn%5D %7D%22;%0A%09%09return sReturn;%0A%09%7D%0A%0A%7D%0A

Create Notey.java