Removes a protocol from the stack. Stops the protocol and readjusts the linked lists of protocols. @param prot_name The name of the protocol. Since all protocol names in a stack have to be unique (otherwise the stack won't be created), the name refers to just 1 protocol.
(String prot_name)
| 605 | * (otherwise the stack won't be created), the name refers to just 1 protocol. |
| 606 | */ |
| 607 | public <T extends Protocol> T removeProtocol(String prot_name) { |
| 608 | if(prot_name == null) return null; |
| 609 | return removeProtocol(findProtocol(prot_name)); |
| 610 | } |
| 611 | |
| 612 | public ProtocolStack removeProtocols(String ... protocols) { |
| 613 | for(String protocol: protocols) |