| | |
| | | * Header, with the fields enclosed by brackets [] replaced by your own identifying |
| | | * information: "Portions Copyright [year] [name of copyright owner]". |
| | | * |
| | | * Copyright 2015 ForgeRock AS. |
| | | * Copyright 2015-2016 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.loggers; |
| | | |
| | |
| | | |
| | | private JsonValue getLdapValue() |
| | | { |
| | | final JsonValue ldapValue; |
| | | if (jsonValue.isDefined("ldap")) |
| | | if (!jsonValue.isDefined("ldap")) |
| | | { |
| | | ldapValue = jsonValue.get("ldap"); |
| | | jsonValue.put("ldap", object()); |
| | | } |
| | | else |
| | | { |
| | | ldapValue = json(object()); |
| | | jsonValue.put("ldap", ldapValue); |
| | | } |
| | | return ldapValue; |
| | | return jsonValue.get("ldap"); |
| | | } |
| | | } |