public class URLEndpointListener extends Object
Constructor and Description |
---|
URLEndpointListener(URLEndpointListenerConfiguration config)
Create a URLEndpointListener with the passed configuration.
|
Modifier and Type | Method and Description |
---|---|
URLEndpointListenerConfiguration |
getConfig()
Get the listener's configuration.
|
int |
getPort()
Get the listener's port.
|
ConnectionStatus |
getStatus()
Get the listener status.
|
TLSIdentity |
getTlsIdentity()
Get the TLS identity used by the listener.
|
List<URI> |
getUrls()
Get the list of URIs for the listener.
|
void |
start()
Start the listener.
|
void |
stop()
Stop the listener.
|
String |
toString() |
public URLEndpointListener(@NonNull URLEndpointListenerConfiguration config)
config
- the listener configuration.@NonNull public URLEndpointListenerConfiguration getConfig()
public int getPort()
When a listener is configured with the port number 0, the return value from this function will give the port at which the listener is actually listening.
@NonNull public List<URI> getUrls()
@Nullable public ConnectionStatus getStatus()
@Nullable public TLSIdentity getTlsIdentity()
public void start() throws CouchbaseLiteException
CouchbaseLiteException
public void stop()