Class PartItem


  • public final class PartItem
    extends Object
    • Constructor Detail

      • PartItem

        public PartItem​(String name,
                        javax.ws.rs.core.MediaType type,
                        Object value,
                        String firstParamType)
    • Method Detail

      • getName

        public String getName()
      • getType

        public javax.ws.rs.core.MediaType getType()
      • getValue

        public Object getValue()
      • getFirstParamType

        public String getFirstParamType()
        If the value is a parameterized class like a List, it will return the raw representation of the first parameter type. For example, if it's a List, it will return "java.lang.String". If the value is not a parameterized class, it will return an empty string.
        Returns:
        the raw representation of the first parameter type in parameterized classes. Otherwise, empty string.