public abstract class AbstractServerConnection extends AbstractServerObject<ServerContext> implements ServerMessageConnection, ServerRequestConnection, ServerTransferConnection
NetChannelType it decides which type of connection
it actually will be - which is one of ServerMessageConnection, ServerRequestConnection,
ServerTransferConnection). The specific type of connection is opened within the
ServerNetworkAdapter where also the according service tasks are started and managed.| Constructor and Description |
|---|
AbstractServerConnection(ServerContext serverCtx) |
| Modifier and Type | Method and Description |
|---|---|
void |
handleConnection()
Here the decision is made which type of connection this will be.
|
protected void |
recordReadBytes(long byteCount) |
protected void |
recordWrittenBytes(long byteCount) |
void |
writeError(java.lang.Exception error) |
checkPermission, getServerConfig, getServerContext, getStatisticManager, toStringgetApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannelconfigureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitshutdownInputshutdownOutputgetReceiveStream, getSendStream, readClientDoneConfirmation, shutdownInput, shutdownOutputgetConnectionInfo, getHostAddress, getHostName, isClosed, isConnected, readObject, writeObjectgetServerContextpublic AbstractServerConnection(ServerContext serverCtx)
public void writeError(java.lang.Exception error)
writeError in interface ServerConnectionpublic void handleConnection()
throws java.lang.Exception
java.lang.Exceptionprotected final void recordWrittenBytes(long byteCount)
protected final void recordReadBytes(long byteCount)
Copyright © 2014 EsprIT-Systems. All Rights Reserved.