Package jcifs.internal.smb2.create
Class Smb2CreateResponse
- java.lang.Object
-
- jcifs.internal.smb2.ServerMessageBlock2
-
- jcifs.internal.smb2.ServerMessageBlock2Response
-
- jcifs.internal.smb2.create.Smb2CreateResponse
-
- All Implemented Interfaces:
CommonServerMessageBlock,CommonServerMessageBlockResponse,SmbBasicFileInfo,Message,Response
public class Smb2CreateResponse extends ServerMessageBlock2Response implements SmbBasicFileInfo
- 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 Smb2CreateResponse(Configuration config, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetAllocationSize()intgetAttributes()longgetChangeTime()intgetCreateAction()CreateContextResponse[]getCreateContexts()longgetCreateTime()longgetCreationTime()longgetEndOfFile()intgetFileAttributes()byte[]getFileId()StringgetFileName()longgetLastAccessTime()longgetLastWriteTime()bytegetOpenFlags()bytegetOplockLevel()longgetSize()voidprepare(CommonServerMessageBlockRequest next)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, 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
-
-
-
-
Constructor Detail
-
Smb2CreateResponse
public Smb2CreateResponse(Configuration config, String name)
- Parameters:
config-name-
-
-
Method Detail
-
prepare
public void prepare(CommonServerMessageBlockRequest next)
- Specified by:
preparein interfaceCommonServerMessageBlockResponse- Overrides:
preparein classServerMessageBlock2Response- See Also:
ServerMessageBlock2Response.prepare(jcifs.internal.CommonServerMessageBlockRequest)
-
getOplockLevel
public final byte getOplockLevel()
- Returns:
- the oplockLevel
-
getOpenFlags
public final byte getOpenFlags()
- Returns:
- the flags
-
getCreateAction
public final int getCreateAction()
- Returns:
- the createAction
-
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
-
getSize
public final long getSize()
- Specified by:
getSizein interfaceSmbBasicFileInfo- Returns:
- file size
- See Also:
SmbBasicFileInfo.getSize()
-
getFileAttributes
public final int getFileAttributes()
- Returns:
- the fileAttributes
-
getAttributes
public final int getAttributes()
- Specified by:
getAttributesin interfaceSmbBasicFileInfo- Returns:
- file attributes
- See Also:
SmbBasicFileInfo.getAttributes()
-
getFileId
public final byte[] getFileId()
- Returns:
- the fileId
-
getFileName
public final String getFileName()
- Returns:
- the fileName
-
getCreateContexts
public CreateContextResponse[] getCreateContexts()
- Returns:
- the createContexts
-
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:
Smb2ProtocolDecodingExceptionSMBProtocolDecodingException- See Also:
ServerMessageBlock2.readBytesWireFormat(byte[], int)
-
-