Package jcifs.internal.smb2.tree
Class Smb2TreeConnectResponse
- java.lang.Object
-
- jcifs.internal.smb2.ServerMessageBlock2
-
- jcifs.internal.smb2.ServerMessageBlock2Response
-
- jcifs.internal.smb2.tree.Smb2TreeConnectResponse
-
- All Implemented Interfaces:
CommonServerMessageBlock
,CommonServerMessageBlockResponse
,TreeConnectResponse
,Message
,Response
public class Smb2TreeConnectResponse extends ServerMessageBlock2Response implements TreeConnectResponse
- Author:
- mbechler
-
-
Field Summary
Fields Modifier and Type Field Description static int
SMB2_SHARE_CAP_ASYMMETRIC
static int
SMB2_SHARE_CAP_CLUSTER
static int
SMB2_SHARE_CAP_CONTINUOUS_AVAILABILITY
static int
SMB2_SHARE_CAP_DFS
static int
SMB2_SHARE_CAP_SCALEOUT
static byte
SMB2_SHARE_TYPE_DISK
static byte
SMB2_SHARE_TYPE_PIPE
static byte
SMB2_SHARE_TYPE_PRINT
static int
SMB2_SHAREFLAG_ACCESS_BASED_DIRECTORY_ENUM
static int
SMB2_SHAREFLAG_ALLOW_NAMESPACE_CACHING
static int
SMB2_SHAREFLAG_AUTO_CACHING
static int
SMB2_SHAREFLAG_DFS
static int
SMB2_SHAREFLAG_DFS_ROOT
static int
SMB2_SHAREFLAG_ENABLE_HASH_V1
static int
SMB2_SHAREFLAG_ENABLE_HASH_V2
static int
SMB2_SHAREFLAG_ENCRYPT_DATA
static int
SMB2_SHAREFLAG_FORCE_LEVEL2_OPLOCK
static int
SMB2_SHAREFLAG_FORCE_SHARED_DELETE
static int
SMB2_SHAREFLAG_MANUAL_CACHING
static int
SMB2_SHAREFLAG_RESTRICT_EXCLUSIVE_OPENS
static int
SMB2_SHAREFLAG_VDO_CACHING
-
Fields inherited from class jcifs.internal.smb2.ServerMessageBlock2
SMB2_CANCEL, SMB2_CHANGE_NOTIFY, SMB2_CLOSE, SMB2_CREATE, SMB2_ECHO, SMB2_FLAGS_ASYNC_COMMAND, SMB2_FLAGS_DFS_OPERATIONS, SMB2_FLAGS_PRIORITY_MASK, SMB2_FLAGS_RELATED_OPERATIONS, SMB2_FLAGS_REPLAY_OPERATION, SMB2_FLAGS_SERVER_TO_REDIR, SMB2_FLAGS_SIGNED, SMB2_FLUSH, SMB2_IOCTL, SMB2_LOCK, SMB2_LOGOFF, SMB2_NEGOTIATE, SMB2_OPLOCK_BREAK, SMB2_QUERY_DIRECTORY, SMB2_QUERY_INFO, SMB2_READ, SMB2_SESSION_SETUP, SMB2_SET_INFO, SMB2_TREE_CONNECT, SMB2_TREE_DISCONNECT, SMB2_WRITE
-
-
Constructor Summary
Constructors Constructor Description Smb2TreeConnectResponse(Configuration config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCapabilities()
int
getMaximalAccess()
String
getService()
int
getShareFlags()
byte
getShareType()
int
getTid()
boolean
isShareDfs()
boolean
isValidTid()
void
prepare(CommonServerMessageBlockRequest next)
protected int
readBytesWireFormat(byte[] buffer, int bufferIndex)
protected int
writeBytesWireFormat(byte[] dst, int dstIndex)
-
Methods inherited from class jcifs.internal.smb2.ServerMessageBlock2Response
clearReceived, error, exception, getErrorCode, getException, getExpiration, getGrantedCredits, getNextResponse, haveResponse, isAsyncHandled, isError, isReceived, isSigned, isVerifyFailed, received, reset, setAsyncHandled, setExpiration, verifySignature
-
Methods inherited from class jcifs.internal.smb2.ServerMessageBlock2
addFlags, chain, clearFlags, decode, decode, encode, equals, getAsyncId, getCommand, getConfig, getCredit, getCreditCharge, getDigest, getErrorContextCount, getErrorData, getFlags, getHeaderStart, getLength, getMid, getNext, getNextCommandOffset, getRawPayload, getResponse, getSessionId, getStatus, getTreeId, hashCode, isAsync, isErrorResponseStatus, isRetainPayload, pad8, readErrorResponse, readHeaderWireFormat, retainPayload, setAsyncId, setCommand, setCredit, setDigest, setExtendedSecurity, setMid, setNext, setRawPayload, setReadSize, setResponse, setSessionId, setTreeId, setUid, size8, size8, toString, writeHeaderWireFormat
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jcifs.internal.CommonServerMessageBlock
decode, encode, getCommand, getDigest, getMid, getResponse, reset, setCommand, setDigest, setExtendedSecurity, setMid, setResponse, setSessionId, setUid
-
Methods inherited from interface jcifs.internal.CommonServerMessageBlockResponse
getNextResponse, isAsync
-
Methods inherited from interface jcifs.util.transport.Message
getRawPayload, isRetainPayload, retainPayload, setRawPayload
-
Methods inherited from interface jcifs.util.transport.Response
clearReceived, error, exception, getErrorCode, getException, getExpiration, getGrantedCredits, getMid, isError, isReceived, isVerifyFailed, received, reset, setExpiration, setMid, verifySignature
-
-
-
-
Field Detail
-
SMB2_SHARE_TYPE_DISK
public static final byte SMB2_SHARE_TYPE_DISK
- See Also:
- Constant Field Values
-
SMB2_SHARE_TYPE_PIPE
public static final byte SMB2_SHARE_TYPE_PIPE
- See Also:
- Constant Field Values
-
SMB2_SHARE_TYPE_PRINT
public static final byte SMB2_SHARE_TYPE_PRINT
- See Also:
- Constant Field Values
-
SMB2_SHAREFLAG_MANUAL_CACHING
public static final int SMB2_SHAREFLAG_MANUAL_CACHING
- See Also:
- Constant Field Values
-
SMB2_SHAREFLAG_AUTO_CACHING
public static final int SMB2_SHAREFLAG_AUTO_CACHING
- See Also:
- Constant Field Values
-
SMB2_SHAREFLAG_VDO_CACHING
public static final int SMB2_SHAREFLAG_VDO_CACHING
- See Also:
- Constant Field Values
-
SMB2_SHAREFLAG_DFS
public static final int SMB2_SHAREFLAG_DFS
- See Also:
- Constant Field Values
-
SMB2_SHAREFLAG_DFS_ROOT
public static final int SMB2_SHAREFLAG_DFS_ROOT
- See Also:
- Constant Field Values
-
SMB2_SHAREFLAG_RESTRICT_EXCLUSIVE_OPENS
public static final int SMB2_SHAREFLAG_RESTRICT_EXCLUSIVE_OPENS
- See Also:
- Constant Field Values
-
SMB2_SHAREFLAG_FORCE_SHARED_DELETE
public static final int SMB2_SHAREFLAG_FORCE_SHARED_DELETE
- See Also:
- Constant Field Values
-
SMB2_SHAREFLAG_ALLOW_NAMESPACE_CACHING
public static final int SMB2_SHAREFLAG_ALLOW_NAMESPACE_CACHING
- See Also:
- Constant Field Values
-
SMB2_SHAREFLAG_ACCESS_BASED_DIRECTORY_ENUM
public static final int SMB2_SHAREFLAG_ACCESS_BASED_DIRECTORY_ENUM
- See Also:
- Constant Field Values
-
SMB2_SHAREFLAG_FORCE_LEVEL2_OPLOCK
public static final int SMB2_SHAREFLAG_FORCE_LEVEL2_OPLOCK
- See Also:
- Constant Field Values
-
SMB2_SHAREFLAG_ENABLE_HASH_V1
public static final int SMB2_SHAREFLAG_ENABLE_HASH_V1
- See Also:
- Constant Field Values
-
SMB2_SHAREFLAG_ENABLE_HASH_V2
public static final int SMB2_SHAREFLAG_ENABLE_HASH_V2
- See Also:
- Constant Field Values
-
SMB2_SHAREFLAG_ENCRYPT_DATA
public static final int SMB2_SHAREFLAG_ENCRYPT_DATA
- See Also:
- Constant Field Values
-
SMB2_SHARE_CAP_DFS
public static final int SMB2_SHARE_CAP_DFS
- See Also:
- Constant Field Values
-
SMB2_SHARE_CAP_CONTINUOUS_AVAILABILITY
public static final int SMB2_SHARE_CAP_CONTINUOUS_AVAILABILITY
- See Also:
- Constant Field Values
-
SMB2_SHARE_CAP_SCALEOUT
public static final int SMB2_SHARE_CAP_SCALEOUT
- See Also:
- Constant Field Values
-
SMB2_SHARE_CAP_CLUSTER
public static final int SMB2_SHARE_CAP_CLUSTER
- See Also:
- Constant Field Values
-
SMB2_SHARE_CAP_ASYMMETRIC
public static final int SMB2_SHARE_CAP_ASYMMETRIC
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Smb2TreeConnectResponse
public Smb2TreeConnectResponse(Configuration config)
- Parameters:
config
-
-
-
Method Detail
-
prepare
public void prepare(CommonServerMessageBlockRequest next)
- Specified by:
prepare
in interfaceCommonServerMessageBlockResponse
- Overrides:
prepare
in classServerMessageBlock2Response
- See Also:
ServerMessageBlock2Response.prepare(jcifs.internal.CommonServerMessageBlockRequest)
-
getShareType
public byte getShareType()
- Returns:
- the shareType
-
getShareFlags
public int getShareFlags()
- Returns:
- the shareFlags
-
getCapabilities
public int getCapabilities()
- Returns:
- the capabilities
-
getMaximalAccess
public int getMaximalAccess()
- Returns:
- the maximalAccess
-
getTid
public final int getTid()
- Specified by:
getTid
in interfaceTreeConnectResponse
- Returns:
- tree id
- See Also:
TreeConnectResponse.getTid()
-
isValidTid
public boolean isValidTid()
- Specified by:
isValidTid
in interfaceTreeConnectResponse
- Returns:
- whether the tree id is a valid one
-
getService
public String getService()
- Specified by:
getService
in interfaceTreeConnectResponse
- Returns:
- service
- See Also:
TreeConnectResponse.getService()
-
isShareDfs
public boolean isShareDfs()
- Specified by:
isShareDfs
in interfaceTreeConnectResponse
- Returns:
- whether the share is in DFS
- See Also:
TreeConnectResponse.isShareDfs()
-
writeBytesWireFormat
protected int writeBytesWireFormat(byte[] dst, int dstIndex)
- Specified by:
writeBytesWireFormat
in classServerMessageBlock2
- See Also:
ServerMessageBlock2.writeBytesWireFormat(byte[], int)
-
readBytesWireFormat
protected int readBytesWireFormat(byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException
- Specified by:
readBytesWireFormat
in classServerMessageBlock2
- Throws:
Smb2ProtocolDecodingException
SMBProtocolDecodingException
- See Also:
ServerMessageBlock2.readBytesWireFormat(byte[], int)
-
-