Package org.apache.naming.resources
Class WARDirContext.WARResource
- java.lang.Object
-
- org.apache.naming.resources.Resource
-
- org.apache.naming.resources.WARDirContext.WARResource
-
- Enclosing class:
- WARDirContext
protected class WARDirContext.WARResource extends Resource
This specialized resource implementation avoids opening the IputStream to the WAR right away.
-
-
Field Summary
Fields Modifier and Type Field Description protected ZipEntry
entry
-
Fields inherited from class org.apache.naming.resources.Resource
binaryContent, inputStream
-
-
Constructor Summary
Constructors Constructor Description WARResource(ZipEntry entry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
streamContent()
Content accessor.-
Methods inherited from class org.apache.naming.resources.Resource
getContent, setContent, setContent
-
-
-
-
Field Detail
-
entry
protected ZipEntry entry
-
-
Constructor Detail
-
WARResource
public WARResource(ZipEntry entry)
-
-
Method Detail
-
streamContent
public InputStream streamContent() throws IOException
Content accessor.- Overrides:
streamContent
in classResource
- Returns:
- InputStream
- Throws:
IOException
-
-