public class CoreProtocolManager extends Object implements ProtocolManager<Interceptor>
| Constructor and Description |
|---|
CoreProtocolManager(CoreProtocolManagerFactory factory,
ActiveMQServer server,
List<Interceptor> incomingInterceptors,
List<Interceptor> outgoingInterceptors) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsNoHandshake()
If this protocols accepts connectoins without an initial handshake.
|
void |
addChannelHandlers(io.netty.channel.ChannelPipeline pipeline) |
ConnectionEntry |
createConnectionEntry(Acceptor acceptorUsed,
Connection connection) |
MessageConverter |
getConverter()
no need to implement this now
|
ProtocolManagerFactory<Interceptor> |
getFactory() |
void |
handleBuffer(RemotingConnection connection,
ActiveMQBuffer buffer) |
void |
handshake(NettyServerConnection connection,
ActiveMQBuffer buffer) |
boolean |
isProtocol(byte[] array) |
void |
removeHandler(String name) |
String |
toString() |
void |
updateInterceptors(List<BaseInterceptor> incoming,
List<BaseInterceptor> outgoing)
This method will receive all the interceptors on the system and you should filter them out *
|
List<String> |
websocketSubprotocolIdentifiers()
A list of the IANA websocket subprotocol identifiers supported by this protocol manager.
|
public CoreProtocolManager(CoreProtocolManagerFactory factory, ActiveMQServer server, List<Interceptor> incomingInterceptors, List<Interceptor> outgoingInterceptors)
public ProtocolManagerFactory<Interceptor> getFactory()
getFactory in interface ProtocolManager<Interceptor>public void updateInterceptors(List<BaseInterceptor> incoming, List<BaseInterceptor> outgoing)
ProtocolManagerupdateInterceptors in interface ProtocolManager<Interceptor>public boolean acceptsNoHandshake()
ProtocolManageracceptsNoHandshake in interface ProtocolManager<Interceptor>public MessageConverter getConverter()
getConverter in interface ProtocolManager<Interceptor>public ConnectionEntry createConnectionEntry(Acceptor acceptorUsed, Connection connection)
createConnectionEntry in interface ProtocolManager<Interceptor>public void removeHandler(String name)
removeHandler in interface ProtocolManager<Interceptor>public void handleBuffer(RemotingConnection connection, ActiveMQBuffer buffer)
handleBuffer in interface ProtocolManager<Interceptor>public void addChannelHandlers(io.netty.channel.ChannelPipeline pipeline)
addChannelHandlers in interface ProtocolManager<Interceptor>public boolean isProtocol(byte[] array)
isProtocol in interface ProtocolManager<Interceptor>public void handshake(NettyServerConnection connection, ActiveMQBuffer buffer)
handshake in interface ProtocolManager<Interceptor>public List<String> websocketSubprotocolIdentifiers()
ProtocolManagerwebsocketSubprotocolIdentifiers in interface ProtocolManager<Interceptor>Copyright © 2018 JBoss by Red Hat. All rights reserved.