@Path(value="/unpack") public class UnpackerResource extends Object
Modifier and Type | Field and Description |
---|---|
static String |
TEXT_FILENAME |
Constructor and Description |
---|
UnpackerResource() |
Modifier and Type | Method and Description |
---|---|
static void |
metadataToCsv(Metadata metadata,
OutputStream outputStream) |
Map<String,byte[]> |
unpack(InputStream is,
javax.ws.rs.core.HttpHeaders httpHeaders,
javax.ws.rs.core.UriInfo info) |
Map<String,byte[]> |
unpackAll(InputStream is,
javax.ws.rs.core.HttpHeaders httpHeaders,
javax.ws.rs.core.UriInfo info) |
public static final String TEXT_FILENAME
public static void metadataToCsv(Metadata metadata, OutputStream outputStream) throws IOException
IOException
@Path(value="/{id:(/.*)?}") @PUT @Produces(value={"application/zip","application/x-tar"}) public Map<String,byte[]> unpack(InputStream is, @Context javax.ws.rs.core.HttpHeaders httpHeaders, @Context javax.ws.rs.core.UriInfo info) throws Exception
Exception
@Path(value="/all{id:(/.*)?}") @PUT @Produces(value={"application/zip","application/x-tar"}) public Map<String,byte[]> unpackAll(InputStream is, @Context javax.ws.rs.core.HttpHeaders httpHeaders, @Context javax.ws.rs.core.UriInfo info) throws Exception
Exception
Copyright © 2007–1969 The Apache Software Foundation. All rights reserved.