Package org.cometd.bayeux.server

Examples of org.cometd.bayeux.server.ServerSession$Extension


  }

  private List<String> getAvailableUpdaterTypes() {
    List<String> availableUpdaterTypes = new ArrayList<String>();
    for (String id : this.updaters.keySet()) {
      ServerSession updater = this.clientids.get(id);
      availableUpdaterTypes.add((String) updater
          .getAttribute("updaterType"));
    }
    return availableUpdaterTypes;
  }
View Full Code Here


    }

    @Override
    public void run() {
      SessionManager manager = SessionManager.getInstance();
      ServerSession server = manager.getServerSession();

      this.client.deliver(server, "/service/session/join/siteid",
          this.siteId, null);
      this.client.deliver(server, "/service/session/join/roster",
          this.roster, null);
View Full Code Here

  @Override
  public void reply(Bot bot, String replyToken, Map<String, Object> obj) {

    log.fine("LocalTransport::reply");
    log.fine("reply data = " + obj);
    ServerSession client = this.clients.get(replyToken);

    if (client == null) {
      log.warning("LocalTransport::error " +
          "sending bot reply client not found");
      // TODO send error.
      return;
    }

    HashMap<String, Object> data = new HashMap<String, Object>();
    data.put("value", obj);
    data.put("topic", replyToken);
    data.put("error", false);

    log.fine("LocalTransport::reply");
    log.fine("payload = " + data);
    log.fine("replyToken = " + replyToken);

    client.deliver(this.server, "/service/bot/" + this.serviceName +
        "/response", data, null);
    this.clients.remove(replyToken);
  }
View Full Code Here

      log.severe("handler not found for sessionId = " + sessionId
          + " siteId = " + siteId);
      return;
    }

    ServerSession client = handler.getServerSessionFromSiteid(siteId);
    if (client != null) {
      log.info("ServerSession found about to call disconnect");
      client.disconnect();
    } else {
      log.severe("ServerSession not found from handler delegate sessionId = "
          + sessionId);
    }
  }
View Full Code Here

            if (result == null)
                result = defaultCase(theEObject);
            return result;
        }
        case Bpmn2Package.EXTENSION: {
            Extension extension = (Extension) theEObject;
            T result = caseExtension(extension);
            if (result == null)
                result = defaultCase(theEObject);
            return result;
        }
View Full Code Here

        @Override
        public void endElement(String uri, String localName, String name) {
            // Detect Extension object
            EObject peekObject = objects.peek();
            if (peekObject instanceof Extension) {
                Extension extension = (Extension) peekObject;
                if (extension.isMustUnderstand() && null != extension.getXsdDefinition()) {
                    loadExtensionSchema(extension.getXsdDefinition());
                }
            }
            super.endElement(uri, localName, name);
        }
View Full Code Here

   }

   public static Extension createExtension(Object any)
   {
      ParameterValidation.throwIllegalArgExceptionIfNull(any, "Any");
      Extension extension = new Extension();
      extension.setAny(any);

      return extension;
   }
View Full Code Here

   {
      public Extension apply(V1Extension from)
      {
         if (from != null)
         {
            Extension extension = WSRPTypeFactory.createExtension(from.getAny());
            return extension;
         }
         else
         {
            return null;
View Full Code Here

   }

   public static Extension createExtension(Object any)
   {
      ParameterValidation.throwIllegalArgExceptionIfNull(any, "Any");
      Extension extension = new Extension();
      extension.setAny(any);

      return extension;
   }
View Full Code Here

   }

   public static Extension createExtension(Object any)
   {
      ParameterValidation.throwIllegalArgExceptionIfNull(any, "Any");
      Extension extension = new Extension();
      extension.setAny(any);

      return extension;
   }
View Full Code Here

TOP

Related Classes of org.cometd.bayeux.server.ServerSession$Extension

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.