| .. | .. |
|---|
| 7 | 7 | import javax.inject.Named; |
|---|
| 8 | 8 | import javax.servlet.http.HttpServletRequest; |
|---|
| 9 | 9 | import javax.ws.rs.Consumes; |
|---|
| 10 | | -import javax.ws.rs.DefaultValue; |
|---|
| 11 | 10 | import javax.ws.rs.FormParam; |
|---|
| 12 | 11 | import javax.ws.rs.GET; |
|---|
| 13 | 12 | import javax.ws.rs.POST; |
|---|
| 14 | 13 | import javax.ws.rs.Path; |
|---|
| 15 | | -import javax.ws.rs.PathParam; |
|---|
| 16 | 14 | import javax.ws.rs.Produces; |
|---|
| 17 | | -import javax.ws.rs.QueryParam; |
|---|
| 18 | 15 | import javax.ws.rs.core.Context; |
|---|
| 19 | 16 | import javax.ws.rs.core.MediaType; |
|---|
| 20 | 17 | import javax.ws.rs.core.Response; |
|---|
| 21 | | - |
|---|
| 22 | | -import net.curisit.integrity.beans.ServerConfigVersions; |
|---|
| 23 | | -import net.curisit.integrity.beans.ServiceResponse; |
|---|
| 24 | 18 | |
|---|
| 25 | 19 | import org.apache.commons.io.IOUtils; |
|---|
| 26 | 20 | import org.apache.logging.log4j.LogManager; |
|---|
| .. | .. |
|---|
| 88 | 82 | return Response.ok("OK").build(); |
|---|
| 89 | 83 | } |
|---|
| 90 | 84 | |
|---|
| 91 | | - @GET |
|---|
| 92 | | - @Path("/current/{license}") |
|---|
| 93 | | - @Produces({ |
|---|
| 94 | | - MediaType.APPLICATION_JSON |
|---|
| 95 | | - }) |
|---|
| 96 | | - public ServiceResponse<ServerConfigVersions> testFile(@PathParam("license") String license, |
|---|
| 97 | | - @DefaultValue("-1") @QueryParam("minorVersion") int minorVersion, @DefaultValue("-1") @QueryParam("majorVersion") int majorVersion) { |
|---|
| 98 | | - |
|---|
| 99 | | - LOG.info("Called 'current' service with license: {}", license); |
|---|
| 100 | | - ServiceResponse<ServerConfigVersions> response = new ServiceResponse<ServerConfigVersions>(); |
|---|
| 101 | | - |
|---|
| 102 | | - return response; |
|---|
| 103 | | - } |
|---|
| 85 | +// @GET |
|---|
| 86 | +// @Path("/current/{license}") |
|---|
| 87 | +// @Produces({ |
|---|
| 88 | +// MediaType.APPLICATION_JSON |
|---|
| 89 | +// }) |
|---|
| 90 | +// public ServiceResponse<ServerConfigVersions> testFile(@PathParam("license") String license, |
|---|
| 91 | +// @DefaultValue("-1") @QueryParam("minorVersion") int minorVersion, @DefaultValue("-1") @QueryParam("majorVersion") int majorVersion) { |
|---|
| 92 | +// |
|---|
| 93 | +// LOG.info("Called 'current' service with license: {}", license); |
|---|
| 94 | +// ServiceResponse<ServerConfigVersions> response = new ServiceResponse<ServerConfigVersions>(); |
|---|
| 95 | +// |
|---|
| 96 | +// return response; |
|---|
| 97 | +// } |
|---|
| 104 | 98 | |
|---|
| 105 | 99 | public static class FileUploadForm { |
|---|
| 106 | 100 | |
|---|