Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk
Class RegisteredServiceEndpointBase<T extends RegisteredServiceEndpointBase<T>>
java.lang.Object
com.hedera.hashgraph.sdk.RegisteredServiceEndpoint
com.hedera.hashgraph.sdk.RegisteredServiceEndpointBase<T>
- Direct Known Subclasses:
BlockNodeServiceEndpoint,GeneralServiceEndpoint,MirrorNodeServiceEndpoint,RpcRelayServiceEndpoint
abstract class RegisteredServiceEndpointBase<T extends RegisteredServiceEndpointBase<T>>
extends RegisteredServiceEndpoint
-
Field Summary
Fields inherited from class com.hedera.hashgraph.sdk.RegisteredServiceEndpoint
domainName, ipAddress, port, requiresTls -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetDomainName(String domainName) Set the domain name of the endpoint.setIpAddress(byte[] ipAddress) Set the IP address of the endpoint.setPort(int port) Set the port used by this endpoint.setRequiresTls(boolean requiresTls) Set whether TLS is required for this endpoint.Methods inherited from class com.hedera.hashgraph.sdk.RegisteredServiceEndpoint
fromJson, fromProtobuf, getDomainName, getIpAddress, getPort, isRequiresTls, toProtobuf, toStringHelper, validateNoIpAndDomain
-
Constructor Details
-
RegisteredServiceEndpointBase
RegisteredServiceEndpointBase()
-
-
Method Details
-
setIpAddress
Set the IP address of the endpoint.- Parameters:
ipAddress- the IPv4 or IPv6 address- Returns:
- this endpoint
-
setDomainName
Set the domain name of the endpoint.- Parameters:
domainName- the fully qualified domain name- Returns:
- this endpoint
-
setPort
Set the port used by this endpoint.- Parameters:
port- the port number- Returns:
- this endpoint
- Throws:
IllegalArgumentException- if the port is outside the valid range
-
setRequiresTls
Set whether TLS is required for this endpoint.- Parameters:
requiresTls- true if TLS is required- Returns:
- this endpoint
-