|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exist.http.Descriptor
Webapplication Descriptor Class representation of an XQuery Web Application Descriptor file with some helper functions for performing Descriptor related actions
| Constructor Summary | |
Descriptor(java.lang.String file)
Descriptor Constructor |
|
Descriptor(java.lang.String file,
java.lang.String dbHome)
Descriptor Constructor |
|
| Method Summary | |
boolean |
allowSourceXQuery(java.lang.String path)
Determines whether it is permissible to show the source of an XQuery. |
protected void |
doLogRequestInReplayLog(HttpServletRequest request)
Log's Http Requests in a log file suitable for replaying to eXist later Takes a HttpServletRequest as an argument for logging. |
void |
error(org.xml.sax.SAXParseException exception)
|
void |
fatalError(org.xml.sax.SAXParseException exception)
|
java.lang.String |
mapPath(java.lang.String path)
Map's one XQuery or Collection path to another Takes a path such as that from RESTServer.doGet() as an argument, if it finds a matching map path then it returns the map view else it returns the passed in path |
void |
warning(org.xml.sax.SAXParseException exception)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Descriptor(java.lang.String file)
file - The descriptor file to read, defaults to descriptor.xml in the home folder
public Descriptor(java.lang.String file,
java.lang.String dbHome)
file - The descriptor file to read, defaults to descriptor.xml in the dbHome folderdbHome - The home folder to find the descriptor file in, defaults to $EXIST_HOME| Method Detail |
public boolean allowSourceXQuery(java.lang.String path)
path - The path of the XQuery (e.g. /db/MyCollection/query.xql)
public java.lang.String mapPath(java.lang.String path)
path - The path of the XQuery or Collection (e.g. /db/MyCollection/query.xql or /db/MyCollection) to map from
protected void doLogRequestInReplayLog(HttpServletRequest request)
request - The HttpServletRequest to log. For POST requests form data will only be logged if a HttpServletRequestWrapper is used instead of HttpServletRequest!
public void error(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
error in interface org.xml.sax.ErrorHandlerorg.xml.sax.SAXExceptionErrorHandler.error(org.xml.sax.SAXParseException)
public void fatalError(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
fatalError in interface org.xml.sax.ErrorHandlerorg.xml.sax.SAXExceptionErrorHandler.fatalError(org.xml.sax.SAXParseException)
public void warning(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
warning in interface org.xml.sax.ErrorHandlerorg.xml.sax.SAXExceptionErrorHandler.warning(org.xml.sax.SAXParseException)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||