List of usage examples for org.eclipse.jgit.transport.http.apache TemporaryBufferEntity TemporaryBufferEntity
public TemporaryBufferEntity(TemporaryBuffer buffer)
From source file:jetbrains.buildServer.buildTriggers.vcs.git.SNIHttpClientConnection.java
License:Apache License
/** * Sets the buffer from which to take the request body * * @param buffer/* w w w . j a va 2 s . c om*/ */ public void setBuffer(TemporaryBuffer buffer) { this.entity = new TemporaryBufferEntity(buffer); }
From source file:jetbrains.buildServer.buildTriggers.vcs.git.SNIHttpClientConnection.java
License:Apache License
public void setFixedLengthStreamingMode(int contentLength) { if (entity != null) throw new IllegalArgumentException(); entity = new TemporaryBufferEntity(new LocalFile(null)); entity.setContentLength(contentLength); }
From source file:jetbrains.buildServer.buildTriggers.vcs.git.SNIHttpClientConnection.java
License:Apache License
public OutputStream getOutputStream() throws IOException { if (entity == null) entity = new TemporaryBufferEntity(new LocalFile(null)); return entity.getBuffer(); }
From source file:jetbrains.buildServer.buildTriggers.vcs.git.SNIHttpClientConnection.java
License:Apache License
public void setChunkedStreamingMode(int chunklen) { if (entity == null) entity = new TemporaryBufferEntity(new LocalFile(null)); entity.setChunked(true);/*from ww w . jav a 2 s. co m*/ }
From source file:org.jenkinsci.plugins.gitclient.jgit.PreemptiveAuthHttpClientConnection.java
License:Eclipse Distribution License
public void setBuffer(TemporaryBuffer buffer) { this.entity = new TemporaryBufferEntity(buffer); }
From source file:org.jenkinsci.plugins.gitclient.jgit.PreemptiveAuthHttpClientConnection.java
License:Eclipse Distribution License
public void setFixedLengthStreamingMode(int contentLength) { if (entity != null) throw new IllegalArgumentException(); entity = new TemporaryBufferEntity(new TemporaryBuffer.LocalFile(null)); entity.setContentLength(contentLength); }
From source file:org.jenkinsci.plugins.gitclient.jgit.PreemptiveAuthHttpClientConnection.java
License:Eclipse Distribution License
public OutputStream getOutputStream() throws IOException { if (entity == null) entity = new TemporaryBufferEntity(new TemporaryBuffer.LocalFile(null)); return entity.getBuffer(); }
From source file:org.jenkinsci.plugins.gitclient.jgit.PreemptiveAuthHttpClientConnection.java
License:Eclipse Distribution License
public void setChunkedStreamingMode(int chunklen) { if (entity == null) entity = new TemporaryBufferEntity(new TemporaryBuffer.LocalFile(null)); entity.setChunked(true);/*from ww w . j a va 2s . c o m*/ }