public class Location extends Object
Constructor and Description |
---|
Location(String uri)
Constructs a new instance.
|
Location(URI uri)
Construct a new instance from an existing URI.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static Location |
forGrpcDomainSocket(String path)
Construct a URI for a Flight+gRPC server over a Unix domain socket.
|
static Location |
forGrpcInsecure(String host,
int port)
Construct a URI for a Flight+gRPC server without transport security.
|
static Location |
forGrpcTls(String host,
int port)
Construct a URI for a Flight+gRPC server with transport security.
|
URI |
getUri() |
int |
hashCode() |
SocketAddress |
toSocketAddress()
Helper method to turn this Location into a SocketAddress.
|
String |
toString() |
public Location(String uri) throws URISyntaxException
uri
- the URI of the Flight serviceIllegalArgumentException
- if the URI scheme is unsupportedURISyntaxException
public Location(URI uri)
uri
- the URI of the Flight servicepublic URI getUri()
public SocketAddress toSocketAddress()
public static Location forGrpcInsecure(String host, int port)
IllegalArgumentException
- if the constructed URI is invalid.public static Location forGrpcTls(String host, int port)
IllegalArgumentException
- if the constructed URI is invalid.public static Location forGrpcDomainSocket(String path)
IllegalArgumentException
- if the constructed URI is invalid.Copyright © 2023 The Apache Software Foundation. All rights reserved.