You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by "Luca Cinquini (JIRA)" <ji...@apache.org> on 2013/11/08 12:53:22 UTC

[jira] [Comment Edited] (OODT-656) Change visibility of QueryServlet.getQuery() method

    [ https://issues.apache.org/jira/browse/OODT-656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13817208#comment-13817208 ] 

Luca Cinquini edited comment on OODT-656 at 11/8/13 11:52 AM:
--------------------------------------------------------------

Changes have been implemented. The new subclass of QueryServlet is called RestfulQueryServlet, and will construct an XMLQuery with logical AND of the form:

param1=value1 AND param2=value2 AND param3=value3....

from a generic list of parameters embedded in the HTTP request - unless the "q" or "xmlq" parameters are found in the request, in which case it will fall back to the standard parsing style.

Note that this servlet is NOT the default servlet for the web-grid module, it needs to be explicitly enabled by editing web.xml (although because of its backward compatibility, it could be made the default servlet).


was (Author: cinquini):
Changes have been implemented. The new subclass of QueryServlet is called RestfulQueryServlet, and will construct an XMLQuery with logical AND of the form:

param1=value1 AND param2=value2 & param3=value3....

from a generic list of parameters embedded in the HTTP request - unless the "q" or "xmlq" parameters are found in the request, in which case it will fall back to the standard parsing style.

Note that this servlet is NOT the default servlet for the web-grid module, it needs to be explicitly enabled by editing web.xml (although because of its backward compatibility, it could be made the default servlet).

> Change visibility of QueryServlet.getQuery() method
> ---------------------------------------------------
>
>                 Key: OODT-656
>                 URL: https://issues.apache.org/jira/browse/OODT-656
>             Project: OODT
>          Issue Type: Improvement
>          Components: grid
>    Affects Versions: 0.6
>            Reporter: Luca Cinquini
>            Assignee: Luca Cinquini
>             Fix For: 0.7
>
>
> The class QueryServlet uses the private method getQuery() to parse the HTTP request and create an XMLQuery object to process.
> PDS has a need to provide its own parsing of the HTTP request parameters (in order to enable an easier syntax than the current DIS-style query syntax). This can be achieved by providing a subclass of QueryServlet that implements its own version of getQuery().
> Therefore, it is suggested that we change the visibility of that method from "private" to "protected". This change should have no ill effects on any of the software using the QueryServlet class.



--
This message was sent by Atlassian JIRA
(v6.1#6144)