package org.cryptonit.cloud.timestamping;

import javax.ws.rs.Path;
import org.cryptonit.cloud.interfaces.TimestampingAuthorityFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author Mathias Brossard
 */
@Path("/timestamp")
public class Application {
    private static final Logger LOGGER = LoggerFactory.getLogger(Application.class);
    private static TimestampingAuthorityFactory tsaFactory = null;

    public static void setTimestampingAuthorityFactory(TimestampingAuthorityFactory factory) {
        tsaFactory = factory;
    }
}

@@ -51,20 +51,223 @@
 java
-x.ws.rs.Path
+.io.IOException;%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.ws.rs.POST;%0Aimport javax.ws.rs.Path;%0Aimport javax.ws.rs.core.Context;%0Aimport javax.ws.rs.core.HttpHeaders;%0Aimport javax.ws.rs.core.Response
 ;%0Aim
@@ -558,16 +558,16 @@
 class);%0A
-
     priv
@@ -626,16 +626,230 @@
  null;%0A%0A
+    @POST%0A    public Response timestamp(@Context HttpServletRequest request,%0A            @Context HttpHeaders headers) throws IOException %7B%0A        return Response.status(Response.Status.NOT_FOUND).build();%0A    %7D%0A%0A
     publ

Add POST method