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
FakeS3Server
public FakeS3Server()
main
public static void main(String[] args)
throws Exception
- Parameters:
args
-
- Throws:
Exception
writeFileToOutputStream
public static void writeFileToOutputStream(File file,
OutputStream out)
throws Exception
- Throws:
Exception
toHex
public static String toHex(byte[] data)