Package org.restheart.handlers.injectors
Class ConduitInjector
java.lang.Object
org.restheart.handlers.PipelinedHandler
org.restheart.handlers.injectors.ConduitInjector
- All Implemented Interfaces:
io.undertow.server.HttpHandler
Executes the interceptors for proxied requests taking care of buffering the
response from the backend to make it accessible to them whose
requiresResponseContent() returns true
Note that getting the content has significant performance overhead for
proxied resources. To mitigate DoS attacks the injector limits the size of
the content to ModificableContentSinkConduit.MAX_CONTENT_SIZE bytes
- Author:
- Andrea Di Cesare <andrea@softinstigate.com>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.undertow.util.AttachmentKey<ModifiableContentSinkConduit> static final io.undertow.util.AttachmentKey<io.undertow.util.HeaderMap> Fields inherited from class org.restheart.handlers.PipelinedHandler
CONTENT_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleRequest(io.undertow.server.HttpServerExchange exchange) Methods inherited from class org.restheart.handlers.PipelinedHandler
getNext, next, pipe, setNext
-
Field Details
-
MCSC_KEY
-
ORIGINAL_ACCEPT_ENCODINGS_KEY
public static final io.undertow.util.AttachmentKey<io.undertow.util.HeaderMap> ORIGINAL_ACCEPT_ENCODINGS_KEY
-
-
Constructor Details
-
ConduitInjector
public ConduitInjector() -
ConduitInjector
- Parameters:
next-
-
-
Method Details
-
handleRequest
- Specified by:
handleRequestin interfaceio.undertow.server.HttpHandler- Specified by:
handleRequestin classPipelinedHandler- Parameters:
exchange-- Throws:
Exception
-