HandleItem Class
- java.
lang. Object - com.
azure. storage. file. share. models. HandleItem
- com.
Implements
public final class HandleItem
implements XmlSerializable<HandleItem>
A listed Azure Storage handle item.
Constructor Summary
Constructor | Description |
---|---|
HandleItem() |
Creates an instance of Handle |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Handle |
fromXml(XmlReader xmlReader)
Reads an instance of Handle |
static
Handle |
fromXml(XmlReader xmlReader, String rootElementName)
Reads an instance of Handle |
List<Share |
getAccessRights()
Get the access |
String |
getClientIp()
Get the client |
String |
getClientName()
Get the client |
String |
getFileId()
Get the file |
String |
getHandleId()
Get the handle |
Offset |
getLastReconnectTime()
Get the last |
Offset |
getOpenTime()
Get the open |
String |
getParentId()
Get the parent |
String |
getPath()
Get the path property: File or directory name including full path starting from share root. |
String |
getSessionId()
Get the session |
Handle |
setAccessRights(List<ShareFileHandleAccessRights> accessRights)
Set the access |
Handle |
setClientIp(String clientIp)
Set the client |
Handle |
setClientName(String clientName)
Set the client |
Handle |
setFileId(String fileId)
Set the file |
Handle |
setHandleId(String handleId)
Set the handle |
Handle |
setLastReconnectTime(OffsetDateTime lastReconnectTime)
Set the last |
Handle |
setOpenTime(OffsetDateTime openTime)
Set the open |
Handle |
setParentId(String parentId)
Set the parent |
Handle |
setPath(String path)
Set the path property: File or directory name including full path starting from share root. |
Handle |
setSessionId(String sessionId)
Set the session |
Xml |
toXml(XmlWriter xmlWriter) |
Xml |
toXml(XmlWriter xmlWriter, String rootElementName) |
Methods inherited from java.lang.Object
Constructor Details
HandleItem
public HandleItem()
Creates an instance of HandleItem class.
Method Details
fromXml
public static HandleItem fromXml(XmlReader xmlReader)
Reads an instance of HandleItem from the XmlReader.
Parameters:
Returns:
Throws:
fromXml
public static HandleItem fromXml(XmlReader xmlReader, String rootElementName)
Reads an instance of HandleItem from the XmlReader.
Parameters:
Returns:
Throws:
getAccessRights
public List
Get the accessRights property: The ShareFileHandleAccessRights property.
Returns:
getClientIp
public String getClientIp()
Get the clientIp property: Client IP that opened the handle.
Returns:
getClientName
public String getClientName()
Get the clientName property: Name of the client machine where the share is being mounted.
Returns:
getFileId
public String getFileId()
Get the fileId property: FileId uniquely identifies the file or directory.
Returns:
getHandleId
public String getHandleId()
Get the handleId property: XSMB service handle ID.
Returns:
getLastReconnectTime
public OffsetDateTime getLastReconnectTime()
Get the lastReconnectTime property: Time handle was last connected to (UTC).
Returns:
getOpenTime
public OffsetDateTime getOpenTime()
Get the openTime property: Time when the session that previously opened the handle has last been reconnected. (UTC).
Returns:
getParentId
public String getParentId()
Get the parentId property: ParentId uniquely identifies the parent directory of the object.
Returns:
getPath
public String getPath()
Get the path property: File or directory name including full path starting from share root.
Returns:
getSessionId
public String getSessionId()
Get the sessionId property: SMB session ID in context of which the file handle was opened.
Returns:
setAccessRights
public HandleItem setAccessRights(List
Set the accessRights property: The ShareFileHandleAccessRights property.
Parameters:
Returns:
setClientIp
public HandleItem setClientIp(String clientIp)
Set the clientIp property: Client IP that opened the handle.
Parameters:
Returns:
setClientName
public HandleItem setClientName(String clientName)
Set the clientName property: Name of the client machine where the share is being mounted.
Parameters:
Returns:
setFileId
public HandleItem setFileId(String fileId)
Set the fileId property: FileId uniquely identifies the file or directory.
Parameters:
Returns:
setHandleId
public HandleItem setHandleId(String handleId)
Set the handleId property: XSMB service handle ID.
Parameters:
Returns:
setLastReconnectTime
public HandleItem setLastReconnectTime(OffsetDateTime lastReconnectTime)
Set the lastReconnectTime property: Time handle was last connected to (UTC).
Parameters:
Returns:
setOpenTime
public HandleItem setOpenTime(OffsetDateTime openTime)
Set the openTime property: Time when the session that previously opened the handle has last been reconnected. (UTC).
Parameters:
Returns:
setParentId
public HandleItem setParentId(String parentId)
Set the parentId property: ParentId uniquely identifies the parent directory of the object.
Parameters:
Returns:
setPath
public HandleItem setPath(String path)
Set the path property: File or directory name including full path starting from share root.
Parameters:
Returns:
setSessionId
public HandleItem setSessionId(String sessionId)
Set the sessionId property: SMB session ID in context of which the file handle was opened.
Parameters:
Returns:
toXml
toXml
public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName)
Parameters:
Throws: