パッケージ jcifs.internal.smb1
クラス ServerMessageBlock
- java.lang.Object
-
- jcifs.internal.smb1.ServerMessageBlock
-
- すべての実装されたインタフェース:
CommonServerMessageBlock,CommonServerMessageBlockRequest,CommonServerMessageBlockResponse,RequestWithPath,Message,Request,Response
- 直系の既知のサブクラス:
AndXServerMessageBlock,SmbComBlankResponse,SmbComClose,SmbComCreateDirectory,SmbComDelete,SmbComDeleteDirectory,SmbComFindClose2,SmbComNegotiate,SmbComNegotiateResponse,SmbComNtCancel,SmbComQueryInformation,SmbComQueryInformationResponse,SmbComRename,SmbComSeek,SmbComSeekResponse,SmbComSetInformation,SmbComSetInformationResponse,SmbComTransaction,SmbComTransactionResponse,SmbComTreeDisconnect,SmbComWrite,SmbComWriteResponse
public abstract class ServerMessageBlock extends Object implements CommonServerMessageBlockRequest, CommonServerMessageBlockResponse, RequestWithPath
-
-
フィールドの概要
-
コンストラクタの概要
コンストラクタ 修飾子 コンストラクタ 説明 protectedServerMessageBlock(Configuration config)protectedServerMessageBlock(Configuration config, byte command)protectedServerMessageBlock(Configuration config, byte command, String path)
-
メソッドの概要
すべてのメソッド インスタンス・メソッド abstractメソッド concreteメソッド 修飾子とタイプ メソッド 説明 voidaddFlags2(int fl)booleanallowChain(CommonServerMessageBlockRequest next)voidclearReceived()Unset received statusCommonServerMessageBlockRequestcreateCancel()intdecode(byte[] buffer, int bufferIndex)Decode message data from the given byte arrayintencode(byte[] dst, int dstIndex)booleanequals(Object obj)voiderror()Set error statusvoidexception(Exception e)intgetByteCount()intgetCommand()protected ConfigurationgetConfig()intgetCreditCost()SMB1SigningDigestgetDigest()StringgetDomain()intgetErrorCode()ExceptiongetException()LonggetExpiration()bytegetFlags()intgetFlags2()StringgetFullUNCPath()intgetGrantedCredits()intgetLength()longgetMid()ServerMessageBlockgetNext()CommonServerMessageBlockResponsegetNextResponse()IntegergetOverrideTimeout()StringgetPath()intgetPid()byte[]getRawPayload()ServerMessageBlockgetResponse()StringgetServer()intgetSignSeq()intgetTid()intgetUid()inthashCode()CommonServerMessageBlockignoreDisconnect()booleanisAsync()booleanisCancel()booleanisError()booleanisExtendedSecurity()booleanisForceUnicode()booleanisReceived()booleanisResolveInDfs()protected booleanisResponse()booleanisResponseAsync()booleanisRetainPayload()booleanisUseUnicode()booleanisVerifyFailed()voidprepare(CommonServerMessageBlockRequest next)protected abstract intreadBytesWireFormat(byte[] buffer, int bufferIndex)protected intreadHeaderWireFormat(byte[] buffer, int bufferIndex)protected abstract intreadParameterWordsWireFormat(byte[] buffer, int bufferIndex)StringreadString(byte[] src, int srcIndex)StringreadString(byte[] src, int srcIndex, int maxLen, boolean unicode)StringreadString(byte[] src, int srcIndex, int srcEnd, int maxLen, boolean unicode)protected intreadStringLength(byte[] src, int srcIndex, int max)voidreceived()Set received statusvoidremFlags2(int fl)voidreset()voidretainPayload()Indicate that this message should retain it's raw payloadvoidsetCommand(int command)voidsetDigest(SMBSigningDigest digest)voidsetErrorCode(int errorCode)voidsetExpiration(Long exp)voidsetExtendedSecurity(boolean extendedSecurity)voidsetFlags(byte flags)voidsetFlags2(int fl)voidsetFullUNCPath(String domain, String server, String fullPath)voidsetMid(long mid)voidsetOverrideTimeout(Integer overrideTimeout)voidsetPath(String path)voidsetPid(int pid)voidsetRawPayload(byte[] rawPayload)voidsetRequestCredits(int credits)voidsetResolveInDfs(boolean resolve)voidsetResponse(CommonServerMessageBlockResponse response)voidsetSessionId(long sessionId)voidsetSignSeq(int signSeq)voidsetTid(int tid)voidsetUid(int uid)voidsetUseUnicode(boolean useUnicode)intsize()CommonServerMessageBlockRequestsplit()intstringWireLength(String str, int offset)StringtoString()booleanverifySignature(byte[] buffer, int i, int size)protected abstract intwriteBytesWireFormat(byte[] dst, int dstIndex)protected intwriteHeaderWireFormat(byte[] dst, int dstIndex)protected abstract intwriteParameterWordsWireFormat(byte[] dst, int dstIndex)protected intwriteString(String str, byte[] dst, int dstIndex)protected intwriteString(String str, byte[] dst, int dstIndex, boolean unicode)
-
-
-
フィールドの詳細
-
SMB_COM_CREATE_DIRECTORY
public static final byte SMB_COM_CREATE_DIRECTORY
- 関連項目:
- 定数フィールド値
-
SMB_COM_DELETE_DIRECTORY
public static final byte SMB_COM_DELETE_DIRECTORY
- 関連項目:
- 定数フィールド値
-
SMB_COM_CLOSE
public static final byte SMB_COM_CLOSE
- 関連項目:
- 定数フィールド値
-
SMB_COM_DELETE
public static final byte SMB_COM_DELETE
- 関連項目:
- 定数フィールド値
-
SMB_COM_RENAME
public static final byte SMB_COM_RENAME
- 関連項目:
- 定数フィールド値
-
SMB_COM_QUERY_INFORMATION
public static final byte SMB_COM_QUERY_INFORMATION
- 関連項目:
- 定数フィールド値
-
SMB_COM_SET_INFORMATION
public static final byte SMB_COM_SET_INFORMATION
- 関連項目:
- 定数フィールド値
-
SMB_COM_WRITE
public static final byte SMB_COM_WRITE
- 関連項目:
- 定数フィールド値
-
SMB_COM_CHECK_DIRECTORY
public static final byte SMB_COM_CHECK_DIRECTORY
- 関連項目:
- 定数フィールド値
-
SMB_COM_SEEK
public static final byte SMB_COM_SEEK
- 関連項目:
- 定数フィールド値
-
SMB_COM_LOCKING_ANDX
public static final byte SMB_COM_LOCKING_ANDX
- 関連項目:
- 定数フィールド値
-
SMB_COM_TRANSACTION
public static final byte SMB_COM_TRANSACTION
- 関連項目:
- 定数フィールド値
-
SMB_COM_TRANSACTION_SECONDARY
public static final byte SMB_COM_TRANSACTION_SECONDARY
- 関連項目:
- 定数フィールド値
-
SMB_COM_MOVE
public static final byte SMB_COM_MOVE
- 関連項目:
- 定数フィールド値
-
SMB_COM_ECHO
public static final byte SMB_COM_ECHO
- 関連項目:
- 定数フィールド値
-
SMB_COM_OPEN_ANDX
public static final byte SMB_COM_OPEN_ANDX
- 関連項目:
- 定数フィールド値
-
SMB_COM_READ_ANDX
public static final byte SMB_COM_READ_ANDX
- 関連項目:
- 定数フィールド値
-
SMB_COM_WRITE_ANDX
public static final byte SMB_COM_WRITE_ANDX
- 関連項目:
- 定数フィールド値
-
SMB_COM_TRANSACTION2
public static final byte SMB_COM_TRANSACTION2
- 関連項目:
- 定数フィールド値
-
SMB_COM_FIND_CLOSE2
public static final byte SMB_COM_FIND_CLOSE2
- 関連項目:
- 定数フィールド値
-
SMB_COM_TREE_DISCONNECT
public static final byte SMB_COM_TREE_DISCONNECT
- 関連項目:
- 定数フィールド値
-
SMB_COM_NEGOTIATE
public static final byte SMB_COM_NEGOTIATE
- 関連項目:
- 定数フィールド値
-
SMB_COM_SESSION_SETUP_ANDX
public static final byte SMB_COM_SESSION_SETUP_ANDX
- 関連項目:
- 定数フィールド値
-
SMB_COM_LOGOFF_ANDX
public static final byte SMB_COM_LOGOFF_ANDX
- 関連項目:
- 定数フィールド値
-
SMB_COM_TREE_CONNECT_ANDX
public static final byte SMB_COM_TREE_CONNECT_ANDX
- 関連項目:
- 定数フィールド値
-
SMB_COM_NT_TRANSACT
public static final byte SMB_COM_NT_TRANSACT
- 関連項目:
- 定数フィールド値
-
SMB_COM_NT_CANCEL
public static final byte SMB_COM_NT_CANCEL
- 関連項目:
- 定数フィールド値
-
SMB_COM_NT_TRANSACT_SECONDARY
public static final byte SMB_COM_NT_TRANSACT_SECONDARY
- 関連項目:
- 定数フィールド値
-
SMB_COM_NT_CREATE_ANDX
public static final byte SMB_COM_NT_CREATE_ANDX
- 関連項目:
- 定数フィールド値
-
headerStart
protected int headerStart
-
length
protected int length
-
batchLevel
protected int batchLevel
-
errorCode
protected int errorCode
-
flags2
protected int flags2
-
pid
protected int pid
-
uid
protected int uid
-
mid
protected int mid
-
wordCount
protected int wordCount
-
byteCount
protected int byteCount
-
tid
protected int tid
-
path
protected String path
-
digest
protected SMB1SigningDigest digest
-
-
コンストラクタの詳細
-
ServerMessageBlock
protected ServerMessageBlock(Configuration config)
-
ServerMessageBlock
protected ServerMessageBlock(Configuration config, byte command)
-
ServerMessageBlock
protected ServerMessageBlock(Configuration config, byte command, String path)
-
-
メソッドの詳細
-
size
public int size()
- 定義:
sizeインタフェース内CommonServerMessageBlockRequest- 戻り値:
- the size of this message
- 関連項目:
CommonServerMessageBlockRequest.size()
-
isAsync
public boolean isAsync()
- 定義:
isAsyncインタフェース内CommonServerMessageBlockResponse- 戻り値:
- is an async response
- 関連項目:
CommonServerMessageBlockResponse.isAsync()
-
isResponseAsync
public boolean isResponseAsync()
- 定義:
isResponseAsyncインタフェース内CommonServerMessageBlockRequest- 戻り値:
- request was handled asynchronously
- 関連項目:
CommonServerMessageBlockRequest.isResponseAsync()
-
getOverrideTimeout
public final Integer getOverrideTimeout()
- 定義:
getOverrideTimeoutインタフェース内CommonServerMessageBlockRequest- 戻り値:
- custom response timeout for this request
- 関連項目:
CommonServerMessageBlockRequest.getOverrideTimeout()
-
setOverrideTimeout
public final void setOverrideTimeout(Integer overrideTimeout)
- パラメータ:
overrideTimeout- the overrideTimeout to set
-
getNext
public ServerMessageBlock getNext()
- 定義:
getNextインタフェース内CommonServerMessageBlockRequest- 定義:
getNextインタフェース内Request- 戻り値:
- next chained message
- 関連項目:
CommonServerMessageBlockRequest.getNext()
-
allowChain
public boolean allowChain(CommonServerMessageBlockRequest next)
- 定義:
allowChainインタフェース内CommonServerMessageBlockRequest- 戻り値:
- whether to allow chaining
- 関連項目:
CommonServerMessageBlockRequest.allowChain(jcifs.internal.CommonServerMessageBlockRequest)
-
split
public CommonServerMessageBlockRequest split()
- 定義:
splitインタフェース内CommonServerMessageBlockRequest- 戻り値:
- the following message
- 関連項目:
CommonServerMessageBlockRequest.split()
-
createCancel
public CommonServerMessageBlockRequest createCancel()
- 定義:
createCancelインタフェース内CommonServerMessageBlockRequest- 戻り値:
- create cancel request
- 関連項目:
CommonServerMessageBlockRequest.createCancel()
-
getNextResponse
public CommonServerMessageBlockResponse getNextResponse()
- 定義:
getNextResponseインタフェース内CommonServerMessageBlockResponse- 定義:
getNextResponseインタフェース内Response- 戻り値:
- the next response
- 関連項目:
CommonServerMessageBlockResponse.getNextResponse()
-
prepare
public void prepare(CommonServerMessageBlockRequest next)
-
getCreditCost
public int getCreditCost()
- 定義:
getCreditCostインタフェース内Request- 戻り値:
- number of credits this request requires
- 関連項目:
Request.getCreditCost()
-
getGrantedCredits
public int getGrantedCredits()
- 定義:
getGrantedCreditsインタフェース内Response- 戻り値:
- number of credits granted by the server
- 関連項目:
Response.getGrantedCredits()
-
setRequestCredits
public void setRequestCredits(int credits)
- 定義:
setRequestCreditsインタフェース内Request- 関連項目:
Request.setRequestCredits(int)
-
getCommand
public final int getCommand()
- 定義:
getCommandインタフェース内CommonServerMessageBlock- 戻り値:
- the command
-
setCommand
public final void setCommand(int command)
- 定義:
setCommandインタフェース内CommonServerMessageBlock- パラメータ:
command- the command to set
-
getByteCount
public final int getByteCount()
- 戻り値:
- the byteCount
-
getLength
public final int getLength()
- 戻り値:
- the length
-
isForceUnicode
public boolean isForceUnicode()
- 戻り値:
- the forceUnicode
-
getFlags
public final byte getFlags()
- 戻り値:
- the flags
-
setFlags
public final void setFlags(byte flags)
- パラメータ:
flags- the flags to set
-
getFlags2
public final int getFlags2()
- 戻り値:
- the flags2
-
setFlags2
public final void setFlags2(int fl)
- パラメータ:
fl- the flags2 to set
-
addFlags2
public final void addFlags2(int fl)
- パラメータ:
fl-
-
remFlags2
public final void remFlags2(int fl)
- パラメータ:
fl-
-
setResolveInDfs
public void setResolveInDfs(boolean resolve)
- 定義:
setResolveInDfsインタフェース内RequestWithPath- 関連項目:
RequestWithPath.setResolveInDfs(boolean)
-
isResolveInDfs
public boolean isResolveInDfs()
- 定義:
isResolveInDfsインタフェース内RequestWithPath- 戻り値:
- whether to resolve the request path in DFS
- 関連項目:
RequestWithPath.isResolveInDfs()
-
getErrorCode
public final int getErrorCode()
- 定義:
getErrorCodeインタフェース内Response- 戻り値:
- the errorCode
-
setErrorCode
public final void setErrorCode(int errorCode)
- パラメータ:
errorCode- the errorCode to set
-
getPath
public final String getPath()
- 定義:
getPathインタフェース内RequestWithPath- 戻り値:
- the path
-
getFullUNCPath
public String getFullUNCPath()
- 定義:
getFullUNCPathインタフェース内RequestWithPath- 戻り値:
- the full UNC path
- 関連項目:
RequestWithPath.getFullUNCPath()
-
getDomain
public String getDomain()
- 定義:
getDomainインタフェース内RequestWithPath- 戻り値:
- the domain name
- 関連項目:
RequestWithPath.getDomain()
-
getServer
public String getServer()
- 定義:
getServerインタフェース内RequestWithPath- 戻り値:
- the server name
- 関連項目:
RequestWithPath.getServer()
-
setPath
public final void setPath(String path)
- 定義:
setPathインタフェース内RequestWithPath- パラメータ:
path- the path to set
-
getDigest
public final SMB1SigningDigest getDigest()
- 定義:
getDigestインタフェース内CommonServerMessageBlock- 戻り値:
- the digest
-
setDigest
public final void setDigest(SMBSigningDigest digest)
- 定義:
setDigestインタフェース内CommonServerMessageBlock- パラメータ:
digest- the digest to set
-
isExtendedSecurity
public boolean isExtendedSecurity()
- 戻り値:
- the extendedSecurity
-
setSessionId
public final void setSessionId(long sessionId)
- 定義:
setSessionIdインタフェース内CommonServerMessageBlock
-
setExtendedSecurity
public void setExtendedSecurity(boolean extendedSecurity)
- 定義:
setExtendedSecurityインタフェース内CommonServerMessageBlock- パラメータ:
extendedSecurity- the extendedSecurity to set
-
isUseUnicode
public final boolean isUseUnicode()
- 戻り値:
- the useUnicode
-
setUseUnicode
public final void setUseUnicode(boolean useUnicode)
- パラメータ:
useUnicode- the useUnicode to set
-
isReceived
public final boolean isReceived()
- 定義:
isReceivedインタフェース内Response- 戻り値:
- the received
-
clearReceived
public final void clearReceived()
インタフェースからコピーされた説明:ResponseUnset received status- 定義:
clearReceivedインタフェース内Response
-
received
public void received()
Set received status- 定義:
receivedインタフェース内Response- 関連項目:
Response.received()
-
exception
public void exception(Exception e)
- 定義:
exceptionインタフェース内Response- 関連項目:
Response.exception(java.lang.Exception)
-
error
public void error()
Set error status- 定義:
errorインタフェース内Response- 関連項目:
Response.error()
-
getResponse
public ServerMessageBlock getResponse()
- 定義:
getResponseインタフェース内CommonServerMessageBlock- 定義:
getResponseインタフェース内Request- 戻り値:
- the response
-
ignoreDisconnect
public CommonServerMessageBlock ignoreDisconnect()
- 戻り値:
- null
-
setResponse
public final void setResponse(CommonServerMessageBlockResponse response)
- 定義:
setResponseインタフェース内CommonServerMessageBlock- パラメータ:
response- the response to set
-
isCancel
public boolean isCancel()
- 定義:
isCancelインタフェース内Request- 戻り値:
- whether this is a cancel request
- 関連項目:
Request.isCancel()
-
getMid
public final long getMid()
- 定義:
getMidインタフェース内CommonServerMessageBlock- 定義:
getMidインタフェース内Response- 戻り値:
- the mid
-
setMid
public final void setMid(long mid)
- 定義:
setMidインタフェース内CommonServerMessageBlock- 定義:
setMidインタフェース内Response- パラメータ:
mid- the mid to set
-
getTid
public final int getTid()
- 戻り値:
- the tid
-
setTid
public final void setTid(int tid)
- 定義:
setTidインタフェース内CommonServerMessageBlockRequest- パラメータ:
tid- the tid to set
-
getPid
public final int getPid()
- 戻り値:
- the pid
-
setPid
public final void setPid(int pid)
- パラメータ:
pid- the pid to set
-
getUid
public final int getUid()
- 戻り値:
- the uid
-
setUid
public final void setUid(int uid)
- 定義:
setUidインタフェース内CommonServerMessageBlock- パラメータ:
uid- the uid to set
-
getSignSeq
public int getSignSeq()
- 戻り値:
- the signSeq
-
setSignSeq
public final void setSignSeq(int signSeq)
- パラメータ:
signSeq- the signSeq to set
-
isVerifyFailed
public boolean isVerifyFailed()
- 定義:
isVerifyFailedインタフェース内Response- 戻り値:
- the verifyFailed
-
getException
public Exception getException()
- 定義:
getExceptionインタフェース内Response- 戻り値:
- an exception linked to an error
- 関連項目:
Response.getException()
-
isError
public boolean isError()
- 定義:
isErrorインタフェース内Response- 戻り値:
- whether the response is an error
- 関連項目:
Response.isError()
-
getRawPayload
public byte[] getRawPayload()
- 定義:
getRawPayloadインタフェース内Message- 戻り値:
- the raw response message
- 関連項目:
Message.getRawPayload()
-
setRawPayload
public void setRawPayload(byte[] rawPayload)
- 定義:
setRawPayloadインタフェース内Message- 関連項目:
Message.setRawPayload(byte[])
-
isRetainPayload
public boolean isRetainPayload()
- 定義:
isRetainPayloadインタフェース内Message- 戻り値:
- whether to retain the message payload
- 関連項目:
Message.isRetainPayload()
-
retainPayload
public void retainPayload()
Indicate that this message should retain it's raw payload- 定義:
retainPayloadインタフェース内Message- 関連項目:
Message.retainPayload()
-
getExpiration
public Long getExpiration()
- 定義:
getExpirationインタフェース内Response- 戻り値:
- the message timeout
- 関連項目:
Response.getExpiration()
-
setExpiration
public void setExpiration(Long exp)
- 定義:
setExpirationインタフェース内Response- パラメータ:
exp- message timeout- 関連項目:
Response.setExpiration(java.lang.Long)
-
getConfig
protected final Configuration getConfig()
- 戻り値:
- the config
-
reset
public void reset()
- 定義:
resetインタフェース内CommonServerMessageBlock- 定義:
resetインタフェース内Response
-
verifySignature
public boolean verifySignature(byte[] buffer, int i, int size)- 定義:
verifySignatureインタフェース内Response- 戻り値:
- whether signature verification is successful
- 関連項目:
Response.verifySignature(byte[], int, int)
-
writeString
protected int writeString(String str, byte[] dst, int dstIndex)
-
writeString
protected int writeString(String str, byte[] dst, int dstIndex, boolean unicode)
-
readString
public String readString(byte[] src, int srcIndex)
- パラメータ:
src-srcIndex-- 戻り値:
- read string
-
readString
public String readString(byte[] src, int srcIndex, int maxLen, boolean unicode)
- パラメータ:
src-srcIndex-maxLen-unicode-- 戻り値:
- read string
-
readString
public String readString(byte[] src, int srcIndex, int srcEnd, int maxLen, boolean unicode)
- パラメータ:
src-srcIndex-srcEnd-maxLen-unicode-- 戻り値:
- read string
-
stringWireLength
public int stringWireLength(String str, int offset)
- パラメータ:
str-offset-- 戻り値:
- string length
-
readStringLength
protected int readStringLength(byte[] src, int srcIndex, int max)
-
encode
public int encode(byte[] dst, int dstIndex)- 定義:
encodeインタフェース内CommonServerMessageBlock- 戻り値:
- message length
-
decode
public int decode(byte[] buffer, int bufferIndex) throws SMBProtocolDecodingExceptionインタフェースからコピーされた説明:CommonServerMessageBlockDecode message data from the given byte array- 定義:
decodeインタフェース内CommonServerMessageBlock- 戻り値:
- message length
- 例外:
SMBProtocolDecodingException
-
writeHeaderWireFormat
protected int writeHeaderWireFormat(byte[] dst, int dstIndex)
-
readHeaderWireFormat
protected int readHeaderWireFormat(byte[] buffer, int bufferIndex)
-
isResponse
protected boolean isResponse()
-
writeParameterWordsWireFormat
protected abstract int writeParameterWordsWireFormat(byte[] dst, int dstIndex)
-
writeBytesWireFormat
protected abstract int writeBytesWireFormat(byte[] dst, int dstIndex)
-
readParameterWordsWireFormat
protected abstract int readParameterWordsWireFormat(byte[] buffer, int bufferIndex)
-
readBytesWireFormat
protected abstract int readBytesWireFormat(byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException
-
-