public class CidBuilder extends AbstractParent<AttachImageBuilder> implements Builder<IdGenerator>
Email
s.
Image defined in a html must be referenced by a
Content-ID (or
CID) if the image is attached to the email. You can define how CIDs are
generated.parent
Constructor and Description |
---|
CidBuilder(AttachImageBuilder parent,
BuildContext buildContext)
Initializes with the parent (used when calling
AbstractParent.and() method for
fluent chaining). |
Modifier and Type | Method and Description |
---|---|
IdGenerator |
build()
Instantiate and configures the instance.
|
CidBuilder |
generator(IdGenerator generator)
Image defined in a html must be referenced by a
Content-ID
(or CID) if the image is attached to the email.
|
CidBuilder |
sequential()
Image defined in a html must be referenced by a
Content-ID
(or CID) if the image is attached to the email.
|
and
public CidBuilder(AttachImageBuilder parent, BuildContext buildContext)
AbstractParent.and()
method for
fluent chaining).parent
- the parent builderbuildContext
- for registering instances and property evaluationpublic CidBuilder generator(IdGenerator generator)
IdGenerator
.
Use this method to provide custom CID generation strategy.
Any call to this method preempts any other configuration.
If this method is called several times, only the last provided value is used.
If null
value is provided, it disables custom generator.
generator
- the cid generatorpublic CidBuilder sequential()
IdGenerator
.
Enables basic sequential CID generation: 0, 1, 2, 3...
public IdGenerator build()
Builder
build
in interface Builder<IdGenerator>
Copyright © 2021. All rights reserved.