A container for ProtocolHandlers accessible from HttpClient#getProtocolHandlers().
| Modifier and Type | Field and Description |
|---|---|
| private final Map |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public String | |
| public void | dump(Appendable
The appendable to dump to out, String The indent to apply after any new lines. indent)Implements org. |
| public ProtocolHandler | Returns: the protocol handler that accepted the request and response, or null if none of the protocol handlers accepted the request and responsethe request to accept request, Response the response to accept response)Finds the first protocol handler that
|
| public ProtocolHandler | Returns: the existing protocol handler with the same name, or null if no protocol handler with that name was already storedthe protocol handler to store protocolHandler)Stores the given |
| public ProtocolHandler |
| handlers | back to summary |
|---|---|
| private final Map<String, ProtocolHandler> handlers | |
| ProtocolHandlers | back to summary |
|---|---|
| protected ProtocolHandlers() | |
| clear | back to summary |
|---|---|
| public void clear() Removes all protocol handlers from this container. | |
| dump | back to summary |
|---|---|
| public String dump() Overrides default org.
| |
| dump | back to summary |
|---|---|
| public void dump(Appendable out, String indent) throws IOException Implements org. Doc from org. Dump 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.
| |
| find | back to summary |
|---|---|
| public ProtocolHandler find(Request request, Response response) Finds the first protocol handler that
| |
| put | back to summary |
|---|---|
| public ProtocolHandler put(ProtocolHandler protocolHandler) Stores the given If a protocol handler with the same name exists, it is replaced by the given one, and the existing returned.
| |
| remove | back to summary |
|---|---|
| public ProtocolHandler remove(String name) Removes the protocol handler with the given name.
| |