Package net.sf.jasperreports.repo
Class DefaultRepositoryService
- java.lang.Object
-
- net.sf.jasperreports.repo.DefaultRepositoryService
-
- All Implemented Interfaces:
RepositoryService
,StreamRepositoryService
public class DefaultRepositoryService extends Object implements StreamRepositoryService
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description protected ClassLoader
classLoader
static String
EXCEPTION_MESSAGE_KEY_NOT_IMPLEMENTED
protected JasperReportsContext
jasperReportsContext
static String
PROPERTY_FILES_ENABLED
protected URLStreamHandlerFactory
urlHandlerFactory
-
Constructor Summary
Constructors Constructor Description DefaultRepositoryService(JasperReportsContext jasperReportsContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
getInputStream(String uri)
InputStream
getInputStream(RepositoryContext context, String uri)
OutputStream
getOutputStream(String uri)
Resource
getResource(String uri)
<K extends Resource>
KgetResource(String uri, Class<K> resourceType)
<K extends Resource>
KgetResource(RepositoryContext context, String uri, Class<K> resourceType)
ResourceInfo
getResourceInfo(RepositoryContext context, String location)
protected File
resolveFile(RepositoryContext context, String uri)
void
saveResource(String uri, Resource resource)
void
setClassLoader(ClassLoader classLoader)
void
setURLStreamHandlerFactory(URLStreamHandlerFactory urlHandlerFactory)
-
-
-
Field Detail
-
PROPERTY_FILES_ENABLED
public static final String PROPERTY_FILES_ENABLED
- See Also:
- Constant Field Values
-
EXCEPTION_MESSAGE_KEY_NOT_IMPLEMENTED
public static final String EXCEPTION_MESSAGE_KEY_NOT_IMPLEMENTED
- See Also:
- Constant Field Values
-
jasperReportsContext
protected JasperReportsContext jasperReportsContext
-
classLoader
protected ClassLoader classLoader
-
urlHandlerFactory
protected URLStreamHandlerFactory urlHandlerFactory
-
-
Constructor Detail
-
DefaultRepositoryService
public DefaultRepositoryService(JasperReportsContext jasperReportsContext)
-
-
Method Detail
-
setClassLoader
public void setClassLoader(ClassLoader classLoader)
-
setURLStreamHandlerFactory
public void setURLStreamHandlerFactory(URLStreamHandlerFactory urlHandlerFactory)
-
getInputStream
public InputStream getInputStream(String uri)
- Specified by:
getInputStream
in interfaceStreamRepositoryService
-
getInputStream
public InputStream getInputStream(RepositoryContext context, String uri)
- Specified by:
getInputStream
in interfaceStreamRepositoryService
-
resolveFile
protected File resolveFile(RepositoryContext context, String uri)
-
getOutputStream
public OutputStream getOutputStream(String uri)
- Specified by:
getOutputStream
in interfaceStreamRepositoryService
-
getResource
public Resource getResource(String uri)
- Specified by:
getResource
in interfaceRepositoryService
-
saveResource
public void saveResource(String uri, Resource resource)
- Specified by:
saveResource
in interfaceRepositoryService
-
getResource
public <K extends Resource> K getResource(String uri, Class<K> resourceType)
- Specified by:
getResource
in interfaceRepositoryService
-
getResource
public <K extends Resource> K getResource(RepositoryContext context, String uri, Class<K> resourceType)
- Specified by:
getResource
in interfaceRepositoryService
-
getResourceInfo
public ResourceInfo getResourceInfo(RepositoryContext context, String location)
- Specified by:
getResourceInfo
in interfaceRepositoryService
-
-