1. /*
  2. * @(#)Response.java 1.21 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.core;
  8. import org.omg.CORBA.SystemException;
  9. /**
  10. * Response represents a GIOP response received from the server
  11. * object.
  12. */
  13. public interface Response {
  14. /**
  15. * Is this response a system exception?
  16. */
  17. public boolean isSystemException();
  18. /**
  19. * Is this response a user exception?
  20. */
  21. public boolean isUserException();
  22. /**
  23. * Is this a location forward?
  24. */
  25. public boolean isLocationForward();
  26. /**
  27. * IOR from the forward request
  28. */
  29. IOR getForwardedIOR();
  30. /**
  31. * Get the request id corresponding to this response.
  32. */
  33. public int getRequestId();
  34. /**
  35. * Get the service context information for this response.
  36. */
  37. public ServiceContexts getServiceContexts();
  38. /**
  39. * Get the SystemException object if this response unmarshalled
  40. * off the wire was a SystemException.
  41. */
  42. public SystemException getSystemException();
  43. /**
  44. * Check to see if the response is local.
  45. */
  46. public boolean isLocal();
  47. /**
  48. * Set Connection for the Request
  49. */
  50. // COMMENT(Ram J) connections are not allowed to be reset.
  51. //public void setConnection(com.sun.corba.se.internal.iiop.Connection conn);
  52. /**
  53. * Obtain connection for the Request.
  54. */
  55. public com.sun.corba.se.internal.iiop.Connection getConnection();
  56. }