java.lang.Object
org.codelibs.jcifs.smb.internal.smb1.ServerMessageBlock
org.codelibs.jcifs.smb.internal.smb1.trans.SmbComTransactionResponse
org.codelibs.jcifs.smb.internal.smb1.trans2.Trans2GetDfsReferralResponse
- All Implemented Interfaces:
Enumeration<SmbComTransactionResponse>,CommonServerMessageBlock,CommonServerMessageBlockRequest,CommonServerMessageBlockResponse,RequestWithPath,Message,Request,Response
Trans2 GetDfsReferral response message for DFS referral queries.
This class handles the response from a TRANS2_GET_DFS_REFERRAL request, which returns
DFS referral information for redirecting clients to distributed file system targets.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIndicates that the referral contains a name list.static final intIndicates a target set boundary in the referral response.static final intIndicates non-root targets in the DFS referral.static final intIndicates root targets in the DFS referral.Fields inherited from class org.codelibs.jcifs.smb.internal.smb1.trans.SmbComTransactionResponse
bufDataStart, bufParameterStart, dataDisplacement, dataOffset, parameterCount, parameterDisplacement, parameterOffset, setupCount, totalDataCount, totalParameterCountFields 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
ConstructorsConstructorDescriptionConstructs a Trans2GetDfsReferralResponse with the specified configuration. -
Method Summary
Modifier and TypeMethodDescriptionGets the DFS referral response buffer containing the referral data.booleanChecks if Unicode encoding is forced for this messageprotected intreadDataWireFormat(byte[] buffer, int bufferIndex, int len) Reads data from wire formatprotected intreadParametersWireFormat(byte[] buffer, int bufferIndex, int len) Reads parameters from wire formatprotected intreadSetupWireFormat(byte[] buffer, int bufferIndex, int len) Reads setup data from wire formattoString()protected intwriteDataWireFormat(byte[] dst, int dstIndex) Writes data in wire formatprotected intwriteParametersWireFormat(byte[] dst, int dstIndex) Writes parameters in wire formatprotected intwriteSetupWireFormat(byte[] dst, int dstIndex) Writes setup data in wire formatMethods inherited from class org.codelibs.jcifs.smb.internal.smb1.trans.SmbComTransactionResponse
decode, getDataCount, getNumEntries, getResults, getStatus, getSubCommand, hasMoreElements, nextElement, readBytesWireFormat, readParameterWordsWireFormat, releaseBuffer, reset, setBuffer, setDataCount, setNumEntries, setResults, setStatus, setSubCommand, writeBytesWireFormat, writeParameterWordsWireFormatMethods inherited from class org.codelibs.jcifs.smb.internal.smb1.ServerMessageBlock
addFlags2, allowChain, clearReceived, createCancel, 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, 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
-
FLAGS_NAME_LIST_REFERRAL
public static final int FLAGS_NAME_LIST_REFERRALIndicates that the referral contains a name list.- See Also:
-
FLAGS_TARGET_SET_BOUNDARY
public static final int FLAGS_TARGET_SET_BOUNDARYIndicates a target set boundary in the referral response.- See Also:
-
TYPE_ROOT_TARGETS
public static final int TYPE_ROOT_TARGETSIndicates root targets in the DFS referral.- See Also:
-
TYPE_NON_ROOT_TARGETS
public static final int TYPE_NON_ROOT_TARGETSIndicates non-root targets in the DFS referral.- See Also:
-
-
Constructor Details
-
Trans2GetDfsReferralResponse
Constructs a Trans2GetDfsReferralResponse with the specified configuration.- Parameters:
config- the SMB configuration
-
-
Method Details
-
getDfsResponse
Gets the DFS referral response buffer containing the referral data.- Returns:
- the buffer
-
isForceUnicode
public boolean isForceUnicode()Description copied from class:ServerMessageBlockChecks if Unicode encoding is forced for this message- Overrides:
isForceUnicodein classServerMessageBlock- Returns:
- the forceUnicode
-
writeSetupWireFormat
protected int writeSetupWireFormat(byte[] dst, int dstIndex) Description copied from class:SmbComTransactionResponseWrites setup data in wire format- Specified by:
writeSetupWireFormatin classSmbComTransactionResponse- Parameters:
dst- destination bufferdstIndex- starting index in destination buffer- Returns:
- number of bytes written
-
writeParametersWireFormat
protected int writeParametersWireFormat(byte[] dst, int dstIndex) Description copied from class:SmbComTransactionResponseWrites parameters in wire format- Specified by:
writeParametersWireFormatin classSmbComTransactionResponse- Parameters:
dst- destination bufferdstIndex- starting index in destination buffer- Returns:
- number of bytes written
-
writeDataWireFormat
protected int writeDataWireFormat(byte[] dst, int dstIndex) Description copied from class:SmbComTransactionResponseWrites data in wire format- Specified by:
writeDataWireFormatin classSmbComTransactionResponse- Parameters:
dst- destination bufferdstIndex- starting index in destination buffer- Returns:
- number of bytes written
-
readSetupWireFormat
protected int readSetupWireFormat(byte[] buffer, int bufferIndex, int len) Description copied from class:SmbComTransactionResponseReads setup data from wire format- Specified by:
readSetupWireFormatin classSmbComTransactionResponse- Parameters:
buffer- source bufferbufferIndex- starting index in source bufferlen- length of data to read- Returns:
- number of bytes read
-
readParametersWireFormat
protected int readParametersWireFormat(byte[] buffer, int bufferIndex, int len) Description copied from class:SmbComTransactionResponseReads parameters from wire format- Specified by:
readParametersWireFormatin classSmbComTransactionResponse- Parameters:
buffer- source bufferbufferIndex- starting index in source bufferlen- length of data to read- Returns:
- number of bytes read
-
readDataWireFormat
protected int readDataWireFormat(byte[] buffer, int bufferIndex, int len) Description copied from class:SmbComTransactionResponseReads data from wire format- Specified by:
readDataWireFormatin classSmbComTransactionResponse- Parameters:
buffer- source bufferbufferIndex- starting index in source bufferlen- length of data to read- Returns:
- number of bytes read
-
toString
- Overrides:
toStringin classSmbComTransactionResponse
-