public class Smb2CreateRequest extends ServerMessageBlock2Request<Smb2CreateResponse> implements RequestWithPath
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| Constructor and Description |
|---|
Smb2CreateRequest(Configuration config,
String name) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDomain() |
String |
getFullUNCPath() |
String |
getPath() |
String |
getServer() |
boolean |
isResolveInDfs() |
void |
setCreateDisposition(int createDisposition) |
void |
setCreateOptions(int createOptions) |
void |
setDesiredAccess(int desiredAccess) |
void |
setFileAttributes(int fileAttributes) |
void |
setFullUNCPath(String domain,
String server,
String fullName) |
void |
setImpersonationLevel(int impersonationLevel) |
void |
setPath(String path)
Strips a leading \
|
void |
setRequestedOplockLevel(byte requestedOplockLevel) |
void |
setResolveInDfs(boolean resolve) |
void |
setSecurityFlags(byte securityFlags) |
void |
setShareAccess(int shareAccess) |
void |
setSmbCreateFlags(long smbCreateFlags) |
int |
size() |
String |
toString() |
allowChain, createCancel, encode, getCreditCost, getNext, getOverrideTimeout, getResponse, ignoreDisconnect, initResponse, isCancel, isResponseAsync, setNext, setOverrideTimeout, setRequestCredits, setResponse, setTid, splitaddFlags, chain, clearFlags, decode, decode, equals, getAsyncId, getCommand, getCredit, getCreditCharge, getDigest, getErrorContextCount, getErrorData, getFlags, getHeaderStart, getLength, getMid, getNextCommandOffset, getRawPayload, getSessionId, getStatus, getTreeId, hashCode, isAsync, isRetainPayload, reset, retainPayload, setAsyncId, setCommand, setCredit, setDigest, setExtendedSecurity, setMid, setRawPayload, setReadSize, setSessionId, setTreeId, setUiddecode, encode, getCommand, getDigest, getMid, getResponse, reset, setCommand, setDigest, setExtendedSecurity, setMid, setResponse, setSessionId, setUidgetRawPayload, isRetainPayload, retainPayload, setRawPayloadpublic static final byte SMB2_OPLOCK_LEVEL_NONE
public static final byte SMB2_OPLOCK_LEVEL_II
public static final byte SMB2_OPLOCK_LEVEL_EXCLUSIVE
public static final byte SMB2_OPLOCK_LEVEL_BATCH
public static final byte SMB2_OPLOCK_LEVEL_LEASE
public static final int SMB2_IMPERSONATION_LEVEL_ANONYMOUS
public static final int SMB2_IMPERSONATION_LEVEL_IDENTIFICATION
public static final int SMB2_IMPERSONATION_LEVEL_IMPERSONATION
public static final int SMB2_IMPERSONATION_LEVEL_DELEGATE
public static final int FILE_SHARE_READ
public static final int FILE_SHARE_WRITE
public static final int FILE_SHARE_DELETE
public static final int FILE_SUPERSEDE
public static final int FILE_OPEN
public static final int FILE_CREATE
public static final int FILE_OPEN_IF
public static final int FILE_OVERWRITE
public static final int FILE_OVERWRITE_IF
public static final int FILE_DIRECTORY_FILE
public static final int FILE_WRITE_THROUGH
public static final int FILE_SEQUENTIAL_ONLY
public static final int FILE_NO_IMTERMEDIATE_BUFFERING
public static final int FILE_SYNCHRONOUS_IO_ALERT
public static final int FILE_SYNCHRONOUS_IO_NONALERT
public static final int FILE_NON_DIRECTORY_FILE
public static final int FILE_COMPLETE_IF_OPLOCKED
public static final int FILE_NO_EA_KNOWLEDGE
public static final int FILE_OPEN_REMOTE_INSTANCE
public static final int FILE_RANDOM_ACCESS
public static final int FILE_DELETE_ON_CLOSE
public static final int FILE_OPEN_BY_FILE_ID
public static final int FILE_OPEN_FOR_BACKUP_INTENT
public static final int FILE_NO_COMPRESSION
public static final int FILE_OPEN_REQUIRING_OPLOCK
public static final int FILE_DISALLOW_EXCLUSIVE
public static final int FILE_RESERVE_OPFILTER
public static final int FILE_OPEN_REPARSE_POINT
public static final int FILE_NOP_RECALL
public static final int FILE_OPEN_FOR_FREE_SPACE_QUERY
public Smb2CreateRequest(Configuration config, String name)
config - name - uncPath to open, strips a leading \public String getPath()
getPath in interface RequestWithPathRequestWithPath.getPath()public String getFullUNCPath()
getFullUNCPath in interface RequestWithPathRequestWithPath.getFullUNCPath()public String getServer()
getServer in interface RequestWithPathRequestWithPath.getServer()public String getDomain()
getDomain in interface RequestWithPathRequestWithPath.getDomain()public void setFullUNCPath(String domain, String server, String fullName)
setFullUNCPath in interface RequestWithPathfullName - the fullName to setpublic void setPath(String path)
setPath in interface RequestWithPathRequestWithPath.setPath(java.lang.String)public void setResolveInDfs(boolean resolve)
setResolveInDfs in interface RequestWithPathRequestWithPath.setResolveInDfs(boolean)public boolean isResolveInDfs()
isResolveInDfs in interface RequestWithPathRequestWithPath.isResolveInDfs()public void setSecurityFlags(byte securityFlags)
securityFlags - the securityFlags to setpublic void setRequestedOplockLevel(byte requestedOplockLevel)
requestedOplockLevel - the requestedOplockLevel to setpublic void setImpersonationLevel(int impersonationLevel)
impersonationLevel - the impersonationLevel to setpublic void setSmbCreateFlags(long smbCreateFlags)
smbCreateFlags - the smbCreateFlags to setpublic void setDesiredAccess(int desiredAccess)
desiredAccess - the desiredAccess to setpublic void setFileAttributes(int fileAttributes)
fileAttributes - the fileAttributes to setpublic void setShareAccess(int shareAccess)
shareAccess - the shareAccess to setpublic void setCreateDisposition(int createDisposition)
createDisposition - the createDisposition to setpublic void setCreateOptions(int createOptions)
createOptions - the createOptions to setpublic int size()
size in interface CommonServerMessageBlockRequestCommonServerMessageBlockRequest.size()public String toString()
toString in class ServerMessageBlock2Copyright © 2021. All rights reserved.