Class ViewQueryRequest

    • Constructor Detail

      • ViewQueryRequest

        public ViewQueryRequest​(String design,
                                String view,
                                boolean development,
                                String query,
                                String keys,
                                String bucket,
                                String password)
        Parameters:
        design - the name of the design document.
        view - the name of the view.
        development - true if development mode.
        query - the query parameters, except "keys".
        keys - the "keys" parameter as a JSON array, null if not needed.
        bucket - the bucket name.
        password - the bucket password.
      • ViewQueryRequest

        public ViewQueryRequest​(String design,
                                String view,
                                boolean development,
                                String query,
                                String keys,
                                String bucket,
                                String username,
                                String password)
        Parameters:
        design - the name of the design document.
        view - the name of the view.
        development - true if development mode.
        query - the query parameters, except "keys".
        keys - the "keys" parameter as a JSON array, null if not needed.
        bucket - the bucket name.
        username - the user authorized for bucket access.
        password - the user password.
      • ViewQueryRequest

        public ViewQueryRequest​(String design,
                                String view,
                                boolean development,
                                boolean spatial,
                                String query,
                                String keys,
                                String bucket,
                                String password)
        Parameters:
        design - the name of the design document.
        view - the name of the view.
        development - true if development mode.
        spatial - true if spatial query.
        query - the query parameters, except "keys".
        keys - the "keys" parameter as a JSON array, null if not needed.
        bucket - the bucket name.
        password - the bucket password.
      • ViewQueryRequest

        public ViewQueryRequest​(String design,
                                String view,
                                boolean development,
                                boolean spatial,
                                String query,
                                String keys,
                                String bucket,
                                String username,
                                String password)
        Parameters:
        design - the name of the design document.
        view - the name of the view.
        development - true if development mode.
        spatial - true if spatial query.
        query - the query parameters, except "keys".
        keys - the "keys" parameter as a JSON array, null if not needed.
        bucket - the bucket name.
        username - the user authorized for bucket access.
        password - the user password.
    • Method Detail

      • design

        public String design()
      • query

        public String query()
      • keys

        public String keys()
        Returns:
        the keys parameter as a JSON array String.
      • development

        public boolean development()
      • spatial

        public boolean spatial()