java.lang.Object
org.codelibs.jcifs.smb.internal.smb1.ServerMessageBlock
org.codelibs.jcifs.smb.internal.smb1.trans.SmbComTransaction
org.codelibs.jcifs.smb.internal.smb1.trans.nt.SmbComNtTransaction
- All Implemented Interfaces:
Enumeration<SmbComTransaction>,CommonServerMessageBlock,CommonServerMessageBlockRequest,CommonServerMessageBlockResponse,RequestWithPath,Message,Request,Response
- Direct Known Subclasses:
NtTransNotifyChange,NtTransQuerySecurityDesc
Base class for SMB1 NT Transaction request messages.
NT Transactions are an extended form of the basic transaction protocol
that provides additional functionality for Windows NT-specific operations
such as security descriptor queries and file change notifications.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intNT transaction function code for change notification.static final intNT transaction function code for querying security descriptors.Fields inherited from class org.codelibs.jcifs.smb.internal.smb1.trans.SmbComTransaction
dataCount, dataDisplacement, dataOffset, maxBufferSize, maxDataCount, maxParameterCount, maxSetupCount, name, NET_SERVER_ENUM2, NET_SERVER_ENUM3, NET_SHARE_ENUM, parameterCount, parameterDisplacement, parameterOffset, primarySetupOffset, secondaryParameterOffset, setupCount, timeout, totalDataCount, totalParameterCount, TRANS_CALL_NAMED_PIPE, TRANS_PEEK_NAMED_PIPE, TRANS_TRANSACT_NAMED_PIPE, TRANS_WAIT_NAMED_PIPE, TRANS2_FIND_FIRST2, TRANS2_FIND_NEXT2, TRANS2_GET_DFS_REFERRAL, TRANS2_QUERY_FILE_INFORMATION, TRANS2_QUERY_FS_INFORMATION, TRANS2_QUERY_PATH_INFORMATION, TRANS2_SET_FILE_INFORMATIONFields inherited from class org.codelibs.jcifs.smb.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
ConstructorsModifierConstructorDescriptionprotectedSmbComNtTransaction(Configuration config, int function) Constructs an NT transaction command. -
Method Summary
Modifier and TypeMethodDescriptionCreates a cancel request for this request.protected intwriteParameterWordsWireFormat(byte[] dst, int dstIndex) Writes the parameter words portion of the SMB message to the wire format.Methods inherited from class org.codelibs.jcifs.smb.internal.smb1.trans.SmbComTransaction
getPadding, getSubCommand, hasMoreElements, nextElement, pad, readBytesWireFormat, readDataWireFormat, readParametersWireFormat, readParameterWordsWireFormat, readSetupWireFormat, releaseBuffer, reset, reset, setBuffer, setMaxBufferSize, setMaxDataCount, setSubCommand, toString, writeBytesWireFormat, writeDataWireFormat, writeParametersWireFormat, writeSetupWireFormatMethods inherited from class org.codelibs.jcifs.smb.internal.smb1.ServerMessageBlock
addFlags2, allowChain, clearReceived, 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, writeStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Enumeration
asIterator
-
Field Details
-
NT_TRANSACT_QUERY_SECURITY_DESC
public static final int NT_TRANSACT_QUERY_SECURITY_DESCNT transaction function code for querying security descriptors. Used to retrieve security information about a file or directory.- See Also:
-
NT_TRANSACT_NOTIFY_CHANGE
public static final int NT_TRANSACT_NOTIFY_CHANGENT transaction function code for change notification. Used to monitor changes to a directory or file.- See Also:
-
-
Constructor Details
-
SmbComNtTransaction
Constructs an NT transaction command.- Parameters:
config- the configurationfunction- the NT transaction function code
-
-
Method Details
-
createCancel
Description copied from class:ServerMessageBlockCreates a cancel request for this request.- Specified by:
createCancelin interfaceCommonServerMessageBlockRequest- Overrides:
createCancelin classServerMessageBlock- Returns:
- a cancel request
- See Also:
-
writeParameterWordsWireFormat
protected int writeParameterWordsWireFormat(byte[] dst, int dstIndex) Description copied from class:ServerMessageBlockWrites the parameter words portion of the SMB message to the wire format.- Overrides:
writeParameterWordsWireFormatin classSmbComTransaction- Parameters:
dst- the destination bufferdstIndex- the starting offset in the buffer- Returns:
- the number of bytes written
-