Package org.apache.sshd.common.session
Class SessionWorkBuffer
- java.lang.Object
-
- org.apache.sshd.common.util.buffer.Buffer
-
- org.apache.sshd.common.util.buffer.ByteArrayBuffer
-
- org.apache.sshd.common.session.SessionWorkBuffer
-
- All Implemented Interfaces:
SessionContextHolder
,SessionHolder<Session>
,Readable
public class SessionWorkBuffer extends ByteArrayBuffer implements SessionHolder<Session>
-
-
Field Summary
Fields Modifier and Type Field Description private Session
session
-
Fields inherited from class org.apache.sshd.common.util.buffer.ByteArrayBuffer
DEFAULT_SIZE
-
-
Constructor Summary
Constructors Constructor Description SessionWorkBuffer(Session session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear(boolean wipeData)
Reset read/write positions to zerovoid
forceClear(boolean wipeData)
Session
getSession()
-
Methods inherited from class org.apache.sshd.common.util.buffer.ByteArrayBuffer
array, available, capacity, compact, copyRawBytes, ensureCapacity, getByte, getBytesConsumed, getCompactClone, getCompactClone, getRawBytes, getString, putBuffer, putBuffer, putByte, putRawBytes, rawByte, rawUInt, rpos, rpos, size, wpos, wpos
-
Methods inherited from class org.apache.sshd.common.util.buffer.Buffer
clear, dumpHex, dumpHex, ensureAvailable, ensureCapacity, extractEC, getAvailableStrings, getAvailableStrings, getBoolean, getBytes, getCompactData, getInt, getKeyPair, getLong, getMPInt, getMPIntAsBytes, getNameList, getNameList, getNameList, getNameList, getPublicKey, getPublicKey, getRawBytes, getRawPublicKey, getRawPublicKey, getShort, getString, getStringList, getStringList, getStringList, getStringList, getUByte, getUInt, isValidMessageStructure, isValidMessageStructure, putAndWipeBytes, putAndWipeBytes, putAndWipeChars, putAndWipeChars, putAndWipeChars, putAndWipeChars, putBoolean, putBuffer, putBufferedData, putBytes, putBytes, putChars, putChars, putChars, putChars, putInt, putKeyPair, putLong, putMPInt, putMPInt, putNameList, putNameList, putNameList, putNameList, putOptionalBufferedData, putPublicKey, putRawBytes, putRawPublicKey, putRawPublicKeyBytes, putShort, putString, putString, putStringList, putStringList, toHex, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.sshd.common.session.SessionHolder
getSessionContext
-
-
-
-
Field Detail
-
session
private final Session session
-
-
Constructor Detail
-
SessionWorkBuffer
public SessionWorkBuffer(Session session)
-
-
Method Detail
-
getSession
public Session getSession()
- Specified by:
getSession
in interfaceSessionHolder<Session>
-
clear
public void clear(boolean wipeData)
Description copied from class:Buffer
Reset read/write positions to zero- Overrides:
clear
in classByteArrayBuffer
- Parameters:
wipeData
- Whether to zero any previously existing data
-
forceClear
public void forceClear(boolean wipeData)
-
-