Package jcifs.internal.smb2
Class Smb2CancelRequest
- java.lang.Object
-
- jcifs.internal.smb2.ServerMessageBlock2
-
- jcifs.internal.smb2.Smb2CancelRequest
-
- All Implemented Interfaces:
CommonServerMessageBlock,CommonServerMessageBlockRequest,Message,Request
public class Smb2CancelRequest extends ServerMessageBlock2 implements CommonServerMessageBlockRequest
- Author:
- mbechler
-
-
Field Summary
-
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 Smb2CancelRequest(Configuration config, long mid, long asyncId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowChain(CommonServerMessageBlockRequest next)CommonServerMessageBlockRequestcreateCancel()intgetCreditCost()ServerMessageBlock2Request<?>getNext()IntegergetOverrideTimeout()booleanisCancel()booleanisResponseAsync()protected intreadBytesWireFormat(byte[] buffer, int bufferIndex)voidsetRequestCredits(int credits)voidsetTid(int t)intsize()CommonServerMessageBlockRequestsplit()protected intwriteBytesWireFormat(byte[] dst, int dstIndex)-
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, getNextCommandOffset, getRawPayload, getResponse, getSessionId, getStatus, getTreeId, hashCode, haveResponse, isAsync, isErrorResponseStatus, isRetainPayload, pad8, readErrorResponse, readHeaderWireFormat, reset, 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.util.transport.Message
getRawPayload, isRetainPayload, retainPayload, setRawPayload
-
Methods inherited from interface jcifs.util.transport.Request
getResponse
-
-
-
-
Constructor Detail
-
Smb2CancelRequest
public Smb2CancelRequest(Configuration config, long mid, long asyncId)
- Parameters:
config-mid-asyncId-
-
-
Method Detail
-
getCreditCost
public int getCreditCost()
- Specified by:
getCreditCostin interfaceRequest- Returns:
- number of credits this request requires
- See Also:
Request.getCreditCost()
-
isResponseAsync
public boolean isResponseAsync()
- Specified by:
isResponseAsyncin interfaceCommonServerMessageBlockRequest- Returns:
- request was handled asynchronously
- See Also:
CommonServerMessageBlockRequest.isResponseAsync()
-
getNext
public ServerMessageBlock2Request<?> getNext()
- Specified by:
getNextin interfaceCommonServerMessageBlockRequest- Specified by:
getNextin interfaceRequest- Overrides:
getNextin classServerMessageBlock2- Returns:
- next chained message
-
getOverrideTimeout
public Integer getOverrideTimeout()
- Specified by:
getOverrideTimeoutin interfaceCommonServerMessageBlockRequest- Returns:
- custom response timeout for this request
- See Also:
CommonServerMessageBlockRequest.getOverrideTimeout()
-
allowChain
public boolean allowChain(CommonServerMessageBlockRequest next)
- Specified by:
allowChainin interfaceCommonServerMessageBlockRequest- Returns:
- whether to allow chaining
- See Also:
CommonServerMessageBlockRequest.allowChain(jcifs.internal.CommonServerMessageBlockRequest)
-
split
public CommonServerMessageBlockRequest split()
- Specified by:
splitin interfaceCommonServerMessageBlockRequest- Returns:
- the following message
- See Also:
CommonServerMessageBlockRequest.split()
-
createCancel
public CommonServerMessageBlockRequest createCancel()
- Specified by:
createCancelin interfaceCommonServerMessageBlockRequest- Returns:
- create cancel request
- See Also:
CommonServerMessageBlockRequest.createCancel()
-
setRequestCredits
public void setRequestCredits(int credits)
- Specified by:
setRequestCreditsin interfaceRequest- See Also:
Request.setRequestCredits(int)
-
setTid
public void setTid(int t)
- Specified by:
setTidin interfaceCommonServerMessageBlockRequest- See Also:
CommonServerMessageBlockRequest.setTid(int)
-
isCancel
public boolean isCancel()
- Specified by:
isCancelin interfaceRequest- Returns:
- whether this is a cancel request
- See Also:
Request.isCancel()
-
size
public int size()
- Specified by:
sizein interfaceCommonServerMessageBlockRequest- Returns:
- the size of this message
- See Also:
CommonServerMessageBlockRequest.size()
-
writeBytesWireFormat
protected int writeBytesWireFormat(byte[] dst, int dstIndex)- Specified by:
writeBytesWireFormatin classServerMessageBlock2- See Also:
ServerMessageBlock2.writeBytesWireFormat(byte[], int)
-
readBytesWireFormat
protected int readBytesWireFormat(byte[] buffer, int bufferIndex)- Specified by:
readBytesWireFormatin classServerMessageBlock2- See Also:
ServerMessageBlock2.readBytesWireFormat(byte[], int)
-
-