package foam.nanos.http;

// Import required java libraries
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

// Extend HttpServlet class
public class UptimeServlet
  extends HttpServlet
{
  protected long startTime_ = System.currentTimeMillis();

  public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
  {
    response.setContentType("text/html");

    PrintWriter out = response.getWriter();
    out.println("Uptime: " + (System.currentTimeMillis() - startTime_)/1000);
  }
}

@@ -1,8 +1,133 @@
+/**%0A * @license%0A * Copyright 2017 The FOAM Authors. All Rights Reserved.%0A * http://www.apache.org/licenses/LICENSE-2.0%0A */%0A%0A 
 package 

Add copyright.