return this;
}
public Packet encode(Session session, Object obj) throws Exception {
for (Iterator iter = chain.iterator(); iter.hasNext();) {
PacketEncoder encoder = (PacketEncoder) iter.next();
Packet packet = encoder.encode(session, obj);
if (packet != null)
return packet;
}
return null;
}