Examples of DAVBody


Examples of org.w3c.www.webdav.xml.DAVBody

     */
    public Reply propfind(DAVRequest request)
  throws ProtocolException, ResourceException
    {
  int depth = request.getDepth();
  DAVBody        body     = getBody(request);
  Document       document =
      DAVBody.createDocument(DAVNode.MULTISTATUS_NODE);
  DAVMultiStatus dms      =
      DAVFactory.createMultiStatus(document.getDocumentElement());
  DAVPropFind propfind    = null;
  DAVResponse dr          = null;
  if (body != null) {
      propfind = body.getPropFind();
  }
  switch (depth)
      {
      case 0:
    dr = getResponse(request, propfind,  document);
View Full Code Here

Examples of org.w3c.www.webdav.xml.DAVBody

    public Reply proppatch(DAVRequest request)
  throws ProtocolException, ResourceException
    {
  // prepare undo
  Object oldvalues[] = this.values;
  DAVBody        body     = getBody(request);
  Document       document =
      DAVBody.createDocument(DAVNode.MULTISTATUS_NODE);
  DAVResponse dr =
      DAVFactory.createResponse(getURL(request).getFile(),
                                                    //toExternalForm(),
              document);
  // attach the response to the document
  document.getDocumentElement().appendChild(dr.getNode());

  if (body != null) {
      DAVPropertyUpdate dpu = body.getPropertyUpdate();
      if (dpu != null) {
    DAVPropAction dpas[] = dpu.getActions();
    DAVPropStat   dps    = null;
    int len = dpas.length;
    try {
View Full Code Here

Examples of org.w3c.www.webdav.xml.DAVBody

    protected Reply copyCollection(URL destination,
           DAVRequest request,
           boolean overwrite)
  throws ProtocolException, ResourceException
    {
  DAVBody  body     = getBody(request);
  Document document = DAVBody.createDocument(DAVNode.MULTISTATUS_NODE);
  Reply    reply    = null;
  try {
      return copyCollection(destination,
          request,
View Full Code Here

Examples of org.w3c.www.webdav.xml.DAVBody

    private Reply internalCopyCollection(URL destination,
             DAVRequest request,
             boolean overwrite)
  throws ProtocolException, ResourceException
    {
  DAVBody  body     = getBody(request);
  Document document = DAVBody.createDocument(DAVNode.MULTISTATUS_NODE);
  Reply    reply    = null;
  try {
      return internalCopyCollection(destination,
            request,
View Full Code Here

Examples of org.w3c.www.webdav.xml.DAVBody

     * @exception ResourceException If the resource got a fatal error.
     */
    public synchronized Reply lock(DAVRequest request)
  throws ProtocolException, ResourceException
    {
  DAVBody body = getBody(request);
  if (body == null) { // refresh?
      if (debug) {
    System.out.println(">>> Refreshing lock...");
      }
      refreshLock(request.getTimeout());
      Document doc = DAVBody.createDocument(DAVNode.PROP_NODE);
      addLockDiscovery(request, doc.getDocumentElement());
      Reply ok = createDAVReply(request, HTTP.OK, doc);
      return ok;
  } else { // real new lock
      String      timeouts[] = request.getTimeout();
      DAVLockInfo lockinfo   = body.getLockInfo();
      if (lockinfo != null) {
    Node owner = lockinfo.getOwner();
    lock(getNewLockToken(),
         request.getDepth(),
         request.getTimeout(),
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.