public class RTMPTClientConnector extends Thread
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
protected RTMPTClient |
client |
protected static String |
CONTENT_TYPE |
protected org.apache.http.client.HttpClient |
httpClient |
protected long |
messageCount |
protected static int |
SEND_TARGET_SIZE
Size to split messages queue by, borrowed from RTMPTServlet.RESPONSE_TARGET_SIZE
|
protected String |
sessionId |
protected boolean |
stopRequested |
protected org.apache.http.HttpHost |
targetHost |
protected static org.apache.http.entity.ByteArrayEntity |
ZERO_REQUEST_ENTITY |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Modifier | Constructor and Description |
|---|---|
protected |
RTMPTClientConnector() |
|
RTMPTClientConnector(String server,
int port,
RTMPTClient client) |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
checkResponseCode(org.apache.http.HttpResponse response) |
protected void |
finalizeConnection() |
protected static org.apache.http.client.methods.HttpPost |
getPost(String uri) |
String |
getSessionId() |
protected org.apache.http.client.methods.HttpPost |
makePost(String command) |
protected String |
makeUrl(String command) |
void |
run() |
protected static void |
setCommonHeaders(org.apache.http.client.methods.HttpPost post) |
void |
setStopRequested(boolean stopRequested) |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldprotected static final String CONTENT_TYPE
protected static final org.apache.http.entity.ByteArrayEntity ZERO_REQUEST_ENTITY
protected static final int SEND_TARGET_SIZE
protected org.apache.http.client.HttpClient httpClient
protected org.apache.http.HttpHost targetHost
protected RTMPTClient client
protected String sessionId
protected long messageCount
protected volatile boolean stopRequested
protected RTMPTClientConnector()
public RTMPTClientConnector(String server, int port, RTMPTClient client)
public String getSessionId()
protected void finalizeConnection()
throws IOException
IOExceptionprotected static org.apache.http.client.methods.HttpPost getPost(String uri)
protected org.apache.http.client.methods.HttpPost makePost(String command)
protected static void setCommonHeaders(org.apache.http.client.methods.HttpPost post)
protected static void checkResponseCode(org.apache.http.HttpResponse response)
throws org.apache.http.ParseException,
IOException
org.apache.http.ParseExceptionIOExceptionpublic void setStopRequested(boolean stopRequested)
Copyright © 2005–2017 Red5. All rights reserved.