Class RESTRequestImpl
java.lang.Object
se.liu.ida.hefquin.federation.access.impl.req.RESTRequestImpl
- All Implemented Interfaces:
DataRetrievalRequest,RESTRequest
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRESTRequestImpl(String uri) RESTRequestImpl(String urlTemplate, Map<String, String> bindings) This constructor forms the URI by concatenating the given URL with a string of query parameters that is created from the given parameters.RESTRequestImpl(URI uri) -
Method Summary
Modifier and TypeMethodDescriptiongetURI()Returns the URI to be requested.protected static URItoRequestURI(String uri) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface se.liu.ida.hefquin.federation.access.DataRetrievalRequest
toStringMethods inherited from interface se.liu.ida.hefquin.federation.access.RESTRequest
getExpectedVariables
-
Field Details
-
uri
-
-
Constructor Details
-
RESTRequestImpl
- Parameters:
uri- - the URI to be requested
-
RESTRequestImpl
- Parameters:
uri- - the URI to be requested (in the form of a string)- Throws:
IllegalArgumentException- if the given string cannot be turned into a suitableURIobject
-
RESTRequestImpl
public RESTRequestImpl(String urlTemplate, Map<String, String> bindings) throws IllegalArgumentExceptionThis constructor forms the URI by concatenating the given URL with a string of query parameters that is created from the given parameters.- Parameters:
url-params-- Throws:
IllegalArgumentException- if the given URL, together with the given parameters, cannot be turned into a suitableURIobject
-
-
Method Details
-
toRequestURI
- Throws:
IllegalArgumentException
-
getURI
Description copied from interface:RESTRequestReturns the URI to be requested.- Specified by:
getURIin interfaceRESTRequest
-