1. /*
  2. * @(#)ResponseHandler.java 1.12 00/02/02
  3. *
  4. * Copyright 1998-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package org.omg.CORBA.portable;
  11. /**
  12. This interface is supplied by an ORB to a servant at invocation time and allows
  13. the servant to later retrieve an OutputStream for returning the invocation results.
  14. */
  15. public interface ResponseHandler {
  16. /**
  17. * Called by the servant during a method invocation. The servant
  18. * should call this method to create a reply marshal buffer if no
  19. * exception occurred.
  20. *
  21. * @return an OutputStream suitable for marshalling the reply.
  22. *
  23. * @see <a href="package-summary.html#unimpl"><code>portable</code>
  24. * package comments for unimplemented features</a>
  25. */
  26. OutputStream createReply();
  27. /**
  28. * Called by the servant during a method invocation. The servant
  29. * should call this method to create a reply marshal buffer if a
  30. * user exception occurred.
  31. *
  32. * @return an OutputStream suitable for marshalling the exception
  33. * ID and the user exception body.
  34. */
  35. OutputStream createExceptionReply();
  36. }