1. /*
  2. * @(#)Request.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. /**
  9. * Request represents a method invocation request. There are two types
  10. * of Request -- one that is used on the client side to invoke into
  11. * the GIOP layer and one that is used to dispatch up to the
  12. * subcontract.
  13. */
  14. public interface Request {
  15. /**
  16. * Get the id assigned to this request object. These ids
  17. * are used by the transaction service hooks.
  18. */
  19. public int getRequestId();
  20. /**
  21. * Is this request object for a oneway operation?
  22. */
  23. public boolean isOneWay();
  24. /**
  25. * Get the service context information for this request.
  26. */
  27. public ServiceContexts getServiceContexts();
  28. /**
  29. * Get the operation name for this request object.
  30. */
  31. public String getOperationName();
  32. /**
  33. * Get the object key.
  34. */
  35. public com.sun.corba.se.internal.ior.ObjectKey getObjectKey();
  36. /**
  37. * Check to see if the request is local.
  38. */
  39. public boolean isLocal();
  40. /**
  41. * Obtain connection for the Request.
  42. */
  43. public com.sun.corba.se.internal.iiop.Connection getConnection();
  44. /**
  45. * Obtain the GIOP version of the Request
  46. */
  47. public GIOPVersion getGIOPVersion();
  48. }