1. /*
  2. * @(#)ReplyMessage.java 1.10 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package com.sun.corba.se.internal.iiop.messages;
  8. import com.sun.corba.se.internal.core.ServiceContexts;
  9. import org.omg.CORBA.SystemException;
  10. import com.sun.corba.se.internal.core.IOR;
  11. /**
  12. * This interface captures the ReplyMessage contract.
  13. *
  14. * @author Ram Jeyaraman 05/14/2000
  15. * @version 1.0
  16. */
  17. public interface ReplyMessage extends Message {
  18. // Note: If the value, order, or number of these constants change,
  19. // please update the REPLY_MESSAGE_TO_PI_REPLY_STATUS table in PIORB.
  20. int NO_EXCEPTION = 0;
  21. int USER_EXCEPTION = 1;
  22. int SYSTEM_EXCEPTION = 2;
  23. int LOCATION_FORWARD = 3;
  24. int LOCATION_FORWARD_PERM = 4; // 1.2
  25. int NEEDS_ADDRESSING_MODE = 5; // 1.2
  26. int getRequestId();
  27. int getReplyStatus();
  28. ServiceContexts getServiceContexts();
  29. void setServiceContexts( ServiceContexts sc );
  30. SystemException getSystemException();
  31. IOR getIOR();
  32. void setIOR( IOR newIOR );
  33. short getAddrDisposition();
  34. }