/** * Creates a new sort response control. * * @param code result of the sort * @param critical whether this control is critical */ public SortResponseControl(final ResultCode code, final boolean critical) { super(OID, critical); setSortResult(code); }
/** * Creates a new sort response control. * * @param code result of the sort * @param critical whether this control is critical */ public SortResponseControl(final ResultCode code, final boolean critical) { super(OID, critical); setSortResult(code); }
/** * Creates a new sort response control. * * @param code result of the sort * @param critical whether this control is critical */ public SortResponseControl(final ResultCode code, final boolean critical) { super(OID, critical); setSortResult(code); }
/** * Creates a new sort response control. * * @param code result of the sort * @param attrName name of the failed attribute * @param critical whether this control is critical */ public SortResponseControl(final ResultCode code, final String attrName, final boolean critical) { super(OID, critical); setSortResult(code); setAttributeName(attrName); }
/** * Creates a new sort response control. * * @param code result of the sort * @param attrName name of the failed attribute * @param critical whether this control is critical */ public SortResponseControl(final ResultCode code, final String attrName, final boolean critical) { super(OID, critical); setSortResult(code); setAttributeName(attrName); }
/** * Creates a new sort response control. * * @param code result of the sort * @param attrName name of the failed attribute * @param critical whether this control is critical */ public SortResponseControl(final ResultCode code, final String attrName, final boolean critical) { super(OID, critical); setSortResult(code); setAttributeName(attrName); }
@Override public void handle(final DERParser parser, final ByteBuffer encoded) { final int resultValue = IntegerType.decode(encoded).intValue(); final ResultCode rc = ResultCode.valueOf(resultValue); if (rc == null) { throw new IllegalArgumentException("Unknown result code " + resultValue); } getObject().setSortResult(rc); } }
@Override public void handle(final DERParser parser, final ByteBuffer encoded) { final int resultValue = IntegerType.decode(encoded).intValue(); final ResultCode rc = ResultCode.valueOf(resultValue); if (rc == null) { throw new IllegalArgumentException("Unknown result code " + resultValue); } getObject().setSortResult(rc); } }
@Override public void handle(final DERParser parser, final ByteBuffer encoded) { final int resultValue = IntegerType.decode(encoded).intValue(); final ResultCode rc = ResultCode.valueOf(resultValue); if (rc == null) { throw new IllegalArgumentException("Unknown result code " + resultValue); } getObject().setSortResult(rc); } }