Class QueryService.QueryRequest

  • All Implemented Interfaces:
    Request
    Enclosing class:
    QueryService

    protected static class QueryService.QueryRequest
    extends RequestImpl
    The request class for handling queries - in particular this class is responsible for handling the query parameters. The only special one that query supports is "query"
    • Constructor Detail

      • QueryRequest

        public QueryRequest​(Request.RequestType type,
                            java.lang.String serviceUrl,
                            ContentType contentType)
        Constructor.
        Parameters:
        type - GET or POST
        serviceUrl - the URL of the service, without parameters
        contentType - a ContentType object
    • Method Detail

      • setQuery

        public void setQuery​(java.lang.String xml)
        Adds the query to be run. The query is passed to the service as a string, in XML format.
        Parameters:
        xml - the query to be executed, in XML format