org.jets3t.tests
Class PutViaSocket
java.lang.Object
org.jets3t.tests.PutViaSocket
public class PutViaSocket
- extends Object
Very basic client implementation able to PUT files into S3 using the Java
socket implementation directly, with no HTTP library or transport of any kind.
To use this class:
- provide a test.properties file in the classpath
that contains the settings aws.accesskey and aws.secretkey
- modify the filename and bucketName variables in main() to
provide the file you wish to upload, and the already existing buckety you
want to upload it to in S3
- Author:
- James Murty
PutViaSocket
public PutViaSocket()
main
public static void main(String[] args)
throws Exception
- Throws:
Exception