Package jcifs.util.transport
Interface Response
-
- All Superinterfaces:
Message
- All Known Subinterfaces:
CommonServerMessageBlockResponse
,NotifyResponse
,SmbNegotiationResponse
,TreeConnectResponse
- All Known Implementing Classes:
AndXServerMessageBlock
,NetServerEnum2
,NetServerEnum2Response
,NetShareEnum
,NetShareEnumResponse
,NtTransNotifyChange
,NtTransNotifyChangeResponse
,NtTransQuerySecurityDesc
,NtTransQuerySecurityDescResponse
,ServerMessageBlock
,ServerMessageBlock2Response
,Smb2ChangeNotifyResponse
,Smb2CloseResponse
,Smb2CreateResponse
,Smb2EchoResponse
,Smb2FlushResponse
,Smb2IoctlResponse
,Smb2LockResponse
,Smb2LogoffResponse
,Smb2NegotiateResponse
,Smb2OplockBreakNotification
,Smb2QueryDirectoryResponse
,Smb2QueryInfoResponse
,Smb2ReadResponse
,Smb2SessionSetupResponse
,Smb2SetInfoResponse
,Smb2TreeConnectResponse
,Smb2TreeDisconnectResponse
,Smb2WriteResponse
,SmbComBlankResponse
,SmbComClose
,SmbComCreateDirectory
,SmbComDelete
,SmbComDeleteDirectory
,SmbComFindClose2
,SmbComLockingAndX
,SmbComLogoffAndX
,SmbComNegotiate
,SmbComNegotiateResponse
,SmbComNtCancel
,SmbComNTCreateAndX
,SmbComNTCreateAndXResponse
,SmbComNtTransaction
,SmbComNtTransactionResponse
,SmbComOpenAndX
,SmbComOpenAndXResponse
,SmbComQueryInformation
,SmbComQueryInformationResponse
,SmbComReadAndX
,SmbComReadAndXResponse
,SmbComRename
,SmbComSeek
,SmbComSeekResponse
,SmbComSessionSetupAndX
,SmbComSessionSetupAndXResponse
,SmbComSetInformation
,SmbComSetInformationResponse
,SmbComTransaction
,SmbComTransactionResponse
,SmbComTreeConnectAndX
,SmbComTreeConnectAndXResponse
,SmbComTreeDisconnect
,SmbComWrite
,SmbComWriteAndX
,SmbComWriteAndXResponse
,SmbComWriteResponse
,Trans2FindFirst2
,Trans2FindFirst2Response
,Trans2FindNext2
,Trans2GetDfsReferral
,Trans2GetDfsReferralResponse
,Trans2QueryFSInformation
,Trans2QueryFSInformationResponse
,Trans2QueryPathInformation
,Trans2QueryPathInformationResponse
,Trans2SetFileInformation
,Trans2SetFileInformationResponse
,TransCallNamedPipe
,TransCallNamedPipeResponse
,TransPeekNamedPipe
,TransPeekNamedPipeResponse
,TransTransactNamedPipe
,TransTransactNamedPipeResponse
,TransWaitNamedPipe
,TransWaitNamedPipeResponse
public interface Response extends Message
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clearReceived()
Unset received statusvoid
error()
Set error statusvoid
exception(Exception e)
int
getErrorCode()
Exception
getException()
Long
getExpiration()
int
getGrantedCredits()
long
getMid()
Response
getNextResponse()
boolean
isError()
boolean
isReceived()
boolean
isVerifyFailed()
void
received()
Set received statusvoid
reset()
void
setExpiration(Long exp)
void
setMid(long k)
boolean
verifySignature(byte[] buffer, int i, int size)
-
Methods inherited from interface jcifs.util.transport.Message
getRawPayload, isRetainPayload, retainPayload, setRawPayload
-
-
-
-
Method Detail
-
isReceived
boolean isReceived()
- Returns:
- whether the response is received
-
received
void received()
Set received status
-
clearReceived
void clearReceived()
Unset received status
-
getGrantedCredits
int getGrantedCredits()
- Returns:
- number of credits granted by the server
-
getErrorCode
int getErrorCode()
- Returns:
- status code
-
setMid
void setMid(long k)
- Parameters:
k
-
-
getMid
long getMid()
- Returns:
- mid
-
verifySignature
boolean verifySignature(byte[] buffer, int i, int size)
- Parameters:
buffer
-i
-size
-- Returns:
- whether signature verification is successful
-
isVerifyFailed
boolean isVerifyFailed()
- Returns:
- whether signature verification failed
-
isError
boolean isError()
- Returns:
- whether the response is an error
-
error
void error()
Set error status
-
getExpiration
Long getExpiration()
- Returns:
- the message timeout
-
setExpiration
void setExpiration(Long exp)
- Parameters:
exp
- message timeout
-
reset
void reset()
-
getException
Exception getException()
- Returns:
- an exception linked to an error
-
exception
void exception(Exception e)
- Parameters:
e
-
-
getNextResponse
Response getNextResponse()
- Returns:
- chained response
-
-