public abstract class ServerMessageBlock2Response extends ServerMessageBlock2 implements CommonServerMessageBlockResponse
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
Constructor and Description |
---|
ServerMessageBlock2Response(Configuration config) |
ServerMessageBlock2Response(Configuration config,
int command) |
Modifier and Type | Method and Description |
---|---|
void |
clearReceived()
Unset received status
|
void |
error()
Set error status
|
void |
exception(Exception e) |
int |
getErrorCode() |
Exception |
getException() |
Long |
getExpiration() |
int |
getGrantedCredits() |
CommonServerMessageBlockResponse |
getNextResponse() |
boolean |
isAsyncHandled() |
boolean |
isError() |
boolean |
isReceived() |
boolean |
isSigned() |
boolean |
isVerifyFailed() |
void |
prepare(CommonServerMessageBlockRequest next) |
void |
received()
Set received status
|
void |
reset() |
void |
setAsyncHandled(boolean asyncHandled) |
void |
setExpiration(Long exp) |
boolean |
verifySignature(byte[] buffer,
int i,
int size) |
addFlags, chain, clearFlags, decode, decode, encode, equals, getAsyncId, getCommand, getCredit, getCreditCharge, getDigest, getErrorContextCount, getErrorData, getFlags, getHeaderStart, getLength, getMid, getNextCommandOffset, getRawPayload, getResponse, getSessionId, getStatus, getTreeId, hashCode, isAsync, isRetainPayload, retainPayload, setAsyncId, setCommand, setCredit, setDigest, setExtendedSecurity, setMid, setRawPayload, setReadSize, setResponse, setSessionId, setTreeId, setUid, toString
isAsync
decode, encode, getCommand, getDigest, getMid, getResponse, setCommand, setDigest, setExtendedSecurity, setMid, setResponse, setSessionId, setUid
getRawPayload, isRetainPayload, retainPayload, setRawPayload
public ServerMessageBlock2Response(Configuration config, int command)
config
- command
- public ServerMessageBlock2Response(Configuration config)
config
- public CommonServerMessageBlockResponse getNextResponse()
getNextResponse
in interface CommonServerMessageBlockResponse
getNextResponse
in interface Response
CommonServerMessageBlockResponse.getNextResponse()
public void prepare(CommonServerMessageBlockRequest next)
prepare
in interface CommonServerMessageBlockResponse
CommonServerMessageBlockResponse.prepare(jcifs.internal.CommonServerMessageBlockRequest)
public void reset()
reset
in interface CommonServerMessageBlock
reset
in interface Response
reset
in class ServerMessageBlock2
ServerMessageBlock2.reset()
public final void received()
received
in interface Response
Response.received()
public final void exception(Exception e)
exception
in interface Response
Response.exception(java.lang.Exception)
public final void error()
error
in interface Response
Response.error()
public final void clearReceived()
clearReceived
in interface Response
Response.clearReceived()
public final boolean isReceived()
isReceived
in interface Response
Response.isReceived()
public final boolean isError()
isError
in interface Response
Response.isError()
public boolean isSigned()
public Long getExpiration()
getExpiration
in interface Response
Response.getExpiration()
public void setExpiration(Long exp)
setExpiration
in interface Response
exp
- message timeoutResponse.setExpiration(java.lang.Long)
public boolean isAsyncHandled()
public void setAsyncHandled(boolean asyncHandled)
asyncHandled
- the asyncHandled to setpublic Exception getException()
getException
in interface Response
Response.getException()
public final int getErrorCode()
getErrorCode
in interface Response
public final boolean isVerifyFailed()
isVerifyFailed
in interface Response
public int getGrantedCredits()
getGrantedCredits
in interface Response
Response.getGrantedCredits()
public boolean verifySignature(byte[] buffer, int i, int size)
verifySignature
in interface Response
Response.verifySignature(byte[], int, int)
Copyright © 2019. All rights reserved.