com.saucelabs.ci
Class SauceFactory

java.lang.Object
  extended by com.saucelabs.ci.SauceFactory

public class SauceFactory
extends Object

Author:
Ross Rowe

Constructor Summary
SauceFactory()
           
 
Method Summary
 byte[] doHTTPGet(String downloadUrl)
           
 String doREST(String urlText)
           
 String doREST(String urlText, String userName, String password)
          Invokes a Sauce REST API command
 void setupProxy(String proxyHost, String proxyPort, String userName, String password)
          Populates the http proxy system properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SauceFactory

public SauceFactory()
Method Detail

doREST

public String doREST(String urlText)
              throws IOException
Throws:
IOException

doREST

public String doREST(String urlText,
                     String userName,
                     String password)
              throws IOException
Invokes a Sauce REST API command

Parameters:
urlText -
userName -
password -
Returns:
results of REST command
Throws:
IOException

setupProxy

public void setupProxy(String proxyHost,
                       String proxyPort,
                       String userName,
                       String password)
Populates the http proxy system properties.

Parameters:
proxyHost -
proxyPort -
userName -
password -

doHTTPGet

public byte[] doHTTPGet(String downloadUrl)
                 throws IOException
Parameters:
downloadUrl -
Returns:
Throws:
IOException


Copyright © 2004-2011. All Rights Reserved.