Package com.zeroc.Ice

Class EndpointInfo

java.lang.Object
com.zeroc.Ice.EndpointInfo
Direct Known Subclasses:
EndpointInfo, EndpointInfo, IPEndpointInfo, OpaqueEndpointInfo, WSEndpointInfo

public class EndpointInfo extends Object
Base class for the endpoint info classes.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final boolean
    Specifies whether or not compression should be used if available when using this endpoint.
    The information of the underlying endpoint or null if there's no underlying endpoint.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    EndpointInfo(boolean compress)
    Constructs an EndpointInfo with the specified compression flag.
    protected
    Constructs an EndpointInfo with an underlying endpoint.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns whether this endpoint is a datagram endpoint.
    boolean
    Returns whether this endpoint uses SSL.
    short
    Returns the type of the endpoint.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • underlying

      public final EndpointInfo underlying
      The information of the underlying endpoint or null if there's no underlying endpoint.
    • compress

      public final boolean compress
      Specifies whether or not compression should be used if available when using this endpoint.
  • Constructor Details

    • EndpointInfo

      protected EndpointInfo(EndpointInfo underlying)
      Constructs an EndpointInfo with an underlying endpoint.
      Parameters:
      underlying - the underlying EndpointInfo. Must not be null.
    • EndpointInfo

      protected EndpointInfo(boolean compress)
      Constructs an EndpointInfo with the specified compression flag.
      Parameters:
      compress - true if compression should be used when available
  • Method Details

    • type

      public short type()
      Returns the type of the endpoint.
      Returns:
      the endpoint type
    • datagram

      public boolean datagram()
      Returns whether this endpoint is a datagram endpoint.
      Returns:
      true for a UDP endpoint, false otherwise
    • secure

      public boolean secure()
      Returns whether this endpoint uses SSL.
      Returns:
      true if this endpoint's transport uses SSL, false otherwise