public static final class XmppWebsocketTransportModuleDescriptor.Builder
extends org.jivesoftware.smack.c2s.ModularXmppClientToServerConnectionModuleDescriptor.Builder
XmppWebsocketTransportModuleDescriptor.
XmppWebsocketTransportModuleDescriptor.Builder, use XmppWebsocketTransportModuleDescriptor.getBuilder(ModularXmppClientToServerConnectionConfiguration.Builder) method.
explicitlySetWebsocketEndpoint(URI) to configure the URI of an endpoint as a backup in case connection couldn't be established with endpoints through http lookup.
explicitlySetWebsocketEndpointAndDiscovery(URI, boolean) to configure endpoint and disallow websocket endpoint discovery through http lookup.
By default, performWebsocketEndpointDiscovery is set to true.
build() to obtain XmppWebsocketTransportModuleDescriptor.| Modifier and Type | Method and Description |
|---|---|
org.jivesoftware.smack.c2s.ModularXmppClientToServerConnectionModuleDescriptor |
build() |
XmppWebsocketTransportModuleDescriptor.Builder |
explicitlySetWebsocketEndpoint(java.lang.CharSequence endpoint) |
XmppWebsocketTransportModuleDescriptor.Builder |
explicitlySetWebsocketEndpoint(java.lang.CharSequence endpoint,
boolean performWebsocketEndpointDiscovery) |
XmppWebsocketTransportModuleDescriptor.Builder |
explicitlySetWebsocketEndpoint(java.net.URI endpoint) |
XmppWebsocketTransportModuleDescriptor.Builder |
explicitlySetWebsocketEndpointAndDiscovery(java.net.URI endpoint,
boolean performWebsocketEndpointDiscovery) |
public XmppWebsocketTransportModuleDescriptor.Builder explicitlySetWebsocketEndpoint(java.net.URI endpoint)
public XmppWebsocketTransportModuleDescriptor.Builder explicitlySetWebsocketEndpointAndDiscovery(java.net.URI endpoint, boolean performWebsocketEndpointDiscovery)
public XmppWebsocketTransportModuleDescriptor.Builder explicitlySetWebsocketEndpoint(java.lang.CharSequence endpoint) throws java.net.URISyntaxException
java.net.URISyntaxExceptionpublic XmppWebsocketTransportModuleDescriptor.Builder explicitlySetWebsocketEndpoint(java.lang.CharSequence endpoint, boolean performWebsocketEndpointDiscovery) throws java.net.URISyntaxException
java.net.URISyntaxExceptionpublic org.jivesoftware.smack.c2s.ModularXmppClientToServerConnectionModuleDescriptor build()
build in class org.jivesoftware.smack.c2s.ModularXmppClientToServerConnectionModuleDescriptor.Builder