All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.appland.appmap.reflect.apache.HttpEntity Maven / Gradle / Ivy

The newest version!
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();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy