1. /*
  2. * @(#)LegacyServerSocketEndPointInfo.java 1.31 04/06/21
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package com.sun.corba.se.spi.legacy.connection;
  8. /**
  9. * LegacyServerSocketEndPointInfo is an abstraction of a port.
  10. */
  11. public interface LegacyServerSocketEndPointInfo
  12. {
  13. /**
  14. * e.g.: "CLEAR_TEXT", "SSL", ...
  15. */
  16. public String getType();
  17. /**
  18. * Get the host name of this end point. Subcontracts must use this
  19. * instead of InetAddress.getHostName() because this would take
  20. * into account the value of the ORBServerHost property.
  21. */
  22. public String getHostName();
  23. public int getPort();
  24. /**
  25. * The ORBD's proxy port of this end point.
  26. * Note: Pre-ORT "port-exchange" model.
  27. */
  28. public int getLocatorPort();
  29. public void setLocatorPort(int port);
  30. // NAME is used while we still have a "port-exchange" ORBD
  31. // to get what used to be called "default" or "bootstrap" endpoints.
  32. public static final String DEFAULT_ENDPOINT = "DEFAULT_ENDPOINT";
  33. public static final String BOOT_NAMING = "BOOT_NAMING";
  34. public static final String NO_NAME = "NO_NAME";
  35. public String getName();
  36. }
  37. // End of file.