org.globus.wsrf.container
Class ServiceContainer
java.lang.Object
org.globus.wsrf.container.ServiceContainer
- Direct Known Subclasses:
- GSIServiceContainer
- public class ServiceContainer
- extends java.lang.Object
Http Server that can be used in embedded or standalone mode to host
Axis services.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
i18n
static org.globus.util.I18n i18n
HARD_SHUTDOWN
public static final java.lang.String HARD_SHUTDOWN
- See Also:
- Constant Field Values
DEFAULT_PORT
public static final int DEFAULT_PORT
- See Also:
- Constant Field Values
DEFAULT_SECURE_PORT
public static final int DEFAULT_SECURE_PORT
- See Also:
- Constant Field Values
PORT
public static final java.lang.String PORT
- See Also:
- Constant Field Values
CLASS
public static final java.lang.String CLASS
- See Also:
- Constant Field Values
MAIN_THREAD
public static final java.lang.String MAIN_THREAD
- See Also:
- Constant Field Values
THREADS
public static final java.lang.String THREADS
- See Also:
- Constant Field Values
SERVER_CONFIG
public static final java.lang.String SERVER_CONFIG
- See Also:
- Constant Field Values
CONTAINER_DESCRIPTOR
public static final java.lang.String CONTAINER_DESCRIPTOR
- See Also:
- Constant Field Values
url
protected java.net.URL url
dispatcher
protected ServiceDispatcher dispatcher
properties
protected java.util.Map properties
references
private int references
containers
protected static java.util.Hashtable containers
logger
private static org.apache.commons.logging.Log logger
ServiceContainer
protected ServiceContainer()
ServiceContainer
public ServiceContainer(java.util.Map properties)
throws ContainerException
createContainer
public static ServiceContainer createContainer(boolean isMainThread)
throws ContainerException
- Throws:
ContainerException
createContainer
public static ServiceContainer createContainer(boolean isMainThread,
int port)
throws ContainerException
- Throws:
ContainerException
createContainer
public static ServiceContainer createContainer(java.util.Map properties)
throws ContainerException
- Throws:
ContainerException
createServiceDispatcher
protected ServiceDispatcher createServiceDispatcher()
throws java.lang.Exception
- Throws:
java.lang.Exception
getProtocol
public java.lang.String getProtocol()
start
protected void start(boolean isMainThread,
int port,
int threads)
throws java.lang.Exception
- Throws:
java.lang.Exception
increaseReferences
protected boolean increaseReferences()
stop
public void stop()
throws ContainerException
- Throws:
ContainerException
close
protected void close()
throws java.io.IOException
- Throws:
java.io.IOException
isRunning
public boolean isRunning()
getPort
public int getPort()
getHost
public java.lang.String getHost()
getURLString
public java.lang.String getURLString()
getURL
public java.net.URL getURL()
waitForInit
public void waitForInit()
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
waitForStop
public void waitForStop()
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
getEngine
public org.apache.axis.AxisEngine getEngine()
main
public static void main(java.lang.String[] args)
startSecurityContainer
public static ServiceContainer startSecurityContainer(java.util.Map properties)
throws ContainerException
- Throws:
ContainerException
exit
private static void exit(java.lang.String msg)
listServices
private static void listServices(ServiceContainer container,
boolean secure,
boolean debug)