Here's my diff:
Index: xml-soap/java/src/org/apache/soap/server/http/ServerHTTPUtils.java
===================================================================
RCS file:
/home/cvspublic/xml-soap/java/src/org/apache/soap/server/http/ServerHTTPUtil
s.java,v
retrieving revision 1.22
diff -r1.22 ServerHTTPUtils.java
76a77
> import org.apache.soap.providers.Configurable;
280a282,288
>               // now to check if the object implements the Configurable
interface
>               // (this also implies the object is non-static)
>               if (targetObject instanceof Configurable)
>                 {
>                   Configurable
configurableTarget=(Configurable)targetObject;
>                   configurableTarget.configure(
getContextInitParams(context) );
>                 }
359a368,387
>   /**
>    * Loop through the web-app's initialization parameters
>    * and add them to a Properties object which is then returned.
>    */
> public static Properties getContextInitParams(ServletContext context)
>   {
>     Properties props=new Properties();
>     Enumeration names=context.getInitParameterNames();
>     if (names==null)
>       return props;
>     String key,value;
>     while(names.hasMoreElements())
>       {
>         key=(String)names.nextElement();
>         value=context.getInitParameter(key);
>         props.setProperty(key,value);
>       }
>     return props;
>   }
>

And here's the Configurable interface:

package org.apache.soap.providers;
import java.util.Properties;

public interface Configurable
{
public void configure(Properties props);
}




----- Original Message -----
From: "Michael Jennings" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 29, 2002 10:04 AM
Subject: TODO list item


> Hi,
>
> I noticed on the TODO list the following item:
>
> "
> General Wish List:
> ==================
> - Add an interface such that if the service class implements that
interface
> the SOAP engine will call a method (ie. setContext() ) with context
> information. Similar to the SOAPContext 'bag' thing we have but pass
> it to the service not just the provider.
> "
>
> Has this been done yet? If not, I'd like to take a shot at it.
> -Mike
>
>
> ______________________
>  Mike Jennings
>  Southgate  Software Ltd.
>  250-382-6851 (tel)
>  250-382-6800 (fax)
>  [EMAIL PROTECTED]
>
>

Reply via email to