Interface CarConnectionService
-
- All Known Implementing Classes:
DefaultCarConnectionService
public interface CarConnectionServiceThis 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.HttpURLConnectioncreateConnection(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 CARcontentType- Content Type expected to be receivedhttpMethod- 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 connectionjava.net.MalformedURLException- Thrown if an unknown or unspecified protocol is provided
-
-