Package com.googlecode.sardine.impl.handler

Examples of com.googlecode.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, headers.get(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

    {
      put.addHeader(HttpHeaders.CONTENT_TYPE, HTTP.DEF_CONTENT_CHARSET.name());
    }
    try
    {
      this.execute(put, new VoidResponseHandler());
    }
    catch (HttpResponseException e)
    {
      if (e.getStatusCode() == HttpStatus.SC_EXPECTATION_FAILED)
      {
        // Retry with the Expect header removed
        put.removeHeaders(HTTP.EXPECT_DIRECTIVE);
        if (entity.isRepeatable())
        {
          this.execute(put, new VoidResponseHandler());
          return;
        }
      }
      throw e;
    }
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.googlecode.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.