org.apache.catalina.servlets

Class DefaultServlet.ResourceInfo

Enclosing Class:
DefaultServlet

protected class DefaultServlet.ResourceInfo
extends java.lang.Object

Field Summary

Attributes
attributes
boolean
collection
long
creationDate
long
date
DirContext
directory
boolean
exists
Resource
file
String
httpDate
protected InputStream
is
long
length
Object
object
String
path
DirContext
resources
String
strongETag
String
weakETag

Constructor Summary

ResourceInfo(String path, DirContext resources)
Constructor.

Method Summary

boolean
exists()
Test if the associated resource exists.
InputStream
getStream()
Get IS from resource.
void
recycle()
void
set(String path, DirContext resources)
void
setStream(InputStream is)
Set IS.
String
toString()
String representation.

Field Details

attributes

public Attributes attributes


collection

public boolean collection


creationDate

public long creationDate


date

public long date


directory

public DirContext directory


exists

public boolean exists


file

public Resource file


httpDate

public String httpDate


is

protected InputStream is


length

public long length


object

public Object object


path

public String path


resources

public DirContext resources


strongETag

public String strongETag


weakETag

public String weakETag

Constructor Details

ResourceInfo

public ResourceInfo(String path,
                    DirContext resources)
Constructor.

Parameters:
path - Path name of the file

Method Details

exists

public boolean exists()
Test if the associated resource exists.


getStream

public InputStream getStream()
            throws IOException
Get IS from resource.


recycle

public void recycle()


set

public void set(String path,
                DirContext resources)


setStream

public void setStream(InputStream is)
Set IS.


toString

public String toString()
String representation.


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.