|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exist.http.RESTServer
| Field Summary | |
protected static java.util.Properties |
defaultProperties
|
protected static Logger |
LOG
|
protected static java.lang.String |
NS
|
protected static java.lang.String |
XUPDATE_NS
|
| Constructor Summary | |
RESTServer(java.lang.String formEncoding,
java.lang.String containerEncoding)
|
|
| Method Summary | |
protected void |
checkPragmas(XQueryContext context,
java.util.Properties properties)
Check if the XQuery contains pragmas that define serialization settings. |
void |
doDelete(DBBroker broker,
java.lang.String path,
HttpServletResponse response)
|
void |
doGet(DBBroker broker,
HttpServletRequest request,
HttpServletResponse response,
java.lang.String path)
Handle GET request. |
void |
doHead(DBBroker broker,
HttpServletRequest request,
HttpServletResponse response,
java.lang.String path)
|
void |
doPost(DBBroker broker,
HttpServletRequest request,
HttpServletResponse response,
java.lang.String path)
Handles POST requests. |
void |
doPut(DBBroker broker,
java.io.File tempFile,
java.lang.String docPath,
HttpServletRequest request,
HttpServletResponse response)
Handles PUT requests. |
protected java.lang.String |
printCollection(DBBroker broker,
Collection collection)
|
protected void |
printPermissions(org.xml.sax.helpers.AttributesImpl attrs,
Permission perm)
|
protected java.lang.String |
printResults(DBBroker broker,
Sequence results,
int howmany,
int start,
long queryTime,
java.util.Properties outputProperties,
boolean wrap)
|
protected java.lang.String |
search(DBBroker broker,
java.lang.String query,
java.lang.String path,
int howmany,
int start,
java.util.Properties outputProperties,
boolean wrap,
HttpServletRequest request,
HttpServletResponse response)
TODO: pass request and response objects to XQuery. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final java.lang.String NS
protected static final java.lang.String XUPDATE_NS
protected static final Logger LOG
protected static final java.util.Properties defaultProperties
| Constructor Detail |
public RESTServer(java.lang.String formEncoding,
java.lang.String containerEncoding)
| Method Detail |
public void doGet(DBBroker broker,
HttpServletRequest request,
HttpServletResponse response,
java.lang.String path)
throws BadRequestException,
PermissionDeniedException,
NotFoundException,
java.io.IOException
broker - path -
BadRequestException
PermissionDeniedException
NotFoundException
java.io.IOException
public void doHead(DBBroker broker,
HttpServletRequest request,
HttpServletResponse response,
java.lang.String path)
throws BadRequestException,
PermissionDeniedException,
NotFoundException,
java.io.IOException
BadRequestException
PermissionDeniedException
NotFoundException
java.io.IOException
public void doPost(DBBroker broker,
HttpServletRequest request,
HttpServletResponse response,
java.lang.String path)
throws BadRequestException,
PermissionDeniedException,
java.io.IOException
broker - request - response - path -
BadRequestException
PermissionDeniedException
java.io.IOException
public void doPut(DBBroker broker,
java.io.File tempFile,
java.lang.String docPath,
HttpServletRequest request,
HttpServletResponse response)
throws BadRequestException,
PermissionDeniedException,
java.io.IOException
broker - tempFile - docPath -
BadRequestException
PermissionDeniedException
java.io.IOException
public void doDelete(DBBroker broker,
java.lang.String path,
HttpServletResponse response)
throws PermissionDeniedException,
NotFoundException,
java.io.IOException
PermissionDeniedException
NotFoundException
java.io.IOException
protected java.lang.String search(DBBroker broker,
java.lang.String query,
java.lang.String path,
int howmany,
int start,
java.util.Properties outputProperties,
boolean wrap,
HttpServletRequest request,
HttpServletResponse response)
throws BadRequestException,
PermissionDeniedException,
XPathException
XPathException
BadRequestException
PermissionDeniedException
protected void checkPragmas(XQueryContext context,
java.util.Properties properties)
throws XPathException
context -
XPathException
protected java.lang.String printCollection(DBBroker broker,
Collection collection)
protected void printPermissions(org.xml.sax.helpers.AttributesImpl attrs,
Permission perm)
protected java.lang.String printResults(DBBroker broker,
Sequence results,
int howmany,
int start,
long queryTime,
java.util.Properties outputProperties,
boolean wrap)
throws BadRequestException
BadRequestException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||