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

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,byte[]>
                  extended by org.javaswift.joss.command.impl.object.DownloadObjectAsByteArrayCommandImpl
All Implemented Interfaces:
Closeable, Callable<byte[]>, Command<byte[]>, DownloadObjectAsByteArrayCommand

public class DownloadObjectAsByteArrayCommandImpl
extends AbstractDownloadObjectCommand<org.apache.http.client.methods.HttpGet,byte[]>
implements DownloadObjectAsByteArrayCommand


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
DownloadObjectAsByteArrayCommandImpl(Account account, org.apache.http.client.HttpClient httpClient, Access access, StoredObject object, DownloadInstructions downloadInstructions)
           
 
Method Summary
protected  String getMd5()
           
protected  byte[] 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

DownloadObjectAsByteArrayCommandImpl

public DownloadObjectAsByteArrayCommandImpl(Account account,
                                            org.apache.http.client.HttpClient httpClient,
                                            Access access,
                                            StoredObject object,
                                            DownloadInstructions downloadInstructions)
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,byte[]>
Throws:
IOException

getMd5

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

getObjectAsReturnObject

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


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