Esempio n. 1
0
  /**
   * Adds the specified <tt>childExtension</tt> to the list of extensions registered with this
   * packet.
   *
   * <p>Overriding extensions may need to override this method if they would like to have anything
   * more elaborate than just a list of extensions (e.g. casting separate instances to more
   * specific.
   *
   * @param childExtension the extension we'd like to add here.
   */
  @Override
  public void addChildExtension(PacketExtension childExtension) {
    super.addChildExtension(childExtension);

    if (childExtension instanceof CryptoPacketExtension) {
      this.addCrypto(((CryptoPacketExtension) childExtension));
    }
  }