public class SpeakHandler extends Object implements SpeakProvider
SpeakService to a particular distributed object. A server entity can make
"speech" available among the subscribers of a particular distributed object by constructing a
speak handler and registering it with the InvocationManager, then placing the resulting
marshaller into the distributed object in question so that subscribers to that object can use it
to generate "speak" requests on that object.| Modifier and Type | Class and Description |
|---|---|
static interface |
SpeakHandler.SpeakerValidator
Used to prevent abitrary users from issuing speak requests.
|
| Constructor and Description |
|---|
SpeakHandler(BodyLocator locator,
DObject speakObj,
SpeakHandler.SpeakerValidator validator)
Creates a handler that will provide speech on the supplied distributed object.
|
SpeakHandler(DObject speakObj,
SpeakHandler.SpeakerValidator validator)
Creates a handler that will provide speech on the supplied distributed object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
speak(ClientObject caller,
String message,
byte mode)
Handles a
SpeakService.speak(java.lang.String, byte) request. |
public SpeakHandler(DObject speakObj, SpeakHandler.SpeakerValidator validator)
speakObj - the object for which speech requests will be processed.validator - an optional validator that can be used to prevent arbitrary users from
using the speech services on this object.public SpeakHandler(BodyLocator locator, DObject speakObj, SpeakHandler.SpeakerValidator validator)
locator - the object we use to look up BodyObjects from ClientObjectsspeakObj - the object for which speech requests will be processed.validator - an optional validator that can be used to prevent arbitrary users from
using the speech services on this object.public void speak(ClientObject caller, String message, byte mode)
SpeakProviderSpeakService.speak(java.lang.String, byte) request.speak in interface SpeakProviderCopyright © 2015. All rights reserved.