Class StatefulQuery
java.lang.Object
org.gcube.common.clients.fw.queries.StatefulQuery
- All Implemented Interfaces:
org.gcube.common.clients.queries.Query<jakarta.xml.ws.EndpointReference>
public class StatefulQuery
extends Object
implements org.gcube.common.clients.queries.Query<jakarta.xml.ws.EndpointReference>
A
Query for stateful gCore services.- Author:
- Fabio Simeoni, Luca Frosini (ISTI-CNR)
-
Constructor Summary
ConstructorsConstructorDescriptionStatefulQuery(Plugin<?, ?> plugin) Creates an instance with a given proxyPlugin. -
Method Summary
Modifier and TypeMethodDescriptionaddCondition(String condition) Adds a free-form condition on query results.addNamespace(String prefix, URI uri) Adds a namespace to the query.addVariable(String name, String range) Adds a variable to the query.booleanList<jakarta.xml.ws.EndpointReference>fire()inthashCode()toString()
-
Constructor Details
-
StatefulQuery
Creates an instance with a given proxyPlugin.- Parameters:
plugin- the plugin
-
-
Method Details
-
addVariable
Adds a variable to the query.- Parameters:
name- the name of the variablerange- the range of the variable- Returns:
- the query
- See Also:
-
SimpleQuery.addVariable(String, String)
-
addCondition
Adds a free-form condition on query results.- Parameters:
condition- the condition- Returns:
- the query
- See Also:
-
SimpleQuery.addCondition(String)
-
addNamespace
Adds a namespace to the query.- Parameters:
prefix- the namespace prefixuri- the namespace URI- Returns:
- the query
- See Also:
-
SimpleQuery.addNamespace(String, URI)
-
fire
public List<jakarta.xml.ws.EndpointReference> fire() throws org.gcube.common.clients.exceptions.DiscoveryException- Specified by:
firein interfaceorg.gcube.common.clients.queries.Query<jakarta.xml.ws.EndpointReference>- Throws:
org.gcube.common.clients.exceptions.DiscoveryException
-
toString
-
hashCode
public int hashCode() -
equals
-