| | |
| | | import org.opends.sdk.ldap.LDAPUtils; |
| | | import org.opends.sdk.schema.Schema; |
| | | |
| | | import com.sun.opends.sdk.util.LocalizedIllegalArgumentException; |
| | | import com.sun.opends.sdk.util.Message; |
| | | import com.sun.opends.sdk.util.StaticUtils; |
| | | import com.sun.opends.sdk.util.Validator; |
| | | |
| | |
| | | public LocalizedIllegalArgumentException visitAndFilter(Filter p, |
| | | List<Filter> subFilters) |
| | | { |
| | | Message message = ERR_MVFILTER_BAD_FILTER_AND.get(p.toString()); |
| | | LocalizableMessage message = ERR_MVFILTER_BAD_FILTER_AND.get(p.toString()); |
| | | return new LocalizedIllegalArgumentException(message); |
| | | } |
| | | |
| | |
| | | { |
| | | if (dnAttributes) |
| | | { |
| | | Message message = ERR_MVFILTER_BAD_FILTER_EXT.get(p.toString()); |
| | | LocalizableMessage message = ERR_MVFILTER_BAD_FILTER_EXT.get(p.toString()); |
| | | return new LocalizedIllegalArgumentException(message); |
| | | } |
| | | else |
| | |
| | | public LocalizedIllegalArgumentException visitNotFilter(Filter p, |
| | | Filter subFilter) |
| | | { |
| | | Message message = ERR_MVFILTER_BAD_FILTER_NOT.get(p.toString()); |
| | | LocalizableMessage message = ERR_MVFILTER_BAD_FILTER_NOT.get(p.toString()); |
| | | return new LocalizedIllegalArgumentException(message); |
| | | } |
| | | |
| | |
| | | public LocalizedIllegalArgumentException visitOrFilter(Filter p, |
| | | List<Filter> subFilters) |
| | | { |
| | | Message message = ERR_MVFILTER_BAD_FILTER_OR.get(p.toString()); |
| | | LocalizableMessage message = ERR_MVFILTER_BAD_FILTER_OR.get(p.toString()); |
| | | return new LocalizedIllegalArgumentException(message); |
| | | } |
| | | |
| | |
| | | public LocalizedIllegalArgumentException visitUnrecognizedFilter( |
| | | Filter p, byte filterTag, ByteSequence filterBytes) |
| | | { |
| | | Message message = ERR_MVFILTER_BAD_FILTER_UNRECOGNIZED.get(p |
| | | LocalizableMessage message = ERR_MVFILTER_BAD_FILTER_UNRECOGNIZED.get(p |
| | | .toString(), filterTag); |
| | | return new LocalizedIllegalArgumentException(message); |
| | | } |
| | |
| | | { |
| | | if (value == null) |
| | | { |
| | | Message message = ERR_MATCHEDVALUES_NO_CONTROL_VALUE.get(); |
| | | LocalizableMessage message = ERR_MATCHEDVALUES_NO_CONTROL_VALUE.get(); |
| | | throw DecodeException.error(message); |
| | | } |
| | | |
| | |
| | | reader.readStartSequence(); |
| | | if (!reader.hasNextElement()) |
| | | { |
| | | Message message = ERR_MATCHEDVALUES_NO_FILTERS.get(); |
| | | LocalizableMessage message = ERR_MATCHEDVALUES_NO_FILTERS.get(); |
| | | throw DecodeException.error(message); |
| | | } |
| | | |
| | |
| | | StaticUtils.DEBUG_LOG.throwing("MatchedValuesControl.Decoder", |
| | | "decode", e); |
| | | |
| | | Message message = ERR_MATCHEDVALUES_CANNOT_DECODE_VALUE_AS_SEQUENCE |
| | | LocalizableMessage message = ERR_MATCHEDVALUES_CANNOT_DECODE_VALUE_AS_SEQUENCE |
| | | .get(getExceptionMessage(e)); |
| | | throw DecodeException.error(message); |
| | | } |