| Package | Description |
|---|---|
| com.linecorp.armeria.common.logging |
| Modifier and Type | Method and Description |
|---|---|
ContentPreviewerFactoryBuilder |
ContentPreviewerFactoryBuilder.binary(BiFunction<? super HttpHeaders,? super io.netty.buffer.ByteBuf,String> producer,
BiPredicate<? super RequestContext,? super HttpHeaders> predicate)
Sets the specified
BiPredicate to produce the preview using the specified
BiFunction when the predicate returns true. |
ContentPreviewerFactoryBuilder |
ContentPreviewerFactoryBuilder.binary(BiFunction<? super HttpHeaders,? super io.netty.buffer.ByteBuf,String> producer,
Iterable<MediaType> mediaTypes)
Sets the specified
MediaTypes to produce the preview using the specified BiFunction
when the content type of the RequestHeaders or ResponseHeaders is one of the
MediaTypes. |
ContentPreviewerFactoryBuilder |
ContentPreviewerFactoryBuilder.binary(BiFunction<? super HttpHeaders,? super io.netty.buffer.ByteBuf,String> producer,
MediaType... mediaTypes)
Sets the specified
MediaTypes to produce the preview using the specified BiFunction
when the content type of the RequestHeaders or ResponseHeaders is one of the
MediaTypes. |
ContentPreviewerFactoryBuilder |
ContentPreviewerFactoryBuilder.binary(BiPredicate<? super RequestContext,? super HttpHeaders> predicate)
|
ContentPreviewerFactoryBuilder |
ContentPreviewerFactoryBuilder.binary(Iterable<MediaType> mediaTypes)
Sets the specified
MediaTypes to produce the
hex dump preview when the content type of the
RequestHeaders or ResponseHeaders is one of the MediaTypes. |
ContentPreviewerFactoryBuilder |
ContentPreviewerFactoryBuilder.binary(MediaType... mediaTypes)
Sets the specified
MediaTypes to produce the
hex dump preview when the content type of the
RequestHeaders or ResponseHeaders is one of the MediaTypes. |
static ContentPreviewerFactoryBuilder |
ContentPreviewerFactory.builder()
Returns a newly created
ContentPreviewerFactoryBuilder. |
ContentPreviewerFactoryBuilder |
ContentPreviewerFactoryBuilder.defaultCharset(Charset defaultCharset)
Sets the default
Charset used to produce the text preview when a charset is not specified in the
"content-type" header. |
ContentPreviewerFactoryBuilder |
ContentPreviewerFactoryBuilder.disable(BiPredicate<? super RequestContext,? super HttpHeaders> predicate)
Sets the specified
BiPredicate NOT to produce the preview when the predicate
returns true. |
ContentPreviewerFactoryBuilder |
ContentPreviewerFactoryBuilder.disable(Iterable<MediaType> mediaTypes)
Sets the specified
MediaTypes NOT to produce the preview when the content type of the
RequestHeaders or ResponseHeaders is one of the MediaTypes. |
ContentPreviewerFactoryBuilder |
ContentPreviewerFactoryBuilder.disable(MediaType... mediaTypes)
Sets the specified
MediaTypes NOT to produce the preview when the content type of the
RequestHeaders or ResponseHeaders is one of the MediaTypes. |
ContentPreviewerFactoryBuilder |
ContentPreviewerFactoryBuilder.maxLength(int maxLength)
Sets the maximum length of the produced preview.
|
ContentPreviewerFactoryBuilder |
ContentPreviewerFactoryBuilder.text(BiPredicate<? super RequestContext,? super HttpHeaders> predicate)
Sets the specified
BiPredicate to produce the text preview when the predicate
returns true. |
ContentPreviewerFactoryBuilder |
ContentPreviewerFactoryBuilder.text(Iterable<MediaType> mediaTypes)
Sets the specified
MediaTypes to produce the text preview when the content type of the
RequestHeaders or ResponseHeaders is one of the MediaTypes. |
ContentPreviewerFactoryBuilder |
ContentPreviewerFactoryBuilder.text(MediaType... mediaTypes)
Sets the specified
MediaTypes to produce the text preview when the content type of the
RequestHeaders or ResponseHeaders is one of the MediaTypes. |
Copyright © 2020 LeanCloud. All rights reserved.