Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2011 GitHub Inc. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html Contributors: Kevin Sawicki (GitHub Inc.) - initial API and implementation /
 
 package org.eclipse.egit.github.core;
 
 import java.util.Date;
 
Extension of Download to represent the initiation of a download with metadata about where to put the actual content when uploading.
 
 public class DownloadResource extends Download {

serialVersionUID
 
 	private static final long serialVersionUID = 4522843864589481490L;
 
 	private boolean redirect;
 
 	private Date expirationdate;
 
 	private String accesskeyid;
 
 	private String acl;
 
 	private String mimeType;
 
 	private String path;
 
 	private String policy;
 
 	private String prefix;
 
 	private String s3Url;
 
 	private String signature;

Returns:
redirect
 
 	public boolean isRedirect() {
 		return ;
 	}

Parameters:
redirect
Returns:
this download resource
 
 	public DownloadResource setRedirect(boolean redirect) {
 		this. = redirect;
 		return this;
 	}

Returns:
expirationdate
 
 	public Date getExpirationdate() {
 		return DateUtils.clone();
 	}

Parameters:
expirationdate
Returns:
this download resource
 
 	public DownloadResource setExpirationdate(Date expirationdate) {
 		this. = DateUtils.clone(expirationdate);
 		return this;
 	}

Returns:
accesskeyid
 
 	public String getAccesskeyid() {
 		return ;
 	}

Parameters:
accesskeyid
Returns:
this download resource
 
 	public DownloadResource setAccesskeyid(String accesskeyid) {
 		this. = accesskeyid;
 		return this;
 	}

Returns:
acl
 
 	public String getAcl() {
 		return ;
 	}

Parameters:
acl
Returns:
this download resource
	public DownloadResource setAcl(String acl) {
		this. = acl;
		return this;
	}

Returns:
mimeType
	public String getMimeType() {
		return ;
	}

Parameters:
mimeType
Returns:
this download resource
	public DownloadResource setMimeType(String mimeType) {
		this. = mimeType;
		return this;
	}

Returns:
path
	public String getPath() {
		return ;
	}

Parameters:
path
Returns:
this download resource
	public DownloadResource setPath(String path) {
		this. = path;
		return this;
	}

Returns:
policy
	public String getPolicy() {
		return ;
	}

Parameters:
policy
Returns:
this download resource
	public DownloadResource setPolicy(String policy) {
		this. = policy;
		return this;
	}

Returns:
prefix
	public String getPrefix() {
		return ;
	}

Parameters:
prefix
Returns:
this download resource
	public DownloadResource setPrefix(String prefix) {
		this. = prefix;
		return this;
	}

Returns:
s3Url
	public String getS3Url() {
		return ;
	}

Parameters:
s3Url
Returns:
this download resource
	public DownloadResource setS3Url(String s3Url) {
		this. = s3Url;
		return this;
	}

Returns:
signature
	public String getSignature() {
		return ;
	}

Parameters:
signature
Returns:
this download resource
	public DownloadResource setSignature(String signature) {
		this. = signature;
		return this;
	}
New to GrepCode? Check out our FAQ X