1. /*
  2. * @(#)ProtocolHandler.java 1.12 03/12/19
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package com.sun.corba.se.pept.protocol;
  8. import com.sun.corba.se.pept.protocol.MessageMediator;
  9. /**
  10. * <code>ProtocolHandler</code> is used to determine the
  11. * type of an incoming message.
  12. *
  13. * @author Harold Carr
  14. */
  15. public interface ProtocolHandler
  16. {
  17. // REVISIT - return type
  18. /**
  19. * This method determines the type of an incoming message and
  20. * dispatches it appropriately.
  21. *
  22. * For example, on the server side, it may find a
  23. * {@link com.sun.corba.se.pept.protocol.ServerRequestDispatcher
  24. * ServerRequestDispatcher} to handle the request. On the client-side
  25. * it may signal a waiting thread to handle a reply.
  26. *
  27. * @return deprecated
  28. */
  29. public boolean handleRequest(MessageMediator messageMediator);
  30. }
  31. // End of file.