Package com.github.sardine.impl.handler

Examples of com.github.sardine.impl.handler.VoidResponseHandler


    scopeType.setExclusive(new Exclusive());
    body.setLockscope(scopeType);
    Locktype lockType = new Locktype();
    lockType.setWrite(new Write());
    body.setLocktype(lockType);
    this.execute(entity, new VoidResponseHandler());
  }
View Full Code Here


      }
      Ace ace = davAce.toModel();
      body.getAce().add(ace);
    }
    entity.setEntity(new StringEntity(SardineUtil.toXml(body), UTF_8));
    this.execute(entity, new VoidResponseHandler());
  }
View Full Code Here

      get.addHeader(header);
    }
    // Must use #execute without handler, otherwise the entity is consumed
    // already after the handler exits.
    HttpResponse response = this.execute(get);
    VoidResponseHandler handler = new VoidResponseHandler();
    try
    {
      handler.handleResponse(response);
      // Will consume the entity when the stream is closed.
      return new ConsumingInputStream(response);
    }
    catch (IOException ex)
    {
View Full Code Here

   * @param entity  The entity to read from
   * @param headers Headers to add to request
   */
  public void put(String url, HttpEntity entity, List<Header> headers) throws IOException
  {
    this.put(url, entity, headers, new VoidResponseHandler());
  }
View Full Code Here

        }
  @Override
  public void delete(String url) throws IOException
  {
    HttpDelete delete = new HttpDelete(url);
    this.execute(delete, new VoidResponseHandler());
  }
View Full Code Here

  @Override
  public void move(String sourceUrl, String destinationUrl) throws IOException
  {
    HttpMove move = new HttpMove(sourceUrl, destinationUrl);
    this.execute(move, new VoidResponseHandler());
  }
View Full Code Here

  @Override
  public void copy(String sourceUrl, String destinationUrl) throws IOException
  {
    HttpCopy copy = new HttpCopy(sourceUrl, destinationUrl);
    this.execute(copy, new VoidResponseHandler());
  }
View Full Code Here

  @Override
  public void createDirectory(String url) throws IOException
  {
    HttpMkCol mkcol = new HttpMkCol(url);
    this.execute(mkcol, new VoidResponseHandler());
  }
View Full Code Here

TOP

Related Classes of com.github.sardine.impl.handler.VoidResponseHandler

Copyright © 2018 www.massapicom. 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.