Package jcifs.internal.smb2.info
Class Smb2QueryInfoRequest
- java.lang.Object
-
- jcifs.internal.smb2.ServerMessageBlock2
-
- jcifs.internal.smb2.ServerMessageBlock2Request<Smb2QueryInfoResponse>
-
- jcifs.internal.smb2.info.Smb2QueryInfoRequest
-
- All Implemented Interfaces:
CommonServerMessageBlock
,CommonServerMessageBlockRequest
,Request<Smb2QueryInfoResponse>
,RequestWithFileId
,Message
,Request
public class Smb2QueryInfoRequest extends ServerMessageBlock2Request<Smb2QueryInfoResponse> implements RequestWithFileId
- 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 Smb2QueryInfoRequest(Configuration config)
Smb2QueryInfoRequest(Configuration config, byte[] fileId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Smb2QueryInfoResponse
createResponse(CIFSContext tc, ServerMessageBlock2Request<Smb2QueryInfoResponse> req)
protected int
readBytesWireFormat(byte[] buffer, int bufferIndex)
void
setAdditionalInformation(int additionalInformation)
void
setFileId(byte[] fileId)
void
setFileInfoClass(byte fileInfoClass)
void
setFilesystemInfoClass(byte fileInfoClass)
void
setInfoType(byte infoType)
void
setQueryFlags(int queryFlags)
int
size()
protected int
writeBytesWireFormat(byte[] dst, int dstIndex)
-
Methods inherited from class jcifs.internal.smb2.ServerMessageBlock2Request
allowChain, createCancel, encode, getCreditCost, getNext, getOverrideTimeout, getResponse, ignoreDisconnect, initResponse, isCancel, isResponseAsync, setNext, setOverrideTimeout, setRequestCredits, setResponse, setTid, split
-
Methods inherited from class jcifs.internal.smb2.ServerMessageBlock2
addFlags, chain, clearFlags, decode, decode, equals, getAsyncId, getCommand, getConfig, getCredit, getCreditCharge, getDigest, getErrorContextCount, getErrorData, getFlags, getHeaderStart, getLength, getMid, getNextCommandOffset, getRawPayload, getSessionId, getStatus, getTreeId, hashCode, haveResponse, isAsync, isErrorResponseStatus, isRetainPayload, pad8, readErrorResponse, readHeaderWireFormat, reset, retainPayload, setAsyncId, setCommand, setCredit, setDigest, setExtendedSecurity, setMid, setNext, setRawPayload, setReadSize, 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, getCommand, getDigest, getMid, reset, setCommand, setDigest, setExtendedSecurity, setMid, setSessionId, setUid
-
Methods inherited from interface jcifs.util.transport.Message
getRawPayload, isRetainPayload, retainPayload, setRawPayload
-
-
-
-
Constructor Detail
-
Smb2QueryInfoRequest
public Smb2QueryInfoRequest(Configuration config)
- Parameters:
config
-
-
Smb2QueryInfoRequest
public Smb2QueryInfoRequest(Configuration config, byte[] fileId)
- Parameters:
config
-fileId
-
-
-
Method Detail
-
setFileId
public void setFileId(byte[] fileId)
- Specified by:
setFileId
in interfaceRequestWithFileId
- See Also:
RequestWithFileId.setFileId(byte[])
-
setInfoType
public final void setInfoType(byte infoType)
- Parameters:
infoType
- the infoType to set
-
setFileInfoClass
public final void setFileInfoClass(byte fileInfoClass)
- Parameters:
fileInfoClass
- the fileInfoClass to set
-
setFilesystemInfoClass
public final void setFilesystemInfoClass(byte fileInfoClass)
- Parameters:
fileInfoClass
- the fileInfoClass to set
-
setAdditionalInformation
public final void setAdditionalInformation(int additionalInformation)
- Parameters:
additionalInformation
- the additionalInformation to set
-
setQueryFlags
public final void setQueryFlags(int queryFlags)
- Parameters:
queryFlags
- the queryFlags to set
-
createResponse
protected Smb2QueryInfoResponse createResponse(CIFSContext tc, ServerMessageBlock2Request<Smb2QueryInfoResponse> req)
- Specified by:
createResponse
in classServerMessageBlock2Request<Smb2QueryInfoResponse>
- Returns:
- See Also:
ServerMessageBlock2Request.createResponse(jcifs.CIFSContext, jcifs.internal.smb2.ServerMessageBlock2Request)
-
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)
-
-