public abstract class AbstractOperationHandler extends java.lang.Object implements OperationHandler, java.io.Serializable
OperationHandler
interface, to
minimize the effort required to implement this interface.
Subclasses only need to override those methods that are needed to handle the expected operations
for the corresponding remote type. Methods that are not overridden will throw an
UnsupportedOperationException
.
It is recommended to extend this base class rather than to implement the OperationHandler interface itself.
Constructor and Description |
---|
AbstractOperationHandler() |
Modifier and Type | Method and Description |
---|---|
void |
handleCall(java.lang.String method,
JsonObject parameters)
Handles a call operation from the remote object.
|
void |
handleNotify(java.lang.String event,
JsonObject properties)
Handles a notify operation from the remote object.
|
void |
handleSet(JsonObject properties)
Handles a set operation from the remote object.
|
public void handleSet(JsonObject properties)
OperationHandler
handleSet
in interface OperationHandler
properties
- a map with the propertiespublic void handleCall(java.lang.String method, JsonObject parameters)
OperationHandler
handleCall
in interface OperationHandler
method
- the name of the method to callparameters
- the parameters for the method call, may be empty but never null
public void handleNotify(java.lang.String event, JsonObject properties)
OperationHandler
handleNotify
in interface OperationHandler
event
- the name of the event that occurredproperties
- the event properties, may be empty but never null
Copyright (c) EclipseSource and others 2002, 2016.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0