public class ClassPathResourceFactory extends Object implements ResourceFactory
| Modifier and Type | Class and Description |
|---|---|
class |
ClassPathResourceFactory.ClassPathResource |
| Constructor and Description |
|---|
ClassPathResourceFactory() |
| Modifier and Type | Method and Description |
|---|---|
String |
getBasePath()
The resource factory will only serve resources with a path which begins
with this
May be null
Eg static
|
Long |
getMaxAgeSeconds()
Sets a constant max age for all resources served by this resource factory
|
Date |
getModifiedDate()
Modified date for all content.
|
Resource |
getResource(String host,
String path) |
SecurityManager |
getSecurityManager()
Security manager to delegate authentication and authorisation to.
|
void |
setBasePath(String basePath) |
void |
setMaxAgeSeconds(Long maxAgeSeconds) |
void |
setModifiedDate(Date modifiedDate) |
void |
setSecurityManager(SecurityManager securityManager) |
public Resource getResource(String host, String path)
getResource in interface ResourceFactorypublic String getBasePath()
public void setBasePath(String basePath)
public Long getMaxAgeSeconds()
public void setMaxAgeSeconds(Long maxAgeSeconds)
public Date getModifiedDate()
public void setModifiedDate(Date modifiedDate)
public SecurityManager getSecurityManager()
public void setSecurityManager(SecurityManager securityManager)
Copyright © 2021 McEvoy Software Ltd. All rights reserved.