Package nu.fw.jeti.jabber.handlers

Examples of nu.fw.jeti.jabber.handlers.ExtensionHandler


          break;
        default:
          String xmlns = attrs.getValue("xmlns");
          if(xmlns !=null)
          {//if contains xmlns new extension //extension in extension?
            ExtensionHandler tempExtensionHandler = handlers.getExtensionHandler(xmlns);
            if(tempExtensionHandler == null)
            {// unknown extension handler
              tempExtensionHandler = handlers.getExtensionHandler("unknown");
            }
            if (extensionHandler != null) tempExtensionHandler.setParent(extensionHandler);//extension in extension
            extensionHandler = tempExtensionHandler;
            extensionHandler.setName(qName);
            extensionHandler.startHandling(attrs);
          }
          else if(extensionHandler !=null)
View Full Code Here


        if(extensionHandler != null)
        {//in extension
          //if(extensionHandler.getName().equals(qName))//name matched start tag so close extension
          if(extensionHandler.isTop())
          {
            ExtensionHandler parent = extensionHandler.getParent();
            if(parent != null)
            {//extension has parent add this extension to parent
              try{
                parent.addExtension(extensionHandler.build());
              }catch(InstantiationException e){Log.xmlParseException(e);}
              extensionHandler.setParent(null);//clear parent
              extensionHandler = parent;
            }
            else
View Full Code Here

    backend.addExtensionHandler("http://jabber.org/protocol/si/profile/file-transfer",new XSiFileTransferHandler());
    backend.addCapability("si", "http://jabber.org/protocol/bytestreams");
    backend.addCapability("si", "http://jabber.org/protocol/ibb");
    backend.addCapability("si", "http://jabber.org/protocol/si");
    backend.addCapability("si", "http://jabber.org/protocol/si/profile/file-transfer");
    backend.addExtensionHandler("http://jabber.org/protocol/feature-neg",new ExtensionHandler()
    {
      private XData data;
     
      public void startHandling(Attributes attr)
      {
View Full Code Here

TOP

Related Classes of nu.fw.jeti.jabber.handlers.ExtensionHandler

Copyright © 2018 www.massapicom. 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.