Uses of Interface
org.eclipse.jetty.io.Content.Source
Packages that use 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
Subinterfaces of Content.Source in org.eclipse.jetty.clientModifier and TypeInterfaceDescriptionstatic interface
A client-side representation of HTTP request content.Classes in org.eclipse.jetty.client that implement Content.SourceModifier 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.Methods in org.eclipse.jetty.client that return Content.SourceMethods in org.eclipse.jetty.client with parameters of type Content.SourceModifier 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.Constructors in org.eclipse.jetty.client with parameters of type Content.SourceModifierConstructorDescriptionContentSourceRequestContent
(Content.Source source, String contentType) -
Uses of Content.Source in org.eclipse.jetty.client.transport
Methods in org.eclipse.jetty.client.transport with parameters of type Content.SourceModifier and TypeMethodDescriptionvoid
ResponseListeners.notifyContentSource
(Response response, Content.Source contentSource) -
Uses of Content.Source in org.eclipse.jetty.ee10.proxy
Classes in org.eclipse.jetty.ee10.proxy that implement Content.Source -
Uses of Content.Source in org.eclipse.jetty.ee10.servlet
Classes in org.eclipse.jetty.ee10.servlet that implement Content.SourceModifier 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
Classes in org.eclipse.jetty.http that implement Content.SourceModifier 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.Methods in org.eclipse.jetty.http that return Content.SourceModifier 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()
Methods in org.eclipse.jetty.http with parameters of type Content.SourceModifier 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.Constructors in org.eclipse.jetty.http with parameters of type Content.SourceModifierConstructorDescriptionContentSourcePart
(String name, String fileName, HttpFields fields, Content.Source content) -
Uses of Content.Source in org.eclipse.jetty.io
Methods in org.eclipse.jetty.io that return Content.SourceModifier 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
.Methods in org.eclipse.jetty.io with parameters of type Content.SourceModifier 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
Classes in org.eclipse.jetty.io.content that implement Content.SourceModifier 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
.Methods in org.eclipse.jetty.io.content that return Content.SourceModifier and TypeMethodDescriptionprotected Content.Source
ContentSourceTransformer.getContentSource()
Constructors in org.eclipse.jetty.io.content with parameters of type Content.SourceModifierConstructorDescriptionContentSourceCompletableFuture
(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
Classes in org.eclipse.jetty.io.internal that implement Content.SourceModifier and TypeClassDescriptionclass
AContent.Source
backed by aByteChannel
.static class
AByteChannelContentSource
for aPath
Constructors in org.eclipse.jetty.io.internal with parameters of type Content.SourceModifierConstructorDescriptionContentCopier
(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
Classes in org.eclipse.jetty.proxy that implement Content.Source -
Uses of Content.Source in org.eclipse.jetty.rewrite.handler
Classes in org.eclipse.jetty.rewrite.handler that implement Content.SourceModifier and TypeClassDescriptionstatic class
ARequest.Wrapper
used to chain a sequence ofRule
s together.static class
-
Uses of Content.Source in org.eclipse.jetty.server
Subinterfaces of Content.Source in org.eclipse.jetty.serverModifier 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.Classes in org.eclipse.jetty.server that implement Content.SourceModifier 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
Classes in org.eclipse.jetty.server.handler that implement Content.SourceModifier and TypeClassDescriptionclass
static class
protected class
-
Uses of Content.Source in org.eclipse.jetty.server.handler.gzip
Classes in org.eclipse.jetty.server.handler.gzip that implement Content.Source -
Uses of Content.Source in org.eclipse.jetty.server.internal
Classes in org.eclipse.jetty.server.internal that implement Content.Source -
Uses of Content.Source in org.eclipse.jetty.websocket.core.server
Subinterfaces of Content.Source in org.eclipse.jetty.websocket.core.server -
Uses of Content.Source in org.eclipse.jetty.websocket.core.server.internal
Classes in org.eclipse.jetty.websocket.core.server.internal that implement Content.SourceModifier and TypeClassDescriptionclass
Upgrade request used for websocket negotiation. -
Uses of Content.Source in org.eclipse.jetty.websocket.server
Subinterfaces of Content.Source in org.eclipse.jetty.websocket.serverModifier and TypeInterfaceDescriptioninterface
The HTTP request to upgrade to WebSocket. -
Uses of Content.Source in org.eclipse.jetty.websocket.server.internal
Classes in org.eclipse.jetty.websocket.server.internal that implement Content.Source
from(ByteBufferPool.Sized, Path, long, long)