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 providing access to the endpoint details.
  • 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 true if this endpoint is a datagram endpoint.
    boolean
     
    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 if available.
  • Method Details

    • type

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

      public boolean datagram()
      Returns true if this endpoint is a datagram endpoint.
      Returns:
      True for a datagram endpoint.
    • secure

      public boolean secure()
      Returns:
      True for a secure endpoint.