java.lang.Object
com.zeroc.Ice.EndpointInfo
- Direct Known Subclasses:
EndpointInfo,EndpointInfo,IPEndpointInfo,OpaqueEndpointInfo,WSEndpointInfo
Base class for the endpoint info classes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanSpecifies whether or not compression should be used if available when using this endpoint.final EndpointInfoThe information of the underlying endpoint ornullif there's no underlying endpoint. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEndpointInfo(boolean compress) Constructs an EndpointInfo with the specified compression flag.protectedEndpointInfo(EndpointInfo underlying) Constructs an EndpointInfo with an underlying endpoint. -
Method Summary
-
Field Details
-
underlying
The information of the underlying endpoint ornullif there's no underlying endpoint. -
compress
public final boolean compressSpecifies whether or not compression should be used if available when using this endpoint.
-
-
Constructor Details
-
EndpointInfo
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-trueif 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:
truefor a UDP endpoint,falseotherwise
-
secure
public boolean secure()Returns whether this endpoint uses SSL.- Returns:
trueif this endpoint's transport uses SSL,falseotherwise
-