Eclipse Remote Application Platform

org.eclipse.rap.rwt.remote
Interface OperationHandler

All Known Implementing Classes:
AbstractOperationHandler

public interface OperationHandler

Classes that implement this interface are used to handle operations from a remote object. Implementations must apply the operations to the corresponding target object.

It is recommended to extend AbstractOperationHandler rather than to implement this interface.

Since:
2.0
See Also:
AbstractOperationHandler, RemoteObject

Method Summary
 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.
 

Method Detail

handleSet

void handleSet(JsonObject properties)
Handles a set operation from the remote object. With a set operation, the remote object informs the receiver that one or more properties have changed their values. The implementation of this method must apply the new property values to the target object in a suitable order.

Parameters:
properties - a map with the properties
Since:
2.1

handleCall

void handleCall(java.lang.String method,
                JsonObject parameters)
Handles a call operation from the remote object. With a call operation, the remote object instructs the receiver to call a method on the target object. The method call may be parameterized with the given properties.

Parameters:
method - the name of the method to call
parameters - the parameters for the method call, may be empty but never null
Since:
2.1

handleNotify

void handleNotify(java.lang.String event,
                  JsonObject properties)
Handles a notify operation from the remote object. With a notify operation, the remote object notifies the receiver that an event has occurred. An implementation of this method must notify the corresponding listeners attached to the target object.

Parameters:
event - the name of the event that occurred
properties - the event properties, may be empty but never null
Since:
2.1

Eclipse Remote Application Platform

Copyright (c) EclipseSource and others 2002, 2013. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0