/** * Creates a new virtual list view request control. * * @param assertion value to match in the sort control * @param before number of entries before the target * @param after number of entries after the target * @param context server context id * @param critical whether this control is critical */ public VirtualListViewRequestControl( final String assertion, final int before, final int after, final byte[] context, final boolean critical) { super(OID, critical); setAssertionValue(assertion); setBeforeCount(before); setAfterCount(after); setContextID(context); }
/** * Creates a new virtual list view request control. * * @param assertion value to match in the sort control * @param before number of entries before the target * @param after number of entries after the target * @param context server context id * @param critical whether this control is critical */ public VirtualListViewRequestControl( final String assertion, final int before, final int after, final byte[] context, final boolean critical) { super(OID, critical); setAssertionValue(assertion); setBeforeCount(before); setAfterCount(after); setContextID(context); }
/** * Creates a new virtual list view request control. * * @param assertion value to match in the sort control * @param before number of entries before the target * @param after number of entries after the target * @param context server context id * @param critical whether this control is critical */ public VirtualListViewRequestControl( final String assertion, final int before, final int after, final byte[] context, final boolean critical) { super(OID, critical); setAssertionValue(assertion); setBeforeCount(before); setAfterCount(after); setContextID(context); }
/** * Creates a new virtual list view request control. * * @param offset target entry offset * @param before number of entries before the target * @param after number of entries after the target * @param count server estimate of the number of entries * @param context server context id * @param critical whether this control is critical */ public VirtualListViewRequestControl( final int offset, final int before, final int after, final int count, final byte[] context, final boolean critical) { super(OID, critical); setTargetOffset(offset); setBeforeCount(before); setAfterCount(after); setContentCount(count); setContextID(context); }
/** * Creates a new virtual list view request control. * * @param offset target entry offset * @param before number of entries before the target * @param after number of entries after the target * @param count server estimate of the number of entries * @param context server context id * @param critical whether this control is critical */ public VirtualListViewRequestControl( final int offset, final int before, final int after, final int count, final byte[] context, final boolean critical) { super(OID, critical); setTargetOffset(offset); setBeforeCount(before); setAfterCount(after); setContentCount(count); setContextID(context); }
/** * Creates a new virtual list view request control. * * @param offset target entry offset * @param before number of entries before the target * @param after number of entries after the target * @param count server estimate of the number of entries * @param context server context id * @param critical whether this control is critical */ public VirtualListViewRequestControl( final int offset, final int before, final int after, final int count, final byte[] context, final boolean critical) { super(OID, critical); setTargetOffset(offset); setBeforeCount(before); setAfterCount(after); setContentCount(count); setContextID(context); }
/** * Creates a new virtual list view request control using the properties in this VLV params. The supplied response is * inspected and if it contains a VLV response control, it's contextID and/or content count will be passed into the * created request control. * * @param response response of a previous VLV operation * @param critical whether the returned control is critical * * @return virtual list view request control */ public VirtualListViewRequestControl createRequestControl( final Response<SearchResult> response, final boolean critical) { final VirtualListViewRequestControl control = createRequestControl(critical); final VirtualListViewResponseControl responseControl = (VirtualListViewResponseControl) response.getControl( VirtualListViewResponseControl.OID); if (responseControl != null) { if (assertionValue == null) { control.setContentCount(responseControl.getContentCount()); } control.setContextID(responseControl.getContextID()); } return control; }
/** * Creates a new virtual list view request control using the properties in this VLV params. The supplied response is * inspected and if it contains a VLV response control, it's contextID and/or content count will be passed into the * created request control. * * @param response response of a previous VLV operation * @param critical whether the returned control is critical * * @return virtual list view request control */ public VirtualListViewRequestControl createRequestControl( final Response<SearchResult> response, final boolean critical) { final VirtualListViewRequestControl control = createRequestControl(critical); final VirtualListViewResponseControl responseControl = (VirtualListViewResponseControl) response.getControl( VirtualListViewResponseControl.OID); if (responseControl != null) { if (assertionValue == null) { control.setContentCount(responseControl.getContentCount()); } control.setContextID(responseControl.getContextID()); } return control; }
/** * Creates a new virtual list view request control using the properties in this VLV params. The supplied response is * inspected and if it contains a VLV response control, it's contextID and/or content count will be passed into the * created request control. * * @param response response of a previous VLV operation * @param critical whether the returned control is critical * * @return virtual list view request control */ public VirtualListViewRequestControl createRequestControl( final Response<SearchResult> response, final boolean critical) { final VirtualListViewRequestControl control = createRequestControl(critical); final VirtualListViewResponseControl responseControl = (VirtualListViewResponseControl) response.getControl( VirtualListViewResponseControl.OID); if (responseControl != null) { if (assertionValue == null) { control.setContentCount(responseControl.getContentCount()); } control.setContextID(responseControl.getContextID()); } return control; }