Package com.amazonaws.services.s3.model

Examples of com.amazonaws.services.s3.model.LegacyS3ProgressListener


            }
        }

        com.amazonaws.util.ProgressListener progressListener = uploadPartRequest.getGeneralProgressListener();
        if (progressListener == null && uploadPartRequest.getProgressListener() != null) {
            progressListener = new LegacyS3ProgressListener(uploadPartRequest.getProgressListener());
        }

        if (progressListener != null) {
            inputStream = new ProgressReportingInputStream(inputStream, progressListener);
            fireProgressEvent(progressListener, com.amazonaws.event.ProgressEvent.STARTED_EVENT_CODE);
View Full Code Here


    }
   
    public com.amazonaws.event.ProgressListenerChain transformToGeneralProgressListenerChain() {
        com.amazonaws.event.ProgressListenerChain newProgressListenerChain = new com.amazonaws.event.ProgressListenerChain();
        for ( ProgressListener listener : listeners ) {
            newProgressListenerChain.addProgressListener(new LegacyS3ProgressListener(listener));
        }
        return newProgressListenerChain;
    }
View Full Code Here

    /**
     * @deprecated Replaced by {@link #addProgressListener(ProgressListener)}
     */
    @Deprecated
    public synchronized void addProgressListener(com.amazonaws.services.s3.model.ProgressListener listener) {
        progressListenerChain.addProgressListener(new LegacyS3ProgressListener(listener));
    }
View Full Code Here

    /**
     * @deprecated Replaced by {@link #removeProgressListener(ProgressListener)}
     */
    @Deprecated
    public synchronized void removeProgressListener(com.amazonaws.services.s3.model.ProgressListener listener) {
        progressListenerChain.removeProgressListener(new LegacyS3ProgressListener(listener));
    }
View Full Code Here

    /**
     * @deprecated Replaced by {@link #addProgressListener(ProgressListener)}
     */
    @Deprecated
    public synchronized void addProgressListener(com.amazonaws.services.s3.model.ProgressListener listener) {
        progressListenerChain.addProgressListener(new LegacyS3ProgressListener(listener));
    }
View Full Code Here

    /**
     * @deprecated Replaced by {@link #removeProgressListener(ProgressListener)}
     */
    @Deprecated
    public synchronized void removeProgressListener(com.amazonaws.services.s3.model.ProgressListener listener) {
        progressListenerChain.removeProgressListener(new LegacyS3ProgressListener(listener));
    }
View Full Code Here

        addStringListHeader(request, Headers.GET_OBJECT_IF_NONE_MATCH,
                getObjectRequest.getNonmatchingETagConstraints());

        com.amazonaws.util.ProgressListener progressListener = getObjectRequest.getGeneralProgressListener();
        if (progressListener == null && getObjectRequest.getProgressListener() != null) {
            progressListener = new LegacyS3ProgressListener(getObjectRequest.getProgressListener());
        }
        try {
            S3Object s3Object = invoke(request, new S3ObjectResponseHandler(), getObjectRequest.getBucketName(), getObjectRequest.getKey());

            /*
 
View Full Code Here

        String key = putObjectRequest.getKey();
        ObjectMetadata metadata = putObjectRequest.getMetadata();
        InputStream input = putObjectRequest.getInputStream();
        com.amazonaws.util.ProgressListener progressListener = putObjectRequest.getGeneralProgressListener();
        if (progressListener == null && putObjectRequest.getProgressListener() != null) {
            progressListener = new LegacyS3ProgressListener(putObjectRequest.getProgressListener());
        }

        if (metadata == null) metadata = new ObjectMetadata();

        assertParameterNotNull(bucketName, "The bucket name parameter must be specified when uploading an object");
View Full Code Here

            }
        }

        com.amazonaws.util.ProgressListener progressListener = uploadPartRequest.getGeneralProgressListener();
        if (progressListener == null && uploadPartRequest.getProgressListener() != null) {
            progressListener = new LegacyS3ProgressListener(uploadPartRequest.getProgressListener());
        }

        if (progressListener != null) {
            inputStream = new ProgressReportingInputStream(inputStream, progressListener);
            fireProgressEvent(progressListener, com.amazonaws.event.ProgressEvent.STARTED_EVENT_CODE);
View Full Code Here

    }
   
    public com.amazonaws.event.ProgressListenerChain transformToGeneralProgressListenerChain() {
        com.amazonaws.event.ProgressListenerChain newProgressListenerChain = new com.amazonaws.event.ProgressListenerChain();
        for ( ProgressListener listener : listeners ) {
            newProgressListenerChain.addProgressListener(new LegacyS3ProgressListener(listener));
        }
        return newProgressListenerChain;
    }
View Full Code Here

TOP

Related Classes of com.amazonaws.services.s3.model.LegacyS3ProgressListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.