Package jcifs.internal.smb2.create
Class Smb2CloseResponse
- java.lang.Object
-
- jcifs.internal.smb2.ServerMessageBlock2
-
- jcifs.internal.smb2.ServerMessageBlock2Response
-
- jcifs.internal.smb2.create.Smb2CloseResponse
-
- All Implemented Interfaces:
CommonServerMessageBlock,CommonServerMessageBlockResponse,SmbBasicFileInfo,Message,Response
public class Smb2CloseResponse extends ServerMessageBlock2Response implements SmbBasicFileInfo
- Author:
- mbechler
-
-
Field Summary
Fields Modifier and Type Field Description static intSMB2_CLOSE_FLAG_POSTQUERY_ATTIB-
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 Smb2CloseResponse(Configuration config, byte[] fileId, String fileName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetAllocationSize()intgetAttributes()longgetChangeTime()intgetCloseFlags()longgetCreateTime()longgetCreationTime()longgetEndOfFile()intgetFileAttributes()byte[]getFileId()StringgetFileName()longgetLastAccessTime()longgetLastWriteTime()longgetSize()protected intreadBytesWireFormat(byte[] buffer, int bufferIndex)protected intwriteBytesWireFormat(byte[] dst, int dstIndex)-
Methods inherited from class jcifs.internal.smb2.ServerMessageBlock2Response
clearReceived, error, exception, getErrorCode, getException, getExpiration, getGrantedCredits, getNextResponse, haveResponse, isAsyncHandled, isError, isReceived, isSigned, isVerifyFailed, prepare, received, reset, setAsyncHandled, setExpiration, verifySignature
-
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, getNext, getNextCommandOffset, getRawPayload, getResponse, getSessionId, getStatus, getTreeId, hashCode, isAsync, isErrorResponseStatus, isRetainPayload, pad8, readErrorResponse, readHeaderWireFormat, 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, setCommand, setDigest, setExtendedSecurity, setMid, setResponse, setSessionId, setUid
-
Methods inherited from interface jcifs.internal.CommonServerMessageBlockResponse
isAsync
-
Methods inherited from interface jcifs.util.transport.Message
getRawPayload, isRetainPayload, retainPayload, setRawPayload
-
-
-
-
Field Detail
-
SMB2_CLOSE_FLAG_POSTQUERY_ATTIB
public static final int SMB2_CLOSE_FLAG_POSTQUERY_ATTIB
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Smb2CloseResponse
public Smb2CloseResponse(Configuration config, byte[] fileId, String fileName)
- Parameters:
config-fileId-fileName-
-
-
Method Detail
-
getCloseFlags
public final int getCloseFlags()
- Returns:
- the closeFlags
-
getCreationTime
public final long getCreationTime()
- Returns:
- the creationTime
-
getCreateTime
public final long getCreateTime()
- Specified by:
getCreateTimein interfaceSmbBasicFileInfo- Returns:
- file create time
- See Also:
SmbBasicFileInfo.getCreateTime()
-
getLastAccessTime
public final long getLastAccessTime()
- Specified by:
getLastAccessTimein interfaceSmbBasicFileInfo- Returns:
- the lastAccessTime
-
getLastWriteTime
public final long getLastWriteTime()
- Specified by:
getLastWriteTimein interfaceSmbBasicFileInfo- Returns:
- the lastWriteTime
-
getChangeTime
public final long getChangeTime()
- Returns:
- the changeTime
-
getAllocationSize
public final long getAllocationSize()
- Returns:
- the allocationSize
-
getEndOfFile
public final long getEndOfFile()
- Returns:
- the endOfFile
-
getFileId
public byte[] getFileId()
- Returns:
- the fileId
-
getFileName
public String getFileName()
- Returns:
- the fileName
-
getSize
public long getSize()
- Specified by:
getSizein interfaceSmbBasicFileInfo- Returns:
- file size
- See Also:
SmbBasicFileInfo.getSize()
-
getFileAttributes
public int getFileAttributes()
- Returns:
- the fileAttributes
-
getAttributes
public int getAttributes()
- Specified by:
getAttributesin interfaceSmbBasicFileInfo- Returns:
- file attributes
- See Also:
SmbBasicFileInfo.getAttributes()
-
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) throws SMBProtocolDecodingException- Specified by:
readBytesWireFormatin classServerMessageBlock2- Throws:
SMBProtocolDecodingException- See Also:
ServerMessageBlock2.readBytesWireFormat(byte[], int)
-
-