Package org.eclipse.jetty.client
Class RequestListeners
java.lang.Object
org.eclipse.jetty.client.RequestListeners
- All Implemented Interfaces:
Dumpable
- Direct Known Subclasses:
NotifyingRequestListeners
A specialized container for request listeners.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addBeginListener
(Request.BeginListener listener) boolean
addCommitListener
(Request.CommitListener listener) boolean
addContentListener
(Request.ContentListener listener) boolean
addFailureListener
(Request.FailureListener listener) boolean
addHeadersListener
(Request.HeadersListener listener) boolean
addListener
(Request.Listener listener) boolean
addQueuedListener
(Request.QueuedListener listener) boolean
addSuccessListener
(Request.SuccessListener listener) void
clear()
void
dump
(Appendable out, String indent) Dump this object (and children) into an Appendable using the provided indent after any new lines.protected Request.BeginListener
protected Request.CommitListener
protected Request.ContentListener
protected Request.FailureListener
protected Request.HeadersListener
protected Request.QueuedListener
protected Request.SuccessListener
protected static void
notifyBegin
(Request.BeginListener listener, Request request) protected static void
notifyCommit
(Request.CommitListener listener, Request request) protected static void
notifyContent
(Request.ContentListener listener, Request request, ByteBuffer byteBuffer) protected static void
notifyFailure
(Request.FailureListener listener, Request request, Throwable failure) protected static void
notifyHeaders
(Request.HeadersListener listener, Request request) protected static void
notifyQueued
(Request.QueuedListener listener, Request request) protected static void
notifySuccess
(Request.SuccessListener listener, Request request) boolean
removeBeginListener
(Request.BeginListener listener) boolean
removeCommitListener
(Request.CommitListener listener) boolean
removeContentListener
(Request.ContentListener listener) boolean
removeFailureListener
(Request.FailureListener listener) boolean
removeHeadersListener
(Request.HeadersListener listener) boolean
removeListener
(Request.Listener listener) boolean
removeQueuedListener
(Request.QueuedListener listener) boolean
removeSuccessListener
(Request.SuccessListener listener)
-
Constructor Details
-
RequestListeners
public RequestListeners()
-
-
Method Details
-
addListener
-
removeListener
-
addQueuedListener
-
removeQueuedListener
-
notifyQueued
-
addBeginListener
-
removeBeginListener
-
notifyBegin
-
addHeadersListener
-
removeHeadersListener
-
notifyHeaders
-
addCommitListener
-
removeCommitListener
-
notifyCommit
-
addContentListener
-
removeContentListener
-
notifyContent
protected static void notifyContent(Request.ContentListener listener, Request request, ByteBuffer byteBuffer) -
addSuccessListener
-
removeSuccessListener
-
notifySuccess
-
addFailureListener
-
removeFailureListener
-
notifyFailure
protected static void notifyFailure(Request.FailureListener listener, Request request, Throwable failure) -
clear
public void clear() -
getQueuedListener
-
getBeginListener
-
getHeadersListener
-
getCommitListener
-
getContentListener
-
getSuccessListener
-
getFailureListener
-
dump
Description copied from interface:Dumpable
Dump this object (and children) into an Appendable using the provided indent after any new lines. The indent should not be applied to the first object dumped.- Specified by:
dump
in interfaceDumpable
- Parameters:
out
- The appendable to dump toindent
- The indent to apply after any new lines.- Throws:
IOException
- if unable to write to Appendable
-