Uses of Interface
org.eclipse.jetty.io.Content.Source
Package
Description
Jetty Proxy : Async Proxy Support
Jetty Server : Modular Servlet Integration
Jetty Http : Tools for Http processing
Jetty IO : Core classes for Jetty IO subsystem
Jetty Rewrite : Rewrite Handler and Rules for Jetty
Jetty Server : Core Server API
Jetty Server : Core Handler API
Jetty GZIP Handler
-
Uses of Content.Source in org.eclipse.jetty.client
Modifier and TypeInterfaceDescriptionstatic interface
A client-side representation of HTTP request content.Modifier and TypeClassDescriptionclass
class
ARequest.Content
forByteBuffer
s.class
ARequest.Content
for byte arrays.class
ARequest.Content
that wraps aContent.Source
.class
ARequest.Content
for form uploads with the "application/x-www-form-urlencoded" content type.class
ARequest.Content
that produces content from anInputStream
.class
ARequest.Content
for form uploads with the"multipart/form-data"
content type.class
ARequest.Content
that provides content asynchronously through anOutputStream
similar toAsyncRequestContent
.class
ARequest.Content
for files using JDK 7'sjava.nio.file
APIs.class
ARequest.Content
for strings.Modifier and TypeMethodDescriptiondefault void
Response.AsyncContentListener.onContentSource
(Response response, Content.Source contentSource) void
Response.ContentSourceListener.onContentSource
(Response response, Content.Source contentSource) Callback method invoked when all the response headers have been received and parsed.ModifierConstructorDescriptionContentSourceRequestContent
(Content.Source source, String contentType) -
Uses of Content.Source in org.eclipse.jetty.client.transport
Modifier and TypeMethodDescriptionvoid
ResponseListeners.notifyContentSource
(Response response, Content.Source contentSource) -
Uses of Content.Source in org.eclipse.jetty.ee10.proxy
-
Uses of Content.Source in org.eclipse.jetty.ee10.servlet
Modifier and TypeClassDescriptionclass
A core request wrapper that carries the servlet related request state, which may be used directly by the associatedServletApiRequest
.class
Wrap aServletRequest
as a coreRequest
. -
Uses of Content.Source in org.eclipse.jetty.http
Modifier and TypeClassDescriptionstatic class
An asynchronousContent.Source
whereMultiPart.Part
s can be added to it to form a multipart content.static class
The multipart/byteranges specific content source.static class
A specializedInputStreamContentSource
whose content is sliced by a byte range.static class
Deprecated, for removal: This API element is subject to removal in a future version.static class
The multipart/form-data specific content source.Modifier and TypeMethodDescriptionMultiPart.Part.getContentSource()
Returns the content of this part as aContent.Source
.MultiPart.ByteBufferPart.newContentSource()
MultiPart.ChunksPart.newContentSource()
MultiPart.ContentSourcePart.newContentSource()
abstract Content.Source
MultiPart.Part.newContentSource()
Returns the content of this part as a newContent.Source
MultiPart.PathPart.newContentSource()
MultiPartByteRanges.Part.newContentSource()
Modifier and TypeMethodDescriptionMultiPartFormData.from
(Content.Source content, Attributes attributes, String contentType, MultiPartConfig config) Deprecated, for removal: This API element is subject to removal in a future version.static MultiPartFormData.Parts
MultiPartFormData.getParts
(Content.Source content, Attributes attributes, String contentType, MultiPartConfig config) Getmultipart/form-data
MultiPartFormData.Parts
from aContent.Source
, caching the results in anAttributes
.static void
MultiPartFormData.onParts
(Content.Source content, Attributes attributes, String contentType, MultiPartConfig config, Promise.Invocable<MultiPartFormData.Parts> promise) Asynchronously getmultipart/form-data
MultiPartFormData.Parts
from aContent.Source
, caching the results in anAttributes
.MultiPartByteRanges.Parser.parse
(Content.Source content) MultiPartFormData.Parser.parse
(Content.Source content) Deprecated, for removal: This API element is subject to removal in a future version.void
MultiPartFormData.Parser.parse
(Content.Source content, Promise<MultiPartFormData.Parts> immediate, Promise.Invocable<MultiPartFormData.Parts> future) MultiPartFormData.Parser.parse
(Content.Source content, Invocable.InvocationType invocationType) Deprecated, for removal: This API element is subject to removal in a future version.ModifierConstructorDescriptionContentSourcePart
(String name, String fileName, HttpFields fields, Content.Source content) -
Uses of Content.Source in org.eclipse.jetty.io
Modifier and TypeMethodDescriptionstatic Content.Source
IOResources.asContentSource
(Resource resource, ByteBufferPool bufferPool, int bufferSize, boolean direct) Gets aContent.Source
with the contents of a resource.static Content.Source
IOResources.asContentSource
(Resource resource, ByteBufferPool bufferPool, int bufferSize, boolean direct, long first, long length) Gets aContent.Source
with a range of the contents of a resource.static Content.Source
Content.Source.from
(InputStream inputStream) static Content.Source
Content.Source.from
(ByteBuffer... byteBuffers) Create aContent.Source
from zero or moreByteBuffer
sstatic Content.Source
Create aContent.Source
from aPath
.static Content.Source
Create aContent.Source
from aPath
.static Content.Source
Content.Source.from
(ByteBufferPool.Sized byteBufferPool, InputStream inputStream) Create aContent.Source
from aPath
.static Content.Source
Content.Source.from
(ByteBufferPool.Sized byteBufferPool, InputStream inputStream, long offset, long length) Create aContent.Source
from aPath
.static Content.Source
Content.Source.from
(ByteBufferPool.Sized byteBufferPool, ByteChannel byteChannel) Create aContent.Source
from aByteChannel
.static Content.Source
Content.Source.from
(ByteBufferPool.Sized byteBufferPool, SeekableByteChannel seekableByteChannel, long offset, long length) Create aContent.Source
from aByteChannel
.static Content.Source
Content.Source.from
(ByteBufferPool.Sized byteBufferPool, Path path) Create aContent.Source
from aPath
.static Content.Source
Content.Source.from
(ByteBufferPool.Sized byteBufferPool, Path path, long offset, long length) Create aContent.Source
from aPath
.Modifier and TypeMethodDescriptionstatic CompletableFuture<byte[]>
Content.Source.asByteArrayAsync
(Content.Source source, int maxSize) Deprecated, for removal: This API element is subject to removal in a future version.no replacementstatic ByteBuffer
Content.Source.asByteBuffer
(Content.Source source) Reads, blocking if necessary, the whole content source into aByteBuffer
.static void
Content.Source.asByteBuffer
(Content.Source source, Promise<ByteBuffer> promise) Reads, non-blocking, the whole content source into aByteBuffer
.static CompletableFuture<ByteBuffer>
Content.Source.asByteBufferAsync
(Content.Source source) Deprecated, for removal: This API element is subject to removal in a future version.useasByteBuffer(Source, Promise)
insteadstatic CompletableFuture<ByteBuffer>
Content.Source.asByteBufferAsync
(Content.Source source, int maxSize) Deprecated, for removal: This API element is subject to removal in a future version.no replacementstatic InputStream
Content.Source.asInputStream
(Content.Source source) Wraps the given content source with anInputStream
.static Flow.Publisher<Content.Chunk>
Content.Source.asPublisher
(Content.Source source) Wraps the given content source with aFlow.Publisher
.Content.Source.asRetainableByteBuffer
(Content.Source source, ByteBufferPool pool, boolean direct, int maxSize) Deprecated, for removal: This API element is subject to removal in a future version.no replacementstatic String
Content.Source.asString
(Content.Source source) Reads, blocking if necessary, the whole content source into aString
, converting the bytes using UTF-8.static String
Content.Source.asString
(Content.Source source, Charset charset) static void
Content.Source.asString
(Content.Source source, Charset charset, Promise<String> promise) static CompletableFuture<String>
Content.Source.asStringAsync
(Content.Source source, Charset charset) Deprecated, for removal: This API element is subject to removal in a future version.useasString(Source, Charset, Promise)
insteadstatic void
Content.Source.consumeAll
(Content.Source source) Reads, blocking if necessary, the given content source, until afailure
or EOF, and discards the content.static void
Content.Source.consumeAll
(Content.Source source, Callback callback) Reads, non-blocking, the given content source, until afailure
or EOF and discards the content.static void
Content.copy
(Content.Source source, Content.Sink sink, Content.Chunk.Processor chunkProcessor, Callback callback) Copies the given content source to the given content sink, notifying the given callback when the copy is complete.static void
Content.copy
(Content.Source source, Content.Sink sink, Callback callback) Copies the given content source to the given content sink, notifying the given callback when the copy is complete (either succeeded or failed).CompletableFuture<byte[]>
ChunkAccumulator.readAll
(Content.Source source) Deprecated, for removal: This API element is subject to removal in a future version.CompletableFuture<byte[]>
ChunkAccumulator.readAll
(Content.Source source, int maxSize) Deprecated, for removal: This API element is subject to removal in a future version.ChunkAccumulator.readAll
(Content.Source source, ByteBufferPool pool, boolean direct, int maxSize) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of Content.Source in org.eclipse.jetty.io.content
Modifier and TypeClassDescriptionclass
AContent.Source
that is also aContent.Sink
.class
AContent.Source
backed by one or moreByteBuffer
s.class
AContent.Source
backed by one or moreContent.Chunk
s.class
This abstractContent.Source
wraps anotherContent.Source
and implementers need only to implement theContentSourceTransformer.transform(Content.Chunk)
method, which is used to transformContent.Chunk
read from the wrapped source.class
AContent.Source
that is backed by anInputStream
.class
AContent.Source
that provides content asynchronously through anOutputStream
.class
AContent.Source
that provides the file content of the passedPath
.Modifier and TypeMethodDescriptionprotected Content.Source
ContentSourceTransformer.getContentSource()
ModifierConstructorDescriptionContentSourceCompletableFuture
(Content.Source content, Invocable.InvocationType invocationType) ContentSourceInputStream
(Content.Source content) ContentSourcePublisher
(Content.Source content) protected
ContentSourceTransformer
(Content.Source rawSource) protected
ContentSourceTransformer
(Content.Source rawSource, SerializedInvoker invoker) -
Uses of Content.Source in org.eclipse.jetty.io.internal
Modifier and TypeClassDescriptionclass
AContent.Source
backed by aByteChannel
.static class
AByteChannelContentSource
for aPath
ModifierConstructorDescriptionContentCopier
(Content.Source source, Content.Sink sink, Content.Chunk.Processor chunkProcessor, Callback callback) ContentSourceByteBuffer
(Content.Source source, Promise<ByteBuffer> promise) ContentSourceConsumer
(Content.Source source, Callback callback) ContentSourceString
(Content.Source content, Charset charset, Promise<String> promise) -
Uses of Content.Source in org.eclipse.jetty.proxy
-
Uses of Content.Source in org.eclipse.jetty.rewrite.handler
Modifier and TypeClassDescriptionstatic class
ARequest.Wrapper
used to chain a sequence ofRule
s together.static class
-
Uses of Content.Source in org.eclipse.jetty.server
Modifier and TypeInterfaceDescriptioninterface
The representation of an HTTP request, for any protocol version (HTTP/1.1, HTTP/2, HTTP/3).static interface
This interface will be detected by theRequest.ServeAs.wrap(Request, HttpURI)
static method to wrap the request changing its target to a given path.Modifier and TypeClassDescriptionstatic class
ARequest.Wrapper
that separately provides the requestAttributes
.static class
A wrapper forRequest
instances.protected static class
protected class
-
Uses of Content.Source in org.eclipse.jetty.server.handler
Modifier and TypeClassDescriptionclass
static class
protected class
-
Uses of Content.Source in org.eclipse.jetty.server.handler.gzip
-
Uses of Content.Source in org.eclipse.jetty.server.internal
-
Uses of Content.Source in org.eclipse.jetty.websocket.core.server
-
Uses of Content.Source in org.eclipse.jetty.websocket.core.server.internal
Modifier and TypeClassDescriptionclass
Upgrade request used for websocket negotiation. -
Uses of Content.Source in org.eclipse.jetty.websocket.server
Modifier and TypeInterfaceDescriptioninterface
The HTTP request to upgrade to WebSocket. -
Uses of Content.Source in org.eclipse.jetty.websocket.server.internal
from(ByteBufferPool.Sized, Path, long, long)