Package org.eclipse.jetty.client
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:
java.util.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 org.eclipse.jetty.client.api.Response.Listener
Response.Listener.Adapter
-
-
Constructor Summary
Constructors Modifier Constructor Description private
AuthenticationListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
copyIfAbsent(HttpRequest oldRequest, Request newRequest, HttpHeader header)
private void
forwardFailureComplete(HttpRequest request, java.lang.Throwable requestFailure, Response response, java.lang.Throwable responseFailure)
private void
forwardSuccessComplete(HttpRequest request, Response response)
void
onComplete(Result result)
Callback method invoked when the request and the response have been processed, either successfully or not.private java.util.List<Authentication.HeaderInfo>
parseAuthenticateHeader(Response response, HttpHeader header)
private java.net.URI
resolveURI(HttpRequest request, java.net.URI uri)
-
Methods inherited from class org.eclipse.jetty.client.util.BufferingResponseListener
getContent, getContentAsInputStream, getContentAsString, getContentAsString, getContentAsString, getEncoding, getMediaType, onContent, onHeaders
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.client.api.Response.AsyncContentListener
onContent
-
Methods inherited from interface org.eclipse.jetty.client.api.Response.ContentListener
onContent
-
Methods inherited from interface org.eclipse.jetty.client.api.Response.DemandedContentListener
onBeforeContent
-
Methods inherited from interface org.eclipse.jetty.client.api.Response.Listener
onBegin, onFailure, onHeader, onSuccess
-
-
-
-
Method Detail
-
onComplete
public void onComplete(Result result)
Description copied from interface:Response.CompleteListener
Callback method invoked when the request and the response have been processed, either successfully or not.The
result
parameter 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:
onComplete
in interfaceResponse.CompleteListener
- Specified by:
onComplete
in interfaceResponse.Listener
- Specified by:
onComplete
in classBufferingResponseListener
- Parameters:
result
- the result of the request / response exchange
-
resolveURI
private java.net.URI resolveURI(HttpRequest request, java.net.URI uri)
-
copyIfAbsent
private void copyIfAbsent(HttpRequest oldRequest, Request newRequest, HttpHeader header)
-
forwardSuccessComplete
private void forwardSuccessComplete(HttpRequest request, Response response)
-
forwardFailureComplete
private void forwardFailureComplete(HttpRequest request, java.lang.Throwable requestFailure, Response response, java.lang.Throwable responseFailure)
-
parseAuthenticateHeader
private java.util.List<Authentication.HeaderInfo> parseAuthenticateHeader(Response response, HttpHeader header)
-
-