1. /*
  2. * @(#)EndPoint.java 1.23 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. * EndPoint is an abstraction of a GIOP listening port.
  10. */
  11. public interface EndPoint
  12. {
  13. // Endpoint types known in advance.
  14. // If you change the value of this constant then update
  15. // activation.idl accordingly. It has a duplicate definition
  16. // to avoid a compilation dependency.
  17. public static final String IIOP_CLEAR_TEXT = "IIOP_CLEAR_TEXT";
  18. /**
  19. * Get the type of this end point (e.g., "CLEAR_TEXT", "SSL", ...)
  20. */
  21. public String getType();
  22. /**
  23. * Get the port number of this end point.
  24. */
  25. public int getPort();
  26. /**
  27. * Get the ORBD's proxy port of this end point.
  28. */
  29. public int getLocatorPort();
  30. /**
  31. * Set the ORBD's proxy port of this end point.
  32. */
  33. public void setLocatorPort(int port);
  34. /**
  35. * Get the host name of this end point. Subcontracts must use this
  36. * instead of InetAddress.getHostName() because this would take
  37. * into account the value of the ORBServerHost property.
  38. */
  39. public String getHostName();
  40. }