Examples of PacketHandler


Examples of be.demmel.jgws.packets.handlers.PacketHandler

    Map<Class<? extends Packet>, PacketHandler> packetHandlers = new HashMap<>();

    // create a PacketHandler instance for every Packet class
    for (Class<? extends PacketHandler> packetHandlerClass : packetHandlerClasses) {
      // Create a new instance of the PacketHandler
      PacketHandler packetHandlerInstance = packetHandlerClass.newInstance();

      // Check what Packet class this PacketHandler handles
      Class<? extends Packet> packetClass = packetHandlerInstance.getPacketClass();
      LOGGER.info("\"{}\" handles Packet class: {}", packetHandlerClass, packetClass);

      // Make sure that there no PacketHandler that handles this Packet class yet
      if (packetHandlers.containsKey(packetClass)) {
        throw new IllegalStateException("Found a second PacketHandler (" + packetHandlerClass + ") that handles Packet class \"" + packetClass + "\"");
View Full Code Here

Examples of buildcraft.core.network.PacketHandler

  @Mod.EventHandler
  public void init(FMLInitializationEvent evt) {
    BuildCraftAPI.proxy = CoreProxy.proxy;

    channels = NetworkRegistry.INSTANCE.newChannel
        (DefaultProps.NET_CHANNEL_NAME + "-CORE", new BuildCraftChannelHandler(), new PacketHandler());

    NetworkIdRegistry.instance = new NetworkIdRegistry();

    // BuildCraft 6.1.4 and below - migration only
    StatementManager.registerParameterClass("buildcraft:stackTrigger", StatementParameterItemStack.class);
View Full Code Here

Examples of com.corundumstudio.socketio.handler.PacketHandler

            } catch (Exception e) {
                throw new IllegalStateException(e);
            }
        }

        packetHandler = new PacketHandler(packetListener, decoder, namespacesHub);
        authorizeHandler = new AuthorizeHandler(connectPath, scheduler, configuration, namespacesHub);
        xhrPollingTransport = new XHRPollingTransport(connectPath, ackManager, this, scheduler, authorizeHandler, configuration);
        webSocketTransport = new WebSocketTransport(connectPath, isSsl, ackManager, this, authorizeHandler, heartbeatHandler);
        flashSocketTransport = new FlashSocketTransport(connectPath, isSsl, ackManager, this, authorizeHandler, heartbeatHandler);
        resourceHandler = new ResourceHandler(configuration.getContext());
View Full Code Here

Examples of com.corundumstudio.socketio.handler.PacketHandler

            } catch (Exception e) {
                throw new IllegalStateException(e);
            }
        }

        packetHandler = new PacketHandler(packetListener, decoder, namespacesHub);
        authorizeHandler = new AuthorizeHandler(connectPath, scheduler, configuration, namespacesHub);

        StoreFactory factory = configuration.getStoreFactory();
        factory.init(namespacesHub, authorizeHandler, jsonSupport);
View Full Code Here

Examples of com.corundumstudio.socketio.handler.PacketHandler

            } catch (Exception e) {
                throw new IllegalStateException(e);
            }
        }

        packetHandler = new PacketHandler(packetListener, decoder, namespacesHub);
        authorizeHandler = new AuthorizeHandler(connectPath, scheduler, configuration, namespacesHub);

        StoreFactory factory = configuration.getStoreFactory();
        factory.init(namespacesHub, jsonSupport);
View Full Code Here

Examples of com.corundumstudio.socketio.handler.PacketHandler

            } catch (Exception e) {
                throw new IllegalStateException(e);
            }
        }

        packetHandler = new PacketHandler(packetListener, decoder, namespacesHub, configuration.getExceptionListener());
        authorizeHandler = new AuthorizeHandler(connectPath, scheduler, configuration, namespacesHub);

        StoreFactory factory = configuration.getStoreFactory();
        factory.init(namespacesHub, authorizeHandler, jsonSupport);
View Full Code Here

Examples of com.corundumstudio.socketio.handler.PacketHandler

            } catch (Exception e) {
                throw new IllegalStateException(e);
            }
        }

        packetHandler = new PacketHandler(packetListener, decoder, namespacesHub);
        authorizeHandler = new AuthorizeHandler(connectPath, scheduler, configuration, namespacesHub);

        StoreFactory factory = configuration.getStoreFactory();
        factory.init(namespacesHub, authorizeHandler, jsonSupport);
View Full Code Here

Examples of com.corundumstudio.socketio.handler.PacketHandler

            } catch (Exception e) {
                throw new IllegalStateException(e);
            }
        }

        packetHandler = new PacketHandler(packetListener, decoder, namespacesHub);
        authorizeHandler = new AuthorizeHandler(connectPath, scheduler, configuration, namespacesHub);

        StoreFactory factory = configuration.getStoreFactory();
        factory.init(namespacesHub, authorizeHandler, jsonSupport);
View Full Code Here

Examples of com.corundumstudio.socketio.handler.PacketHandler

            } catch (Exception e) {
                throw new IllegalStateException(e);
            }
        }

        packetHandler = new PacketHandler(packetListener, decoder, namespacesHub);
        authorizeHandler = new AuthorizeHandler(connectPath, scheduler, configuration, namespacesHub);
        xhrPollingTransport = new XHRPollingTransport(connectPath, ackManager, this, scheduler, authorizeHandler, configuration);
        webSocketTransport = new WebSocketTransport(connectPath, isSsl, ackManager, this, authorizeHandler, heartbeatHandler);
        flashSocketTransport = new FlashSocketTransport(connectPath, isSsl, ackManager, this, authorizeHandler, heartbeatHandler);
        resourceHandler = new ResourceHandler(configuration.getContext());
View Full Code Here

Examples of com.corundumstudio.socketio.handler.PacketHandler

            } catch (Exception e) {
                throw new IllegalStateException(e);
            }
        }

        packetHandler = new PacketHandler(packetListener, decoder, namespacesHub);
        authorizeHandler = new AuthorizeHandler(connectPath, scheduler, configuration, namespacesHub);
        xhrPollingTransport = new XHRPollingTransport(connectPath, ackManager, this, scheduler, authorizeHandler, configuration);
        webSocketTransport = new WebSocketTransport(connectPath, isSsl, ackManager, this, authorizeHandler, heartbeatHandler);
        flashSocketTransport = new FlashSocketTransport(connectPath, isSsl, ackManager, this, authorizeHandler, heartbeatHandler);
        resourceHandler = new ResourceHandler(configuration.getContext());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.