public class ResponseEventPublisher extends AbstractEventPublisher<ReactiveResponse.Event> implements org.eclipse.jetty.client.api.Response.Listener
| Constructor and Description |
|---|
ResponseEventPublisher(ReactiveRequest request) |
| Modifier and Type | Method and Description |
|---|---|
void |
onBegin(org.eclipse.jetty.client.api.Response response) |
void |
onComplete(org.eclipse.jetty.client.api.Result result) |
void |
onContent(org.eclipse.jetty.client.api.Response response,
ByteBuffer content) |
void |
onContent(org.eclipse.jetty.client.api.Response response,
ByteBuffer content,
org.eclipse.jetty.util.Callback callback) |
void |
onContent(org.eclipse.jetty.client.api.Response response,
LongConsumer demand,
ByteBuffer content,
org.eclipse.jetty.util.Callback callback) |
void |
onFailure(org.eclipse.jetty.client.api.Response response,
Throwable failure) |
boolean |
onHeader(org.eclipse.jetty.client.api.Response response,
org.eclipse.jetty.http.HttpField field) |
void |
onHeaders(org.eclipse.jetty.client.api.Response response) |
void |
onSuccess(org.eclipse.jetty.client.api.Response response) |
emit, fail, onRequest, succeedcancel, isCancelled, onFailure, request, subscribe, subscriber, toStringpublic ResponseEventPublisher(ReactiveRequest request)
public void onBegin(org.eclipse.jetty.client.api.Response response)
onBegin in interface org.eclipse.jetty.client.api.Response.BeginListeneronBegin in interface org.eclipse.jetty.client.api.Response.Listenerpublic boolean onHeader(org.eclipse.jetty.client.api.Response response,
org.eclipse.jetty.http.HttpField field)
onHeader in interface org.eclipse.jetty.client.api.Response.HeaderListeneronHeader in interface org.eclipse.jetty.client.api.Response.Listenerpublic void onHeaders(org.eclipse.jetty.client.api.Response response)
onHeaders in interface org.eclipse.jetty.client.api.Response.HeadersListeneronHeaders in interface org.eclipse.jetty.client.api.Response.Listenerpublic void onContent(org.eclipse.jetty.client.api.Response response,
ByteBuffer content)
onContent in interface org.eclipse.jetty.client.api.Response.ContentListeneronContent in interface org.eclipse.jetty.client.api.Response.Listenerpublic void onContent(org.eclipse.jetty.client.api.Response response,
ByteBuffer content,
org.eclipse.jetty.util.Callback callback)
onContent in interface org.eclipse.jetty.client.api.Response.AsyncContentListeneronContent in interface org.eclipse.jetty.client.api.Response.ContentListenerpublic void onContent(org.eclipse.jetty.client.api.Response response,
LongConsumer demand,
ByteBuffer content,
org.eclipse.jetty.util.Callback callback)
onContent in interface org.eclipse.jetty.client.api.Response.AsyncContentListeneronContent in interface org.eclipse.jetty.client.api.Response.DemandedContentListenerpublic void onSuccess(org.eclipse.jetty.client.api.Response response)
onSuccess in interface org.eclipse.jetty.client.api.Response.ListeneronSuccess in interface org.eclipse.jetty.client.api.Response.SuccessListenerpublic void onFailure(org.eclipse.jetty.client.api.Response response,
Throwable failure)
onFailure in interface org.eclipse.jetty.client.api.Response.FailureListeneronFailure in interface org.eclipse.jetty.client.api.Response.Listenerpublic void onComplete(org.eclipse.jetty.client.api.Result result)
onComplete in interface org.eclipse.jetty.client.api.Response.CompleteListeneronComplete in interface org.eclipse.jetty.client.api.Response.ListenerCopyright © 2017–2024 The Jetty Project. All rights reserved.