Package jcifs.internal.smb1.trans
Class SmbComTransaction
- java.lang.Object
-
- jcifs.internal.smb1.ServerMessageBlock
-
- jcifs.internal.smb1.trans.SmbComTransaction
-
- All Implemented Interfaces:
Enumeration<SmbComTransaction>
,CommonServerMessageBlock
,CommonServerMessageBlockRequest
,CommonServerMessageBlockResponse
,RequestWithPath
,Message
,Request
,Response
- Direct Known Subclasses:
NetServerEnum2
,NetShareEnum
,SmbComNtTransaction
,Trans2FindFirst2
,Trans2FindNext2
,Trans2GetDfsReferral
,Trans2QueryFSInformation
,Trans2QueryPathInformation
,Trans2SetFileInformation
,TransCallNamedPipe
,TransPeekNamedPipe
,TransTransactNamedPipe
,TransWaitNamedPipe
public abstract class SmbComTransaction extends ServerMessageBlock implements Enumeration<SmbComTransaction>
-
-
Field Summary
-
Fields inherited from class jcifs.internal.smb1.ServerMessageBlock
batchLevel, byteCount, digest, errorCode, flags2, headerStart, length, mid, path, pid, SMB_COM_CHECK_DIRECTORY, SMB_COM_CLOSE, SMB_COM_CREATE_DIRECTORY, SMB_COM_DELETE, SMB_COM_DELETE_DIRECTORY, SMB_COM_ECHO, SMB_COM_FIND_CLOSE2, SMB_COM_LOCKING_ANDX, SMB_COM_LOGOFF_ANDX, SMB_COM_MOVE, SMB_COM_NEGOTIATE, SMB_COM_NT_CANCEL, SMB_COM_NT_CREATE_ANDX, SMB_COM_NT_TRANSACT, SMB_COM_NT_TRANSACT_SECONDARY, SMB_COM_OPEN_ANDX, SMB_COM_QUERY_INFORMATION, SMB_COM_READ_ANDX, SMB_COM_RENAME, SMB_COM_SEEK, SMB_COM_SESSION_SETUP_ANDX, SMB_COM_SET_INFORMATION, SMB_COM_TRANSACTION, SMB_COM_TRANSACTION_SECONDARY, SMB_COM_TRANSACTION2, SMB_COM_TREE_CONNECT_ANDX, SMB_COM_TREE_DISCONNECT, SMB_COM_WRITE, SMB_COM_WRITE_ANDX, tid, uid, wordCount
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SmbComTransaction(Configuration config, byte command, byte subCommand)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
getPadding()
byte
getSubCommand()
boolean
hasMoreElements()
SmbComTransaction
nextElement()
protected int
pad(int offset)
protected int
readBytesWireFormat(byte[] buffer, int bufferIndex)
protected abstract int
readDataWireFormat(byte[] buffer, int bufferIndex, int len)
protected abstract int
readParametersWireFormat(byte[] buffer, int bufferIndex, int len)
protected int
readParameterWordsWireFormat(byte[] buffer, int bufferIndex)
protected abstract int
readSetupWireFormat(byte[] buffer, int bufferIndex, int len)
byte[]
releaseBuffer()
void
reset()
protected void
reset(int key, String lastName)
void
setBuffer(byte[] buffer)
void
setMaxBufferSize(int maxBufferSize)
void
setMaxDataCount(int maxDataCount)
void
setSubCommand(byte subCommand)
String
toString()
protected int
writeBytesWireFormat(byte[] dst, int dstIndex)
protected abstract int
writeDataWireFormat(byte[] dst, int dstIndex)
protected abstract int
writeParametersWireFormat(byte[] dst, int dstIndex)
protected int
writeParameterWordsWireFormat(byte[] dst, int dstIndex)
protected abstract int
writeSetupWireFormat(byte[] dst, int dstIndex)
-
Methods inherited from class jcifs.internal.smb1.ServerMessageBlock
addFlags2, allowChain, clearReceived, createCancel, decode, encode, equals, error, exception, getByteCount, getCommand, getConfig, getCreditCost, getDigest, getDomain, getErrorCode, getException, getExpiration, getFlags, getFlags2, getFullUNCPath, getGrantedCredits, getLength, getMid, getNext, getNextResponse, getOverrideTimeout, getPath, getPid, getRawPayload, getResponse, getServer, getSignSeq, getTid, getUid, hashCode, ignoreDisconnect, isAsync, isCancel, isError, isExtendedSecurity, isForceUnicode, isReceived, isResolveInDfs, isResponse, isResponseAsync, isRetainPayload, isUseUnicode, isVerifyFailed, prepare, readHeaderWireFormat, readString, readString, readString, readStringLength, received, remFlags2, retainPayload, setCommand, setDigest, setErrorCode, setExpiration, setExtendedSecurity, setFlags, setFlags2, setFullUNCPath, setMid, setOverrideTimeout, setPath, setPid, setRawPayload, setRequestCredits, setResolveInDfs, setResponse, setSessionId, setSignSeq, setTid, setUid, setUseUnicode, size, split, stringWireLength, verifySignature, writeHeaderWireFormat, writeString, writeString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Enumeration
asIterator
-
-
-
-
Field Detail
-
TRANS2_FIND_FIRST2
public static final byte TRANS2_FIND_FIRST2
- See Also:
- Constant Field Values
-
TRANS2_FIND_NEXT2
public static final byte TRANS2_FIND_NEXT2
- See Also:
- Constant Field Values
-
TRANS2_QUERY_FS_INFORMATION
public static final byte TRANS2_QUERY_FS_INFORMATION
- See Also:
- Constant Field Values
-
TRANS2_QUERY_PATH_INFORMATION
public static final byte TRANS2_QUERY_PATH_INFORMATION
- See Also:
- Constant Field Values
-
TRANS2_GET_DFS_REFERRAL
public static final byte TRANS2_GET_DFS_REFERRAL
- See Also:
- Constant Field Values
-
TRANS2_QUERY_FILE_INFORMATION
public static final byte TRANS2_QUERY_FILE_INFORMATION
- See Also:
- Constant Field Values
-
TRANS2_SET_FILE_INFORMATION
public static final byte TRANS2_SET_FILE_INFORMATION
- See Also:
- Constant Field Values
-
NET_SHARE_ENUM
public static final byte NET_SHARE_ENUM
- See Also:
- Constant Field Values
-
NET_SERVER_ENUM2
public static final byte NET_SERVER_ENUM2
- See Also:
- Constant Field Values
-
NET_SERVER_ENUM3
public static final byte NET_SERVER_ENUM3
- See Also:
- Constant Field Values
-
TRANS_PEEK_NAMED_PIPE
public static final byte TRANS_PEEK_NAMED_PIPE
- See Also:
- Constant Field Values
-
TRANS_WAIT_NAMED_PIPE
public static final byte TRANS_WAIT_NAMED_PIPE
- See Also:
- Constant Field Values
-
TRANS_CALL_NAMED_PIPE
public static final byte TRANS_CALL_NAMED_PIPE
- See Also:
- Constant Field Values
-
TRANS_TRANSACT_NAMED_PIPE
public static final byte TRANS_TRANSACT_NAMED_PIPE
- See Also:
- Constant Field Values
-
primarySetupOffset
protected int primarySetupOffset
-
secondaryParameterOffset
protected int secondaryParameterOffset
-
parameterCount
protected int parameterCount
-
parameterOffset
protected int parameterOffset
-
parameterDisplacement
protected int parameterDisplacement
-
dataCount
protected int dataCount
-
dataOffset
protected int dataOffset
-
dataDisplacement
protected int dataDisplacement
-
totalParameterCount
protected int totalParameterCount
-
totalDataCount
protected int totalDataCount
-
maxParameterCount
protected int maxParameterCount
-
maxDataCount
protected int maxDataCount
-
maxSetupCount
protected byte maxSetupCount
-
timeout
protected int timeout
-
setupCount
protected int setupCount
-
name
protected String name
-
maxBufferSize
protected int maxBufferSize
-
-
Constructor Detail
-
SmbComTransaction
protected SmbComTransaction(Configuration config, byte command, byte subCommand)
-
-
Method Detail
-
setMaxBufferSize
public final void setMaxBufferSize(int maxBufferSize)
- Parameters:
maxBufferSize
- the maxBufferSize to set
-
setMaxDataCount
public final void setMaxDataCount(int maxDataCount)
- Parameters:
maxDataCount
- the maxDataCount to set
-
setBuffer
public void setBuffer(byte[] buffer)
- Parameters:
buffer
-
-
releaseBuffer
public byte[] releaseBuffer()
- Returns:
- the txn_buf
-
getSubCommand
public final byte getSubCommand()
- Returns:
- the subCommand
-
setSubCommand
public final void setSubCommand(byte subCommand)
- Parameters:
subCommand
- the subCommand to set
-
reset
public void reset()
- Specified by:
reset
in interfaceCommonServerMessageBlock
- Specified by:
reset
in interfaceResponse
- Overrides:
reset
in classServerMessageBlock
-
reset
protected void reset(int key, String lastName)
-
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements
in interfaceEnumeration<SmbComTransaction>
-
nextElement
public SmbComTransaction nextElement()
- Specified by:
nextElement
in interfaceEnumeration<SmbComTransaction>
-
pad
protected int pad(int offset)
- Returns:
-
getPadding
public int getPadding()
- Returns:
- padding size
-
writeParameterWordsWireFormat
protected int writeParameterWordsWireFormat(byte[] dst, int dstIndex)
- Specified by:
writeParameterWordsWireFormat
in classServerMessageBlock
-
writeBytesWireFormat
protected int writeBytesWireFormat(byte[] dst, int dstIndex)
- Specified by:
writeBytesWireFormat
in classServerMessageBlock
-
readParameterWordsWireFormat
protected int readParameterWordsWireFormat(byte[] buffer, int bufferIndex)
- Specified by:
readParameterWordsWireFormat
in classServerMessageBlock
-
readBytesWireFormat
protected int readBytesWireFormat(byte[] buffer, int bufferIndex)
- Specified by:
readBytesWireFormat
in classServerMessageBlock
-
writeSetupWireFormat
protected abstract int writeSetupWireFormat(byte[] dst, int dstIndex)
-
writeParametersWireFormat
protected abstract int writeParametersWireFormat(byte[] dst, int dstIndex)
-
writeDataWireFormat
protected abstract int writeDataWireFormat(byte[] dst, int dstIndex)
-
readSetupWireFormat
protected abstract int readSetupWireFormat(byte[] buffer, int bufferIndex, int len)
-
readParametersWireFormat
protected abstract int readParametersWireFormat(byte[] buffer, int bufferIndex, int len)
-
readDataWireFormat
protected abstract int readDataWireFormat(byte[] buffer, int bufferIndex, int len)
-
toString
public String toString()
- Overrides:
toString
in classServerMessageBlock
-
-