Class SRUScanRequest


  • public class SRUScanRequest
    extends Object
    An object for performing a explain operation.

    The following argument arguments are mandatory:

    • scanClause
    See Also:
    SRUScanHandler, SRU Scan Operation
    • Constructor Detail

      • SRUScanRequest

        public SRUScanRequest​(URI baseURI)
        Constructor.
        Parameters:
        baseURI - the baseURI of the endpoint
      • SRUScanRequest

        public SRUScanRequest​(String baseURI)
        Constructor.
        Parameters:
        baseURI - the baseURI of the endpoint
    • Method Detail

      • getScanClause

        public String getScanClause()
        Get the value of the scanClause argument for this request.
        Returns:
        the value for the scanClause argument or null of none was set
      • setScanClause

        public void setScanClause​(String scanClause)
        Set the value of the scanClause argument for this request.
        Parameters:
        scanClause - the value for the scanClause argument
        Throws:
        NullPointerException - if any required argument is null
        IllegalArgumentException - if any argument is invalid
      • getResponsePosition

        public int getResponsePosition()
        Get the value of the responsePosition argument for this request.
        Returns:
        the value for the responsePosition argument
      • setResponsePosition

        public void setResponsePosition​(int responsePosition)
        Set the value of the responsePosition argument for this request.
        Parameters:
        responsePosition - the value for the responsePosition argument
        Throws:
        IllegalArgumentException - if any argument is invalid
      • getMaximumTerms

        public int getMaximumTerms()
        Get the value of the maximumTerms argument for this request.
        Returns:
        the value for the maximumTerms argument
      • setMaximumTerms

        public void setMaximumTerms​(int maximumTerms)
        Set the value of the maximumTerms argument for this request.
        Parameters:
        maximumTerms - the value for the maximumTerms argument
        Throws:
        IllegalArgumentException - if any argument is invalid
      • getOperation

        public SRUOperation getOperation()
        Note: this method is not a part of public API.
        Returns:
        a operation constant for this request
      • getBaseURI

        public URI getBaseURI()
        Get the baseURI of the SRU server.
        Returns:
        the baseURI of the SRU server
      • isStrictMode

        public boolean isStrictMode()
        Get the SRU protocol conformance mode for this request
        Returns:
        true if the request will be performed in strict mode, false if the request will be performed in a more tolerant mode
      • setStrictMode

        public void setStrictMode​(boolean strictMode)
        Set the SRU protocol conformance mode for this request
        Parameters:
        strictMode - true if the request should be performed in strict mode, false if the request should be performed client should in a more tolerant mode
      • setVersion

        public void setVersion​(SRUVersion version)
        Set the version for this request.
        Parameters:
        version - a version of null for client default
      • getVersion

        public SRUVersion getVersion()
        Get the version for this request.
        Returns:
        version for this request or null if client default is used
      • getExtraRequestData

        public String getExtraRequestData​(String name)
        Set the value of extra request parameter for this request.
        Parameters:
        name - the name for the extra request data parameter
        Returns:
        the value for the extra request data parameter or null if parameter was not set
        Throws:
        NullPointerException - if any required argument is null
        IllegalArgumentException - if any argument is invalid
        See Also:
        SRU Extra Data / Extensions
      • getRequestedURI

        public final URI getRequestedURI()
        Get the URI that was used to perform the request. This method may only be called after the request was carried out, otherwise it will throw an IllegalStateException.
        Returns:
        the URI that was used to carry out this request
        Throws:
        IllegalStateException - if the request was not yet carried out
      • getRequestedVersion

        public final SRUVersion getRequestedVersion()
        Get the version that was used to carry out this request. This method may only be called after the request was carried out, otherwise it will throw an IllegalStateException.
        Returns:
        the version that was used to carry out this request
        Throws:
        IllegalStateException - if the request was not yet carried out