Examples of addObject()


Examples of io.netty.handler.codec.http.DefaultHttpHeaders.addObject()

        }
        final HttpHeaders preflightHeaders = new DefaultHttpHeaders();
        for (Entry<CharSequence, Callable<?>> entry : this.preflightHeaders.entrySet()) {
            final Object value = getValue(entry.getValue());
            if (value instanceof Iterable) {
                preflightHeaders.addObject(entry.getKey(), (Iterable<?>) value);
            } else {
                preflightHeaders.addObject(entry.getKey(), value);
            }
        }
        return preflightHeaders;
View Full Code Here

Examples of io.netty.handler.codec.http.HttpHeaders.addObject()

        }
        final HttpHeaders preflightHeaders = new DefaultHttpHeaders();
        for (Entry<CharSequence, Callable<?>> entry : this.preflightHeaders.entrySet()) {
            final Object value = getValue(entry.getValue());
            if (value instanceof Iterable) {
                preflightHeaders.addObject(entry.getKey(), (Iterable<?>) value);
            } else {
                preflightHeaders.addObject(entry.getKey(), value);
            }
        }
        return preflightHeaders;
View Full Code Here

Examples of javax.rules.StatefulRuleSession.addObject()

        StatefulRuleSession session = (StatefulRuleSession) ruleRuntime.createRuleSession( "IntegrationExampleTest.xls",
                                                                                           properties,
                                                                                           RuleRuntime.STATEFUL_SESSION_TYPE );

        //ASSERT AND FIRE
        session.addObject( new Cheese( "stilton",
                                       42 ) );
        session.addObject( new Person( "michael",
                                       "stilton",
                                       42 ) );
View Full Code Here

Examples of lineage2.gameserver.model.entity.events.impl.BoatWayEvent.addObject()

    {
      arrivalWay.addObject(BoatWayEvent.BOAT_POINTS, p);
    }
    for (BoatPoint p : _platform.getDepartPoints())
    {
      departWay.addObject(BoatWayEvent.BOAT_POINTS, p);
    }
    arrivalWay.addOnTimeAction(0, new StartStopAction(StartStopAction.EVENT, true));
    departWay.addOnTimeAction(300, new StartStopAction(StartStopAction.EVENT, true));
    setWay(0, arrivalWay);
    setWay(1, departWay);
View Full Code Here

Examples of lineage2.gameserver.model.entity.events.impl.CastleSiegeEvent.addObject()

    }
    else
    {
      siegeClan.setType(CastleSiegeEvent.DEFENDERS_REFUSED);
    }
    siegeEvent.addObject(siegeClan.getType(), siegeClan);
    SiegeClanDAO.getInstance().update(castle, siegeClan);
    player.sendPacket(new CastleSiegeDefenderList(castle));
  }
}
View Full Code Here

Examples of lineage2.gameserver.model.entity.events.impl.ClanHallAuctionEvent.addObject()

        SiegeClanDAO.getInstance().update(clanHall, siegeClan);
      }
      else
      {
        siegeClan = new AuctionSiegeClanObject(SiegeEvent.ATTACKERS, player.getClan(), bid);
        auctionEvent.addObject(SiegeEvent.ATTACKERS, siegeClan);
       
        SiegeClanDAO.getInstance().insert(clanHall, siegeClan);
      }
     
      player.sendPacket(SystemMsg.YOUR_BID_HAS_BEEN_SUCCESSFULLY_PLACED);
View Full Code Here

Examples of lineage2.gameserver.model.entity.events.impl.ClanHallMiniGameEvent.addObject()

        if (!player.consumeItem(ITEM_ID, count))
        {
          return;
        }
        CMGSiegeClanObject siegeClanObject = new CMGSiegeClanObject(SiegeEvent.ATTACKERS, clan, count);
        miniGameEvent.addObject(SiegeEvent.ATTACKERS, siegeClanObject);
        SiegeClanDAO.getInstance().insert(clanHall, siegeClanObject);
        showChatWindow(player, "residence2/clanhall/messenger_yetti009.htm");
      }
    }
    else if (command.equalsIgnoreCase("cancel"))
View Full Code Here

Examples of lineage2.gameserver.model.entity.events.impl.ClanHallSiegeEvent.addObject()

      {
        player.sendPacket(SystemMsg.NO_MORE_REGISTRATIONS_MAY_BE_ACCEPTED_FOR_THE_ATTACKER_SIDE);
        return;
      }
      siegeClan = new SiegeClanObject(SiegeEvent.ATTACKERS, playerClan, 0);
      siegeEvent.addObject(SiegeEvent.ATTACKERS, siegeClan);
      SiegeClanDAO.getInstance().insert(clanHall, siegeClan);
    }
    else
    {
      if (siegeClan == null)
View Full Code Here

Examples of lineage2.gameserver.model.entity.events.impl.ClanHallTeamBattleEvent.addObject()

    Clan clan = player.getClan();
    ClanHall clanHall = getClanHall();
    ClanHallTeamBattleEvent siegeEvent = clanHall.getSiegeEvent();
    CTBSiegeClanObject siegeClan = new CTBSiegeClanObject(SiegeEvent.ATTACKERS, clan, 0);
    siegeClan.getPlayers().add(player.getObjectId());
    siegeEvent.addObject(SiegeEvent.ATTACKERS, siegeClan);
    SiegeClanDAO.getInstance().insert(clanHall, siegeClan);
    SiegePlayerDAO.getInstance().insert(clanHall, clan.getClanId(), player.getObjectId());
    List<CTBSiegeClanObject> siegeClans = siegeEvent.getObjects(SiegeEvent.ATTACKERS);
    showFlagInfo(player, siegeClans.indexOf(siegeClan));
  }
View Full Code Here

Examples of lineage2.gameserver.model.entity.events.impl.FortressSiegeEvent.addObject()

        showChatWindow(player, "residence2/fortress/fortress_ordery006.htm");
        return;
      }
     
      siegeClan = new SiegeClanObject(SiegeEvent.ATTACKERS, clan, 0);
      siegeEvent.addObject(SiegeEvent.ATTACKERS, siegeClan);
      SiegeClanDAO.getInstance().insert(fortress, siegeClan);
     
      siegeEvent.reCalcNextTime(false);
     
      player.sendPacket(new SystemMessage2(SystemMsg.YOUR_CLAN_HAS_BEEN_REGISTERED_TO_S1S_FORTRESS_BATTLE).addResidenceName(fortress));
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.