Class FileSystemConnectionDescription
- java.lang.Object
-
- net.anwiba.commons.datasource.connection.AbstractConnectionDescription
-
- net.anwiba.commons.datasource.connection.FileSystemConnectionDescription
-
- All Implemented Interfaces:
java.io.Serializable,IConnectionDescription,IFileSystemConnectionDescription,IResourceReferenceConnectionDescription
public class FileSystemConnectionDescription extends AbstractConnectionDescription implements IFileSystemConnectionDescription
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FileSystemConnectionDescription(java.io.File file)FileSystemConnectionDescription(java.nio.file.Path root, java.nio.file.Path homePath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileSystemConnectionDescriptionadapt(IAuthentication authentication)booleanequals(java.lang.Object object)IAuthenticationgetAuthentication()java.lang.StringgetFormat()java.nio.file.PathgetHomePath()IResourceReferencegetResourceReference()java.nio.file.PathgetRootPath()java.lang.StringgetScheme()java.net.URIgetURI()java.lang.StringgetUrl()inthashCode()java.lang.StringtoString()-
Methods inherited from class net.anwiba.commons.datasource.connection.AbstractConnectionDescription
getDataSourceType, getVersion, setVersion
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.anwiba.commons.datasource.connection.IConnectionDescription
getDataSourceType, getVersion
-
-
-
-
Method Detail
-
adapt
public FileSystemConnectionDescription adapt(IAuthentication authentication)
- Specified by:
adaptin interfaceIConnectionDescription- Specified by:
adaptin interfaceIFileSystemConnectionDescription- Specified by:
adaptin interfaceIResourceReferenceConnectionDescription
-
getAuthentication
public IAuthentication getAuthentication()
- Specified by:
getAuthenticationin interfaceIConnectionDescription
-
getResourceReference
public IResourceReference getResourceReference()
- Specified by:
getResourceReferencein interfaceIResourceReferenceConnectionDescription
-
getUrl
public java.lang.String getUrl()
- Specified by:
getUrlin interfaceIConnectionDescription
-
getURI
public java.net.URI getURI()
- Specified by:
getURIin interfaceIConnectionDescription- Specified by:
getURIin interfaceIFileSystemConnectionDescription
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getFormat
public java.lang.String getFormat()
- Specified by:
getFormatin interfaceIConnectionDescription
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classjava.lang.Object
-
getRootPath
public java.nio.file.Path getRootPath()
- Specified by:
getRootPathin interfaceIFileSystemConnectionDescription
-
getHomePath
public java.nio.file.Path getHomePath()
- Specified by:
getHomePathin interfaceIFileSystemConnectionDescription
-
getScheme
public java.lang.String getScheme()
- Specified by:
getSchemein interfaceIFileSystemConnectionDescription
-
-