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
Nested ClassesModifier and TypeClassDescriptionstatic classDefault media support builder. -
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultMediaSupport.Builderbuilder()Return newDefaultMediaSupport.Builderof theDefaultMediaSupport.static MessageBodyWriter<ReadableByteChannel>Create a new instance ofReadableByteChannelwriter.static MessageBodyWriter<ReadableByteChannel>byteChannelWriter(RetrySchema schema) Return newReadableByteChannelwriter instance with specificRetrySchema.static MessageBodyStreamWriter<CharSequence>ReturnCharSequencestream writer instance.static MessageBodyWriter<CharSequence>ReturnCharSequencewriter instance.static DefaultMediaSupportcreate()Creates new instance ofDefaultMediaSupport.static MessageBodyWriter<File>ReturnFilewriter instance.static MessageBodyReader<FormParams>ReturnFormParamsreader instance.static MessageBodyWriter<FormParams>ReturnFormParamswriter instance.static MessageBodyReader<InputStream>ReturnInputStreamreader instance.static MessageBodyWriter<Path>ReturnPathwriter 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>ReturnStringreader instance.static MessageBodyWriter<Throwable>throwableWriter(boolean includeStackTraces) ReturnThrowablewriter 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, waitMethods inherited from interface io.helidon.media.common.MediaSupport
register, streamReaders
-
Method Details
-
create
Creates new instance ofDefaultMediaSupport.- Returns:
- new service instance
-
builder
Return newDefaultMediaSupport.Builderof theDefaultMediaSupport.- Returns:
- default media support builder
-
stringReader
ReturnStringreader instance.- Returns:
Stringreader
-
inputStreamReader
ReturnInputStreamreader instance.- Returns:
InputStreamreader
-
charSequenceWriter
ReturnCharSequencewriter instance.- Returns:
CharSequencewriter
-
charSequenceStreamWriter
ReturnCharSequencestream writer instance.- Returns:
CharSequencewriter
-
byteChannelWriter
Create a new instance ofReadableByteChannelwriter.- Returns:
ReadableByteChannelwriter
-
byteChannelWriter
Return newReadableByteChannelwriter instance with specificRetrySchema.- Parameters:
schema- retry schema- Returns:
ReadableByteChannelwriter
-
pathWriter
ReturnPathwriter instance.- Returns:
Pathwriter
-
fileWriter
ReturnFilewriter instance.- Returns:
Filewriter
-
formParamWriter
ReturnFormParamswriter instance.- Returns:
FormParamswriter
-
formParamReader
ReturnFormParamsreader instance.- Returns:
FormParamsreader
-
throwableWriter
ReturnThrowablewriter instance.- Parameters:
includeStackTraces- whether stack traces are to be written- Returns:
Throwablewriter
-
readers
Description copied from interface:MediaSupportReturns the collection of the readers which should be registered.- Specified by:
readersin interfaceMediaSupport- Returns:
- readers
-
writers
Description copied from interface:MediaSupportReturns the collection of the writers which should be registered.- Specified by:
writersin interfaceMediaSupport- Returns:
- writers
-
streamWriters
Description copied from interface:MediaSupportReturns the collection of the stream writers which should be registered.- Specified by:
streamWritersin interfaceMediaSupport- Returns:
- stream writers
-