You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by ha...@apache.org on 2002/09/01 22:31:09 UTC

cvs commit: jakarta-avalon-cornerstone/src/java/org/apache/avalon/cornerstone/services/soapification SOAPificationException.java

hammant     2002/09/01 13:31:09

  Modified:    src/java/org/apache/avalon/cornerstone/blocks/soapification/glue
                        Glue.java
               src/java/org/apache/avalon/cornerstone/services/soapification
                        SOAPificationException.java
  Log:
  Glue upgrade
  
  Revision  Changes    Path
  1.15      +21 -8     jakarta-avalon-cornerstone/src/java/org/apache/avalon/cornerstone/blocks/soapification/glue/Glue.java
  
  Index: Glue.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-cornerstone/src/java/org/apache/avalon/cornerstone/blocks/soapification/glue/Glue.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- Glue.java	18 May 2002 13:30:09 -0000	1.14
  +++ Glue.java	1 Sep 2002 20:31:09 -0000	1.15
  @@ -7,20 +7,18 @@
    */
   package org.apache.avalon.cornerstone.blocks.soapification.glue;
   
  -import electric.net.http.WebServer;
   import electric.registry.Registry;
   import electric.registry.RegistryException;
   import electric.server.http.HTTP;
   import java.io.IOException;
   import org.apache.avalon.cornerstone.services.soapification.SOAPification;
   import org.apache.avalon.cornerstone.services.soapification.SOAPificationException;
  -import org.apache.avalon.framework.activity.Disposable;
  -import org.apache.avalon.framework.activity.Initializable;
   import org.apache.avalon.framework.activity.Startable;
   import org.apache.avalon.framework.configuration.Configurable;
   import org.apache.avalon.framework.configuration.Configuration;
   import org.apache.avalon.framework.configuration.ConfigurationException;
   import org.apache.avalon.framework.logger.AbstractLogEnabled;
  +import org.apache.avalon.framework.CascadingRuntimeException;
   
   /**
    * Default implementation of SOAPification service.
  @@ -50,7 +48,7 @@
       protected Configuration mConfiguration;
       protected int mPort;
       protected String mBindingAddress;
  -    protected WebServer mWebServer;
  +    protected electric.webserver.WebServer mWebServer;
       protected String mBaseName;
   
       public void configure( final Configuration configuration )
  @@ -62,18 +60,27 @@
           mBaseName = configuration.getChild( "base-name" ).getValue( "soap" );
       }
   
  -    public void start() throws IOException
  +    /**
  +     * Start as per
  +     */
  +    public void start()
       {
           String svr = "http://" + mBindingAddress + ":" + mPort + "/" + mBaseName;
           //mWebServer = WebServer.startWebServer( svr );
           //mWebServer.startup();
  -        HTTP.startup( svr );
  +        try
  +        {
  +            HTTP.startup( svr );
  +        }
  +        catch (IOException e)
  +        {
  +            throw new CascadingRuntimeException("HTTP server for Glue cannot start", e);
  +        }
           getLogger().info( "WebServer started as " + svr );
       }
   
  -    public void stop() throws IOException
  +    public void stop()
       {
  -        //mWebServer.shutdown();
           HTTP.shutdown();
       }
   
  @@ -118,6 +125,12 @@
           publish( obj, publicationName, new Class[]{interfaceToExpose} );
       }
   
  +    /**
  +     *
  +     *
  +     * @param publicationName
  +     * @throws SOAPificationException
  +     */
       public void unpublish( String publicationName ) throws SOAPificationException
       {
           try
  
  
  
  1.5       +9 -0      jakarta-avalon-cornerstone/src/java/org/apache/avalon/cornerstone/services/soapification/SOAPificationException.java
  
  Index: SOAPificationException.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-cornerstone/src/java/org/apache/avalon/cornerstone/services/soapification/SOAPificationException.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- SOAPificationException.java	16 Mar 2002 00:18:36 -0000	1.4
  +++ SOAPificationException.java	1 Sep 2002 20:31:09 -0000	1.5
  @@ -18,11 +18,20 @@
       private Throwable mContained;
       private String mReason;
   
  +    /**
  +     * Create a Soapification exception
  +     * @param reason the reason
  +     */
       public SOAPificationException( String reason )
       {
           this( reason, null );
       }
   
  +    /**
  +     * Create a soapification exception
  +     * @param reason the reason
  +     * @param contained the causing exception
  +     */
       public SOAPificationException( String reason, Throwable contained )
       {
           mContained = contained;
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>