org.javaswift.joss.command.impl.object
Class UploadObjectCommandImpl

java.lang.Object
  extended by org.javaswift.joss.command.impl.core.AbstractCommand<M,N>
      extended by org.javaswift.joss.command.impl.core.AbstractSecureCommand<M,N>
          extended by org.javaswift.joss.command.impl.object.AbstractObjectCommand<org.apache.http.client.methods.HttpPut,Object>
              extended by org.javaswift.joss.command.impl.object.UploadObjectCommandImpl
All Implemented Interfaces:
Closeable, Callable<Object>, Command<Object>, UploadObjectCommand

public class UploadObjectCommandImpl
extends AbstractObjectCommand<org.apache.http.client.methods.HttpPut,Object>
implements UploadObjectCommand


Field Summary
 
Fields inherited from class org.javaswift.joss.command.impl.core.AbstractCommand
LOG, request, response
 
Constructor Summary
UploadObjectCommandImpl(Account account, org.apache.http.client.HttpClient httpClient, Access access, StoredObject target, UploadInstructions uploadInstructions)
           
 
Method Summary
protected  org.apache.http.client.methods.HttpPut createRequest(String url)
           
 HttpStatusChecker[] getStatusCheckers()
           
protected  void prepareUpload(UploadInstructions uploadInstructions)
           
 
Methods inherited from class org.javaswift.joss.command.impl.core.AbstractSecureCommand
call, getURL, setConnectionKeepAlive
 
Methods inherited from class org.javaswift.joss.command.impl.core.AbstractCommand
addHeaders, close, closeStreamAutomatically, createObjectMapper, getReturnObject, modifyURI, setAllowErrorLog, setHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.javaswift.joss.command.shared.core.Command
call
 

Constructor Detail

UploadObjectCommandImpl

public UploadObjectCommandImpl(Account account,
                               org.apache.http.client.HttpClient httpClient,
                               Access access,
                               StoredObject target,
                               UploadInstructions uploadInstructions)
Method Detail

prepareUpload

protected void prepareUpload(UploadInstructions uploadInstructions)
                      throws IOException
Throws:
IOException

createRequest

protected org.apache.http.client.methods.HttpPut createRequest(String url)
Specified by:
createRequest in class AbstractCommand<org.apache.http.client.methods.HttpPut,Object>

getStatusCheckers

public HttpStatusChecker[] getStatusCheckers()
Specified by:
getStatusCheckers in class AbstractCommand<org.apache.http.client.methods.HttpPut,Object>


Copyright © 2012-2014 42 BV. All Rights Reserved.