java.lang.Object
io.helidon.media.common.DefaultMediaSupport
- All Implemented Interfaces:
MediaSupport
MediaSupport which registers default readers and writers to the contexts.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Default media support builder. -
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultMediaSupport.Builder
builder()
Return newDefaultMediaSupport.Builder
of theDefaultMediaSupport
.static MessageBodyWriter<ReadableByteChannel>
Create a new instance ofReadableByteChannel
writer.static MessageBodyWriter<ReadableByteChannel>
byteChannelWriter
(RetrySchema schema) Return newReadableByteChannel
writer instance with specificRetrySchema
.static MessageBodyStreamWriter<CharSequence>
ReturnCharSequence
stream writer instance.static MessageBodyWriter<CharSequence>
ReturnCharSequence
writer instance.static DefaultMediaSupport
create()
Creates new instance ofDefaultMediaSupport
.static MessageBodyWriter<File>
ReturnFile
writer instance.static MessageBodyReader<FormParams>
ReturnFormParams
reader instance.static MessageBodyWriter<FormParams>
ReturnFormParams
writer instance.static MessageBodyReader<InputStream>
ReturnInputStream
reader instance.static MessageBodyWriter<Path>
ReturnPath
writer instance.readers()
Returns the collection of the readers which should be registered.Returns the collection of the stream writers which should be registered.static MessageBodyReader<String>
ReturnString
reader instance.static MessageBodyWriter<Throwable>
throwableWriter
(boolean includeStackTraces) ReturnThrowable
writer instance.writers()
Returns the collection of the writers which should be registered.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.helidon.media.common.MediaSupport
register, streamReaders
-
Method Details
-
create
Creates new instance ofDefaultMediaSupport
.- Returns:
- new service instance
-
builder
Return newDefaultMediaSupport.Builder
of theDefaultMediaSupport
.- Returns:
- default media support builder
-
stringReader
ReturnString
reader instance.- Returns:
String
reader
-
inputStreamReader
ReturnInputStream
reader instance.- Returns:
InputStream
reader
-
charSequenceWriter
ReturnCharSequence
writer instance.- Returns:
CharSequence
writer
-
charSequenceStreamWriter
ReturnCharSequence
stream writer instance.- Returns:
CharSequence
writer
-
byteChannelWriter
Create a new instance ofReadableByteChannel
writer.- Returns:
ReadableByteChannel
writer
-
byteChannelWriter
Return newReadableByteChannel
writer instance with specificRetrySchema
.- Parameters:
schema
- retry schema- Returns:
ReadableByteChannel
writer
-
pathWriter
ReturnPath
writer instance.- Returns:
Path
writer
-
fileWriter
ReturnFile
writer instance.- Returns:
File
writer
-
formParamWriter
ReturnFormParams
writer instance.- Returns:
FormParams
writer
-
formParamReader
ReturnFormParams
reader instance.- Returns:
FormParams
reader
-
throwableWriter
ReturnThrowable
writer instance.- Parameters:
includeStackTraces
- whether stack traces are to be written- Returns:
Throwable
writer
-
readers
Description copied from interface:MediaSupport
Returns the collection of the readers which should be registered.- Specified by:
readers
in interfaceMediaSupport
- Returns:
- readers
-
writers
Description copied from interface:MediaSupport
Returns the collection of the writers which should be registered.- Specified by:
writers
in interfaceMediaSupport
- Returns:
- writers
-
streamWriters
Description copied from interface:MediaSupport
Returns the collection of the stream writers which should be registered.- Specified by:
streamWriters
in interfaceMediaSupport
- Returns:
- stream writers
-