public class CoreProtocolManager extends Object implements ProtocolManager<org.apache.activemq.artemis.api.core.Interceptor>
| Constructor and Description |
|---|
CoreProtocolManager(CoreProtocolManagerFactory factory,
ActiveMQServer server,
List<org.apache.activemq.artemis.api.core.Interceptor> incomingInterceptors,
List<org.apache.activemq.artemis.api.core.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) |
org.apache.activemq.artemis.spi.core.protocol.ConnectionEntry |
createConnectionEntry(Acceptor acceptorUsed,
org.apache.activemq.artemis.spi.core.remoting.Connection connection) |
MessageConverter |
getConverter()
no need to implement this now
|
ProtocolManagerFactory<org.apache.activemq.artemis.api.core.Interceptor> |
getFactory() |
void |
handleBuffer(org.apache.activemq.artemis.spi.core.protocol.RemotingConnection connection,
org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer) |
void |
handshake(NettyServerConnection connection,
org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer) |
boolean |
isProtocol(byte[] array) |
void |
removeHandler(String name) |
String |
toString() |
void |
updateInterceptors(List<org.apache.activemq.artemis.api.core.BaseInterceptor> incoming,
List<org.apache.activemq.artemis.api.core.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<org.apache.activemq.artemis.api.core.Interceptor> incomingInterceptors, List<org.apache.activemq.artemis.api.core.Interceptor> outgoingInterceptors)
public ProtocolManagerFactory<org.apache.activemq.artemis.api.core.Interceptor> getFactory()
getFactory in interface ProtocolManager<org.apache.activemq.artemis.api.core.Interceptor>public void updateInterceptors(List<org.apache.activemq.artemis.api.core.BaseInterceptor> incoming, List<org.apache.activemq.artemis.api.core.BaseInterceptor> outgoing)
ProtocolManagerupdateInterceptors in interface ProtocolManager<org.apache.activemq.artemis.api.core.Interceptor>public boolean acceptsNoHandshake()
ProtocolManageracceptsNoHandshake in interface ProtocolManager<org.apache.activemq.artemis.api.core.Interceptor>public MessageConverter getConverter()
getConverter in interface ProtocolManager<org.apache.activemq.artemis.api.core.Interceptor>public org.apache.activemq.artemis.spi.core.protocol.ConnectionEntry createConnectionEntry(Acceptor acceptorUsed, org.apache.activemq.artemis.spi.core.remoting.Connection connection)
createConnectionEntry in interface ProtocolManager<org.apache.activemq.artemis.api.core.Interceptor>public void removeHandler(String name)
removeHandler in interface ProtocolManager<org.apache.activemq.artemis.api.core.Interceptor>public void handleBuffer(org.apache.activemq.artemis.spi.core.protocol.RemotingConnection connection,
org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer)
handleBuffer in interface ProtocolManager<org.apache.activemq.artemis.api.core.Interceptor>public void addChannelHandlers(io.netty.channel.ChannelPipeline pipeline)
addChannelHandlers in interface ProtocolManager<org.apache.activemq.artemis.api.core.Interceptor>public boolean isProtocol(byte[] array)
isProtocol in interface ProtocolManager<org.apache.activemq.artemis.api.core.Interceptor>public void handshake(NettyServerConnection connection, org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer)
handshake in interface ProtocolManager<org.apache.activemq.artemis.api.core.Interceptor>public List<String> websocketSubprotocolIdentifiers()
ProtocolManagerwebsocketSubprotocolIdentifiers in interface ProtocolManager<org.apache.activemq.artemis.api.core.Interceptor>Copyright © 2023 The Apache Software Foundation. All rights reserved.