Class Observation
java.lang.Object
org.eclipse.californium.core.observe.Observation
An observation initiated by a given request, for a particular endpoint
context.
-
Constructor Summary
ConstructorsConstructorDescriptionObservation
(Request request, org.eclipse.californium.elements.EndpointContext context) Creates a new observation for a request and a endpoint context. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.californium.elements.EndpointContext
Gets the endpoint context the requeste was sent in.toString()
-
Constructor Details
-
Observation
Creates a new observation for a request and a endpoint context.- Parameters:
request
- The request that initiated the observation.context
- The endpoint context of the request.- Throws:
NullPointerException
- if the request isnull
.IllegalArgumentException
- if the request doesn't have its observe option set to 0.
-
-
Method Details