public class AutomaticTransport extends HttpClientTransport
BUFFER_SIZE, mAbortFuture, mHttpConnection, mStartedAbort| Constructor and Description |
|---|
AutomaticTransport()
Initializes the transport with a NullLogger
|
AutomaticTransport(Logger logger,
HttpConnection httpConnection)
Initializes the transport with a logger and an httpConnection
|
AutomaticTransport(Logger logger,
String clientCertificatePath,
char[] clientCertificatePassword,
String clientCertificateAlias,
boolean ignoreSsl)
Initializes the transport with a logger
|
| Modifier and Type | Method and Description |
|---|---|
SignalRFuture<Void> |
abort(ConnectionBase connection)
Aborts the transport
|
String |
getName()
Transport name
|
SignalRFuture<Void> |
send(ConnectionBase connection,
String data,
DataResultCallback callback)
Sends data using the transport
|
SignalRFuture<Void> |
start(ConnectionBase connection,
ConnectionType connectionType,
DataResultCallback callback)
Starts the transport
|
boolean |
supportKeepAlive()
True if the transport supports keepalive messages
|
log, log, negotiate, throwOnInvalidStatusCodepublic AutomaticTransport()
public AutomaticTransport(Logger logger, String clientCertificatePath, char[] clientCertificatePassword, String clientCertificateAlias, boolean ignoreSsl)
logger - logger to log actionsclientCertificatePath - Client certificateclientCertificatePassword - Client certificate passwordclientCertificateAlias - Client certificate aliasignoreSsl - Ignore SSL certificate verificationpublic AutomaticTransport(Logger logger, HttpConnection httpConnection)
logger - the loggerhttpConnection - the httpConnectionpublic String getName()
ClientTransportpublic boolean supportKeepAlive()
ClientTransportpublic SignalRFuture<Void> start(ConnectionBase connection, ConnectionType connectionType, DataResultCallback callback)
ClientTransportconnection - Connection information to start the transportconnectionType - Connection typecallback - Callback to invoke when there is new datapublic SignalRFuture<Void> send(ConnectionBase connection, String data, DataResultCallback callback)
ClientTransportsend in interface ClientTransportsend in class HttpClientTransportconnection - Connection information to send datadata - data to sendcallback - Callback to invoke when data is returnedpublic SignalRFuture<Void> abort(ConnectionBase connection)
ClientTransportabort in interface ClientTransportabort in class HttpClientTransportconnection - Connection information to abortCopyright © 2019. All rights reserved.