Package org.eclipse.jetty.client
Class ProxyAuthenticationProtocolHandler
- java.lang.Object
-
- org.eclipse.jetty.client.AuthenticationProtocolHandler
-
- org.eclipse.jetty.client.ProxyAuthenticationProtocolHandler
-
- All Implemented Interfaces:
ProtocolHandler
@Deprecated(since="2021-05-27") public class ProxyAuthenticationProtocolHandler extends AuthenticationProtocolHandler
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.A protocol handler that handles the 401 response code in association with the
Proxy-Authenticate
header.- See Also:
WWWAuthenticationProtocolHandler
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NAME
Deprecated.-
Fields inherited from class org.eclipse.jetty.client.AuthenticationProtocolHandler
DEFAULT_MAX_CONTENT_LENGTH, LOG
-
-
Constructor Summary
Constructors Constructor Description ProxyAuthenticationProtocolHandler(HttpClient client)
Deprecated.ProxyAuthenticationProtocolHandler(HttpClient client, int maxContentLength)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
accept(Request request, Response response)
Deprecated.Inspects the givenrequest
andresponse
to detect whether this protocol handler should handle them.java.lang.String
getName()
Deprecated.-
Methods inherited from class org.eclipse.jetty.client.AuthenticationProtocolHandler
getResponseListener
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ProxyAuthenticationProtocolHandler
public ProxyAuthenticationProtocolHandler(HttpClient client)
Deprecated.
-
ProxyAuthenticationProtocolHandler
public ProxyAuthenticationProtocolHandler(HttpClient client, int maxContentLength)
Deprecated.
-
-
Method Detail
-
getName
public java.lang.String getName()
Deprecated.- Returns:
- a unique name among protocol handlers
-
accept
public boolean accept(Request request, Response response)
Deprecated.Description copied from interface:ProtocolHandler
Inspects the given
request
andresponse
to detect whether this protocol handler should handle them.For example, a redirect protocol handler can inspect the response code and return true if it is a redirect response code.
This method is being called just after the response line has been parsed, and before the response headers are available.
- Parameters:
request
- the request to acceptresponse
- the response to accept- Returns:
- true if this protocol handler can handle the given request and response
-
-