diff options
author | Andrew M. Finkbeiner | 2014-05-19 21:00:29 +0000 |
---|---|---|
committer | Roberto E. Escobar | 2014-05-27 20:08:29 +0000 |
commit | 75c72e8acd356c8fa6d29ead2b9c44e14f89816b (patch) | |
tree | 344ac836150a5b348763323f5e2423d35c0c6861 /plugins/org.eclipse.osee.ote.rest | |
parent | 3aa03024adf6ea4a6734fb53c1fa781568e7c23b (diff) | |
download | org.eclipse.osee-75c72e8acd356c8fa6d29ead2b9c44e14f89816b.tar.gz org.eclipse.osee-75c72e8acd356c8fa6d29ead2b9c44e14f89816b.tar.xz org.eclipse.osee-75c72e8acd356c8fa6d29ead2b9c44e14f89816b.zip |
refinement[ats_ATS53141]: Remove content.zip link
Diffstat (limited to 'plugins/org.eclipse.osee.ote.rest')
-rw-r--r-- | plugins/org.eclipse.osee.ote.rest/src/org/eclipse/osee/ote/rest/internal/OteBatchResource.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.ote.rest/src/org/eclipse/osee/ote/rest/internal/OteBatchResource.java b/plugins/org.eclipse.osee.ote.rest/src/org/eclipse/osee/ote/rest/internal/OteBatchResource.java index 4f80a980d45..0b29c826f28 100644 --- a/plugins/org.eclipse.osee.ote.rest/src/org/eclipse/osee/ote/rest/internal/OteBatchResource.java +++ b/plugins/org.eclipse.osee.ote.rest/src/org/eclipse/osee/ote/rest/internal/OteBatchResource.java @@ -47,7 +47,7 @@ public class OteBatchResource { UriInfo uriInfo; @Context Request request; - private String path; + private final String path; public OteBatchResource(UriInfo uriInfo, Request request, String path) { this.uriInfo = uriInfo; @@ -70,10 +70,13 @@ public class OteBatchResource { HTMLBuilder builder = new HTMLBuilder(); builder.open("OTE Batch Status"); + /** + * Disaled till we figure out security if(uriInfo != null){ String url = uriInfo.getAbsolutePath().toASCIIString(); builder.addLink(url, "content.zip", "Get Folder Contents"); } + */ builder.commonHeader(myBatchFolder); @@ -182,6 +185,7 @@ public class OteBatchResource { @Produces({"application/zip"}) public StreamingOutput getZip() throws Exception { return new StreamingOutput() { + @Override public void write(OutputStream output) throws IOException, WebApplicationException { try { OTEApi ote = ServiceUtility.getService(OTEApi.class); |