com.microsoft.azure.storage.SharedAccessHeaders Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-storage Show documentation
Show all versions of azure-storage Show documentation
SDK for Microsoft Azure Storage Clients
/**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.microsoft.azure.storage;
import com.microsoft.azure.storage.core.Utility;
/**
* RESERVED FOR INTERNAL USE. Represents the optional headers that can be returned using SAS.
*/
public abstract class SharedAccessHeaders {
/**
* The cache-control header returned.
*/
private String cacheControl;
/**
* The content-disposition header returned.
*/
private String contentDisposition;
/**
* The content-encoding header returned.
*/
private String contentEncoding;
/**
* The content-language header returned.
*/
private String contentLanguage;
/**
* The content-type header returned.
*/
private String contentType;
/**
* Initializes a new instance of the {@link SharedAccessHeaders} class.
*/
public SharedAccessHeaders() {
}
/**
* Initializes a new instance of the {@link SharedAccessHeaders} class based on an existing instance.
*
* @param other
* A {@link SharedAccessHeaders} object which specifies the set of properties to clone.
*/
public SharedAccessHeaders(SharedAccessHeaders other) {
Utility.assertNotNull("other", other);
this.contentType = other.contentType;
this.contentDisposition = other.contentDisposition;
this.contentEncoding = other.contentEncoding;
this.contentLanguage = other.contentLanguage;
this.cacheControl = other.cacheControl;
}
/**
* Gets the cache control header.
*
* @return A String
which represents the cache control header.
*/
public String getCacheControl() {
return this.cacheControl;
}
/**
* Sets the cache control header.
*
* @param cacheControl
* A String
which specifies the cache control header.
*/
public void setCacheControl(String cacheControl) {
this.cacheControl = cacheControl;
}
/**
* Gets the content disposition header.
*
* @return A String
which represents the content disposition header.
*/
public String getContentDisposition() {
return this.contentDisposition;
}
/**
* Sets the content disposition header.
*
* @param contentDisposition
* A String
which specifies the content disposition header.
*/
public void setContentDisposition(String contentDisposition) {
this.contentDisposition = contentDisposition;
}
/**
* Gets the content encoding header.
*
* @return A String
which represents the content encoding header.
*/
public String getContentEncoding() {
return this.contentEncoding;
}
/**
* Sets the content encoding header.
*
* @param contentEncoding
* A String
which specifies the content encoding header.
*/
public void setContentEncoding(String contentEncoding) {
this.contentEncoding = contentEncoding;
}
/**
* Gets the content language header.
*
* @return A String
which represents the content language header.
*/
public String getContentLanguage() {
return this.contentLanguage;
}
/**
* Sets the content language header.
*
* @param contentLanguage
* A String
which specifies the content language header.
*/
public void setContentLanguage(String contentLanguage) {
this.contentLanguage = contentLanguage;
}
/**
* Gets the content type header.
*
* @return A String
which represents the content type header.
*/
public String getContentType() {
return this.contentType;
}
/**
* Sets the content type header.
*
* @param contentType
* A String
which specifies the content type header.
*/
public void setContentType(String contentType) {
this.contentType = contentType;
}
}