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 Constants.java
Date Fri, 01 Feb 2002 05:21:21 GMT
gdaniels    02/01/31 21:21:21

  Modified:    java/src/org/apache/axis/server server-config.wsdd
               java/src/org/apache/axis/handlers JWSHandler.java
               java/src/org/apache/axis Constants.java
  Log:
  Having the JWSProcessor be a deployed service doesn't really make
  sense.  In the interest of keeping things well-defined, remove the
  JWSProcessor <service> from the default WSDD file.  The JWSHandler
  does exactly what it did, except instead of doing another lookup on
  a constant name, it simply inserts a (stateless) JWSProcessor as the
  service handler directly into the MessageContext.
  
  Also remove now unused constant.
  
  Revision  Changes    Path
  1.10      +0 -3      xml-axis/java/src/org/apache/axis/server/server-config.wsdd
  
  Index: server-config.wsdd
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/server/server-config.wsdd,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- server-config.wsdd	28 Jan 2002 18:23:02 -0000	1.9
  +++ server-config.wsdd	1 Feb 2002 05:21:20 -0000	1.10
  @@ -26,9 +26,6 @@
     <parameter name="enableRemoteAdmin" value="false"/>
     <parameter name="className" value="org.apache.axis.utils.Admin"/>
    </service>
  - <service name="JWSProcessor" provider="Handler">
  -  <parameter name="handlerClass" value="org.apache.axis.handlers.JWSProcessor"/>
  - </service>
   
    <transport name="http">
     <requestFlow>
  
  
  
  1.12      +5 -1      xml-axis/java/src/org/apache/axis/handlers/JWSHandler.java
  
  Index: JWSHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/handlers/JWSHandler.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- JWSHandler.java	10 Jan 2002 20:00:59 -0000	1.11
  +++ JWSHandler.java	1 Feb 2002 05:21:21 -0000	1.12
  @@ -72,6 +72,10 @@
       static Category category =
               Category.getInstance(JWSHandler.class.getName());
   
  +    // Keep the processor Handler around so we can make it the service
  +    // Handler for this request if appropriate.
  +    static JWSProcessor processor = new JWSProcessor();
  +
       public void invoke(MessageContext msgContext) throws AxisFault
       {
           if (category.isDebugEnabled()) {
  @@ -83,7 +87,7 @@
           String realpath = msgContext.getStrProp(Constants.MC_REALPATH);
   
           if ((realpath!=null) && (realpath.endsWith(".jws"))) {
  -            msgContext.setTargetService(Constants.JWSPROCESSOR_TARGET) ;
  +            msgContext.setServiceHandler(processor);
           }
   
           if (category.isDebugEnabled()) {
  
  
  
  1.49      +0 -2      xml-axis/java/src/org/apache/axis/Constants.java
  
  Index: Constants.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/Constants.java,v
  retrieving revision 1.48
  retrieving revision 1.49
  diff -u -r1.48 -r1.49
  --- Constants.java	30 Jan 2002 03:34:09 -0000	1.48
  +++ Constants.java	1 Feb 2002 05:21:21 -0000	1.49
  @@ -419,8 +419,6 @@
       // MessageContext param for the IP of the calling client
       public static final String MC_REMOTE_ADDR = "remoteaddr";
   
  -    public static final String JWSPROCESSOR_TARGET = "JWSProcessor" ;
  -
       public static final String SERVER_CONFIG_FILE = "server-config.wsdd";
       public static final String CLIENT_CONFIG_FILE = "client-config.wsdd";
   }
  
  
  

Mime
View raw message