Examples of ProtocolManager


Examples of com.arjuna.mw.wscf11.protocols.ProtocolManager

  return _shared;
    }

    public static ProtocolManager createManager ()
    {
  return new ProtocolManager();
    }
View Full Code Here

Examples of com.comphenix.protocol.ProtocolManager

    unregister();
    register(Bukkit.getPluginManager().getPlugin("NoCheatPlus")); // Store instead ?
  }
 
  private void unregister() {
    final ProtocolManager protocolManager = ProtocolLibrary.getProtocolManager();
    final NoCheatPlusAPI api = NCPAPIProvider.getNoCheatPlusAPI();
    for (PacketAdapter adapter : registeredPacketAdapters) {
      try {
        protocolManager.removePacketListener(adapter);
        api.removeComponent(adapter); // Bit heavy, but consistent.
      } catch (Throwable t) {
        LogUtil.logWarning("[NoCheatPlus] Failed to unregister packet level hook: " + adapter.getClass().getName());
      }
    }
View Full Code Here

Examples of com.comphenix.protocol.ProtocolManager

 
  /**
   * Reset the version string to the default state.
   */
  protected void resetVersion() {
    ProtocolManager manager = ProtocolLibrary.getProtocolManager();
    MinecraftVersion minecraftVersion = LAST_VERSION;
   
    // Fetch the latest known version
    if (manager != null) {
      minecraftVersion = manager.getMinecraftVersion();
    }
    version = VERSION_CONSTRUCTOR.invoke(minecraftVersion.toString(), VERSION_NUMBERS.get(minecraftVersion));
    VERSION.set(handle, version);
  }
View Full Code Here

Examples of com.comphenix.protocol.ProtocolManager

 
  /**
   * Called before an object is created with this builder.
   */
  private void initializeDefaults() {
    ProtocolManager manager = ProtocolLibrary.getProtocolManager();
   
    // Initialize with default values if we can
    if (reporter == null)
      reporter = ProtocolLibrary.getErrorReporter();
    if (invoker == null)
View Full Code Here

Examples of com.comphenix.protocol.ProtocolManager

   * @param marker - the network marker.
   */
  private void sendScheduledPackets(NetworkMarker marker) {
    // Next, invoke post packet transmission
    List<ScheduledPacket> scheduled = NetworkMarker.readScheduledPackets(marker);
    ProtocolManager manager = ProtocolLibrary.getProtocolManager();
   
    if (scheduled != null) {
      for (ScheduledPacket packet : scheduled) {
        packet.schedule(manager);
      }
View Full Code Here

Examples of com.comphenix.protocol.ProtocolManager

     
      @Override
      public Entity getSpecificValue(Object generic) {
        try {
          Integer id = (Integer) generic;
          ProtocolManager manager = managerRef.get();
         
          // Use the entity ID to get a reference to the entity
          if (id != null && manager != null) {
            return manager.getEntityFromID(world, id);
          } else {
            return null;
          }
         
        } catch (FieldAccessException e) {
View Full Code Here

Examples of com.comphenix.protocol.ProtocolManager

 
  /**
   * Called before an object is created with this builder.
   */
  private void initializeDefaults() {
    ProtocolManager manager = ProtocolLibrary.getProtocolManager();
   
    // Initialize with default values if we can
    if (reporter == null)
      reporter = ProtocolLibrary.getErrorReporter();
    if (invoker == null)
View Full Code Here

Examples of com.kurento.kmf.jsonrpcconnector.internal.server.ProtocolManager

  }

  @Bean
  @Scope("prototype")
  public ProtocolManager protocolManager(JsonRpcHandler<?> key) {
    return new ProtocolManager(key);
  }
View Full Code Here

Examples of org.apache.oodt.cas.protocol.system.ProtocolManager

         File localFile = createTempDownloadFile();
         if (localFile == null) {
            throw new Exception("Failed to create tempory local file");
         }

         ProtocolManager protocolManager = getProtocolManager();
         Protocol fromProtocol = protocolManager.getProtocolBySite(fromUri,
               getAuthentication(fromUri), verifier);
         if (fromProtocol == null) {
            throw new Exception("Failed to get protocol for 'from' URI '"
                  + fromUri + "'");
         }

         Protocol toProtocol = protocolManager.getProtocolBySite(toUri,
               getAuthentication(toUri), verifier);
         if (toProtocol == null) {
            throw new Exception("Failed to get protocol for 'to' URI '" + toUri
                  + "'");
         }
View Full Code Here

Examples of org.apache.oodt.cas.protocol.system.ProtocolManager

  
   private ProtocolManager pm;
  
   @Override
   public void setUp() {
      pm = new ProtocolManager(new MockSpringProtocolConfig());
   }
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.