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
ConstructorsModifierConstructorDescriptionprotectedFilteredHttpRequest(HttpRequest delegate)Creates a newFilteredHttpRequestthat filters objects published bydelegatebefore passing to a subscriber.protectedFilteredHttpRequest(HttpRequest delegate, boolean withPooledObjects)(Advanced users only) Creates a newFilteredHttpRequestthat filters objects published bydelegatebefore passing to a subscriber. -
Method Summary
Methods inherited from class com.linecorp.armeria.common.stream.FilteredStreamMessage
abort, abort, beforeComplete, beforeError, beforeSubscribe, collect, defaultSubscriberExecutor, demand, filter, isEmpty, isOpen, onCancellation, subscribe, subscribe, whenCompleteMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.linecorp.armeria.common.HttpMessage
decode, decodeMethods inherited from interface com.linecorp.armeria.common.HttpRequest
acceptLanguages, aggregate, aggregate, aggregateWithPooledObjects, aggregateWithPooledObjects, authority, contentType, decode, mapData, mapError, mapHeaders, mapTrailers, method, path, scheme, selectLocale, selectLocale, toDuplicator, toDuplicator, toDuplicator, toDuplicator, uri, withHeaders, withHeadersMethods inherited from interface com.linecorp.armeria.common.stream.StreamMessage
abort, abort, collect, collect, collect, defaultSubscriberExecutor, demand, filter, isComplete, isEmpty, isOpen, map, recoverAndResume, subscribe, subscribe, subscribe, subscribe, whenComplete
-
Constructor Details
-
FilteredHttpRequest
Creates a newFilteredHttpRequestthat filters objects published bydelegatebefore passing to a subscriber. -
FilteredHttpRequest
(Advanced users only) Creates a newFilteredHttpRequestthat filters objects published bydelegatebefore passing to a subscriber.- Parameters:
withPooledObjects- iftrue,FilteredStreamMessage.filter(Object)receives the pooledHttpDataas 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:HttpRequestReturns the initial HTTP/2 headers of this request.- Specified by:
headersin interfaceHttpRequest
-