1. /*
  2. * @(#)InternalRuntimeForwardRequest.java 1.4 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. /**
  9. * A Runtime version of the ForwardRequest exception. For use in situations
  10. * where you do not wish to declare ForwardRequest as being thrown. In most
  11. * cases, this should only be used as a temporary solution and the code
  12. * that makes use of this should be redesigned. Current uses:
  13. * <ul>
  14. * <li>Due to the complex nature of the current call chain in our ORB,
  15. * we need to use this for send_* in Portable Interceptors.</li>
  16. * </ul>
  17. */
  18. public class InternalRuntimeForwardRequest
  19. extends RuntimeException
  20. {
  21. // The object to forward the request to:
  22. public org.omg.CORBA.Object forward;
  23. /**
  24. * Creates a new InternalRuntimeForwardRequest that will forward the
  25. * request to the given object.
  26. */
  27. public InternalRuntimeForwardRequest( org.omg.CORBA.Object forward ) {
  28. this.forward = forward;
  29. }
  30. }