Package jcifs.internal.smb2.notify
Class Smb2ChangeNotifyRequest
- java.lang.Object
-
- jcifs.internal.smb2.ServerMessageBlock2
-
- jcifs.internal.smb2.ServerMessageBlock2Request<Smb2ChangeNotifyResponse>
-
- jcifs.internal.smb2.notify.Smb2ChangeNotifyRequest
-
- All Implemented Interfaces:
CommonServerMessageBlock,CommonServerMessageBlockRequest,Request<Smb2ChangeNotifyResponse>,Message,Request
public class Smb2ChangeNotifyRequest extends ServerMessageBlock2Request<Smb2ChangeNotifyResponse>
- Author:
- mbechler
-
-
Field Summary
Fields Modifier and Type Field Description static intFILE_NOTIFY_CHANGE_ATTRIBUTESstatic intFILE_NOTIFY_CHANGE_CREATIONstatic intFILE_NOTIFY_CHANGE_DIR_NAMEstatic intFILE_NOTIFY_CHANGE_EAstatic intFILE_NOTIFY_CHANGE_FILE_NAMEstatic intFILE_NOTIFY_CHANGE_LAST_ACCESSstatic intFILE_NOTIFY_CHANGE_LAST_WRITEstatic intFILE_NOTIFY_CHANGE_SECURITYstatic intFILE_NOTIFY_CHANGE_SIZEstatic intFILE_NOTIFY_CHANGE_STREAM_NAMEstatic intFILE_NOTIFY_CHANGE_STREAM_SIZEstatic intFILE_NOTIFY_CHANGE_STREAM_WRITEstatic intSMB2_WATCH_TREE-
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 Smb2ChangeNotifyRequest(Configuration config, byte[] fileId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Smb2ChangeNotifyResponsecreateResponse(CIFSContext tc, ServerMessageBlock2Request<Smb2ChangeNotifyResponse> req)protected intreadBytesWireFormat(byte[] buffer, int bufferIndex)voidsetCompletionFilter(int completionFilter)voidsetNotifyFlags(int notifyFlags)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
-
SMB2_WATCH_TREE
public static final int SMB2_WATCH_TREE
- See Also:
- Constant Field Values
-
FILE_NOTIFY_CHANGE_FILE_NAME
public static final int FILE_NOTIFY_CHANGE_FILE_NAME
- See Also:
- Constant Field Values
-
FILE_NOTIFY_CHANGE_DIR_NAME
public static final int FILE_NOTIFY_CHANGE_DIR_NAME
- See Also:
- Constant Field Values
-
FILE_NOTIFY_CHANGE_ATTRIBUTES
public static final int FILE_NOTIFY_CHANGE_ATTRIBUTES
- See Also:
- Constant Field Values
-
FILE_NOTIFY_CHANGE_SIZE
public static final int FILE_NOTIFY_CHANGE_SIZE
- See Also:
- Constant Field Values
-
FILE_NOTIFY_CHANGE_LAST_WRITE
public static final int FILE_NOTIFY_CHANGE_LAST_WRITE
- See Also:
- Constant Field Values
-
FILE_NOTIFY_CHANGE_LAST_ACCESS
public static final int FILE_NOTIFY_CHANGE_LAST_ACCESS
- See Also:
- Constant Field Values
-
FILE_NOTIFY_CHANGE_CREATION
public static final int FILE_NOTIFY_CHANGE_CREATION
- See Also:
- Constant Field Values
-
FILE_NOTIFY_CHANGE_EA
public static final int FILE_NOTIFY_CHANGE_EA
- See Also:
- Constant Field Values
-
FILE_NOTIFY_CHANGE_SECURITY
public static final int FILE_NOTIFY_CHANGE_SECURITY
- See Also:
- Constant Field Values
-
FILE_NOTIFY_CHANGE_STREAM_NAME
public static final int FILE_NOTIFY_CHANGE_STREAM_NAME
- See Also:
- Constant Field Values
-
FILE_NOTIFY_CHANGE_STREAM_SIZE
public static final int FILE_NOTIFY_CHANGE_STREAM_SIZE
- See Also:
- Constant Field Values
-
FILE_NOTIFY_CHANGE_STREAM_WRITE
public static final int FILE_NOTIFY_CHANGE_STREAM_WRITE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Smb2ChangeNotifyRequest
public Smb2ChangeNotifyRequest(Configuration config, byte[] fileId)
- Parameters:
config-fileId-
-
-
Method Detail
-
setNotifyFlags
public void setNotifyFlags(int notifyFlags)
- Parameters:
notifyFlags- the notifyFlags to set
-
setCompletionFilter
public void setCompletionFilter(int completionFilter)
- Parameters:
completionFilter- the completionFilter to set
-
createResponse
protected Smb2ChangeNotifyResponse createResponse(CIFSContext tc, ServerMessageBlock2Request<Smb2ChangeNotifyResponse> req)
- Specified by:
createResponsein classServerMessageBlock2Request<Smb2ChangeNotifyResponse>- Returns:
- See Also:
ServerMessageBlock2Request.createResponse(jcifs.CIFSContext, jcifs.internal.smb2.ServerMessageBlock2Request)
-
size
public int size()
- 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)
-
-