com.bea.p13n.common
Class StartBrowser

java.lang.Object
  extended by com.bea.p13n.common.StartBrowser
All Implemented Interfaces
Runnable

public class StartBrowser
extends Object
implements Runnable

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.


Constructor Summary
StartBrowser()
          Default constructor.
StartBrowser(String host, String port, String path)
          Constructs a StartBrowser with the specified host and port values.
 
Method Summary
 void run()
          Loops indefinitely trying to create a socket to host/port waits sleepTime in between each try.
 void setServices(T3ServicesDef services)
           
 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 inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StartBrowser

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

Parameters
host - hostname
port - listen port
path -

StartBrowser

public StartBrowser()
Default constructor.

Method Detail

setServices

public void setServices(T3ServicesDef services)

run

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.

Specified by:
run in interface Runnable

startup

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.

Throws
Exception


Copyright © 2006 BEA Systems, Inc. All Rights Reserved