CVS: beepcore-java/src/org/beepcore/beep/profile/echo EchoProfile.java,1.16,1.17

Huston Franklin <[email protected]> Tue, 10 Jun 2003 11:59:54 -0700
Newsgroups gmane.network.beep.beepcore.java.cvs
Message-ID <[email protected]>
Update of /cvsroot/beepcore-java/beepcore-java/src/org/beepcore/beep/profile/echo
In directory sc8-pr-cvs1:/tmp/cvs-serv21972/src/org/beepcore/beep/profile/echo

Modified Files:
	EchoProfile.java 
Log Message:
More interface cleanup, added RequestHandler to replace MessageListener.

Index: EchoProfile.java
===================================================================
RCS file: /cvsroot/beepcore-java/beepcore-java/src/org/beepcore/beep/profile/echo/EchoProfile.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** EchoProfile.java	23 Apr 2003 15:23:07 -0000	1.16
--- EchoProfile.java	10 Jun 2003 18:59:21 -0000	1.17
***************
*** 3,7 ****
   *
   * Copyright (c) 2001 Invisible Worlds, Inc.  All rights reserved.
!  * Copyright (c) 2002 Huston Franklin.  All rights reserved.
   *
   * The contents of this file are subject to the Blocks Public License (the
--- 3,7 ----
   *
   * Copyright (c) 2001 Invisible Worlds, Inc.  All rights reserved.
!  * Copyright (c) 2002,2003 Huston Franklin.  All rights reserved.
   *
   * The contents of this file are subject to the Blocks Public License (the
***************
*** 37,41 ****
   */
  public class EchoProfile
!     implements Profile, StartChannelListener, MessageListener
  {
  
--- 37,41 ----
   */
  public class EchoProfile
!     implements Profile, StartChannelListener, RequestHandler
  {
  
***************
*** 55,59 ****
      {
          log.debug("EchoCCL StartChannel Callback");
!         channel.setMessageListener(this);
      }
  
--- 55,59 ----
      {
          log.debug("EchoCCL StartChannel Callback");
!         channel.setRequestHandler(this);
      }
  
***************
*** 61,65 ****
      {
          log.debug("EchoCCL CloseChannel Callback");
!         channel.setMessageListener(null);
      }
  
--- 61,65 ----
      {
          log.debug("EchoCCL CloseChannel Callback");
!         channel.setRequestHandler(null);
      }
  
***************
*** 69,73 ****
      }
  
!     public void receiveMSG(Message message) throws BEEPError
      {
          new ReplyThread(message).start();
--- 69,73 ----
      }
  
!     public void receiveMSG(MessageMSG message)
      {
          new ReplyThread(message).start();
***************
*** 75,81 ****
  
      private class ReplyThread extends Thread {
!         private Message message;
  
!         ReplyThread(Message message) {
              this.message = message;
          }
--- 75,81 ----
  
      private class ReplyThread extends Thread {
!         private MessageMSG message;
  
!         ReplyThread(MessageMSG message) {
              this.message = message;
          }



-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.