| Package | Description |
|---|---|
| net.lecousin.framework.network.mime.entity |
Mime body entities.
|
| net.lecousin.framework.network.mime.transfer |
MIME transfer encoding.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BinaryEntity
Binary entity.
|
class |
BinaryFileEntity
Binary entity.
|
class |
EmptyEntity
Empty entity.
|
class |
FormDataEntity
form-data entity, see RFC 2388.
|
static class |
FormDataEntity.PartField
Part for a field.
|
static class |
FormDataEntity.PartFile
Part for a file.
|
class |
FormUrlEncodedEntity
Form parameters using x-www-form-urlencoded format.
|
class |
MultipartEntity
Multi-part entity, see RFC 1341.
|
class |
TextEntity
Text entity.
|
| Modifier and Type | Field and Description |
|---|---|
protected MimeEntity |
MimeEntity.parent |
| Modifier and Type | Field and Description |
|---|---|
protected LinkedList<MimeEntity> |
MultipartEntity.parts |
| Modifier and Type | Method and Description |
|---|---|
<T extends MimeEntity> |
MultipartEntity.getPartsOfType(Class<T> type)
Return the parts compatible with the given type.
|
| Modifier and Type | Method and Description |
|---|---|
MimeEntity |
MimeEntityFactory.create(MimeEntity parent,
MimeHeaders headers)
Create a MimeEntity.
|
MimeEntity |
FormDataEntity.FormDataPartFactory.create(MimeEntity parent,
MimeHeaders headers) |
MimeEntity |
DefaultMimeEntityFactory.create(MimeEntity parent,
MimeHeaders headers)
Create a MimeEntity based on its content type.
|
MimeEntity |
MimeEntity.Transfer.getEntity() |
MimeEntity |
MimeEntity.getParent() |
| Modifier and Type | Method and Description |
|---|---|
net.lecousin.framework.concurrent.async.AsyncSupplier<MimeEntity,IOException> |
MimeEntity.Parser.getOutput() |
List<MimeEntity> |
MultipartEntity.getParts() |
static net.lecousin.framework.concurrent.async.AsyncSupplier<MimeEntity,IOException> |
MimeEntity.parse(net.lecousin.framework.io.IO.Readable input,
MimeEntityFactory entityFactory)
Parse the given input as a MimeEntity.
|
| Modifier and Type | Method and Description |
|---|---|
void |
MultipartEntity.add(MimeEntity part)
Append a part.
|
MimeEntity |
MimeEntityFactory.create(MimeEntity parent,
MimeHeaders headers)
Create a MimeEntity.
|
MimeEntity |
FormDataEntity.FormDataPartFactory.create(MimeEntity parent,
MimeHeaders headers) |
MimeEntity |
DefaultMimeEntityFactory.create(MimeEntity parent,
MimeHeaders headers)
Create a MimeEntity based on its content type.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultMimeEntityFactory.register(String mainType,
String subType,
Class<? extends MimeEntity> clazz)
Register a MimeEntity class for a given content type.
|
| Constructor and Description |
|---|
BinaryEntity(MimeEntity parent,
MimeHeaders headers)
From existing headers.
|
BinaryEntity(MimeEntity parent,
ParameterizedHeaderValue contentType,
net.lecousin.framework.io.IO.Readable content)
Constructor.
|
BinaryFileEntity(MimeEntity parent,
MimeHeaders headers)
From existing headers.
|
BinaryFileEntity(MimeEntity parent,
ParameterizedHeaderValue contentType,
File file)
Constructor.
|
EmptyEntity(MimeEntity parent,
MimeHeaders headers)
Constructor.
|
FormDataEntity(MimeEntity parent,
MimeHeaders headers)
Constructor.
|
FormUrlEncodedEntity(MimeEntity parent,
MimeHeaders headers)
Constructor.
|
MimeEntity(MimeEntity parent)
Constructor.
|
MimeEntity(MimeEntity parent,
MimeHeaders headers)
Constructor.
|
MultipartEntity(MimeEntity parent,
MimeHeaders headers)
From existing headers.
|
TextEntity(MimeEntity parent,
MimeHeaders from)
From existing headers.
|
| Modifier and Type | Method and Description |
|---|---|
static net.lecousin.framework.concurrent.async.IAsync<IOException> |
MimeTransfer.transfer(MimeEntity entity,
Supplier<List<MimeHeader>> trailerSupplier,
net.lecousin.framework.concurrent.util.AsyncConsumer<ByteBuffer,IOException> sender)
Transfer a MIME entity to the sender.
|
Copyright © 2020. All rights reserved.