com.visenze.visearch.internal.ResponseBase Maven / Gradle / Ivy
package com.visenze.visearch.internal;
import com.google.common.collect.Maps;
import java.util.Map;
public abstract class ResponseBase {
private String errorMessage;
private Throwable cause;
private String rawResponseMessage;
protected Map headers = Maps.newHashMap();
public void setHeaders(Map headers) {
this.headers = headers;
}
public Map getHeaders() {
return headers;
}
public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}
public String getErrorMessage() {
return this.errorMessage;
}
public void setCause(Throwable e) {
this.cause = e;
}
public Throwable getCause() {
return this.cause;
}
public void setRawResponseMessage(String rawResponseMessage) {
this.rawResponseMessage = rawResponseMessage;
}
public String getRawResponseMessage() {
return this.rawResponseMessage;
}
}