public abstract class AbstractPart<T> extends Object implements MultipartPart<T>
| 限定符和类型 | 字段和说明 |
|---|---|
protected Charset |
charset |
protected ContentType |
contentType |
protected String |
filename |
protected String |
name |
| 构造器和说明 |
|---|
AbstractPart(String name,
ContentType contentType,
Charset charset) |
| 限定符和类型 | 方法和说明 |
|---|---|
Charset |
getCharset() |
ContentType |
getContentType() |
String |
getFilename() |
HttpHeaders |
getHeaders() |
String |
getName() |
void |
setContentId(String contentId) |
void |
setDispositionType(String dispositionType) |
void |
setFilename(String filename) |
void |
setHeader(Header header) |
void |
setHeader(String name,
String value) |
void |
setTransferEncoding(String transferEncoding) |
protected static Charset |
toCharset(ContentType contentType) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContent, getContentLength, getContentStream, getContentTypeHeader, writeTo, writeToprotected final String name
protected final ContentType contentType
protected final Charset charset
protected String filename
public AbstractPart(@Nonnull
String name,
ContentType contentType,
Charset charset)
public String getName()
getName 在接口中 MultipartPart<T>public String getFilename()
getFilename 在接口中 MultipartPart<T>public void setFilename(String filename)
public HttpHeaders getHeaders()
getHeaders 在接口中 MultipartPart<T>public void setHeader(@Nonnull
Header header)
public Charset getCharset()
getCharset 在接口中 MultipartPart<T>public ContentType getContentType()
getContentType 在接口中 ContentBody<T>public void setTransferEncoding(@Nonnull
String transferEncoding)
public void setContentId(@Nonnull
String contentId)
public void setDispositionType(@Nonnull
String dispositionType)
protected static Charset toCharset(ContentType contentType)
Copyright © 2024. All rights reserved.