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.
|
public URLEndpointListener(@NonNull URLEndpointListenerConfiguration config)
config
- the listener configuration.@NonNull public URLEndpointListenerConfiguration getConfig()
public int getPort()
@NonNull public List<URI> getUrls()
@Nullable public ConnectionStatus getStatus()
@Nullable public TLSIdentity getTlsIdentity()
public void start() throws CouchbaseLiteException
CouchbaseLiteException
public void stop()