LocalMethod

class LocalMethod extends Method implements Handler

Objects of this class implement and make available methods of a local server. The actual behavior of methods is implemented by invoking arbitrary user-supplied functions.

Author

jmoringe, swrede, jwienke

Constructors

LocalMethod

public LocalMethod(ParticipantCreateArgs<?> args, Callback callback)

Create a new LocalMethod object that is exposed under the name @a name by @a server.

Parameters
  • args – arguments used to create this method

  • callback – The callback implementing the user functionality of the method

Throws

Methods

activate

public void activate()

getDataType

public Class<?> getDataType()

getKind

public String getKind()

getTransportUris

public Set<URI> getTransportUris()

internalNotify

public void internalNotify(Event request)