Class ResourceLoader
java.lang.Object
eu.europa.esig.dss.service.http.commons.ResourceLoader
public class ResourceLoader extends Object
Gets the absolute path for the defined class
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ResourceLoader()
Empty constructor.ResourceLoader(Class<?> anyClass)
It can be used when there is a need to change the class loader. -
Method Summary
Modifier and Type Method Description String
getAbsoluteResourceFolder(String resourcePath)
This method converts the resource path to the absolute path in target folder.
-
Field Details
-
anyClass
The class to be used to build the absolute path
-
-
Constructor Details
-
ResourceLoader
public ResourceLoader()Empty constructor. Loads path relatively to theResourceLoader
class directory. -
ResourceLoader
It can be used when there is a need to change the class loader.- Parameters:
anyClass
- the base class to be used
-
-
Method Details
-
getAbsoluteResourceFolder
This method converts the resource path to the absolute path in target folder.- Parameters:
resourcePath
- resource path- Returns:
- the absolute of the parent folder
- Throws:
DSSException
-