com.saucelabs.rest
Class SauceTunnelFactory

java.lang.Object
  extended by com.saucelabs.rest.SauceTunnelFactory

public class SauceTunnelFactory
extends java.lang.Object

Secure tunnels to Sauce OnDemand.

Author:
Kohsuke Kawaguchi

Constructor Summary
SauceTunnelFactory()
          Uses the default credential file to connect to sauce tunnels.
SauceTunnelFactory(Credential credential)
          Uses the specified credential to connect to sauce tunnels.
 
Method Summary
 SauceTunnel create(java.util.Collection<java.lang.String> domains)
           
 SauceTunnel create(java.lang.String... domains)
           
 java.util.List<SauceTunnel> list()
          Lists up existing tunnels.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SauceTunnelFactory

public SauceTunnelFactory(Credential credential)
Uses the specified credential to connect to sauce tunnels.


SauceTunnelFactory

public SauceTunnelFactory()
                   throws java.io.IOException
Uses the default credential file to connect to sauce tunnels.

Throws:
java.io.IOException
Method Detail

create

public SauceTunnel create(java.lang.String... domains)
                   throws java.io.IOException
Throws:
java.io.IOException

create

public SauceTunnel create(java.util.Collection<java.lang.String> domains)
                   throws java.io.IOException
Throws:
java.io.IOException

list

public java.util.List<SauceTunnel> list()
                                 throws java.io.IOException
Lists up existing tunnels.

Returns:
Can be empty but never null.
Throws:
java.io.IOException


Copyright © 2010. All Rights Reserved.