Class RESTEndpointImpl
java.lang.Object
se.liu.ida.hefquin.federation.members.impl.BaseForFederationMember
se.liu.ida.hefquin.federation.members.impl.RESTEndpointImpl
- All Implemented Interfaces:
FederationMember,RESTEndpoint
- Direct Known Subclasses:
WrappedRESTEndpointImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface se.liu.ida.hefquin.federation.members.RESTEndpoint
RESTEndpoint.Parameter -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<RESTEndpoint.Parameter> protected final StringFields inherited from class se.liu.ida.hefquin.federation.members.impl.BaseForFederationMember
id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintReturns the number of query parameters that can be passed in requests to this REST endpoint.getParameterByName(String name) Returns the parameter with the given name.Returns the types of query parameters that can be passed in requests to this REST endpoint.Returns the URL template of this REST endpoint.booleanReturnstrueif this federation member supports answering the given graph patterns in a single request.booleanReturnsfalseif the only types of graph patterns that can be answered by a single request to this federation member are triple patterns.toString()Methods inherited from class se.liu.ida.hefquin.federation.members.impl.BaseForFederationMember
getIDMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface se.liu.ida.hefquin.federation.FederationMember
getID
-
Field Details
-
urlTemplate
-
params
-
-
Constructor Details
-
RESTEndpointImpl
-
-
Method Details
-
getURLTemplate
Description copied from interface:RESTEndpointReturns the URL template of this REST endpoint.- Specified by:
getURLTemplatein interfaceRESTEndpoint
-
getNumberOfParameters
public int getNumberOfParameters()Description copied from interface:RESTEndpointReturns the number of query parameters that can be passed in requests to this REST endpoint. This number is the size of the iterable returned byRESTEndpoint.getParameters().- Specified by:
getNumberOfParametersin interfaceRESTEndpoint- Returns:
- number of query parameters accepted by this endpoint
-
getParameterByName
Description copied from interface:RESTEndpointReturns the parameter with the given name.- Specified by:
getParameterByNamein interfaceRESTEndpoint- Parameters:
name- the name of the parameter to be returned- Returns:
- the parameter with the given name, or
nullif no such parameter exists
-
getParameters
Description copied from interface:RESTEndpointReturns the types of query parameters that can be passed in requests to this REST endpoint. The number of query parameters (i.e., the number of elements in the returned iterable) can be obtained byRESTEndpoint.getNumberOfParameters().- Specified by:
getParametersin interfaceRESTEndpoint- Returns:
- types of query parameters accepted by this endpoint
-
supportsMoreThanTriplePatterns
public boolean supportsMoreThanTriplePatterns()Description copied from interface:FederationMemberReturnsfalseif the only types of graph patterns that can be answered by a single request to this federation member are triple patterns.Notice that a return value of
truedoes not mean that the federation member supports arbitrary graph patterns, but only that it supports more than only triple patterns. For a more specific way of checking, useFederationMember.isSupportedPattern(SPARQLGraphPattern).- Specified by:
supportsMoreThanTriplePatternsin interfaceFederationMember
-
isSupportedPattern
Description copied from interface:FederationMemberReturnstrueif this federation member supports answering the given graph patterns in a single request.- Specified by:
isSupportedPatternin interfaceFederationMember
-
toString
-
equals
- Overrides:
equalsin classBaseForFederationMember
-