Class RetainingResponseListener
java.lang.Object
org.eclipse.jetty.client.AbstractResponseListener
org.eclipse.jetty.client.RetainingResponseListener
- All Implemented Interfaces:
EventListener, Response.AsyncContentListener, Response.BeginListener, Response.CompleteListener, Response.ContentListener, Response.ContentSourceListener, Response.FailureListener, Response.HeaderListener, Response.HeadersListener, Response.Listener, Response.ResponseListener, Response.SuccessListener
- Direct Known Subclasses:
CompletableResponseListener, ContinueProtocolHandler.ContinueListener
Implementation of AbstractResponseListener that retains the response
content without copying it, up to a configurable number of bytes.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractResponseListener
getContent, getContentAsInputStream, getContentAsString, getContentAsString, getContentAsString, getEncoding, getMaxLength, getMediaType, onContent, onContent, onFailure, onHeaders, takeContentAsContentSource, takeContentAsInputStreamMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Response.AsyncContentListener
onContentSourceMethods inherited from interface Response.Listener
onBegin, onComplete, onHeader, onSuccess
-
Constructor Details
-
RetainingResponseListener
public RetainingResponseListener() -
RetainingResponseListener
public RetainingResponseListener(int maxLength)
-