com.appland.appmap.reflect.apache.HttpEntity Maven / Gradle / Ivy
package com.appland.appmap.reflect.apache;
import com.appland.appmap.reflect.ReflectiveType;
class HttpEntity extends ReflectiveType {
private static String GET_CONTENT_TYPE = "getContentType";
HttpEntity(Object self) {
super(self);
addMethods(GET_CONTENT_TYPE);
}
String getContentType() {
Object obj = invokeObjectMethod(GET_CONTENT_TYPE);
if (obj == null) {
return "";
}
return new Header(obj).getValue();
}
}