java-coap
                                
                                
                                
                                    java-coap copied to clipboard
                            
                            
                            
                        Missing API in Transport Context
Implementing coap(s)+tcp in Leshan, I faced some issues that could be solve with API additions : (I found workaround for each of them, so there is no urgency)
1. A way to iterate over keys of TransportContext
Maybe a Collection<Key<?>> getKeys() methods ? or  make TransportContext implements Iterable ?
Here an example of usage.
2. I need to add all keys from a TransportContext to an other existing TransportContext.
Proposed API :
- Adding to 
TransportContexta methodwith(TransportContext contextToMerge) - Adding a  
CoapRequest.Buildera methodaddContext(TransportContext contextToMerge) 
Those should be easy ones.. but lets see.