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 boolean
allowChain(CommonServerMessageBlockRequest next)
CommonServerMessageBlockRequest
createCancel()
int
getCreditCost()
ServerMessageBlock2Request<?>
getNext()
Integer
getOverrideTimeout()
boolean
isCancel()
boolean
isResponseAsync()
protected int
readBytesWireFormat(byte[] buffer, int bufferIndex)
void
setRequestCredits(int credits)
void
setTid(int t)
int
size()
CommonServerMessageBlockRequest
split()
protected int
writeBytesWireFormat(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:
getCreditCost
in interfaceRequest
- Returns:
- number of credits this request requires
- See Also:
Request.getCreditCost()
-
isResponseAsync
public boolean isResponseAsync()
- Specified by:
isResponseAsync
in interfaceCommonServerMessageBlockRequest
- Returns:
- request was handled asynchronously
- See Also:
CommonServerMessageBlockRequest.isResponseAsync()
-
getNext
public ServerMessageBlock2Request<?> getNext()
- Specified by:
getNext
in interfaceCommonServerMessageBlockRequest
- Specified by:
getNext
in interfaceRequest
- Overrides:
getNext
in classServerMessageBlock2
- Returns:
- next chained message
-
getOverrideTimeout
public Integer getOverrideTimeout()
- Specified by:
getOverrideTimeout
in interfaceCommonServerMessageBlockRequest
- Returns:
- custom response timeout for this request
- See Also:
CommonServerMessageBlockRequest.getOverrideTimeout()
-
allowChain
public boolean allowChain(CommonServerMessageBlockRequest next)
- Specified by:
allowChain
in interfaceCommonServerMessageBlockRequest
- Returns:
- whether to allow chaining
- See Also:
CommonServerMessageBlockRequest.allowChain(jcifs.internal.CommonServerMessageBlockRequest)
-
split
public CommonServerMessageBlockRequest split()
- Specified by:
split
in interfaceCommonServerMessageBlockRequest
- Returns:
- the following message
- See Also:
CommonServerMessageBlockRequest.split()
-
createCancel
public CommonServerMessageBlockRequest createCancel()
- Specified by:
createCancel
in interfaceCommonServerMessageBlockRequest
- Returns:
- create cancel request
- See Also:
CommonServerMessageBlockRequest.createCancel()
-
setRequestCredits
public void setRequestCredits(int credits)
- Specified by:
setRequestCredits
in interfaceRequest
- See Also:
Request.setRequestCredits(int)
-
setTid
public void setTid(int t)
- Specified by:
setTid
in interfaceCommonServerMessageBlockRequest
- See Also:
CommonServerMessageBlockRequest.setTid(int)
-
isCancel
public boolean isCancel()
- Specified by:
isCancel
in interfaceRequest
- Returns:
- whether this is a cancel request
- See Also:
Request.isCancel()
-
size
public int size()
- Specified by:
size
in interfaceCommonServerMessageBlockRequest
- Returns:
- the size of this message
- See Also:
CommonServerMessageBlockRequest.size()
-
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)
- Specified by:
readBytesWireFormat
in classServerMessageBlock2
- See Also:
ServerMessageBlock2.readBytesWireFormat(byte[], int)
-
-