Package net.sf.freecol.common.networking
Class UpdateTradeRouteMessage
- java.lang.Object
- 
- net.sf.freecol.common.networking.Message
- 
- net.sf.freecol.common.networking.TrivialMessage
- 
- net.sf.freecol.common.networking.AttributeMessage
- 
- net.sf.freecol.common.networking.ObjectMessage
- 
- net.sf.freecol.common.networking.UpdateTradeRouteMessage
 
 
 
 
 
- 
 public class UpdateTradeRouteMessage extends ObjectMessage The message sent when updating a trade route.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class net.sf.freecol.common.networking.MessageMessage.MessagePriority
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static java.lang.StringTAG- 
Fields inherited from class net.sf.freecol.common.networking.AttributeMessageattributes
 - 
Fields inherited from class net.sf.freecol.common.networking.TrivialMessagecontinueMessage, disconnectMessage, endTurnMessage, enterRevengeModeMessage, reconnectMessage, requestLaunchMessage, retireMessage, startGameMessage
 - 
Fields inherited from class net.sf.freecol.common.networking.Messagelogger, messagePriorityComparator
 
- 
 - 
Constructor SummaryConstructors Constructor Description UpdateTradeRouteMessage(Game game, FreeColXMLReader xr)Create a newUpdateTradeRouteMessagefrom a stream.UpdateTradeRouteMessage(TradeRoute tradeRoute)Create a newUpdateTradeRouteMessagewith the supplied trade route.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Message.MessagePrioritygetPriority()Get the priority of this type of message.private TradeRoutegetTradeRoute()Accessor for the trade route.ChangeSetserverHandler(FreeColServer freeColServer, ServerPlayer serverPlayer)Server-side handler for this message.- 
Methods inherited from class net.sf.freecol.common.networking.ObjectMessageappendChild, appendChildren, getChildCount, getChildren, setChildren
 - 
Methods inherited from class net.sf.freecol.common.networking.AttributeMessagecanMerge, getStringAttribute, getStringAttributeMap, hasAttribute, setMergeable, setStringAttribute
 - 
Methods inherited from class net.sf.freecol.common.networking.TrivialMessageaiHandler, clientHandler, currentPlayerMessage, getType, setType
 - 
Methods inherited from class net.sf.freecol.common.networking.MessageclientGeneric, expected, getArrayAttributes, getBooleanAttribute, getChild, getChildren, getEnumAttribute, getIntegerAttribute, getPriorityLevel, igc, igc, invokeAndWait, invokeLater, isEmpty, isType, merge, pgc, pgc, pretty, read, setArrayAttributes, setArrayAttributes, setBooleanAttribute, setEnumAttribute, setIntegerAttribute, setStringAttributeMap, setStringAttributes, setStringAttributes, toString, toXML, writeAttributes, writeChildren
 
- 
 
- 
- 
- 
Field Detail- 
TAGpublic static final java.lang.String TAG - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
UpdateTradeRouteMessagepublic UpdateTradeRouteMessage(TradeRoute tradeRoute) Create a newUpdateTradeRouteMessagewith the supplied trade route.- Parameters:
- tradeRoute- The- TradeRouteto update.
 
 - 
UpdateTradeRouteMessagepublic UpdateTradeRouteMessage(Game game, FreeColXMLReader xr) throws javax.xml.stream.XMLStreamException Create a newUpdateTradeRouteMessagefrom a stream.- Parameters:
- game- The- Gamethis message belongs to.
- xr- The- FreeColXMLReaderto read from.
- Throws:
- javax.xml.stream.XMLStreamException- if there is a problem reading the stream.
 
 
- 
 - 
Method Detail- 
getTradeRouteprivate TradeRoute getTradeRoute() Accessor for the trade route.- Returns:
- The attached TradeRoute.
 
 - 
getPrioritypublic Message.MessagePriority getPriority() Get the priority of this type of message.- Overrides:
- getPriorityin class- AttributeMessage
- Returns:
- The message priority.
 
 - 
serverHandlerpublic ChangeSet serverHandler(FreeColServer freeColServer, ServerPlayer serverPlayer) Server-side handler for this message.- Overrides:
- serverHandlerin class- TrivialMessage
- Parameters:
- freeColServer- The- FreeColServerhandling the request.
- serverPlayer- The- ServerPlayerthat sent the request.
- Returns:
- A ChangeSetdefining the response.
 
 
- 
 
-