|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.red5.server.AttributeStore
org.red5.server.BaseConnection
org.red5.server.net.rtmp.RTMPConnection
org.red5.server.net.rtmpt.BaseRTMPTConnection
org.red5.server.net.rtmpt.RTMPTConnection
public class RTMPTConnection
A RTMPT client / session.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.red5.server.api.IConnection |
---|
IConnection.Encoding |
Field Summary |
---|
Fields inherited from class org.red5.server.net.rtmpt.BaseRTMPTConnection |
---|
handler, maxInMessagesPerProcess, maxQueueOfferAttempts, maxQueueOfferTime, pendingInMessages, pendingOutMessages |
Fields inherited from class org.red5.server.net.rtmp.RTMPConnection |
---|
bytesReadInterval, clientId, limitType, nextBytesRead, RTMP_CONNECTION_KEY, RTMP_ENCRYPTED, RTMP_HANDSHAKE, RTMP_NON_ENCRYPTED, RTMPE_CIPHER_IN, RTMPE_CIPHER_OUT, schedulingService, state |
Fields inherited from class org.red5.server.BaseConnection |
---|
basicScopes, client, closed, connectionListeners, droppedMessages, host, params, path, readMessages, remoteAddress, remoteAddresses, remotePort, scope, sessionId, type, writtenMessages |
Fields inherited from class org.red5.server.AttributeStore |
---|
attributes |
Fields inherited from interface org.red5.server.api.IConnection |
---|
PERSISTENT, POLLING, TRANSIENT |
Method Summary | |
---|---|
IoBuffer |
getPendingMessages(int targetSize)
Return any pending messages up to a given size. |
byte |
getPollingDelay()
Return the polling delay to use. |
protected IoSession |
getSession()
Creates a DummySession for this HTTP-based connection to allow our Mina based system happy. |
boolean |
isReaderIdle()
Returns whether or not the reader is idle. |
boolean |
isWriterIdle()
Returns whether or not the writer is idle. |
protected void |
onInactive()
Inactive state event handler. |
void |
realClose()
Real close |
void |
setSchedulingService(ISchedulingService schedulingService)
Sets the scheduling service. |
protected void |
setServlet(RTMPTServlet servlet)
Set the servlet that created the connection. |
void |
setServletRequest(javax.servlet.http.HttpServletRequest request)
Setter for servlet request. |
void |
setSessionId(String sessionId)
Sets the client session id. |
Methods inherited from class org.red5.server.net.rtmpt.BaseRTMPTConnection |
---|
close, decode, foldPendingMessages, getPendingMessages, getReadBytes, getWrittenBytes, isClosing, read, read, read, setDecoder, setEncoder, setHandler, setMaxInMessagesPerProcess, setMaxQueueOfferAttempts, setMaxQueueOfferTime, write, writeRaw |
Methods inherited from class org.red5.server.BaseConnection |
---|
addListener, connect, dispatchEvent, getBasicScopes, getClient, getConnectParams, getDroppedMessages, getHost, getLock, getNextClientId, getPath, getReadMessages, getRemoteAddress, getRemoteAddresses, getRemotePort, getScope, getSessionId, getType, getWrittenMessages, handleEvent, initialize, isConnected, notifyEvent, registerBasicScope, removeListener, unregisterBasicScope |
Methods inherited from class org.red5.server.AttributeStore |
---|
filterNull, from, getAttribute, getAttribute, getAttributeNames, getAttributes, getBoolAttribute, getByteAttribute, getDoubleAttribute, getIntAttribute, getListAttribute, getLongAttribute, getMapAttribute, getSetAttribute, getShortAttribute, getStringAttribute, hasAttribute, removeAttribute, removeAttributes, setAttribute, setAttributes, setAttributes, size |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.red5.server.api.IConnection |
---|
addListener, connect, getBasicScopes, getClient, getConnectParams, getDroppedMessages, getHost, getPath, getReadMessages, getRemoteAddress, getRemoteAddresses, getRemotePort, getScope, getSessionId, getType, getWrittenMessages, initialize, isConnected, removeListener |
Methods inherited from interface org.red5.server.api.event.IEventDispatcher |
---|
dispatchEvent |
Methods inherited from interface org.red5.server.api.event.IEventHandler |
---|
handleEvent |
Methods inherited from interface org.red5.server.api.event.IEventListener |
---|
notifyEvent |
Methods inherited from interface org.red5.server.api.ICastingAttributeStore |
---|
getBoolAttribute, getByteAttribute, getDoubleAttribute, getIntAttribute, getListAttribute, getLongAttribute, getMapAttribute, getSetAttribute, getShortAttribute, getStringAttribute |
Methods inherited from interface org.red5.server.api.IAttributeStore |
---|
getAttribute, getAttribute, getAttributeNames, getAttributes, hasAttribute, removeAttribute, removeAttributes, setAttribute, setAttributes, setAttributes, size |
Method Detail |
---|
protected IoSession getSession()
public void realClose()
realClose
in class BaseRTMPTConnection
protected void onInactive()
onInactive
in class RTMPConnection
public boolean isReaderIdle()
isReaderIdle
in class BaseConnection
public boolean isWriterIdle()
isWriterIdle
in class BaseConnection
public void setSchedulingService(ISchedulingService schedulingService)
setSchedulingService
in class RTMPConnection
schedulingService
- scheduling servicepublic void setSessionId(String sessionId)
sessionId
- protected void setServlet(RTMPTServlet servlet)
servlet
- public void setServletRequest(javax.servlet.http.HttpServletRequest request)
request
- Servlet requestpublic byte getPollingDelay()
public IoBuffer getPendingMessages(int targetSize)
getPendingMessages
in class BaseRTMPTConnection
targetSize
- the size the resulting buffer should have
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |