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 Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.net.HttpURLConnection createConnection​(java.lang.String absoluteUri, java.lang.String contentType, java.lang.String httpMethod)  
    • Method Detail

      • createConnection

        java.net.HttpURLConnection createConnection​(java.lang.String absoluteUri,
                                                    java.lang.String contentType,
                                                    java.lang.String httpMethod)
                                             throws java.io.IOException,
                                                    java.net.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:
        java.io.IOException - Exception thrown if an exception occurs when opening the connection
        java.net.MalformedURLException - Thrown if an unknown or unspecified protocol is provided