uk.ac.ebi.intact.application.hierarchView.business.tulip
Class WebServiceManager

java.lang.Object
  |
  +--uk.ac.ebi.intact.application.hierarchView.business.tulip.WebServiceManager
All Implemented Interfaces:
java.util.EventListener, javax.servlet.ServletContextListener

public class WebServiceManager
extends java.lang.Object
implements javax.servlet.ServletContextListener

Allows to deploy and undeploy the web service.

Author:
Samuel Kerrien (skerrien@ebi.ac.uk)

Constructor Summary
WebServiceManager()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent event)
           
 void contextInitialized(javax.servlet.ServletContextEvent event)
           
 void deploy()
          deploy the web service according to collected data (ie deployment file name).
 java.lang.String getDeploymentFile()
           
 java.lang.String getUndeploymentFile()
           
 void init()
          Initialize the web service manager by reading the properties file and setting needed files names.
 boolean isInitialized()
          Tells is the Manager is properly initialized.
 boolean isRunning()
          Tells is the web service is running.
 void processWsddFile(java.lang.String wsddFile)
          process the WSDD file given in parameter.
 void setDeploymentFile(java.lang.String deploymentFile)
           
 void setUndeploymentFile(java.lang.String undeploymentFile)
           
 void undeploy()
          Undeploy the web service according to collected data (ie undeployment file name).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebServiceManager

public WebServiceManager()
Method Detail

getDeploymentFile

public java.lang.String getDeploymentFile()

setDeploymentFile

public void setDeploymentFile(java.lang.String deploymentFile)

getUndeploymentFile

public java.lang.String getUndeploymentFile()

setUndeploymentFile

public void setUndeploymentFile(java.lang.String undeploymentFile)

isInitialized

public boolean isInitialized()
Tells is the Manager is properly initialized.

Returns:
true is the manager is initialized, false in the other way round.

init

public void init()
          throws java.lang.Exception
Initialize the web service manager by reading the properties file and setting needed files names.

Throws:
java.lang.Exception

isRunning

public boolean isRunning()
Tells is the web service is running.

Returns:
true is the web service is running, or false in the other way round.

undeploy

public void undeploy()
              throws java.lang.Exception
Undeploy the web service according to collected data (ie undeployment file name).

java.lang.Exception

deploy

public void deploy()
            throws java.lang.Exception
deploy the web service according to collected data (ie deployment file name).

java.lang.Exception

processWsddFile

public void processWsddFile(java.lang.String wsddFile)
                     throws java.lang.Exception
process the WSDD file given in parameter.

Parameters:
wsddFile - can be a deployment or undeployment file
Throws:
java.lang.Exception

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent event)
Specified by:
contextInitialized in interface javax.servlet.ServletContextListener

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent event)
Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener


IntAct Project - EMBL-EBI 2004 - intact-help@ebi.ac.uk