axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/message RPCElement.java
Date Thu, 10 May 2001 22:19:36 GMT
dug         01/05/10 15:19:36

  Modified:    java/src/org/apache/axis MessageContext.java
               java/src/org/apache/axis/handlers JWSProcessor.java
                        MsgDispatchHandler.java RPCDispatchHandler.java
               java/src/org/apache/axis/handlers/soap SOAPService.java
               java/src/org/apache/axis/message RPCElement.java
  Log:
  Move serviceHandler outside the bag
  
  Revision  Changes    Path
  1.19      +14 -2     xml-axis/java/src/org/apache/axis/MessageContext.java
  
  Index: MessageContext.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/MessageContext.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- MessageContext.java	2001/05/05 23:44:43	1.18
  +++ MessageContext.java	2001/05/10 22:19:28	1.19
  @@ -197,14 +197,26 @@
         targetService = tServ ;
       }
   
  +    /** ServiceHandler is the handler that is the "service".  This handler
  +     * can (and probably will actually be a chain that contains the
  +     * service specific input/output/pivot point handlers
  +     */
  +    private Handler          serviceHandler ;
  +
  +    public Handler getServiceHandler() {
  +      return( serviceHandler );
  +    }
  +
  +    public void setServiceHandler(Handler h) {
  +      serviceHandler = h ;
  +    }
  +
       /** Contains an instance of Handler, which is the
        *  ServiceContext and the entrypoint of this service.
        *
        *  (if it has been so configured - will our deployment
        *   tool do this by default?  - todo by Jacek)
        */
  -    public static String SVC_HANDLER         = "service.handler";
  -
       public static String ENGINE_HANDLER      = "engine.handler";
   
       /** This String is the URL that the message came to
  
  
  
  1.8       +1 -1      xml-axis/java/src/org/apache/axis/handlers/JWSProcessor.java
  
  Index: JWSProcessor.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/handlers/JWSProcessor.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- JWSProcessor.java	2001/05/02 14:37:14	1.7
  +++ JWSProcessor.java	2001/05/10 22:19:29	1.8
  @@ -178,7 +178,7 @@
         /* that we invoke.                                                */
         /******************************************************************/
         Handler rpc = new RPCDispatchHandler();
  -      msgContext.setProperty( MessageContext.SVC_HANDLER, rpc );
  +      msgContext.setServiceHandler( rpc );
   
         rpc.addOption( "className", clsName );
   
  
  
  
  1.23      +1 -1      xml-axis/java/src/org/apache/axis/handlers/MsgDispatchHandler.java
  
  Index: MsgDispatchHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/handlers/MsgDispatchHandler.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- MsgDispatchHandler.java	2001/05/05 22:16:57	1.22
  +++ MsgDispatchHandler.java	2001/05/10 22:19:31	1.23
  @@ -86,7 +86,7 @@
       /* Find the service we're invoking so we can grab it's options */
       /***************************************************************/
       Handler service ;
  -    service = (Handler) msgContext.getProperty( MessageContext.SVC_HANDLER );
  +    service = msgContext.getServiceHandler();
   
       /* Now get the service (MSG) specific info  */
       /********************************************/
  
  
  
  1.36      +1 -1      xml-axis/java/src/org/apache/axis/handlers/RPCDispatchHandler.java
  
  Index: RPCDispatchHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/handlers/RPCDispatchHandler.java,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- RPCDispatchHandler.java	2001/05/10 16:52:15	1.35
  +++ RPCDispatchHandler.java	2001/05/10 22:19:31	1.36
  @@ -75,7 +75,7 @@
       /* Find the service we're invoking so we can grab it's options */
       /***************************************************************/
       Handler service ;
  -    service = (Handler) msgContext.getProperty( MessageContext.SVC_HANDLER );
  +    service = msgContext.getServiceHandler();
   
       /* Now get the service (RPC) specific info  */
       /********************************************/
  
  
  
  1.2       +1 -1      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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SOAPService.java	2001/05/01 15:42:34	1.1
  +++ SOAPService.java	2001/05/10 22:19:33	1.2
  @@ -90,7 +90,7 @@
       {
           Debug.Print( 1, "Enter: SOAPService::invoke" );
           
  -        msgContext.setProperty( MessageContext.SVC_HANDLER, this );
  +        msgContext.setServiceHandler( this );
           
           Handler h = getInputChain() ;
           if ( h != null ) {
  
  
  
  1.9       +1 -2      xml-axis/java/src/org/apache/axis/message/RPCElement.java
  
  Index: RPCElement.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/message/RPCElement.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- RPCElement.java	2001/05/10 16:25:13	1.8
  +++ RPCElement.java	2001/05/10 22:19:34	1.9
  @@ -143,8 +143,7 @@
        */
   
       public void setContext(MessageContext msgContext) {
  -        Handler service    =
  -            (Handler) msgContext.getProperty(MessageContext.SVC_HANDLER);
  +        Handler service    = msgContext.getServiceHandler();
           if (service == null) return;
   
           String  clsName    = (String) service.getOption( "className" );
  
  
  

Mime
View raw message