|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.red5.server.net.servlet.AMFGatewayServlet
public class AMFGatewayServlet
Servlet that handles remoting requests.
| Field Summary | |
|---|---|
static String |
APPLICATION_AMF
AMF MIME type |
protected RemotingCodecFactory |
codecFactory
Remoting codec factory |
protected Logger |
log
Logger |
protected IServer |
server
Red5 server instance |
protected WebApplicationContext |
webAppCtx
Web app context |
| Constructor Summary | |
|---|---|
AMFGatewayServlet()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Logger log
public static final String APPLICATION_AMF
protected WebApplicationContext webAppCtx
protected IServer server
protected RemotingCodecFactory codecFactory
| Constructor Detail |
|---|
public AMFGatewayServlet()
| Method Detail |
|---|
public void init()
throws javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletException
public 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.ServletException
IOExceptionprotected 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 - Response
javax.servlet.ServletException - Servlet exception
IOException - I/O exception
protected RemotingPacket decodeRequest(javax.servlet.http.HttpServletRequest req)
throws Exception
req - Request
Exception - General exception
protected boolean handleRemotingPacket(javax.servlet.http.HttpServletRequest req,
IContext context,
IScope scope,
RemotingPacket message)
req - Requestmessage - Remoting packet
true on success
protected void sendResponse(javax.servlet.http.HttpServletResponse resp,
RemotingPacket packet)
throws Exception
resp - Responsepacket - Remoting packet
Exception - General exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||