public class AMFGatewayServlet
extends javax.servlet.http.HttpServlet
| Modifier and Type | Field and Description |
|---|---|
static String |
APPLICATION_AMF
AMF MIME type
|
protected RemotingCodecFactory |
codecFactory
Remoting codec factory
|
protected org.slf4j.Logger |
log
Logger
|
protected IServer |
server
Red5 server instance
|
protected org.springframework.web.context.WebApplicationContext |
webAppCtx
Web app context
|
| Constructor and Description |
|---|
AMFGatewayServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected RemotingPacket |
decodeRequest(javax.servlet.http.HttpServletRequest req)
Decode request
|
protected IGlobalScope |
getGlobalScope(javax.servlet.http.HttpServletRequest req)
Return the global scope to use for the given request.
|
protected boolean |
handleRemotingPacket(javax.servlet.http.HttpServletRequest req,
IContext context,
IScope scope,
RemotingPacket message)
Handles AMF request by making calls
|
void |
init() |
protected void |
sendResponse(javax.servlet.http.HttpServletResponse resp,
RemotingPacket packet)
Sends response to client
|
void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected void |
serviceAMF(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Works out AMF request
|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, serviceprotected org.slf4j.Logger log
public static final String APPLICATION_AMF
protected transient org.springframework.web.context.WebApplicationContext webAppCtx
protected transient IServer server
protected transient RemotingCodecFactory codecFactory
public void init()
throws javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic void service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
IOException
service in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected IGlobalScope getGlobalScope(javax.servlet.http.HttpServletRequest req)
req - protected void serviceAMF(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
IOException
req - Requestresp - Responsejavax.servlet.ServletException - Servlet exceptionIOException - I/O exceptionprotected RemotingPacket decodeRequest(javax.servlet.http.HttpServletRequest req) throws Exception
req - RequestException - General exceptionprotected boolean handleRemotingPacket(javax.servlet.http.HttpServletRequest req,
IContext context,
IScope scope,
RemotingPacket message)
req - Requestmessage - Remoting packettrue on successprotected void sendResponse(javax.servlet.http.HttpServletResponse resp,
RemotingPacket packet)
throws Exception
resp - Responsepacket - Remoting packetException - General exceptionCopyright © 2006-2012 The Red5 Project