|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.car.CarResources
public class CarResources
Provides access to resources stored in channel archive files or CARs for short.
| Field Summary | |
|---|---|
static String |
CAR_RESOURCE_PARM
|
static String |
CAR_WORKER_ID
|
static String |
RCS_ID
|
| Constructor Summary | |
|---|---|
CarResources()
|
|
| Method Summary | |
|---|---|
boolean |
containsResource(String resource)
Returns true if the indicated resource is available, false otherwise. |
URL |
findResource(String entry)
Returns a URL to the requested entry if found in one of the installed CARs or null if not found. |
ClassLoader |
getClassLoader()
Return the single instance of CarClassLoader. |
String |
getContainingCarPath(String entry)
Returns the path of the CAR containing the indicated resource. |
static CarResources |
getInstance()
Deprecated. Use the Spring managed 'carResources' bean instead |
InputStream |
getResourceAsStream(String resource)
Return an input stream for reading the raw bytes making up the resource contained in one of the installed CARs. |
long |
getResourceSize(String resource)
Return the size of the indicated resource or -1 if the resource is not found or its size is unknown. |
void |
getServices(ContentHandler contentHandler)
Push into the passed in content handler events for any services declared in any component archive's deployment descriptor. |
void |
getWorkers(Properties workers)
Push into the passed in properties object workers defined in any component archive's deployment descriptor. |
boolean |
hasDescriptors()
Returns true if any archive included a deployment descriptor. |
void |
initialize()
Instantiate a CarResources object and load information about all CARs and their contained resources. |
String[] |
listAllResources()
Returns an enumeration of String objects each containing the path of a resource available from the installed CARs. |
String[] |
listCarResources(String carPath)
Returns a list of resources available in the car identified by the passed in relative car file path name. |
String[] |
listCars()
Returns a String array of car file paths relative to the car directory specified via the property in portal.properties. |
void |
setServletContext(ServletContext servletContext)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String RCS_ID
public static final String CAR_WORKER_ID
public static final String CAR_RESOURCE_PARM
| Constructor Detail |
|---|
public CarResources()
| Method Detail |
|---|
public void initialize()
throws Exception
Exceptionpublic void setServletContext(ServletContext servletContext)
setServletContext in interface ServletContextAware@Deprecated public static CarResources getInstance()
public ClassLoader getClassLoader()
public void getWorkers(Properties workers)
public boolean hasDescriptors()
public void getServices(ContentHandler contentHandler)
throws SAXException
SAXException
public InputStream getResourceAsStream(String resource)
throws PortalException
PortalExceptionpublic long getResourceSize(String resource)
public URL findResource(String entry)
public String getContainingCarPath(String entry)
public boolean containsResource(String resource)
public String[] listCars()
public String[] listCarResources(String carPath)
public String[] listAllResources()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||