Package com.linecorp.armeria.common
Class FilteredHttpRequest
java.lang.Object
com.linecorp.armeria.common.stream.FilteredStreamMessage<HttpObject,HttpObject>
com.linecorp.armeria.common.FilteredHttpRequest
- All Implemented Interfaces:
HttpMessage
,HttpRequest
,Request
,StreamMessage<HttpObject>
,org.reactivestreams.Publisher<HttpObject>
public abstract class FilteredHttpRequest extends FilteredStreamMessage<HttpObject,HttpObject> implements HttpRequest
An
HttpRequest
that filters objects as they are published. The filtering
will happen from an I/O thread, meaning the order of the filtering will match the
order that the delegate
processes the objects in.-
Constructor Summary
Constructors Modifier Constructor Description protected
FilteredHttpRequest(HttpRequest delegate)
Creates a newFilteredHttpRequest
that filters objects published bydelegate
before passing to a subscriber.protected
FilteredHttpRequest(HttpRequest delegate, boolean withPooledObjects)
(Advanced users only) Creates a newFilteredHttpRequest
that filters objects published bydelegate
before passing to a subscriber. -
Method Summary
Modifier and Type Method Description RequestHeaders
headers()
Returns the initial HTTP/2 headers of this request.Methods inherited from class com.linecorp.armeria.common.stream.FilteredStreamMessage
abort, abort, beforeComplete, beforeError, beforeSubscribe, collect, defaultSubscriberExecutor, demand, filter, isEmpty, isOpen, onCancellation, subscribe, subscribe, whenComplete
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.linecorp.armeria.common.HttpMessage
decode, decode
Methods inherited from interface com.linecorp.armeria.common.HttpRequest
acceptLanguages, aggregate, aggregate, aggregateWithPooledObjects, aggregateWithPooledObjects, authority, contentType, decode, mapData, mapHeaders, mapTrailers, method, path, scheme, selectLocale, selectLocale, toDuplicator, toDuplicator, toDuplicator, toDuplicator, uri, withHeaders, withHeaders
Methods inherited from interface com.linecorp.armeria.common.stream.StreamMessage
abort, abort, collect, collect, collect, defaultSubscriberExecutor, demand, filter, isComplete, isEmpty, isOpen, map, subscribe, subscribe, subscribe, subscribe, whenComplete
-
Constructor Details
-
FilteredHttpRequest
Creates a newFilteredHttpRequest
that filters objects published bydelegate
before passing to a subscriber. -
FilteredHttpRequest
(Advanced users only) Creates a newFilteredHttpRequest
that filters objects published bydelegate
before passing to a subscriber.- Parameters:
withPooledObjects
- iftrue
,FilteredStreamMessage.filter(Object)
receives the pooledHttpData
as is, without making a copy. If you don't know what this means, useFilteredHttpRequest(HttpRequest)
.- See Also:
PooledObjects
-
-
Method Details
-
headers
Description copied from interface:HttpRequest
Returns the initial HTTP/2 headers of this request.- Specified by:
headers
in interfaceHttpRequest
-