com.obs.services.internal.trans.NewTransResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of esdk-obs-java-bundle Show documentation
Show all versions of esdk-obs-java-bundle Show documentation
The HuaweiCloud OBS Bundle SDK for Java used for accessing Object Storage Service, this SDK bundle
includes third-party libraries and relocated to different namespaces
The newest version!
package com.obs.services.internal.trans;
import com.obs.services.internal.utils.CallCancelHandler;
import com.obs.services.model.HttpMethodEnum;
import okhttp3.RequestBody;
import java.util.HashMap;
import java.util.Map;
public class NewTransResult {
private Map headers;
private Map userHeaders;
private Map params;
private RequestBody body;
private String bucketName;
private String objectKey;
private HttpMethodEnum httpMethod;
private boolean encodeHeaders = false;
private boolean encodeUrl = true;
protected CallCancelHandler cancelHandler;
public NewTransResult() {
}
public NewTransResult(Map headers) {
this.headers = headers;
this.params = new HashMap<>();
}
public Map getHeaders() {
if (this.headers == null) {
headers = new HashMap<>();
}
return this.headers;
}
public Map getParams() {
if (this.params == null) {
params = new HashMap<>();
}
return this.params;
}
public Map getUserHeaders() {
if (this.userHeaders == null) {
userHeaders = new HashMap<>();
}
return this.userHeaders;
}
public void setUserHeaders(Map userHeaders) {
this.userHeaders = userHeaders;
}
public void setParams(Map params) {
this.params = params;
}
public void setHeaders(Map headers) {
this.headers = headers;
}
public void setBucketName(String bucketName) {
this.bucketName = bucketName;
}
public void setObjectKey(String objectKey) {
this.objectKey = objectKey;
}
public String getBucketName() {
return bucketName;
}
public String getObjectKey() {
return objectKey;
}
public void setBody(RequestBody body) {
this.body = body;
}
public void setHttpMethod(HttpMethodEnum httpMethod) {
this.httpMethod = httpMethod;
}
public HttpMethodEnum getHttpMethod() {
return httpMethod;
}
public RequestBody getBody() {
return body;
}
public void setIsEncodeHeaders(boolean encodeHeaders) {
this.encodeHeaders = encodeHeaders;
}
public boolean isEncodeHeaders() {
return encodeHeaders;
}
public boolean isEncodeUrl() {
return encodeUrl;
}
public void setEncodeUrl(boolean encodeUrl) {
this.encodeUrl = encodeUrl;
}
public CallCancelHandler getCancelHandler() {
return cancelHandler;
}
public void setCancelHandler(CallCancelHandler cancelHandler) {
this.cancelHandler = cancelHandler;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy