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, toString
getApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannel
configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
shutdownInput
shutdownOutput
getReceiveStream, getSendStream, readClientDoneConfirmation, shutdownInput, shutdownOutput
getConnectionInfo, getHostAddress, getHostName, isClosed, isConnected, readObject, writeObject
getServerContext
public AbstractServerConnection(ServerContext serverCtx)
public void writeError(java.lang.Exception error)
writeError
in interface ServerConnection
public void handleConnection() throws java.lang.Exception
java.lang.Exception
protected final void recordWrittenBytes(long byteCount)
protected final void recordReadBytes(long byteCount)
Copyright © 2014 EsprIT-Systems. All Rights Reserved.