axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdani...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/handlers/soap SOAPService.java
Date Thu, 14 Jun 2001 21:00:16 GMT
gdaniels    01/06/14 14:00:15

  Modified:    java/src/org/apache/axis/handlers/soap SOAPService.java
  Log:
  First cut at admin/mgmt methods for services.
  
  Right now just type mappings and placeholders for start/stop.
  
  Revision  Changes    Path
  1.7       +45 -0     xml-axis/java/src/org/apache/axis/handlers/soap/SOAPService.java
  
  Index: SOAPService.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/handlers/soap/SOAPService.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- SOAPService.java	2001/06/14 13:00:11	1.6
  +++ SOAPService.java	2001/06/14 21:00:10	1.7
  @@ -57,6 +57,7 @@
   import org.apache.axis.*;
   import org.apache.axis.encoding.*;
   import org.apache.axis.utils.Debug;
  +import org.apache.axis.utils.QName;
   import org.apache.axis.transport.http.HTTPConstants;
   import org.apache.axis.registries.* ;
   
  @@ -143,5 +144,49 @@
       {
           Debug.Print( 1, "Enter: SOAPService::undo" );
           Debug.Print( 1, "Exit: SOAPService::undo" );
  +    }
  +
  +    /*********************************************************************
  +     * Administration and management APIs
  +     * 
  +     * These can get called by various admin adapters, such as JMX MBeans,
  +     * our own Admin client, web applications, etc...
  +     * 
  +     *********************************************************************
  +     */
  +    
  +    /** Placeholder for "enable this service" method
  +     */
  +    public void start()
  +    {
  +    }
  +    
  +    /** Placeholder for "disable this service" method
  +     */
  +    public void stop()
  +    {
  +    }
  +    
  +    /**
  +     * Register a new service type mapping
  +     */
  +    public void registerTypeMapping(QName qName,
  +                                    Class cls,
  +                                    DeserializerFactory deserFactory,
  +                                    Serializer serializer)
  +    {
  +        if (deserFactory != null)
  +            typeMap.addDeserializerFactory(qName, cls, deserFactory);
  +        if (serializer != null)
  +            typeMap.addSerializer(cls, qName, serializer);
  +    }
  +        
  +    /**
  +     * Unregister a service type mapping
  +     */
  +    public void unregisterTypeMapping(QName qName, Class cls)
  +    {
  +        typeMap.removeDeserializer(qName);
  +        typeMap.removeSerializer(cls);
       }
   }
  
  
  

Mime
View raw message