org.jets3t.tests
Class FakeS3Server
java.lang.Object
org.jets3t.tests.FakeS3Server
public class FakeS3Server
- extends java.lang.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
Method Summary |
static void |
main(java.lang.String[] args)
|
static java.lang.String |
toHex(byte[] data)
|
static void |
writeFileToOutputStream(java.io.File file,
java.io.OutputStream out)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FakeS3Server
public FakeS3Server()
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Parameters:
args
-
- Throws:
java.lang.Exception
writeFileToOutputStream
public static void writeFileToOutputStream(java.io.File file,
java.io.OutputStream out)
throws java.lang.Exception
- Throws:
java.lang.Exception
toHex
public static java.lang.String toHex(byte[] data)