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 ?
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 makeTransportContext
implementsIterable
?Here an example of usage.
2. I need to add all keys from a
TransportContext
to an other existingTransportContext
.Proposed API :
TransportContext
a methodwith(TransportContext contextToMerge)
CoapRequest.Builder
a methodaddContext(TransportContext contextToMerge)