- java.lang.Object
-
- net.dongliu.cute.http.body.Part<T>
-
- 类型参数:
T- the content type
public abstract class Part<T> extends Object
One part of multipart request.- 作者:
- Liu Dong
-
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 protected abstract HttpRequest.BodyPublisherasPublisher()Get the content as InputStream.Tcontent()The part content.protected abstract StringheaderData()Get header of part.Stringname()The part name
-
-
-
方法详细资料
-
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.
-
-