org.red5.server.net.remoting
Class FlexMessagingService

java.lang.Object
  extended by org.red5.server.net.remoting.FlexMessagingService

public class FlexMessagingService
extends Object

Service that can execute compatibility Flex messages.

Author:
The Red5 Project (red5@osflash.org), Joachim Bauch (jojo@struktur.de)

Field Summary
protected  Map<String,Object> endpoints
          Configured endpoints.
protected static org.slf4j.Logger log
          Logger
static String SERVICE_NAME
          Name of the service.
protected  IServiceInvoker serviceInvoker
          Service invoker to use.
 
Constructor Summary
FlexMessagingService()
           
 
Method Summary
 ErrorMessage handleRequest(AbstractMessage msg)
          Fallback method to handle arbitrary messages.
 AsyncMessage handleRequest(CommandMessage msg)
          Handle command message request.
 AsyncMessage handleRequest(DataMessage msg)
          Handle messages related to shared objects.
 AsyncMessage handleRequest(RemotingMessage msg)
          Handle request coming from mx:RemoteObject tags.
static ErrorMessage returnError(AbstractMessage request, String faultCode, String faultString, String faultDetail)
          Construct error message.
static ErrorMessage returnError(AbstractMessage request, String faultCode, String faultString, Throwable error)
          Construct error message from exception.
 void setEndpoints(Map<String,Object> endpoints)
          Setup available end points.
 void setServiceInvoker(IServiceInvoker serviceInvoker)
          Set the service invoker to use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_NAME

public static final String SERVICE_NAME
Name of the service.

See Also:
Constant Field Values

log

protected static org.slf4j.Logger log
Logger


serviceInvoker

protected IServiceInvoker serviceInvoker
Service invoker to use.


endpoints

protected Map<String,Object> endpoints
Configured endpoints.

Constructor Detail

FlexMessagingService

public FlexMessagingService()
Method Detail

setEndpoints

public void setEndpoints(Map<String,Object> endpoints)
Setup available end points.

Parameters:
endPoints -

setServiceInvoker

public void setServiceInvoker(IServiceInvoker serviceInvoker)
Set the service invoker to use.

Parameters:
serviceInvoker -

returnError

public static ErrorMessage returnError(AbstractMessage request,
                                       String faultCode,
                                       String faultString,
                                       String faultDetail)
Construct error message.

Parameters:
request -
faultCode -
faultString -
faultDetail -
Returns:

returnError

public static ErrorMessage returnError(AbstractMessage request,
                                       String faultCode,
                                       String faultString,
                                       Throwable error)
Construct error message from exception.

Parameters:
request -
faultCode -
faultString -
error -
Returns:

handleRequest

public AsyncMessage handleRequest(RemotingMessage msg)
Handle request coming from mx:RemoteObject tags.

Parameters:
msg -
Returns:
See Also:
Adobe Livedocs (external)

handleRequest

public AsyncMessage handleRequest(CommandMessage msg)
Handle command message request.

Parameters:
msg -
Returns:

handleRequest

public AsyncMessage handleRequest(DataMessage msg)
Handle messages related to shared objects.

Parameters:
msg -
Returns:

handleRequest

public ErrorMessage handleRequest(AbstractMessage msg)
Fallback method to handle arbitrary messages.

Parameters:
msg -
Returns:


Copyright © 2006-2007 the Red5 project.