Package com.dtolabs.rundeck.core.storage
Class TypedStorageTreeImpl
- java.lang.Object
-
- org.rundeck.storage.impl.StringToPathTree<T>
-
- org.rundeck.storage.impl.BaseDelegateTree<T>
-
- org.rundeck.storage.impl.DelegateTree<ResourceMeta>
-
- com.dtolabs.rundeck.core.storage.StorageTreeImpl
-
- com.dtolabs.rundeck.core.storage.TypedStorageTreeImpl
-
- All Implemented Interfaces:
StorageTree
,TypedStorageTree
,org.rundeck.storage.api.Tree<ResourceMeta>
public class TypedStorageTreeImpl extends StorageTreeImpl implements TypedStorageTree
Read resources and specify a content type
-
-
Constructor Summary
Constructors Constructor Description TypedStorageTreeImpl(org.rundeck.storage.api.Tree<ResourceMeta> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.rundeck.storage.api.Resource<ResourceMeta>
getResourceWithType(org.rundeck.storage.api.Path path, java.lang.String contentType)
boolean
hasResourceWithType(org.rundeck.storage.api.Path path, java.lang.String contentType)
byte[]
readResourceWithType(org.rundeck.storage.api.Path path, java.lang.String contentType)
-
Methods inherited from class org.rundeck.storage.impl.DelegateTree
createResource, deleteResource, getPath, getResource, hasDirectory, hasPath, hasResource, listDirectory, listDirectoryResources, listDirectorySubdirs, updateResource
-
Methods inherited from class org.rundeck.storage.impl.StringToPathTree
createResource, deleteResource, getPath, getResource, hasDirectory, hasPath, hasResource, listDirectory, listDirectoryResources, listDirectorySubdirs, updateResource
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.rundeck.storage.api.Tree
createResource, createResource, deleteResource, deleteResource, getPath, getPath, getResource, getResource, hasDirectory, hasDirectory, hasPath, hasPath, hasResource, hasResource, listDirectory, listDirectory, listDirectoryResources, listDirectoryResources, listDirectorySubdirs, listDirectorySubdirs, updateResource, updateResource
-
-
-
-
Constructor Detail
-
TypedStorageTreeImpl
public TypedStorageTreeImpl(org.rundeck.storage.api.Tree<ResourceMeta> delegate)
-
-
Method Detail
-
getResourceWithType
public org.rundeck.storage.api.Resource<ResourceMeta> getResourceWithType(org.rundeck.storage.api.Path path, java.lang.String contentType)
- Specified by:
getResourceWithType
in interfaceTypedStorageTree
- Parameters:
path
- pathcontentType
- content type string- Returns:
- contents of the resource
-
hasResourceWithType
public boolean hasResourceWithType(org.rundeck.storage.api.Path path, java.lang.String contentType)
- Specified by:
hasResourceWithType
in interfaceTypedStorageTree
- Parameters:
path
- pathcontentType
- content type string- Returns:
- true if the resource exists and has the specified content type
-
readResourceWithType
public byte[] readResourceWithType(org.rundeck.storage.api.Path path, java.lang.String contentType) throws java.io.IOException
- Specified by:
readResourceWithType
in interfaceTypedStorageTree
- Parameters:
path
- pathcontentType
- content type string- Returns:
- contents of the resource
- Throws:
java.io.IOException
-
-