Class RESTRequestImpl

java.lang.Object
se.liu.ida.hefquin.federation.access.impl.req.RESTRequestImpl
All Implemented Interfaces:
DataRetrievalRequest, RESTRequest

public class RESTRequestImpl extends Object implements RESTRequest
  • Field Details

    • uri

      protected final URI uri
  • Constructor Details

    • RESTRequestImpl

      public RESTRequestImpl(URI uri)
      Parameters:
      uri - - the URI to be requested
    • RESTRequestImpl

      public RESTRequestImpl(String uri) throws IllegalArgumentException
      Parameters:
      uri - - the URI to be requested (in the form of a string)
      Throws:
      IllegalArgumentException - if the given string cannot be turned into a suitable URI object
    • RESTRequestImpl

      public RESTRequestImpl(String urlTemplate, Map<String,String> bindings) throws IllegalArgumentException
      This 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 suitable URI object
  • Method Details