Interface IoResource<T>
- Type Parameters:
T- Type of resource
- All Superinterfaces:
NamedResource,ResourceStreamProvider
- All Known Implementing Classes:
AbstractIoResource,ClassLoaderResource,PathResource,URIResource,URLResource
- Author:
- Apache MINA SSHD Project
-
Field Summary
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR -
Method Summary
Modifier and TypeMethodDescriptionstatic IoResource<?> forResource(Object resource) Attempts to find the best wrapper for the resourceMethods inherited from interface org.apache.sshd.common.NamedResource
getNameMethods inherited from interface org.apache.sshd.common.util.io.resource.ResourceStreamProvider
openInputStream
-
Method Details
-
getResourceType
- Returns:
- The type of resource being represented
-
getResourceValue
T getResourceValue()- Returns:
- The resource value serving as basis for the provided data stream
-
forResource
Attempts to find the best wrapper for the resource- Parameters:
resource- The resource object - ignored ifnull- Returns:
- The best wrapper out of the supported ones (
nullif no initial resource) - Throws:
UnsupportedOperationException- if no match found
-