eclipse-californium / californium

CoAP/DTLS Java Implementation
https://www.eclipse.org/californium/
Other
730 stars 367 forks source link

Request.userContext #145

Closed boaks closed 7 years ago

boaks commented 8 years ago

I'm pretty unsure, for what this is used. Currently leshan puts some data in. Is intended to be related to the CorrelationContext? Or was it intended to be used unrelated to that context?

sophokles73 commented 7 years ago

I think this is used in the context of failing over observations between nodes. ObservationStore.add() also persists the data from Request.userContext.

sbernard31 commented 7 years ago

UserContext is used to attach application data to a request. (a feature provided by californium for enduser) (see #86) E.g we use it in Leshan to attach the registration id linked to an observe requests.

CorrelationContext contains data used to make correlation between CoAP messages. (needed for internal californium behavior)

HTH

boaks commented 7 years ago

Thanks!