public interface SocketMessageAdapterFactory extends MessageAdapter.Factory
MessageAdapter.Factory
in order to
run any custom authorization/authentication protocol with remote host. All socket connectors
check instance of MessageAdapter.Factory
for implementation of
SocketMessageAdapterFactory
and pass a corresponding socket to
createAdapterWithSocket(java.net.Socket, com.devexperts.qd.stats.QDStats)
method on a freshly openned socket.Modifier and Type | Method and Description |
---|---|
MessageAdapter |
createAdapterWithSocket(Socket socket,
QDStats stats)
Runs custom authorization/authentication protocol over given
socket and
returns MessageAdapter for communication with remote host. |
createAdapter
MessageAdapter createAdapterWithSocket(Socket socket, QDStats stats) throws SecurityException, IOException
socket
and
returns MessageAdapter
for communication with remote host.socket
- The socket.stats
- QDStats
for new message adapter.MessageAdapter
or null
if remote host cannot be
authenticated/authorized without explicit reason to report via exception.SecurityException
- If remote host cannot be authorized/authenticated.IOException
- If there is a communication error with remote host.Copyright © 2002–2025 Devexperts LLC. All rights reserved.