Class AbstractIoResource<T>
- java.lang.Object
-
- org.apache.sshd.common.util.io.resource.AbstractIoResource<T>
-
- Type Parameters:
T- Type of resource
- All Implemented Interfaces:
NamedResource,IoResource<T>,ResourceStreamProvider
- Direct Known Subclasses:
ClassLoaderResource,PathResource,URIResource,URLResource
public abstract class AbstractIoResource<T> extends java.lang.Object implements IoResource<T>
TODO Add javadoc
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Class<T>resourceTypeprivate TresourceValue-
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractIoResource(java.lang.Class<T> resourceType, T resourceValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()java.lang.Class<T>getResourceType()TgetResourceValue()java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.sshd.common.util.io.resource.ResourceStreamProvider
openInputStream
-
-
-
-
Method Detail
-
getResourceType
public java.lang.Class<T> getResourceType()
- Specified by:
getResourceTypein interfaceIoResource<T>- Returns:
- The type of resource being represented
-
getResourceValue
public T getResourceValue()
- Specified by:
getResourceValuein interfaceIoResource<T>- Returns:
- The resource value serving as basis for the provided data stream
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceNamedResource- Returns:
- The resource name
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-