|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.red5.server.net.remoting.FlexMessagingService
public class FlexMessagingService
Service that can execute compatibility Flex messages.
Field Summary | |
---|---|
protected Map<String,Object> |
endpoints
Configured endpoints. |
protected static Logger |
log
Logger |
protected ConcurrentMap<String,ServiceAdapter> |
registrations
Registered clients. |
static String |
SERVICE_NAME
Name of the service. |
protected IServiceInvoker |
serviceInvoker
Service invoker to use. |
Constructor Summary | |
---|---|
FlexMessagingService()
|
Method Summary | |
---|---|
Message |
handleRequest(AbstractMessage msg)
Fallback method to handle arbitrary messages. |
Message |
handleRequest(CommandMessage msg)
Handle command message request. |
Message |
handleRequest(CommandMessageExt msg)
Handle command message (external) 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 |
---|
public static final String SERVICE_NAME
protected static Logger log
protected IServiceInvoker serviceInvoker
protected Map<String,Object> endpoints
protected ConcurrentMap<String,ServiceAdapter> registrations
Constructor Detail |
---|
public FlexMessagingService()
Method Detail |
---|
public void setEndpoints(Map<String,Object> endpoints)
endpoints
- end pointspublic void setServiceInvoker(IServiceInvoker serviceInvoker)
serviceInvoker
- service invokerpublic static ErrorMessage returnError(AbstractMessage request, String faultCode, String faultString, String faultDetail)
request
- requestfaultCode
- fault codefaultString
- fault stringfaultDetail
- fault detail
public static ErrorMessage returnError(AbstractMessage request, String faultCode, String faultString, Throwable error)
request
- requestfaultCode
- fault codefaultString
- fautl stringerror
- error
public AsyncMessage handleRequest(RemotingMessage msg)
mx:RemoteObject
tags.
msg
- message
public Message handleRequest(CommandMessageExt msg)
msg
- message
public Message handleRequest(CommandMessage msg)
msg
- message
public AsyncMessage handleRequest(DataMessage msg)
msg
- message
public Message handleRequest(AbstractMessage msg)
msg
- message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |