# com.bea.p13n.common
StartBrowser Class

public class StartBrowser
extends `Object`
implements `Runnable`, `T3StartupDef`

This startup class displays a message in the server shell informing the user which URL can be used to access the Portal samples. On Windows, a browser will be automatically launched to the appropriate URL.

Hierarchy
  `Object`
  `StartBrowser`

All Implemented Interfaces
  `Runnable`, `T3StartupDef`

## Constructor Summary

StartBrowser() Default constructor.
StartBrowser(`String` host, `String` port, `String` path) Constructs a StartBrowser with the specified host and port values.

## Method Summary

`public void` | `run`() Loops indefinitely trying to create a socket to host/port waits sleepTime in between each try.
`public void` | `setServices`(`T3ServicesDef` services)
`public `String`` | `startup`(`String` name, `Hashtable` args) Print message in the server shell informing the user which URL can be used to launch the browser.

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods from interface `java.lang.`Runnable``
`run`

Methods from interface `weblogic.common.`T3StartupDef``
`setServices, startup`

## Constructor Detail

### StartBrowser

    public StartBrowser()

  Default constructor.

### StartBrowser

    public StartBrowser(String host,
                        String port,
                        String path)

  Constructs a StartBrowser with the specified host and port values.

## Method Detail

### run() Method

    public void run()

Loops indefinitely trying to create a socket to host/port waits sleepTime in between each try. On a successful socket create, start browser.

### setServices(T3ServicesDef) Method

    public void setServices(T3ServicesDef services)

### startup(String, Hashtable) Method

    public String startup(String name,
                          Hashtable args)
         throws Exception

Print message in the server shell informing the user which URL can be used to launch the browser. On Windows, start a new thread to launch the browser.

#### Exceptions

``Exception``