| Package | Description |
|---|---|
| com.linecorp.armeria.client |
Client core.
|
| com.linecorp.armeria.common.logging | |
| com.linecorp.armeria.server |
Server core.
|
| Modifier and Type | Field and Description |
|---|---|
static ClientOption<ContentPreviewerFactory> |
ClientOption.REQ_CONTENT_PREVIEWER_FACTORY
Sets the
ContentPreviewerFactory for a Request. |
static ClientOption<ContentPreviewerFactory> |
ClientOption.RES_CONTENT_PREVIEWER_FACTORY
Sets the
ContentPreviewerFactory for a Response. |
| Modifier and Type | Method and Description |
|---|---|
ContentPreviewerFactory |
ClientOptions.requestContentPreviewerFactory()
Returns the request
ContentPreviewerFactory. |
ContentPreviewerFactory |
ClientOptions.responseContentPreviewerFactory()
Returns the response
ContentPreviewerFactory. |
| Modifier and Type | Method and Description |
|---|---|
static ContentPreviewerFactory |
ContentPreviewerFactory.disabled()
A dummy
ContentPreviewerFactory which returns ContentPreviewer.disabled(). |
static ContentPreviewerFactory |
ContentPreviewerFactory.of(ContentPreviewerFactory... factories)
Creates a new instance of
ContentPreviewerFactory
which wraps a list of ContentPreviewerFactorys. |
static ContentPreviewerFactory |
ContentPreviewerFactory.of(Iterable<? extends ContentPreviewerFactory> factories)
Creates a new instance of
ContentPreviewerFactory
which wraps a list of ContentPreviewerFactorys. |
static ContentPreviewerFactory |
ContentPreviewerFactory.of(Map<MediaType,? extends Supplier<? extends ContentPreviewer>> map)
Creates a new instance of
ContentPreviewerFactory which creates a ContentPreviewer
through the supplier that matches with "content-type" header. |
static ContentPreviewerFactory |
ContentPreviewerFactory.of(MediaType contentType,
Supplier<? extends ContentPreviewer> supplier)
Creates a new instance of
ContentPreviewerFactory which creates a ContentPreviewer
through supplier for the request/response with the contentType. |
static ContentPreviewerFactory |
ContentPreviewerFactory.of(String contentType,
Supplier<? extends ContentPreviewer> supplier)
Creates a new instance of
ContentPreviewerFactory which creates a ContentPreviewer
through supplier for the request/response with the contentType. |
static ContentPreviewerFactory |
ContentPreviewerFactory.of(Supplier<? extends ContentPreviewer> supplier,
Iterable<MediaType> contentTypes)
Creates a new instance of
ContentPreviewerFactory which creates a ContentPreviewer
through supplier if a request/response matches any of contentTypes. |
static ContentPreviewerFactory |
ContentPreviewerFactory.of(Supplier<? extends ContentPreviewer> supplier,
MediaType... contentTypes)
Creates a new instance of
ContentPreviewerFactory which creates a ContentPreviewer
through supplier if a request/response matches any of contentTypes. |
static ContentPreviewerFactory |
ContentPreviewerFactory.of(Supplier<? extends ContentPreviewer> supplier,
String... contentTypes)
Creates a new instance of
ContentPreviewerFactory which creates a ContentPreviewer
through supplier if the content type of a request/response matches any of contentTypes. |
static ContentPreviewerFactory |
ContentPreviewerFactory.ofText(int length)
Creates a new instance of
ContentPreviewerFactory for creating a ContentPreviewer. |
static ContentPreviewerFactory |
ContentPreviewerFactory.ofText(int length,
Charset defaultCharset)
Creates a new instance of
ContentPreviewerFactory for creating a ContentPreviewer. |
static ContentPreviewerFactory |
ContentPreviewerFactory.ofText(int length,
Charset defaultCharset,
Iterable<MediaType> contentTypes)
Creates a new instance of
ContentPreviewerFactory for creating a ContentPreviewer
which produces the text with the maximum length
if the content type of a request/response matches any of contentTypes. |
static ContentPreviewerFactory |
ContentPreviewerFactory.ofText(int length,
Charset defaultCharset,
MediaType... contentTypes)
Creates a new instance of
ContentPreviewerFactory for creating a ContentPreviewer
which produces the text with the maximum length
if the content type of a request/response matches any of contentTypes. |
static ContentPreviewerFactory |
ContentPreviewerFactory.ofText(int length,
Charset defaultCharset,
String... contentTypes)
Creates a new instance of
ContentPreviewerFactory for creating a ContentPreviewer
which produces the text with the maximum length limit
if the content type of a request/response matches any of contentTypes. |
| Modifier and Type | Method and Description |
|---|---|
static ContentPreviewerFactory |
ContentPreviewerFactory.of(ContentPreviewerFactory... factories)
Creates a new instance of
ContentPreviewerFactory
which wraps a list of ContentPreviewerFactorys. |
| Modifier and Type | Method and Description |
|---|---|
static ContentPreviewerFactory |
ContentPreviewerFactory.of(Iterable<? extends ContentPreviewerFactory> factories)
Creates a new instance of
ContentPreviewerFactory
which wraps a list of ContentPreviewerFactorys. |
| Constructor and Description |
|---|
DefaultRequestLog(RequestContext ctx,
ContentPreviewerFactory requestContentPreviewerFactory,
ContentPreviewerFactory responseContentPreviewerFactory)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
ContentPreviewerFactory |
VirtualHost.requestContentPreviewerFactory()
Returns the
ContentPreviewerFactory used for creating a new ContentPreviewer
which produces the request content preview of this virtual host. |
ContentPreviewerFactory |
ServiceConfig.requestContentPreviewerFactory()
Returns the
ContentPreviewerFactory used for creating a new ContentPreviewer
which produces the request content preview of this HttpService. |
ContentPreviewerFactory |
VirtualHost.responseContentPreviewerFactory()
Returns the
ContentPreviewerFactory used for creating a new ContentPreviewer
which produces the response content preview of this virtual host. |
ContentPreviewerFactory |
ServiceConfig.responseContentPreviewerFactory()
Returns the
ContentPreviewerFactory used for creating a new ContentPreviewer
which produces the response content preview of this HttpService. |
Copyright © 2020 LeanCloud. All rights reserved.