org.globus.wsrf.container
Class ServiceContainer

java.lang.Object
  extended byorg.globus.wsrf.container.ServiceContainer
All Implemented Interfaces:
Runnable

public class ServiceContainer
extends Object
implements Runnable

Http Server that can be used in embedded or standalone mode to host Axis services.


Field Summary
static int DEFAULT_PORT
           
protected  ServiceDispatcher dispatcher
           
static String MAIN_THREAD
           
static String PORT
           
protected  Map properties
           
static String SERVER_CONFIG
           
static String THREADS
           
protected  URL url
           
 
Constructor Summary
ServiceContainer(Map properties)
           
 
Method Summary
static ServiceContainer createContainer(boolean isMainThread)
           
static ServiceContainer createContainer(boolean isMainThread, int port)
           
static ServiceContainer createContainer(Map properties)
           
 AxisEngine getEngine()
           
 String getHost()
           
 int getPort()
           
 URL getURL()
           
 String getURLString()
           
 boolean isRunning()
           
static void main(String[] args)
           
 void run()
           
 void stop()
           
 void waitForInit()
           
 void waitForStop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PORT

public static final int DEFAULT_PORT
See Also:
Constant Field Values

PORT

public static final String PORT
See Also:
Constant Field Values

MAIN_THREAD

public static final String MAIN_THREAD
See Also:
Constant Field Values

THREADS

public static final String THREADS
See Also:
Constant Field Values

SERVER_CONFIG

public static final String SERVER_CONFIG
See Also:
Constant Field Values

url

protected URL url

dispatcher

protected ServiceDispatcher dispatcher

properties

protected Map properties
Constructor Detail

ServiceContainer

public ServiceContainer(Map properties)
                 throws IOException
Method Detail

createContainer

public static ServiceContainer createContainer(boolean isMainThread)
                                        throws IOException
Throws:
IOException

createContainer

public static ServiceContainer createContainer(boolean isMainThread,
                                               int port)
                                        throws IOException
Throws:
IOException

createContainer

public static ServiceContainer createContainer(Map properties)
                                        throws IOException
Throws:
IOException

stop

public void stop()
          throws IOException
Throws:
IOException

isRunning

public boolean isRunning()

getPort

public int getPort()

getHost

public String getHost()

getURLString

public String getURLString()

getURL

public URL getURL()

waitForInit

public void waitForInit()
                 throws InterruptedException
Throws:
InterruptedException

waitForStop

public void waitForStop()
                 throws InterruptedException
Throws:
InterruptedException

getEngine

public AxisEngine getEngine()
                     throws ConfigException
Throws:
ConfigException

run

public void run()
Specified by:
run in interface Runnable

main

public static void main(String[] args)


Copyright ? 1999-2003 University of Chicago and The University of Southern California. All rights reserved.