Class VariantODataFilterQuery

  • All Implemented Interfaces:
    Variant

    public class VariantODataFilterQuery
    extends java.lang.Object
    implements Variant
    Specialized variant able to handle the filter parameters of OData URIs (focused on OData v2)

    Example of query:
    http://services.odata.org/OData/OData.svc/Product?$filter=startswith(name,'Foo') and price lt 10

    References:

    • http://www.odata.org/documentation/uri-conventions
    • http://msdn.microsoft.com/en-us/library/gg309461.aspx#BKMK_filter
    TODO:
    - Properly handle escaped vs. unescaped parameters
    - Handle OData functions (startwith, substringof, ...)
    • Constructor Detail

      • VariantODataFilterQuery

        public VariantODataFilterQuery()
    • Method Detail

      • getShortName

        public java.lang.String getShortName()
        Description copied from interface: Variant
        Gets a short name of the Variant
        Specified by:
        getShortName in interface Variant
        Returns:
        a String the short name of the variant
      • getParamList

        public java.util.Vector<NameValuePair> getParamList()
        Description copied from interface: Variant
        Gets the list of parameters handled by this variant.
        Specified by:
        getParamList in interface Variant
        Returns:
        a List containing the parameters