Class TypedStorageTreeImpl

    • 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.BaseDelegateTree

        getDelegate, setDelegate
      • 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 interface TypedStorageTree
        Parameters:
        path - path
        contentType - 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 interface TypedStorageTree
        Parameters:
        path - path
        contentType - 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 interface TypedStorageTree
        Parameters:
        path - path
        contentType - content type string
        Returns:
        contents of the resource
        Throws:
        java.io.IOException