类 Part<T>

  • 类型参数:
    T - the content type

    public abstract class Part<T>
    extends Object
    One part of multipart request.
    作者:
    Liu Dong
    • 构造器详细资料

      • Part

        protected Part​(String name,
                       T content)
        参数:
        name - the part name
        content - the content
    • 方法详细资料

      • name

        public String name()
        The part name
      • content

        public T content()
        The part content.
      • asPublisher

        protected abstract HttpRequest.BodyPublisher asPublisher()
        Get the content as InputStream. Implementations should return one new InputStream, for each call.
        返回:
        The InputStream
      • headerData

        protected abstract String headerData()
        Get header of part.