|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectResourceManagerBase
org.orbeon.oxf.resources.WebAppResourceManagerImpl
public class WebAppResourceManagerImpl
The webapp resource manager is able to load resources from a WAR file. This is very useful when distributing packaged applications.
Field Summary | |
---|---|
static String |
ROOT_DIR
|
static String |
SERVLET_CONTEXT_KEY
|
Constructor Summary | |
---|---|
WebAppResourceManagerImpl(Map props)
|
Method Summary | |
---|---|
boolean |
canWrite(String key)
Indicates if the resource manager implementation supports write operations |
Reader |
getContentAsReader(String key)
Returns a character reader from the resource manager for the specified key. |
InputStream |
getContentAsStream(String key)
Returns a binary input stream for the specified key. |
OutputStream |
getOutputStream(String key)
Allows writing to the resource |
String |
getRealPath(String key)
|
Writer |
getWriter(String key)
Allow writing to the resource |
protected long |
lastModifiedImpl(String key,
boolean doNotThrowResourceNotFound)
Gets the last modified timestamp for the specified resource |
int |
length(String key)
Returns the length of the file denoted by this abstract pathname. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SERVLET_CONTEXT_KEY
public static final String ROOT_DIR
Constructor Detail |
---|
public WebAppResourceManagerImpl(Map props)
Method Detail |
---|
public Reader getContentAsReader(String key)
key
- A Resource Manager key
public InputStream getContentAsStream(String key)
key
- A Resource Manager key
protected long lastModifiedImpl(String key, boolean doNotThrowResourceNotFound)
key
- A Resource Manager keydoNotThrowResourceNotFound
-
public boolean canWrite(String key)
public OutputStream getOutputStream(String key)
key
- A Resource Manager key
public Writer getWriter(String key)
key
- A Resource Manager key
public int length(String key)
public String getRealPath(String key)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |