Class ResourceUtil


  • public final class ResourceUtil
    extends java.lang.Object
    Author:
    Sebastian Menski
    • Constructor Summary

      Constructors 
      Constructor Description
      ResourceUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String loadResourceContent​(java.lang.String resourcePath, DeploymentEntity deployment)
      Parse a camunda:resource attribute and loads the resource depending on the url scheme.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResourceUtil

        public ResourceUtil()
    • Method Detail

      • loadResourceContent

        public static java.lang.String loadResourceContent​(java.lang.String resourcePath,
                                                           DeploymentEntity deployment)
        Parse a camunda:resource attribute and loads the resource depending on the url scheme. Supported URL schemes are classpath:// and deployment://. If the scheme is omitted classpath:// is assumed.
        Parameters:
        resourcePath - the path to the resource to load
        deployment - the deployment to load resources from
        Returns:
        the resource content as String