Package jetbrains.buildServer.http
Class ServerStreamProvider
- java.lang.Object
-
- jetbrains.buildServer.http.ServerStreamProvider
-
- All Implemented Interfaces:
Interruptable
public class ServerStreamProvider extends Object implements Interruptable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classServerStreamProvider.StreamWithHeaders
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.commons.httpclient.HttpMethodBasemyMethod
-
Constructor Summary
Constructors Constructor Description ServerStreamProvider(String uri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabort()voiddispose()InputStreamgetStream()InputStreamgetStream(String postData)ServerStreamProvider.StreamWithHeadersgetStreamWithHeaders()ServerStreamProvider.StreamWithHeadersgetStreamWithHeaders(String postData)voidinterrupt()voidsetConnectionTimeout(int connectionTimeout)Sets socket timeout in secondsvoidsetCredentials(String userId, String password)voidsetNodeIdHolder(NodeIdHolder nodeIdHolder)voidsetProxyCredentials(SimpleCredentials credentials)voidsetProxySettings(boolean useProxy, String proxyHost, int proxyPort)
-
-
-
Constructor Detail
-
ServerStreamProvider
public ServerStreamProvider(String uri)
-
-
Method Detail
-
setProxySettings
public void setProxySettings(boolean useProxy, String proxyHost, int proxyPort)
-
setProxyCredentials
public void setProxyCredentials(@NotNull SimpleCredentials credentials)
-
setConnectionTimeout
public void setConnectionTimeout(int connectionTimeout)
Sets socket timeout in seconds- Parameters:
connectionTimeout- timeout in seconds
-
setNodeIdHolder
public void setNodeIdHolder(@Nullable NodeIdHolder nodeIdHolder)
-
abort
public void abort()
-
dispose
public void dispose()
-
getStream
public InputStream getStream() throws IOException
- Throws:
IOException
-
getStream
public InputStream getStream(String postData) throws IOException
- Throws:
IOException
-
getStreamWithHeaders
public ServerStreamProvider.StreamWithHeaders getStreamWithHeaders() throws IOException
- Throws:
IOException
-
getStreamWithHeaders
public ServerStreamProvider.StreamWithHeaders getStreamWithHeaders(String postData) throws IOException
- Throws:
IOException
-
interrupt
public void interrupt()
- Specified by:
interruptin interfaceInterruptable
-
-