Package | Description |
---|---|
bayou.file |
Utilities for files.
|
bayou.form |
Html form handling.
|
bayou.html |
For building html trees.
|
bayou.http |
Http server.
|
bayou.mime |
MIME related utilities.
|
bayou.text |
Utilities for texts.
|
Modifier and Type | Method and Description |
---|---|
ContentType |
FileHttpEntity.contentType()
The content type.
|
ContentType |
StaticFileConf.get_contentType() |
Modifier and Type | Method and Description |
---|---|
StaticFileConf |
StaticFileConf.contentType(ContentType contentType)
The content type of this file.
|
Constructor and Description |
---|
FileHttpEntity(Path filePath,
ContentType contentType)
Create an FileHttpEntity over the file specified by `filePath`.
|
Modifier and Type | Method and Description |
---|---|
ContentType |
FormDataFile.contentType()
The content type of the file, as reported by the client.
|
Constructor and Description |
---|
FormDataFile(String fileName,
ContentType contentType,
Path localPath,
long size)
Create a FormDataFile.
|
Modifier and Type | Method and Description |
---|---|
default ContentType |
HtmlDoc.getContentType()
Get the content type of this document, by default, "text/html;charset=UTF-8".
|
Modifier and Type | Method and Description |
---|---|
ContentType |
SimpleHttpEntity.contentType()
The content type.
|
default ContentType |
HttpEntityWrapper.contentType()
Equivalent to
getOriginEntity().contentType() by default. |
ContentType |
HttpEntity.contentType()
The content type.
|
ContentType |
CachedHttpEntity.contentType()
Return
"contentType" of the origin entity. |
Constructor and Description |
---|
SimpleHttpEntity(ContentType contentType,
byte[] bytes)
Create an HttpEntity with `bytes` as the body.
|
SimpleHttpEntity(ContentType contentType,
ByteBuffer bytes)
Create an HttpEntity with `bytes` as the body.
|
SimpleHttpEntity(ContentType contentType,
Stream<ByteBuffer> bytes)
Create an HttpEntity with `bytes` as the body.
|
SimpleHttpResponse(HttpStatus status,
ContentType contentType,
byte[] bytes) |
Modifier and Type | Field and Description |
---|---|
static ContentType |
ContentType.application_octet_stream
ContentType of
""application/octet-stream"" . |
static ContentType |
ContentType.json
ContentType of
"application/json" . |
static ContentType |
ContentType.json_UTF_8
ContentType of
"application/json;charset=UTF-8" . |
static ContentType |
ContentType.text_html_UTF_8
ContentType of
"text/html;charset=UTF-8" . |
static ContentType |
ContentType.text_plain
ContentType of
"text/plain" . |
static ContentType |
ContentType.text_plain_ISO88591
ContentType of
"text/plain;charset=ISO-8859-1" . |
static ContentType |
ContentType.text_plain_US_ASCII
ContentType of
"text/plain;charset=US-ASCII" . |
static ContentType |
ContentType.text_plain_UTF_8
ContentType of
"text/plain;charset=UTF-8" . |
Modifier and Type | Method and Description |
---|---|
ContentType |
FileSuffixToContentType.find(CharSequence filePath)
Find the ContentType of filePath.
|
ContentType |
FileSuffixToContentType.map(CharSequence fileSuffix,
ContentType contentType)
Add a mapping
fileSuffix→contentType . |
static ContentType |
ContentType.parse(String contentTypeString)
Parse a string into a ContentType.
|
Modifier and Type | Method and Description |
---|---|
Map<String,ContentType> |
FileSuffixToContentType.asMap()
Return the mapping
{fileSuffix→contentType } as a Map. |
Modifier and Type | Method and Description |
---|---|
ContentType |
FileSuffixToContentType.map(CharSequence fileSuffix,
ContentType contentType)
Add a mapping
fileSuffix→contentType . |
Modifier and Type | Method and Description |
---|---|
ContentType |
TextHttpEntity.contentType()
The content type.
|
ContentType |
TextDoc.getContentType()
Get the content type of this document, for example "text/html;charset=UTF-8".
|
Constructor and Description |
---|
TextHttpEntity(ContentType contentType,
CharSequence... texts)
Create a TextHttpEntity of the texts.
|
TextHttpEntity(ContentType contentType,
Stream<? extends CharSequence> texts)
Create a TextHttpEntity of the texts.
|