public class ServerSocketThreadForTesting extends Thread
Modifier and Type | Class and Description |
---|---|
class |
ServerSocketThreadForTesting.TestSocketThread |
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
ServerSocketThreadForTesting(int thePort) |
ServerSocketThreadForTesting(int thePort,
IAuthorizationServerCallback theServerAuthCallback) |
ServerSocketThreadForTesting(int thePort,
IAuthorizationServerCallback theServerAuthCallback,
ISocketFactory theSocketFactory) |
Modifier and Type | Method and Description |
---|---|
void |
done() |
int |
getConnectionCount() |
String |
getContentType() |
EncodingStyle |
getEncoding() |
CountDownLatch |
getLatch() |
String |
getMessage() |
Message |
getReply() |
String |
getRequestUri() |
void |
run() |
void |
setCloseNormallyWithHeaderAfterEachMessage() |
void |
setCloseUnexpectedlyAfterEachMessage() |
void |
setGZipResponse(boolean theGZipResponse) |
void |
setMessage(String theMessage) |
void |
setReply(Message theReply) |
void |
setResponseDelays(Long... theResponseDelays) |
void |
setServerSockewtFactory(CustomCertificateTlsSocketFactory theServerSocketFactory) |
void |
setSimulateOneSecondPauseInChunkedEncoding(boolean theB) |
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, yield
public ServerSocketThreadForTesting(int thePort)
public ServerSocketThreadForTesting(int thePort, IAuthorizationServerCallback theServerAuthCallback)
public ServerSocketThreadForTesting(int thePort, IAuthorizationServerCallback theServerAuthCallback, ISocketFactory theSocketFactory)
public void setResponseDelays(Long... theResponseDelays)
public void done()
public int getConnectionCount()
public String getContentType()
public EncodingStyle getEncoding()
public CountDownLatch getLatch()
public String getMessage()
public String getRequestUri()
public void setCloseUnexpectedlyAfterEachMessage()
public void setGZipResponse(boolean theGZipResponse)
theGZipResponse
- the gZipResponse to setpublic void setMessage(String theMessage)
theMessage
- the message to setpublic void setServerSockewtFactory(CustomCertificateTlsSocketFactory theServerSocketFactory)
public void setSimulateOneSecondPauseInChunkedEncoding(boolean theB)
public void setCloseNormallyWithHeaderAfterEachMessage()
Copyright © 2012–2017 University Health Network. All rights reserved.