|
NextApp Echo3 v3.0.b4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echo.webcontainer.ResourceRegistry
public class ResourceRegistry
A registry of CLASSPATH resources which are provided to the client via the ResourceService
.
Only specifically added resources are provided, for obvious security reasons.
Constructor Summary | |
---|---|
ResourceRegistry()
|
Method Summary | |
---|---|
void |
add(java.lang.String packageId,
java.lang.String resourceName,
ContentType contentType)
Adds a resource to a package. |
void |
addPackage(java.lang.String packageId,
java.lang.String location)
Registers a new resource package. |
ContentType |
getContentType(java.lang.String packageId,
java.lang.String resourceName)
Determines the content type of a resource. |
java.lang.String |
getLocation(java.lang.String packageId,
java.lang.String resourceName)
Determines the location of a resource. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceRegistry()
Method Detail |
---|
public void addPackage(java.lang.String packageId, java.lang.String location)
packageId
- the identifier to use for the package, e.g., "Echo" is used for core resources.location
- the root location from which package resources can be retrieved (resource locations
are relative to this location)public void add(java.lang.String packageId, java.lang.String resourceName, ContentType contentType)
packageId
- the package identifierresourceName
- the name of the resource (the location of the resource relative to the package root location)contentType
- the content type of the resourcepublic ContentType getContentType(java.lang.String packageId, java.lang.String resourceName)
packageId
- the package identifierresourceName
- the resource name
public java.lang.String getLocation(java.lang.String packageId, java.lang.String resourceName)
packageId
- the package identifierresourceName
- the resource name
|
NextApp Echo3 v3.0.b4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |