Examples of asArray()


Examples of com.adito.boot.PropertyList.asArray()

        if(configureContext) {
         
          PropertyList list = ContextHolder.getContext().getConfig().retrievePropertyList(new ContextKey("ssl.supportedProtocols"));
         
          if(!list.isEmpty()) {
            serverSocket.setEnabledProtocols(list.asArray());
          }
           
          list = ContextHolder.getContext().getConfig().retrievePropertyList(new ContextKey("ssl.supportedCiphers"));
         
          if(!list.isEmpty()) {
View Full Code Here

Examples of com.adito.boot.PropertyList.asArray()

          }
           
          list = ContextHolder.getContext().getConfig().retrievePropertyList(new ContextKey("ssl.supportedCiphers"));
         
          if(!list.isEmpty()) {
            serverSocket.setEnabledCipherSuites(list.asArray());
          }
        }
       
        protocols = serverSocket.getEnabledProtocols();
       
View Full Code Here

Examples of com.adito.boot.PropertyList.asArray()

        try {
            try {
                int priority = AuthenticationSchemeResourceType.getAuthenticationSchemePriority(getSessionInfo(request));
                defaultAuthenticationScheme = SystemDatabaseFactory.getInstance().createAuthenticationSchemeSequence(
                                getSessionInfo(request).getUser().getRealm().getRealmID(), name, description,
                                selectedModules.asArray(), true, priority);
                CoreEvent evt = new ResourceChangeEvent(this, CoreEventConstants.CREATE_AUTHENTICATION_SCHEME, defaultAuthenticationScheme, getSessionInfo(request), CoreEvent.STATE_SUCCESSFUL);
                int authCounter = 1;
                for (Iterator i = selectedModules.iterator(); i.hasNext();) {
                    AuthenticationSchemeResourceType.addAuthenticationModule(evt, (String) i.next(), authCounter);
                    authCounter++;
View Full Code Here

Examples of com.eclipsesource.json.JsonValue.asArray()

    }

    public static JsonArray getArray(JsonObject object, String field) {
        final JsonValue value = object.get(field);
        throwExceptionIfNull(value, field);
        return value.asArray();
    }

    public static JsonArray getArray(JsonObject object, String field, JsonArray defaultValue) {
        final JsonValue value = object.get(field);
        if (value == null) {
View Full Code Here

Examples of com.github.jsonj.JsonElement.asArray()

            } catch (IllegalNameException exc1) {
                child = new Element("_" + entry.getKey());
            }
            JsonElement value = entry.getValue();
            if(value.isArray()) {
                append(child, value.asArray());
            } else if(value.isObject()) {
                append(child, value.asObject());
            } else {
                append(child, value.asPrimitive());
            }
View Full Code Here

Examples of com.github.jsonj.JsonElement.asArray()

        if (isObject) {
            stack.add(primitive);
        } else {
            JsonElement peekLast = stack.peekLast();
            if (peekLast instanceof JsonArray) {
                peekLast.asArray().add(primitive);
            } else {
                stack.add(primitive);
            }
        }
        return true;
View Full Code Here

Examples of com.google.json.serialization.JsonValue.asArray()

      preOrderVisitor.visit(node);
    }

    JsonValue childNode = node.get("children");
    if (childNode != JsonValue.NULL) {
      JsonArray children = childNode.asArray();

      for (int i = 0, n = children.getLength(); i < n; i++) {
        traverseImpl(children.get(i).asObject(), preOrderVisitor,
            postOrderVisitor);
      }
View Full Code Here

Examples of com.google.json.serialization.JsonValue.asArray()

  private double traverseImpl(JsonObject node,
      JsonVisitorDouble postOrderVisitor) throws JsonException {
    List<Double> values = new ArrayList<Double>();
    JsonValue childNode = node.get("children");
    if (childNode != JsonValue.NULL) {
      JsonArray children = childNode.asArray();
      for (int i = 0, n = children.getLength(); i < n; i++) {
        values.add(traverseImpl(children.get(i).asObject(), postOrderVisitor));
      }
    }
    return postOrderVisitor.visit(node, values);
View Full Code Here

Examples of com.google.json.serialization.JsonValue.asArray()

    if (type == queryType) {
      results.add(record);
    }
    JsonValue childNode = record.get("children");
    if (childNode != JsonValue.NULL) {
      JsonArray children = childNode.asArray();
      for (int i = 0, length = children.getLength(); i < length; ++i) {
        findRecordsByTypeRecursive(children.get(i).asObject(), queryType,
            results);
      }
    }
View Full Code Here

Examples of com.hazelcast.com.eclipsesource.json.JsonValue.asArray()

    }

    public static JsonArray getArray(JsonObject object, String field) {
        final JsonValue value = object.get(field);
        throwExceptionIfNull(value, field);
        return value.asArray();
    }

    public static JsonArray getArray(JsonObject object, String field, JsonArray defaultValue) {
        final JsonValue value = object.get(field);
        if (value == null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.