Class AuthenticationProtocolHandler.AuthenticationListener
java.lang.Object
org.eclipse.jetty.client.api.Response.Listener.Adapter
org.eclipse.jetty.client.util.BufferingResponseListener
org.eclipse.jetty.client.AuthenticationProtocolHandler.AuthenticationListener
- All Implemented Interfaces:
EventListener, Response.AsyncContentListener, Response.BeginListener, Response.CompleteListener, Response.ContentListener, Response.DemandedContentListener, Response.FailureListener, Response.HeaderListener, Response.HeadersListener, Response.Listener, Response.ResponseListener, Response.SuccessListener
- Enclosing class:
AuthenticationProtocolHandler
private class AuthenticationProtocolHandler.AuthenticationListener
extends BufferingResponseListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface Response.Listener
Response.Listener.Adapter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcopyIfAbsent(HttpRequest oldRequest, Request newRequest, HttpHeader header) private voidforwardFailureComplete(HttpRequest request, Throwable requestFailure, Response response, Throwable responseFailure) private voidforwardSuccessComplete(HttpRequest request, Response response) voidonComplete(Result result) Callback method invoked when the request and the response have been processed, either successfully or not.private List<Authentication.HeaderInfo> parseAuthenticateHeader(Response response, HttpHeader header) private URIresolveURI(HttpRequest request, URI uri) Methods inherited from class BufferingResponseListener
getContent, getContentAsInputStream, getContentAsString, getContentAsString, getContentAsString, getEncoding, getMediaType, onContent, onHeadersMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Response.AsyncContentListener
onContentMethods inherited from interface Response.ContentListener
onContentMethods inherited from interface Response.DemandedContentListener
onBeforeContentMethods inherited from interface Response.Listener
onBegin, onFailure, onHeader, onSuccess
-
Constructor Details
-
AuthenticationListener
private AuthenticationListener()
-
-
Method Details
-
onComplete
Description copied from interface:Response.CompleteListenerCallback method invoked when the request and the response have been processed, either successfully or not.The
resultparameter contains the request, the response, and eventual failures.Requests may complete after response, for example in case of big uploads that are discarded or read asynchronously by the server. This method is always invoked after
Response.SuccessListener.onSuccess(Response)orResponse.FailureListener.onFailure(Response, Throwable), and only when request indicates that it is completed.- Specified by:
onCompletein interfaceResponse.CompleteListener- Specified by:
onCompletein interfaceResponse.Listener- Specified by:
onCompletein classBufferingResponseListener- Parameters:
result- the result of the request / response exchange
-
resolveURI
-
copyIfAbsent
-
forwardSuccessComplete
-
forwardFailureComplete
private void forwardFailureComplete(HttpRequest request, Throwable requestFailure, Response response, Throwable responseFailure) -
parseAuthenticateHeader
private List<Authentication.HeaderInfo> parseAuthenticateHeader(Response response, HttpHeader header)
-