/** * Creates a new response. If the supplied response contains a {@link SyncDoneControl} it is made available via * {@link #getSyncDoneControl()}. * * @param res to search for sync done control in */ public Response(final org.ldaptive.Response<SearchResult> res) { response = res; syncDoneControl = (SyncDoneControl) response.getControl(SyncDoneControl.OID); }
/** * Creates a new response. If the supplied response contains a {@link SyncDoneControl} it is made available via * {@link #getSyncDoneControl()}. * * @param res to search for sync done control in */ public Response(final org.ldaptive.Response<SearchResult> res) { response = res; syncDoneControl = (SyncDoneControl) response.getControl(SyncDoneControl.OID); }
/** * Creates a new response. If the supplied response contains a {@link SyncDoneControl} it is made available via * {@link #getSyncDoneControl()}. * * @param res to search for sync done control in */ public Response(final org.ldaptive.Response<SearchResult> res) { response = res; syncDoneControl = (SyncDoneControl) response.getControl(SyncDoneControl.OID); }
/** * Returns the dir sync flags in the supplied response or -1 if no flags exists. * * @param response of a previous dir sync operation * * @return dir sync flags or -1 */ protected long getDirSyncFlags(final Response<SearchResult> response) { long flags = -1; final DirSyncControl ctl = (DirSyncControl) response.getControl(DirSyncControl.OID); if (ctl != null) { flags = ctl.getFlags(); } return flags; }
/** * Returns the dir sync flags in the supplied response or -1 if no flags exists. * * @param response of a previous dir sync operation * * @return dir sync flags or -1 */ protected long getDirSyncFlags(final Response<SearchResult> response) { long flags = -1; final DirSyncControl ctl = (DirSyncControl) response.getControl(DirSyncControl.OID); if (ctl != null) { flags = ctl.getFlags(); } return flags; }
/** * Returns the dir sync flags in the supplied response or -1 if no flags exists. * * @param response of a previous dir sync operation * * @return dir sync flags or -1 */ protected long getDirSyncFlags(final Response<SearchResult> response) { long flags = -1; final DirSyncControl ctl = (DirSyncControl) response.getControl(DirSyncControl.OID); if (ctl != null) { flags = ctl.getFlags(); } return flags; }
/** * Returns the dir sync cookie in the supplied response or null if no cookie exists. * * @param response of a previous dir sync operation * * @return dir sync cookie or null */ protected byte[] getDirSyncCookie(final Response<SearchResult> response) { byte[] cookie = null; final DirSyncControl ctl = (DirSyncControl) response.getControl(DirSyncControl.OID); if (ctl != null) { if (ctl.getCookie() != null && ctl.getCookie().length > 0) { cookie = ctl.getCookie(); } } return cookie; }
/** * Returns the dir sync cookie in the supplied response or null if no cookie exists. * * @param response of a previous dir sync operation * * @return dir sync cookie or null */ protected byte[] getDirSyncCookie(final Response<SearchResult> response) { byte[] cookie = null; final DirSyncControl ctl = (DirSyncControl) response.getControl(DirSyncControl.OID); if (ctl != null) { if (ctl.getCookie() != null && ctl.getCookie().length > 0) { cookie = ctl.getCookie(); } } return cookie; }
/** * Returns the dir sync cookie in the supplied response or null if no cookie exists. * * @param response of a previous dir sync operation * * @return dir sync cookie or null */ protected byte[] getDirSyncCookie(final Response<SearchResult> response) { byte[] cookie = null; final DirSyncControl ctl = (DirSyncControl) response.getControl(DirSyncControl.OID); if (ctl != null) { if (ctl.getCookie() != null && ctl.getCookie().length > 0) { cookie = ctl.getCookie(); } } return cookie; }
/** * Returns the paged results cookie in the supplied response or null if no cookie exists. * * @param response of a previous paged results operation * * @return paged results cookie or null */ protected byte[] getPagedResultsCookie(final Response<SearchResult> response) { byte[] cookie = null; final PagedResultsControl ctl = (PagedResultsControl) response.getControl(PagedResultsControl.OID); if (ctl != null) { if (ctl.getCookie() != null && ctl.getCookie().length > 0) { cookie = ctl.getCookie(); } } return cookie; } }
/** * Returns the paged results cookie in the supplied response or null if no cookie exists. * * @param response of a previous paged results operation * * @return paged results cookie or null */ protected byte[] getPagedResultsCookie(final Response<SearchResult> response) { byte[] cookie = null; final PagedResultsControl ctl = (PagedResultsControl) response.getControl(PagedResultsControl.OID); if (ctl != null) { if (ctl.getCookie() != null && ctl.getCookie().length > 0) { cookie = ctl.getCookie(); } } return cookie; } }
/** * Returns the paged results cookie in the supplied response or null if no cookie exists. * * @param response of a previous paged results operation * * @return paged results cookie or null */ protected byte[] getPagedResultsCookie(final Response<SearchResult> response) { byte[] cookie = null; final PagedResultsControl ctl = (PagedResultsControl) response.getControl(PagedResultsControl.OID); if (ctl != null) { if (ctl.getCookie() != null && ctl.getCookie().length > 0) { cookie = ctl.getCookie(); } } return cookie; } }
/** * 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; }