org.overlord.sramp.atom.services
Class BatchResource

java.lang.Object
  extended by org.overlord.sramp.atom.services.BatchResource

public class BatchResource
extends Object

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

Constructor Summary
BatchResource()
          Constructor.
 
Method Summary
 org.jboss.resteasy.plugins.providers.multipart.MultipartOutput zipPackage(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
 

Constructor Detail

BatchResource

public BatchResource()
Constructor.

Method Detail

zipPackage

public org.jboss.resteasy.plugins.providers.multipart.MultipartOutput zipPackage(@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-2012 JBoss, a division of Red Hat. All Rights Reserved.