|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.management.ManageableComponent
flex.messaging.services.AbstractService
flex.messaging.services.RemotingService
public class RemotingService
The RemotingService processes RemotingMessages.
A RemotingMessage informs a service adapter which
method to invoke on a service, provides the input parameters for the invocation,
as well as any other settings relevant to the adapter, such as RunAs credential
information for secured services.
The RemotingService must be initialized with configuration settings
before it can successfully process any RemotingMessages.
Note that the RemotingService translates a destination into a
service name or "source" that is meaningful to an
adapter before invocation.
| Field Summary | |
|---|---|
static String |
LOG_CATEGORY
Log category for RemotingService. |
| Fields inherited from class flex.messaging.services.AbstractService |
|---|
LOG_CATEGORY_STARTUP_DESTINATION |
| Constructor Summary | |
|---|---|
RemotingService()
Constructs an unmanaged RemotingService. |
|
RemotingService(boolean enableManagement)
Constructs a RemotingService with the indicated management. |
|
| Method Summary | |
|---|---|
void |
addDestination(Destination destination)
Casts the Destination into RemotingDestination
and calls super.addDestination. |
Destination |
createDestination(String id)
Creates a RemotingDestination instance, sets its id, sets it manageable
if the AbstractService that created it is manageable,
and sets its Service to the AbstractService that
created it. |
Object |
serviceMessage(Message msg)
Processes messages of type RemotingMessage by invoking the
requested destination"s adapter. |
| Methods inherited from class flex.messaging.services.AbstractService |
|---|
addDefaultChannel, describeService, getDefaultAdapter, getDefaultChannels, getDestination, getDestination, getDestinations, getMessageBroker, getRegisteredAdapters, registerAdapter, removeDefaultChannel, removeDestination, serviceCommand, setDefaultAdapter, setDefaultChannels, setId, setMessageBroker, start, stop, unregisterAdapter |
| Methods inherited from class flex.management.ManageableComponent |
|---|
getControl, getId, getParent, initialize, isManaged, isStarted, isValid, setControl, setManaged, setParent |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface flex.messaging.services.Service |
|---|
getId |
| Methods inherited from interface flex.management.Manageable |
|---|
getControl, isManaged, setControl, setManaged |
| Methods inherited from interface flex.messaging.FlexComponent |
|---|
isStarted |
| Methods inherited from interface flex.messaging.FlexConfigurable |
|---|
initialize |
| Field Detail |
|---|
public static final String LOG_CATEGORY
RemotingService.
| Constructor Detail |
|---|
public RemotingService()
RemotingService.
public RemotingService(boolean enableManagement)
RemotingService with the indicated management.
enableManagement - true if the RemotingService
is manageable; otherwise false.| Method Detail |
|---|
public Destination createDestination(String id)
RemotingDestination instance, sets its id, sets it manageable
if the AbstractService that created it is manageable,
and sets its Service to the AbstractService that
created it.
createDestination in interface ServicecreateDestination in class AbstractServiceid - The id of the RemotingDestination.
Destination instanced created.public void addDestination(Destination destination)
Destination into RemotingDestination
and calls super.addDestination.
addDestination in interface ServiceaddDestination in class AbstractServicedestination - The Destination instance to be added.public Object serviceMessage(Message msg)
RemotingMessage by invoking the
requested destination"s adapter.
Note that this method catches all Exceptions and throws only
runtime MessageExceptions back to the MessageBroker as a best
practice for the "MessageBroker to Service"
contract.
serviceMessage in interface ServiceserviceMessage in class AbstractServicemsg - the RemotingMessage to process
|
||||||||||
| 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/blazeds/1/javadoc/flex/messaging/services/RemotingService.html