[xgws-dev] CVS Update: codes/xsul/java/modules/xwsif_runtime_async_http/xsul/xwsif_runtime_async_http

Aleksander Andrzej Slominski xgws-dev_at_extreme.indiana.edu
Fri Mar 9 16:21:01 2007


aslom       07/03/09 16:20:29

  Modified:    xsul/java/modules/xhandler_secure/xsul/xhandler/server
                        ServerFastDSigHandler.java
               xsul/java/modules/xwsif_runtime_async/xsul/xwsif_runtime_async
                        WSIFAsyncResponseListener.java
               xsul/java/modules/xwsif_runtime_async_http/xsul/xwsif_runtime_async_http
                        XsulSoapHttpWsaResponsesCorrelator.java
  Log:
  only typos anits equivalence class
  
  Revision  Changes    Path
  1.4       +7 -7      codes/xsul/java/modules/xhandler_secure/xsul/xhandler/server/ServerFastDSigHandler.java
  
  Index: ServerFastDSigHandler.java
  ===================================================================
  RCS file: /l/extreme/cvs/codes/xsul/java/modules/xhandler_secure/xsul/xhandler/server/ServerFastDSigHandler.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -t -w -r1.3 -r1.4
  --- ServerFastDSigHandler.java	24 Jun 2005 03:55:53 -0000	1.3
  +++ ServerFastDSigHandler.java	9 Mar 2007 21:20:29 -0000	1.4
  @@ -2,7 +2,7 @@
    * ServerFastDSigHandler.java
    *
    * @author Liang Fang (lifang_at_cs.indiana.edu)
  - * $Id: ServerFastDSigHandler.java,v 1.3 2005/06/24 03:55:53 lifang Exp $
  + * $Id: ServerFastDSigHandler.java,v 1.4 2007/03/09 21:20:29 aslom Exp $
    */
   
   package xsul.xhandler.server;
  @@ -52,7 +52,7 @@
                   String uri =
                       featureEl2.getAttributeValue(null, WsdlUtil.URI_ATTR);
                   if(MCtxConstants.FEATURE_FASTDSIG.equals(uri)) {
  -                    logger.config("fast signaure attr existed");
  +                    logger.config("fast signature attr existed");
                       return;
                   }
               }
  
  
  
  1.3       +5 -5      codes/xsul/java/modules/xwsif_runtime_async/xsul/xwsif_runtime_async/WSIFAsyncResponseListener.java
  
  Index: WSIFAsyncResponseListener.java
  ===================================================================
  RCS file: /l/extreme/cvs/codes/xsul/java/modules/xwsif_runtime_async/xsul/xwsif_runtime_async/WSIFAsyncResponseListener.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -t -w -r1.2 -r1.3
  --- WSIFAsyncResponseListener.java	20 Nov 2006 03:25:01 -0000	1.2
  +++ WSIFAsyncResponseListener.java	9 Mar 2007 21:20:29 -0000	1.3
  @@ -4,18 +4,18 @@
    *
    * This software is open source. See the bottom of this file for the license.
    *
  - * $Id: WSIFAsyncResponseListener.java,v 1.2 2006/11/20 03:25:01 aslom Exp $
  + * $Id: WSIFAsyncResponseListener.java,v 1.3 2007/03/09 21:20:29 aslom Exp $
    */
   package xsul.xwsif_runtime_async;
   
   import org.xmlpull.v1.builder.XmlDocument;
   
   /**
  - * This object is used to receive asyncronous response message.
  + * This object is used to receive asynchronous response message.
    */
   public interface WSIFAsyncResponseListener {
       /**
  -     *  It is expected that callback is *very* fast and only notfies waiting threads
  +     *  It is expected that callback is *very* fast and only notifies waiting threads
        *  If callback needs to do something longer it should do it in new thread.
        * <br />NOTE: This is <b>critical</b> that callback do not block caller thread!!!!
        */
  
  
  
  1.5       +5 -30     codes/xsul/java/modules/xwsif_runtime_async_http/xsul/xwsif_runtime_async_http/XsulSoapHttpWsaResponsesCorrelator.java
  
  Index: XsulSoapHttpWsaResponsesCorrelator.java
  ===================================================================
  RCS file: /l/extreme/cvs/codes/xsul/java/modules/xwsif_runtime_async_http/xsul/xwsif_runtime_async_http/XsulSoapHttpWsaResponsesCorrelator.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -t -w -r1.4 -r1.5
  --- XsulSoapHttpWsaResponsesCorrelator.java	2 Feb 2007 03:52:38 -0000	1.4
  +++ XsulSoapHttpWsaResponsesCorrelator.java	9 Mar 2007 21:20:29 -0000	1.5
  @@ -4,7 +4,7 @@
    *
    * This software is open source. See the bottom of this file for the license.
    *
  - * $Id: XsulSoapHttpWsaResponsesCorrelator.java,v 1.4 2007/02/02 03:52:38 sshirasu Exp $
  + * $Id: XsulSoapHttpWsaResponsesCorrelator.java,v 1.5 2007/03/09 21:20:29 aslom Exp $
    */
   
   package xsul.xwsif_runtime_async_http;
  @@ -43,7 +43,7 @@
    * This is correlator that runs internally embedded webserver that will
    * receive asynchronous SOAP responses correlated by WS-Addressing messageId.
    *
  - * @version $Revision: 1.4 $
  + * @version $Revision: 1.5 $
    * @author <a href="http://www.extreme.indiana.edu/~aslom/">Aleksander Slominski</a>
    */
   public class XsulSoapHttpWsaResponsesCorrelator extends WSIFAsyncWsaResponsesCorrelatorBase
  @@ -57,7 +57,7 @@
       private HttpMiniServlet servlet;
       private int serverPort;
   
  -    private Map messageId2Callback = new HashMap();
  +    //private Map messageId2Callback = new HashMap();
   
       public XsulSoapHttpWsaResponsesCorrelator() throws DynamicInfosetProcessorException  {
           this(0);
  @@ -100,31 +100,6 @@
           return server.getLocation();
       }
   
  -    //    public void registerCallback(Object messageId, WSIFAsyncResponseListener callback) {
  -    //        if(messageId == null) {
  -    //            throw new IllegalArgumentException();
  -    //        }
  -    //        synchronized(messageId2Callback) {
  -    //            messageId2Callback.put((URI)messageId, callback);
  -    //        }
  -    //    }
  -    //
  -    //    public WSIFAsyncResponseListener unregisterCallback(Object messageId) {
  -    //        synchronized(messageId2Callback) {
  -    //            WSIFAsyncResponseListener callback = (WSIFAsyncResponseListener) messageId2Callback.remove((URI)messageId);
  -    //            return callback;
  -    //        }
  -    //
  -    //    }
  -    //
  -    //    public Object addCorrelationToOutgoingMessage(XmlDocument outgoingDoc) {
  -    //        WsaMessageInformationHeaders  wsaHeaders = new WsaMessageInformationHeaders(outgoingDoc);
  -    //        wsaHeaders.setReplyTo(new WsaEndpointReference(replyToUri));
  -    //        URI messageId = URI.create("uuid:"+FastUUIDGen.nextUUID());
  -    //        wsaHeaders.setMessageId(messageId);
  -    //        return messageId;
  -    //    }
  -
       // allow extending so for example HTTP Basic Auth check can be added easily!
       public void service(HttpServerRequest req, HttpServerResponse res)
           throws HttpServerException
  @@ -208,7 +183,7 @@
           if(relatedMssageId != null) {
               WSIFAsyncResponseListener callback = unregisterCallback(relatedMssageId);
               if(callback != null) {
  -                //NOTE: callback is expetect to return immediately (just notification!!!)
  +                //NOTE: callback is expected to return immediately (just notification!!!)
                   if(logger.isFinestEnabled()) {
                       logger.finest("correlated "+relatedMssageId+" with "+callback);
                   }