raml.tools.model.ResponseContext Maven / Gradle / Ivy
package raml.tools.model;
import org.raml.model.MimeType;
import org.raml.model.Response;
import org.raml.model.parameter.Header;
import java.util.Collections;
import java.util.Map;
public class ResponseContext {
Response response;
public ResponseContext(Response response) {
this.response = response;
}
public Map getHeaders() {
return response.getHeaders() == null ? Collections.emptyMap() : response.getHeaders();
}
public String getDescription() {
return response.getDescription();
}
public Map getBody() {
return response.getBody() == null ? Collections.emptyMap() : response.getBody();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy