|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Index
The Index
object is used to represent the properties
a URI can contain. This is used so that properties relating to a
file can be quickly extracted from an Indexer
. This
will contain all necessary meta data for a file or resource. With
this the File
reference to a resource as well as the
locale, MIME type, name and other such data can be accessed.
Indexer
Method Summary | |
---|---|
java.lang.String |
getContentType()
This allows the MIME type of this Index to
be acquired. |
java.io.File |
getDirectory()
This is used to acquire the File directory
for the index target. |
java.io.File |
getFile()
This is used to acquire the File reference
for the index target. |
java.lang.String |
getName()
This allows the name for this object to be acquired. |
Path |
getPath()
This is used to acquire the Path object that
exposes various parts of the URI path. |
java.lang.String |
getRealPath()
This is used to get the path that this object refers to. |
java.lang.String |
getRequestPath()
This is used to acquire the normalized URI style path for the index target. |
Method Detail |
---|
java.lang.String getName()
java.lang.String getContentType()
Index
to
be acquired. The MIME type of a file is retrieved by the
Context.getContentType
method for a specific
request URI. This should have a value and perhaps some
parameters like the charset, "text/html; charset=UTF-8".
java.lang.String getRealPath()
java.lang.String getRequestPath()
Mapper
and other such objects that need
a normalized URI style path to resolve resources.
java.io.File getDirectory()
File
directory
for the index target. This is typically rooted at a
base path, for instance the Context
root
is typically used. This allows resources within the
same directory to be acquired easily.
java.io.File getFile()
File
reference
for the index target. This is typically rooted at a
base path, for instance the Context
root
is typically used. This allows the file to be opened,
deleted, or read should the need arise in a service.
Path getPath()
Path
object that
exposes various parts of the URI path. This can be used
to extract the individual path segments as strings as
well as the file extension and various other details.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |