HPSearch

cgl.hpsearch.common.endpoint
Class SOAPServiceHTTPServer

java.lang.Object
  extended bycgl.hpsearch.common.endpoint.SOAPServiceHTTPServer
All Implemented Interfaces:
Runnable

public class SOAPServiceHTTPServer
extends Object
implements Runnable

Implements the functionality of org.apache.axis.transport.http.SimpleAxisServer. This HTTPServer implementation allows us to dynamically deploy services and thus provide a SOAP endpoint in the application. [ Same JVM ]
Refer Apache AXIS
Ideas borrowed from org.apache.axis.transport.http.SimpleAxisServer.java
Created on Sep 28, 2004

Author:
Harshawardhan Gadgil (hgadgil@grids.ucs.indiana.edu)

Nested Class Summary
 class SOAPServiceHTTPServer.SOAPServiceHTTPServerWorker
          Processes each request to the server and returns the result Created on Sep 29, 2004
 
Constructor Summary
SOAPServiceHTTPServer(int p)
          Create a new Soap Service server.
 
Method Summary
 void addDeploymentDescriptor(String serviceName, String pathToDeploymentDescriptor)
           
 void addService(String service, String className)
          Adds a new Service to be deployed
 ArrayList getDeployedServices()
          Gets a list of deployed services
 int getPort()
          The port on which this server runs
 String getServerAddress()
           
 ArrayList getServiceOperations(String serviceName)
          Returns a list of operations supported by the deployed service
 void run()
          Starts the HTTPServer at the specified port.
 void stopServer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SOAPServiceHTTPServer

public SOAPServiceHTTPServer(int p)
Create a new Soap Service server. This implementsa quick frontend to a java class using Apache AXIS.

Parameters:
p - Specifies the port for the service. If 0 then the first unused port is used. You may query which port was used using getPort() function
Method Detail

addService

public void addService(String service,
                       String className)
Adds a new Service to be deployed

Parameters:
service - - Name of the service
className - - The JAVA object which implements the functionality. By default all public functions of this class would be allowed methods of the service.

addDeploymentDescriptor

public void addDeploymentDescriptor(String serviceName,
                                    String pathToDeploymentDescriptor)

getPort

public int getPort()
The port on which this server runs

Returns:
The port number

getServerAddress

public String getServerAddress()

getDeployedServices

public ArrayList getDeployedServices()
Gets a list of deployed services

Returns:
ArrayList containing the names of deployed services

stopServer

public void stopServer()

getServiceOperations

public ArrayList getServiceOperations(String serviceName)
Returns a list of operations supported by the deployed service

Parameters:
serviceName - - The name of the service
Returns:
An ArrayList containing the names of the services

run

public void run()
Starts the HTTPServer at the specified port.

Specified by:
run in interface Runnable

HPSearch

For comments and suggestions please send e-mail to Harshawardhan Gadgil
Last updated: June 9 2006