org.overlord.sramp.server.atom.services
Class BatchResource
java.lang.Object
org.overlord.sramp.server.atom.services.AbstractResource
org.overlord.sramp.server.atom.services.BatchResource
public class BatchResource
- extends AbstractResource
The JAX-RS resource that handles pushing artifacts into the repository in batches. The
S-RAMP specification defines two mechanisms for this. The first is via an archive file
and the second is via a multipart/related http POST.
- Author:
- eric.wittmann@redhat.com
|
Method Summary |
org.jboss.resteasy.plugins.providers.multipart.MultipartOutput |
zipPackage(javax.servlet.http.HttpServletRequest request,
String fileName,
InputStream content)
S-RAMP atom POST of a package file (.zip) containing the artifacts and meta data that
should be published in the repository. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BatchResource
public BatchResource()
- Constructor.
zipPackage
public org.jboss.resteasy.plugins.providers.multipart.MultipartOutput zipPackage(@Context
javax.servlet.http.HttpServletRequest request,
@HeaderParam(value="Slug")
String fileName,
InputStream content)
throws SrampAtomException
- S-RAMP atom POST of a package file (.zip) containing the artifacts and meta data that
should be published in the repository.
- Parameters:
fileName - the name of the .zip file (optional)content - the zip content
- Returns:
- a multipart/mixed response as defined in the S-RAMP Atom binding document
- Throws:
SrampAtomException
Copyright © 2011-2013 JBoss, a division of Red Hat. All Rights Reserved.