com.appland.appmap.reflect.apache.HttpEntity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appmap-agent Show documentation
Show all versions of appmap-agent Show documentation
Inspect and record the execution of Java for use with App Land
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();
}
}