Package org.jets3t.tests
Class FakeS3Server
- java.lang.Object
-
- org.jets3t.tests.FakeS3Server
-
public class FakeS3Server extends Object
Very basic implementation of an S3 server-side stub that can fake certain S3 interactions including:- Logging in using S3-stored credentials (passphrase/password=please/please)
- Listing buckets
- Listing the contents of an empty bucket
- Allowing for PUT uploads, with generation and comparison of an MD5 digest for data received
- Author:
- James Murty
-
-
Constructor Summary
Constructors Constructor Description FakeS3Server()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
static String
toHex(byte[] data)
static void
writeFileToOutputStream(File file, OutputStream out)
-