jetbrains.buildServer.http
Class ServerStreamProvider

java.lang.Object
  extended by jetbrains.buildServer.http.ServerStreamProvider
All Implemented Interfaces:
Interruptable

public class ServerStreamProvider
extends java.lang.Object
implements Interruptable


Field Summary
protected  org.apache.commons.httpclient.methods.GetMethod myGet
           
 
Constructor Summary
ServerStreamProvider(java.lang.String uri)
           
 
Method Summary
 void abort()
           
 void dispose()
           
 java.io.InputStream getStream()
           
 void interrupt()
           
 void setConnectionTimeout(int connectionTimeout)
          Sets socket timeout in seconds
 void setCredentials(java.lang.String userId, java.lang.String password)
           
 void setProxySettings(boolean useProxy, java.lang.String proxyHost, int proxyPort)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myGet

protected org.apache.commons.httpclient.methods.GetMethod myGet
Constructor Detail

ServerStreamProvider

public ServerStreamProvider(java.lang.String uri)
Method Detail

setCredentials

public void setCredentials(java.lang.String userId,
                           java.lang.String password)

setProxySettings

public void setProxySettings(boolean useProxy,
                             java.lang.String proxyHost,
                             int proxyPort)

setConnectionTimeout

public void setConnectionTimeout(int connectionTimeout)
Sets socket timeout in seconds

Parameters:
connectionTimeout - timeout in seconds

abort

public void abort()

dispose

public void dispose()

getStream

public java.io.InputStream getStream()
                              throws java.io.IOException
Throws:
java.io.IOException

interrupt

public void interrupt()
Specified by:
interrupt in interface Interruptable