|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Service
The MessageBroker has endpoints on one end and services on the other. The Service interface defines the contract between the MessageBroker and all Service implementations.
| Method Summary | |
|---|---|
void |
addDefaultChannel(String id)
Adds the channel to the list of channels of the Service. |
void |
addDestination(Destination destination)
Adds the Destination to the Service. |
Destination |
createDestination(String id)
Creates a Destination instance, sets its id, sets it manageable
if the Service that created it is manageable,
and sets its Service to the Service that
created it. |
ConfigMap |
describeService(Endpoint endpoint)
Describes the service for the client. |
String |
getDefaultAdapter()
Returns the id of the default adapter of the Service. |
List |
getDefaultChannels()
Returns the list of channel ids of the Service. |
Destination |
getDestination(Message message)
Retrieves the destination in this service for which the given message is intended. |
Destination |
getDestination(String id)
Returns the Destination with the specified id or null if no
Destination with id exists. |
Map |
getDestinations()
Returns the Map of Destination ids and instances. |
String |
getId()
Returns the id for the service. |
MessageBroker |
getMessageBroker()
All services must be managed by a single MessageBroker, and must be capable of returning a reference to that broker. |
Map |
getRegisteredAdapters()
Returns the adapters registered with the Service. |
String |
registerAdapter(String id,
String className)
Registers the adapter with the Service. |
boolean |
removeDefaultChannel(String id)
Removes the channel from the list of channels for the AbstractService. |
Destination |
removeDestination(String id)
Remove the Destination from the Service. |
Object |
serviceCommand(CommandMessage message)
Handles a command routed to the service by the MessageBroker. |
Object |
serviceMessage(Message message)
Handles a message routed to the service by the MessageBroker. |
void |
setDefaultAdapter(String id)
Sets the id of the default adapter of the Service. |
void |
setDefaultChannels(List ids)
Sets the channel list of the Service. |
void |
setId(String id)
Sets the id for the service. |
void |
setMessageBroker(MessageBroker broker)
Sets the MessageBroker of the Service. |
String |
unregisterAdapter(String id)
Unregistered the adapter with the Service and
set the default adapter to null if needed. |
| Methods inherited from interface flex.management.Manageable |
|---|
getControl, isManaged, setControl, setManaged |
| Methods inherited from interface flex.messaging.FlexComponent |
|---|
isStarted, start, stop |
| Methods inherited from interface flex.messaging.FlexConfigurable |
|---|
initialize |
| Method Detail |
|---|
Map getRegisteredAdapters()
Service.
String registerAdapter(String id,
String className)
Service.
id - The id of the adapter.adapterClass - The class of the adapter.
String unregisterAdapter(String id)
Service and
set the default adapter to null if needed.
id - The id of the adapter.
String getDefaultAdapter()
Service.
Service.void setDefaultAdapter(String id)
Service.
id - The id of the default adapter of the Service.List getDefaultChannels()
Service.
void addDefaultChannel(String id)
Service.
MessageBroker has to know the channel. Otherwise, the channel
should not added to the list.
id - The id of the channel.void setDefaultChannels(List ids)
Service.
MessageBroker has to know the channels, otherwise they
should not be added to the list.
ids - List of channel ids.boolean removeDefaultChannel(String id)
AbstractService.
id - The id of the channel.
true if the list contained the channel id.Destination getDestination(Message message)
Destination getDestination(String id)
Destination with the specified id or null if no
Destination with id exists.
id - The id of the Destination.Map getDestinations()
Destination ids and instances.
Destination ids and instances.Destination createDestination(String id)
Destination instance, sets its id, sets it manageable
if the Service that created it is manageable,
and sets its Service to the Service that
created it.
id - The id of the Destination.
Destination instanced created.void addDestination(Destination destination)
Destination to the Service.
destination - The Destination to be added.Destination removeDestination(String id)
Destination from the Service.
id - The id of the Destination.
Destination associated with the id.String getId()
void setId(String id)
id - The id for the service.MessageBroker getMessageBroker()
void setMessageBroker(MessageBroker broker)
MessageBroker of the Service.
broker - The MessageBroker of the Service.ConfigMap describeService(Endpoint endpoint)
endpoint - Endpoint used to filter the service destinations.
Object serviceMessage(Message message)
message - The message sent by the MessageBrokerObject serviceCommand(CommandMessage message)
message - The message sent by the MessageBroker
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/lcdsjavadoc/flex/messaging/services/Service.html