public class ManifestGeneratorImpl extends Object implements ManifestGenerator
ManifestGenerator.FORMAT
Constructor and Description |
---|
ManifestGeneratorImpl(String host,
String port,
Credential credential) |
ManifestGeneratorImpl(String host,
String port,
RestHttpHelper restHelper) |
ManifestGeneratorImpl(String host,
String port,
String context,
Credential credential) |
ManifestGeneratorImpl(String host,
String port,
String context,
RestHttpHelper restHelper) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkResponse(RestHttpHelper.HttpResponse response,
int expectedCode) |
InputStream |
getManifest(String storeId,
String spaceId,
ManifestGenerator.FORMAT format,
Date asOfDate)
This method generates the manifest for the given args.
|
public ManifestGeneratorImpl(String host, String port, Credential credential)
public ManifestGeneratorImpl(String host, String port, RestHttpHelper restHelper)
public ManifestGeneratorImpl(String host, String port, String context, Credential credential)
public ManifestGeneratorImpl(String host, String port, String context, RestHttpHelper restHelper)
public InputStream getManifest(String storeId, String spaceId, ManifestGenerator.FORMAT format, Date asOfDate) throws ManifestArgumentException, ManifestEmptyException
ManifestGenerator
getManifest
in interface ManifestGenerator
storeId
- of manifest itemsspaceId
- of manifest itemsformat
- of manifest (see ManifestGenerator.FORMAT
)asOfDate
- of manifest items (format: 'EEE, d MMM yyyy HH:mm:ss z')InputStream
of manifest contentManifestArgumentException
- if format or date are invalidManifestEmptyException
- if no manifest is createdprotected void checkResponse(RestHttpHelper.HttpResponse response, int expectedCode) throws ManifestArgumentException, ManifestEmptyException
Copyright © 2009-2013 DuraSpace. All Rights Reserved.