|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DocLocator
Iterface that locates lazy or normal data streams for dynaXML document
requests. The default implementation, DefaultDocLocator, implements
local file access, but other implementations can be imagined that
read/write files over the network.
| Method Summary | |
|---|---|
InputSource |
getInputSource(String sourcePath,
boolean removeDoctypeDecl)
Retrieve the data stream for an XML source document. |
StructuredStore |
getLazyStore(String indexConfigPath,
String indexName,
String sourcePath,
Templates preFilter,
boolean removeDoctypeDecl)
Search for a StructuredStore containing the "lazy" or persistent representation of a given document. |
void |
setServlet(TextServlet servlet)
Attach this locator to a specific servlet, which can be used to provide, among other thigns, path mapping services. |
| Method Detail |
|---|
void setServlet(TextServlet servlet)
servlet - Servlet to attach to
StructuredStore getLazyStore(String indexConfigPath,
String indexName,
String sourcePath,
Templates preFilter,
boolean removeDoctypeDecl)
throws IOException
getInputSource(String, boolean) will be called as a fall-back.
sourcePath - Path to the source documentindexConfigPath - Path to the index configuration fileindexName - Name of the index being searchedpreFilter - Stylesheet to filter the document withremoveDoctypeDecl - Set to true to remove DOCTYPE declaration from
the XML document.
IOException
InputSource getInputSource(String sourcePath,
boolean removeDoctypeDecl)
throws IOException
sourcePath - Path to the source documentremoveDoctypeDecl - Set to true to remove DOCTYPE declaration from
the XML document.
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||