Package org.ldaptive

Class SearchRequest.Builder

    • Constructor Detail

      • Builder

        protected Builder()
        Default constructor.
      • Builder

        protected Builder​(SearchRequest req)
        Creates a new builder.
        Parameters:
        req - search request to build
    • Method Detail

      • dn

        public SearchRequest.Builder dn​(java.lang.String dn)
        Sets the base DN.
        Parameters:
        dn - base DN
        Returns:
        this builder
      • sizeLimit

        public SearchRequest.Builder sizeLimit​(int size)
        Sets the size limit.
        Parameters:
        size - size limit
        Returns:
        this builder
      • timeLimit

        public SearchRequest.Builder timeLimit​(java.time.Duration time)
        Sets the time limit.
        Parameters:
        time - time limit
        Returns:
        this builder
      • typesOnly

        public SearchRequest.Builder typesOnly​(boolean types)
        Sets the types only.
        Parameters:
        types - whether to return only types
        Returns:
        this builder
      • filter

        public SearchRequest.Builder filter​(Filter filter)
        Sets the search filter.
        Parameters:
        filter - search filter
        Returns:
        this builder
      • filter

        public SearchRequest.Builder filter​(java.lang.String filter)
        Sets the search filter.
        Parameters:
        filter - search filter
        Returns:
        this builder
      • returnAttributes

        public SearchRequest.Builder returnAttributes​(java.lang.String... attributes)
        Sets the return attributes.
        Parameters:
        attributes - return attributes
        Returns:
        this builder
      • returnAttributes

        public SearchRequest.Builder returnAttributes​(java.util.Collection<java.lang.String> attributes)
        Sets the return attributes.
        Parameters:
        attributes - return attributes
        Returns:
        this builder
      • binaryAttributes

        public SearchRequest.Builder binaryAttributes​(java.lang.String... attributes)
        Sets the binary attributes.
        Parameters:
        attributes - binary attributes
        Returns:
        this builder
      • binaryAttributes

        public SearchRequest.Builder binaryAttributes​(java.util.Collection<java.lang.String> attributes)
        Sets the binary attributes.
        Parameters:
        attributes - binary attributes
        Returns:
        this builder