Package jcifs.internal.smb2.ioctl
Class Smb2IoctlRequest
- java.lang.Object
-
- jcifs.internal.smb2.ServerMessageBlock2
-
- jcifs.internal.smb2.ServerMessageBlock2Request<Smb2IoctlResponse>
-
- jcifs.internal.smb2.ioctl.Smb2IoctlRequest
-
- All Implemented Interfaces:
CommonServerMessageBlock,CommonServerMessageBlockRequest,Request<Smb2IoctlResponse>,RequestWithFileId,Message,Request
public class Smb2IoctlRequest extends ServerMessageBlock2Request<Smb2IoctlResponse> implements RequestWithFileId
- Author:
- mbechler
-
-
Field Summary
Fields Modifier and Type Field Description static intFSCTL_DFS_GET_REFERRALSstatic intFSCTL_DFS_GET_REFERRALS_EXstatic intFSCTL_FILE_LEVEL_TRIMstatic intFSCTL_LRM_REQUEST_RESILENCYstatic intFSCTL_PIPE_PEEKstatic intFSCTL_PIPE_TRANSCEIVEstatic intFSCTL_PIPE_WAITstatic intFSCTL_QUERY_NETWORK_INTERFACE_INFOstatic intFSCTL_SET_REPARSE_POINTstatic intFSCTL_SRV_COPYCHUNKstatic intFSCTL_SRV_COPYCHUNK_WRITEstatic intFSCTL_SRV_ENUMERATE_SNAPSHOTSstatic intFSCTL_SRV_READ_HASHstatic intFSCTL_SRV_REQUEST_RESUME_KEYstatic intFSCTL_VALIDATE_NEGOTIATE_INFOstatic intSMB2_O_IOCTL_IS_FSCTL-
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 Smb2IoctlRequest(Configuration config, int controlCode)Smb2IoctlRequest(Configuration config, int controlCode, byte[] fileId)Smb2IoctlRequest(Configuration config, int controlCode, byte[] fileId, byte[] outputBuffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Smb2IoctlResponsecreateResponse(CIFSContext tc, ServerMessageBlock2Request<Smb2IoctlResponse> req)protected intreadBytesWireFormat(byte[] buffer, int bufferIndex)voidsetFileId(byte[] fileId)voidsetFlags(int flags)voidsetInputData(Encodable inputData)voidsetMaxInputResponse(int maxInputResponse)voidsetMaxOutputResponse(int maxOutputResponse)voidsetOutputData(Encodable outputData)intsize()protected intwriteBytesWireFormat(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
-
-
-
-
Field Detail
-
FSCTL_DFS_GET_REFERRALS
public static final int FSCTL_DFS_GET_REFERRALS
- See Also:
- Constant Field Values
-
FSCTL_PIPE_PEEK
public static final int FSCTL_PIPE_PEEK
- See Also:
- Constant Field Values
-
FSCTL_PIPE_WAIT
public static final int FSCTL_PIPE_WAIT
- See Also:
- Constant Field Values
-
FSCTL_PIPE_TRANSCEIVE
public static final int FSCTL_PIPE_TRANSCEIVE
- See Also:
- Constant Field Values
-
FSCTL_SRV_COPYCHUNK
public static final int FSCTL_SRV_COPYCHUNK
- See Also:
- Constant Field Values
-
FSCTL_SRV_ENUMERATE_SNAPSHOTS
public static final int FSCTL_SRV_ENUMERATE_SNAPSHOTS
- See Also:
- Constant Field Values
-
FSCTL_SRV_REQUEST_RESUME_KEY
public static final int FSCTL_SRV_REQUEST_RESUME_KEY
- See Also:
- Constant Field Values
-
FSCTL_SRV_READ_HASH
public static final int FSCTL_SRV_READ_HASH
- See Also:
- Constant Field Values
-
FSCTL_SRV_COPYCHUNK_WRITE
public static final int FSCTL_SRV_COPYCHUNK_WRITE
- See Also:
- Constant Field Values
-
FSCTL_LRM_REQUEST_RESILENCY
public static final int FSCTL_LRM_REQUEST_RESILENCY
- See Also:
- Constant Field Values
-
FSCTL_QUERY_NETWORK_INTERFACE_INFO
public static final int FSCTL_QUERY_NETWORK_INTERFACE_INFO
- See Also:
- Constant Field Values
-
FSCTL_SET_REPARSE_POINT
public static final int FSCTL_SET_REPARSE_POINT
- See Also:
- Constant Field Values
-
FSCTL_DFS_GET_REFERRALS_EX
public static final int FSCTL_DFS_GET_REFERRALS_EX
- See Also:
- Constant Field Values
-
FSCTL_FILE_LEVEL_TRIM
public static final int FSCTL_FILE_LEVEL_TRIM
- See Also:
- Constant Field Values
-
FSCTL_VALIDATE_NEGOTIATE_INFO
public static final int FSCTL_VALIDATE_NEGOTIATE_INFO
- See Also:
- Constant Field Values
-
SMB2_O_IOCTL_IS_FSCTL
public static final int SMB2_O_IOCTL_IS_FSCTL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Smb2IoctlRequest
public Smb2IoctlRequest(Configuration config, int controlCode)
- Parameters:
config-controlCode-
-
Smb2IoctlRequest
public Smb2IoctlRequest(Configuration config, int controlCode, byte[] fileId)
- Parameters:
config-controlCode-fileId-
-
Smb2IoctlRequest
public Smb2IoctlRequest(Configuration config, int controlCode, byte[] fileId, byte[] outputBuffer)
- Parameters:
config-controlCode-fileId-outputBuffer-
-
-
Method Detail
-
setFileId
public void setFileId(byte[] fileId)
- Specified by:
setFileIdin interfaceRequestWithFileId- See Also:
RequestWithFileId.setFileId(byte[])
-
createResponse
protected Smb2IoctlResponse createResponse(CIFSContext tc, ServerMessageBlock2Request<Smb2IoctlResponse> req)
- Specified by:
createResponsein classServerMessageBlock2Request<Smb2IoctlResponse>- Returns:
-
setFlags
public void setFlags(int flags)
- Parameters:
flags- the flags to set
-
setMaxInputResponse
public void setMaxInputResponse(int maxInputResponse)
- Parameters:
maxInputResponse- the maxInputResponse to set
-
setMaxOutputResponse
public void setMaxOutputResponse(int maxOutputResponse)
- Parameters:
maxOutputResponse- the maxOutputResponse to set
-
setInputData
public void setInputData(Encodable inputData)
- Parameters:
inputData- the inputData to set
-
setOutputData
public void setOutputData(Encodable outputData)
- Parameters:
outputData- the outputData to set
-
size
public int size()
- Specified by:
sizein interfaceCommonServerMessageBlockRequest- Returns:
- the size of this message
- See Also:
CommonServerMessageBlockRequest.size()
-
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)- Specified by:
readBytesWireFormatin classServerMessageBlock2- See Also:
ServerMessageBlock2.readBytesWireFormat(byte[], int)
-
-