|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.spicefactory.cinnamon.io.RequestProcessor
public class RequestProcessor
The core processing class of the framework. Processes incoming AMF3 requests and returns the corresponding AMF3 results. The implementation is completely independent of the Servlet API and HTTP protocol. So this class may be used in Unit Tests that run outside a Servlet container or in unusual deployment scenarios. For example the Cinnamon framework may also be used for a Socket server, since the new binary Socket class introduced in Flash Player 9 supports AMF3 too.
| Constructor Summary | |
|---|---|
RequestProcessor(CinnamonConfig config)
Creates a new RequestProcessor. |
|
| Method Summary | |
|---|---|
CinnamonConfig |
getConfig()
Returns the Cinnamon configuration instance this RequestProcessor uses. |
org.apache.mina.common.ByteBuffer |
process(org.apache.mina.common.ByteBuffer in)
Processes a single AMF request. |
MessageHolder |
process(MessageHolder requestMessage,
Exception ex)
Processes a single service request and returns the result. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RequestProcessor(CinnamonConfig config)
config - the Cinnamon configuration instance to use| Method Detail |
|---|
public CinnamonConfig getConfig()
public org.apache.mina.common.ByteBuffer process(org.apache.mina.common.ByteBuffer in)
ServiceResponse process (ServiceRequest request)
for each AMF3 encoded ServiceRequest instance contained in the AMF0 envelope.
in - the AMF3 request
public MessageHolder process(MessageHolder requestMessage,
Exception ex)
requestMessage - the decoded request message to processex - an Exception that was caught while processing the message (null if processing succeeded)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||