接口 BodyDescriptorBuilder
public interface BodyDescriptorBuilder
Description:
Title:首亨软件 - TSS/CRM等
- 从以下版本开始:
- Aug 16, 2012
-
方法概要
修饰符和类型方法说明Updates builder's internal state by adding a new field.build()Builds an instance ofBodyDescriptorbased on the internal state.newChild()Creates an instance ofBodyDescriptorBuilderto be used for processing of an embedded content body.voidreset()Resets the internal state of the builder making it ready to process new input.
-
方法详细资料
-
reset
void reset()Resets the internal state of the builder making it ready to process new input. -
addField
Updates builder's internal state by adding a new field. The builder can optionally transform the unstructured field given an an input into a structured one and return an instanceFieldthat also implements a richer interface for a particular type of fields such asContent-Type. The builder can also returnnullif the field is to be ignored.- 参数:
field- RawField- 返回:
- Field
- 抛出:
MimeException- MimeException
-
build
BodyDescriptor build()Builds an instance ofBodyDescriptorbased on the internal state.- 返回:
- BodyDescriptor
-
newChild
BodyDescriptorBuilder newChild()Creates an instance ofBodyDescriptorBuilderto be used for processing of an embedded content body. Please the child instance can inherit some of its parent properties such as MIME type.- 返回:
- BodyDescriptorBuilder
-