パッケージ jcifs.internal.smb2
クラス ServerMessageBlock2
- java.lang.Object
-
- jcifs.internal.smb2.ServerMessageBlock2
-
- すべての実装されたインタフェース:
CommonServerMessageBlock,Message
public abstract class ServerMessageBlock2 extends Object implements CommonServerMessageBlock
- 作成者:
- mbechler
-
-
フィールドの概要
フィールド 修飾子とタイプ フィールド 説明 protected static shortSMB2_CANCELprotected static shortSMB2_CHANGE_NOTIFYprotected static shortSMB2_CLOSEprotected static shortSMB2_CREATEprotected static shortSMB2_ECHOstatic intSMB2_FLAGS_ASYNC_COMMANDstatic intSMB2_FLAGS_DFS_OPERATIONSstatic intSMB2_FLAGS_PRIORITY_MASKstatic intSMB2_FLAGS_RELATED_OPERATIONSstatic intSMB2_FLAGS_REPLAY_OPERATIONstatic intSMB2_FLAGS_SERVER_TO_REDIRstatic intSMB2_FLAGS_SIGNEDprotected static shortSMB2_FLUSHprotected static shortSMB2_IOCTLprotected static shortSMB2_LOCKprotected static shortSMB2_LOGOFFprotected static shortSMB2_NEGOTIATEprotected static shortSMB2_OPLOCK_BREAKprotected static shortSMB2_QUERY_DIRECTORYprotected static shortSMB2_QUERY_INFOprotected static shortSMB2_READprotected static shortSMB2_SESSION_SETUPprotected static shortSMB2_SET_INFOprotected static shortSMB2_TREE_CONNECTprotected static shortSMB2_TREE_DISCONNECTprotected static shortSMB2_WRITE
-
コンストラクタの概要
コンストラクタ 修飾子 コンストラクタ 説明 protectedServerMessageBlock2(Configuration config)protectedServerMessageBlock2(Configuration config, int command)
-
メソッドの概要
すべてのメソッド staticメソッド インスタンス・メソッド abstractメソッド concreteメソッド 修飾子とタイプ メソッド 説明 voidaddFlags(int flag)booleanchain(ServerMessageBlock2 n)voidclearFlags(int flag)intdecode(byte[] buffer, int bufferIndex)Decode message data from the given byte arrayintdecode(byte[] buffer, int bufferIndex, boolean compound)intencode(byte[] dst, int dstIndex)booleanequals(Object obj)longgetAsyncId()intgetCommand()protected ConfigurationgetConfig()intgetCredit()intgetCreditCharge()Smb2SigningDigestgetDigest()bytegetErrorContextCount()byte[]getErrorData()intgetFlags()intgetHeaderStart()intgetLength()longgetMid()protected ServerMessageBlock2getNext()intgetNextCommandOffset()byte[]getRawPayload()ServerMessageBlock2ResponsegetResponse()longgetSessionId()intgetStatus()intgetTreeId()inthashCode()protected voidhaveResponse(byte[] buffer, int start, int len)booleanisAsync()protected booleanisErrorResponseStatus()booleanisRetainPayload()protected intpad8(int dstIndex)protected abstract intreadBytesWireFormat(byte[] buffer, int bufferIndex)protected intreadErrorResponse(byte[] buffer, int bufferIndex)protected intreadHeaderWireFormat(byte[] buffer, int bufferIndex)voidreset()voidretainPayload()Indicate that this message should retain it's raw payloadvoidsetAsyncId(long asyncId)voidsetCommand(int command)voidsetCredit(int credit)voidsetDigest(SMBSigningDigest digest)voidsetExtendedSecurity(boolean extendedSecurity)voidsetMid(long mid)protected voidsetNext(ServerMessageBlock2 n)voidsetRawPayload(byte[] rawPayload)voidsetReadSize(int readSize)voidsetResponse(CommonServerMessageBlockResponse msg)voidsetSessionId(long sessionId)voidsetTreeId(int treeId)voidsetUid(int uid)protected static intsize8(int size)protected static intsize8(int size, int align)StringtoString()protected abstract intwriteBytesWireFormat(byte[] dst, int dstIndex)protected intwriteHeaderWireFormat(byte[] dst, int dstIndex)
-
-
-
フィールドの詳細
-
SMB2_NEGOTIATE
protected static final short SMB2_NEGOTIATE
- 関連項目:
- 定数フィールド値
-
SMB2_SESSION_SETUP
protected static final short SMB2_SESSION_SETUP
- 関連項目:
- 定数フィールド値
-
SMB2_LOGOFF
protected static final short SMB2_LOGOFF
- 関連項目:
- 定数フィールド値
-
SMB2_TREE_CONNECT
protected static final short SMB2_TREE_CONNECT
- 関連項目:
- 定数フィールド値
-
SMB2_TREE_DISCONNECT
protected static final short SMB2_TREE_DISCONNECT
- 関連項目:
- 定数フィールド値
-
SMB2_CREATE
protected static final short SMB2_CREATE
- 関連項目:
- 定数フィールド値
-
SMB2_CLOSE
protected static final short SMB2_CLOSE
- 関連項目:
- 定数フィールド値
-
SMB2_FLUSH
protected static final short SMB2_FLUSH
- 関連項目:
- 定数フィールド値
-
SMB2_READ
protected static final short SMB2_READ
- 関連項目:
- 定数フィールド値
-
SMB2_WRITE
protected static final short SMB2_WRITE
- 関連項目:
- 定数フィールド値
-
SMB2_LOCK
protected static final short SMB2_LOCK
- 関連項目:
- 定数フィールド値
-
SMB2_IOCTL
protected static final short SMB2_IOCTL
- 関連項目:
- 定数フィールド値
-
SMB2_CANCEL
protected static final short SMB2_CANCEL
- 関連項目:
- 定数フィールド値
-
SMB2_ECHO
protected static final short SMB2_ECHO
- 関連項目:
- 定数フィールド値
-
SMB2_QUERY_DIRECTORY
protected static final short SMB2_QUERY_DIRECTORY
- 関連項目:
- 定数フィールド値
-
SMB2_CHANGE_NOTIFY
protected static final short SMB2_CHANGE_NOTIFY
- 関連項目:
- 定数フィールド値
-
SMB2_QUERY_INFO
protected static final short SMB2_QUERY_INFO
- 関連項目:
- 定数フィールド値
-
SMB2_SET_INFO
protected static final short SMB2_SET_INFO
- 関連項目:
- 定数フィールド値
-
SMB2_OPLOCK_BREAK
protected static final short SMB2_OPLOCK_BREAK
- 関連項目:
- 定数フィールド値
-
SMB2_FLAGS_SERVER_TO_REDIR
public static final int SMB2_FLAGS_SERVER_TO_REDIR
- 関連項目:
- 定数フィールド値
-
SMB2_FLAGS_ASYNC_COMMAND
public static final int SMB2_FLAGS_ASYNC_COMMAND
- 関連項目:
- 定数フィールド値
-
SMB2_FLAGS_RELATED_OPERATIONS
public static final int SMB2_FLAGS_RELATED_OPERATIONS
- 関連項目:
- 定数フィールド値
-
SMB2_FLAGS_SIGNED
public static final int SMB2_FLAGS_SIGNED
- 関連項目:
- 定数フィールド値
-
SMB2_FLAGS_PRIORITY_MASK
public static final int SMB2_FLAGS_PRIORITY_MASK
- 関連項目:
- 定数フィールド値
-
SMB2_FLAGS_DFS_OPERATIONS
public static final int SMB2_FLAGS_DFS_OPERATIONS
- 関連項目:
- 定数フィールド値
-
SMB2_FLAGS_REPLAY_OPERATION
public static final int SMB2_FLAGS_REPLAY_OPERATION
- 関連項目:
- 定数フィールド値
-
-
コンストラクタの詳細
-
ServerMessageBlock2
protected ServerMessageBlock2(Configuration config)
-
ServerMessageBlock2
protected ServerMessageBlock2(Configuration config, int command)
-
-
メソッドの詳細
-
getConfig
protected Configuration getConfig()
- 戻り値:
- the config
-
reset
public void reset()
- 定義:
resetインタフェース内CommonServerMessageBlock
-
getCommand
public final int getCommand()
- 定義:
getCommandインタフェース内CommonServerMessageBlock- 戻り値:
- the command
-
getNextCommandOffset
public final int getNextCommandOffset()
- 戻り値:
- offset to next compound command
-
setReadSize
public void setReadSize(int readSize)
- パラメータ:
readSize- the readSize to set
-
isAsync
public boolean isAsync()
- 戻り値:
- the async
-
setCommand
public final void setCommand(int command)
- 定義:
setCommandインタフェース内CommonServerMessageBlock- パラメータ:
command- the command to set
-
getTreeId
public final int getTreeId()
- 戻り値:
- the treeId
-
setTreeId
public final void setTreeId(int treeId)
- パラメータ:
treeId- the treeId to set
-
getAsyncId
public final long getAsyncId()
- 戻り値:
- the asyncId
-
setAsyncId
public final void setAsyncId(long asyncId)
- パラメータ:
asyncId- the asyncId to set
-
getCredit
public final int getCredit()
- 戻り値:
- the credit
-
setCredit
public final void setCredit(int credit)
- パラメータ:
credit- the credit to set
-
getCreditCharge
public final int getCreditCharge()
- 戻り値:
- the creditCharge
-
retainPayload
public void retainPayload()
インタフェースからコピーされた説明:MessageIndicate that this message should retain it's raw payload- 定義:
retainPayloadインタフェース内Message
-
isRetainPayload
public boolean isRetainPayload()
- 定義:
isRetainPayloadインタフェース内Message- 戻り値:
- whether to retain the message payload
-
getRawPayload
public byte[] getRawPayload()
- 定義:
getRawPayloadインタフェース内Message- 戻り値:
- the raw response message
-
setRawPayload
public void setRawPayload(byte[] rawPayload)
- 定義:
setRawPayloadインタフェース内Message
-
getDigest
public Smb2SigningDigest getDigest()
- 定義:
getDigestインタフェース内CommonServerMessageBlock- 戻り値:
- the signing digest
- 関連項目:
CommonServerMessageBlock.getDigest()
-
setDigest
public void setDigest(SMBSigningDigest digest)
-
getStatus
public final int getStatus()
- 戻り値:
- the status
-
getSessionId
public long getSessionId()
- 戻り値:
- the sessionId
-
setSessionId
public final void setSessionId(long sessionId)
- 定義:
setSessionIdインタフェース内CommonServerMessageBlock- パラメータ:
sessionId- the sessionId to set
-
setExtendedSecurity
public void setExtendedSecurity(boolean extendedSecurity)
-
setUid
public void setUid(int uid)
- 定義:
setUidインタフェース内CommonServerMessageBlock- 関連項目:
CommonServerMessageBlock.setUid(int)
-
getFlags
public final int getFlags()
- 戻り値:
- the flags
-
addFlags
public final void addFlags(int flag)
- パラメータ:
flag-
-
clearFlags
public final void clearFlags(int flag)
- パラメータ:
flag-
-
getMid
public final long getMid()
- 定義:
getMidインタフェース内CommonServerMessageBlock- 戻り値:
- the mid
-
setMid
public final void setMid(long mid)
- 定義:
setMidインタフェース内CommonServerMessageBlock- パラメータ:
mid- the mid to set
-
chain
public boolean chain(ServerMessageBlock2 n)
- パラメータ:
n-- 戻り値:
- whether chaining was successful
-
getNext
protected ServerMessageBlock2 getNext()
-
setNext
protected void setNext(ServerMessageBlock2 n)
-
getResponse
public ServerMessageBlock2Response getResponse()
- 定義:
getResponseインタフェース内CommonServerMessageBlock- 戻り値:
- the response
-
setResponse
public void setResponse(CommonServerMessageBlockResponse msg)
-
getErrorData
public final byte[] getErrorData()
- 戻り値:
- the errorData
-
getErrorContextCount
public final byte getErrorContextCount()
- 戻り値:
- the errorContextCount
-
getHeaderStart
public final int getHeaderStart()
- 戻り値:
- the headerStart
-
getLength
public final int getLength()
- 戻り値:
- the length
-
encode
public int encode(byte[] dst, int dstIndex)- 定義:
encodeインタフェース内CommonServerMessageBlock- 戻り値:
- message length
-
size8
protected static final int size8(int size)
-
size8
protected static final int size8(int size, int align)
-
pad8
protected final int pad8(int dstIndex)
- パラメータ:
dstIndex-- 戻り値:
-
decode
public int decode(byte[] buffer, int bufferIndex) throws SMBProtocolDecodingExceptionインタフェースからコピーされた説明:CommonServerMessageBlockDecode message data from the given byte array- 定義:
decodeインタフェース内CommonServerMessageBlock- 戻り値:
- message length
- 例外:
SMBProtocolDecodingException
-
decode
public int decode(byte[] buffer, int bufferIndex, boolean compound) throws SMBProtocolDecodingException- パラメータ:
buffer-bufferIndex-compound-- 戻り値:
- decoded length
- 例外:
SMBProtocolDecodingException
-
isErrorResponseStatus
protected boolean isErrorResponseStatus()
-
haveResponse
protected void haveResponse(byte[] buffer, int start, int len) throws SMBProtocolDecodingException- パラメータ:
buffer-start-len-- 例外:
SMBProtocolDecodingException
-
readErrorResponse
protected int readErrorResponse(byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException- パラメータ:
buffer-bufferIndex-- 戻り値:
- 例外:
Smb2ProtocolDecodingExceptionSMBProtocolDecodingException
-
writeHeaderWireFormat
protected int writeHeaderWireFormat(byte[] dst, int dstIndex)
-
readHeaderWireFormat
protected int readHeaderWireFormat(byte[] buffer, int bufferIndex)
-
writeBytesWireFormat
protected abstract int writeBytesWireFormat(byte[] dst, int dstIndex)
-
readBytesWireFormat
protected abstract int readBytesWireFormat(byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException
-
-