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

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.HttpGet,N>
              extended by org.javaswift.joss.command.impl.object.AbstractDownloadObjectCommand<org.apache.http.client.methods.HttpGet,Object>
                  extended by org.javaswift.joss.command.impl.object.DownloadObjectToFileCommandImpl
All Implemented Interfaces:
Closeable, Callable<Object>, Command<Object>, DownloadObjectToFileCommand

public class DownloadObjectToFileCommandImpl
extends AbstractDownloadObjectCommand<org.apache.http.client.methods.HttpGet,Object>
implements DownloadObjectToFileCommand


Field Summary
 
Fields inherited from class org.javaswift.joss.command.impl.object.AbstractDownloadObjectCommand
CONTENT_LENGTH, ETAG
 
Fields inherited from class org.javaswift.joss.command.impl.core.AbstractCommand
LOG, request, response
 
Constructor Summary
DownloadObjectToFileCommandImpl(Account account, org.apache.http.client.HttpClient httpClient, Access access, StoredObject object, DownloadInstructions downloadInstructions, File targetFile)
           
 
Method Summary
protected  String getMd5()
           
protected  Object getObjectAsReturnObject()
           
protected  void handleEntity(org.apache.http.HttpEntity entity)
           
 
Methods inherited from class org.javaswift.joss.command.impl.object.AbstractDownloadObjectCommand
createRequest, getReturnObject, getStatusCheckers
 
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, 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

DownloadObjectToFileCommandImpl

public DownloadObjectToFileCommandImpl(Account account,
                                       org.apache.http.client.HttpClient httpClient,
                                       Access access,
                                       StoredObject object,
                                       DownloadInstructions downloadInstructions,
                                       File targetFile)
Method Detail

handleEntity

protected void handleEntity(org.apache.http.HttpEntity entity)
                     throws IOException
Specified by:
handleEntity in class AbstractDownloadObjectCommand<org.apache.http.client.methods.HttpGet,Object>
Throws:
IOException

getMd5

protected String getMd5()
                 throws IOException
Specified by:
getMd5 in class AbstractDownloadObjectCommand<org.apache.http.client.methods.HttpGet,Object>
Throws:
IOException

getObjectAsReturnObject

protected Object getObjectAsReturnObject()
Specified by:
getObjectAsReturnObject in class AbstractDownloadObjectCommand<org.apache.http.client.methods.HttpGet,Object>


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