Package org.eclipse.jetty.client
Class ProtocolHandlers
- java.lang.Object
 - 
- org.eclipse.jetty.client.ProtocolHandlers
 
 
- 
- All Implemented Interfaces:
 Dumpable
@Deprecated(since="2021-05-27") public class ProtocolHandlers extends java.lang.Object implements Dumpable
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.A container for
ProtocolHandlers accessible fromHttpClient.getProtocolHandlers(). 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer 
 - 
 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclear()Deprecated.Removes all protocol handlers from this container.java.lang.Stringdump()Deprecated.voiddump(java.lang.Appendable out, java.lang.String indent)Deprecated.Dump this object (and children) into an Appendable using the provided indent after any new lines.ProtocolHandlerfind(Request request, Response response)Deprecated.Finds the first protocol handler thatacceptsthe given request and response.ProtocolHandlerput(ProtocolHandler protocolHandler)Deprecated.Stores the givenprotocolHandlerin this container.ProtocolHandlerremove(java.lang.String name)Deprecated.Removes the protocol handler with the given name. 
 - 
 
- 
- 
Method Detail
- 
put
public ProtocolHandler put(ProtocolHandler protocolHandler)
Deprecated.Stores the given
protocolHandlerin this container.If a protocol handler with the same name exists, it is replaced by the given one, and the existing returned.
- Parameters:
 protocolHandler- the protocol handler to store- Returns:
 - the existing protocol handler with the same name, or null if no protocol handler with that name was already stored
 - See Also:
 remove(String)
 
- 
remove
public ProtocolHandler remove(java.lang.String name)
Deprecated.Removes the protocol handler with the given name.
- Parameters:
 name- the name of the protocol handler to remove- Returns:
 - the removed protocol handler, or null if no protocol handler with that name was already stored
 - See Also:
 put(ProtocolHandler),clear()
 
- 
clear
public void clear()
Deprecated.Removes all protocol handlers from this container.
 
- 
find
public ProtocolHandler find(Request request, Response response)
Deprecated.Finds the first protocol handler that
acceptsthe given request and response.- Parameters:
 request- the request to acceptresponse- the response to accept- Returns:
 - the protocol handler that accepted the request and response, or null if none of the protocol handlers accepted the request and response
 
 
- 
dump
public void dump(java.lang.Appendable out, java.lang.String indent) throws java.io.IOExceptionDeprecated.Description copied from interface:DumpableDump 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. 
 - 
 
 -