Interface CarConnectionService

All Known Implementing Classes:
DefaultCarConnectionService

public interface CarConnectionService
This interface provides the means to obtain a connection over HTTP to the CAR located at the provided URL
  • Method Details

    • createConnection

      HttpURLConnection createConnection(String absoluteUri, String contentType, String httpMethod) throws IOException, MalformedURLException
      Parameters:
      absoluteUri - Absolute target URI for CAR
      contentType - Content Type expected to be received
      httpMethod - HTTP Method to be used (PUT/POST/GET etc...)
      Returns:
      HTTP Connection established
      Throws:
      IOException - Exception thrown if an exception occurs when opening the connection
      MalformedURLException - Thrown if an unknown or unspecified protocol is provided