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

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,InputStream>
                  extended by org.javaswift.joss.command.impl.object.DownloadObjectAsInputStreamCommandImpl
All Implemented Interfaces:
Closeable, Callable<InputStream>, Command<InputStream>, DownloadObjectAsInputStreamCommand

public class DownloadObjectAsInputStreamCommandImpl
extends AbstractDownloadObjectCommand<org.apache.http.client.methods.HttpGet,InputStream>
implements DownloadObjectAsInputStreamCommand


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
DownloadObjectAsInputStreamCommandImpl(Account account, org.apache.http.client.HttpClient httpClient, Access access, StoredObject object, DownloadInstructions downloadInstructions)
           
 
Method Summary
protected  boolean closeStreamAutomatically()
           
protected  String getMd5()
           
protected  InputStream 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, 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

DownloadObjectAsInputStreamCommandImpl

public DownloadObjectAsInputStreamCommandImpl(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,InputStream>
Throws:
IOException

getMd5

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

getObjectAsReturnObject

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

closeStreamAutomatically

protected boolean closeStreamAutomatically()
Overrides:
closeStreamAutomatically in class AbstractCommand<org.apache.http.client.methods.HttpGet,InputStream>


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