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
Modifier and TypeMethodDescriptioncreateConnection(String absoluteUri, String contentType, String httpMethod)
-
Method Details
-
createConnection
HttpURLConnection createConnection(String absoluteUri, String contentType, String httpMethod) throws IOException, 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:
IOException- Exception thrown if an exception occurs when opening the connectionMalformedURLException- Thrown if an unknown or unspecified protocol is provided
-