1 package com.srv4pos.server.api.infrastructure.http; 2 3 import com.srv4pos.server.api.infrastructure.ConnectionWriter; 4 import com.srv4pos.server.api.infrastructure.HttpMethod; 5 6 import java.util.Locale; 7 8 /** 9 * Instance of this interface responsible for making api calls. There are {@link HttpUrlTrasport} comes with this api by default. Pass it as a parameter 10 * if you want to use HTTP/HTTPS as network layer. 11 * 12 * <p>User: Kirill, Date: 13.09.13 13:40</p> 13 */ 14 public interface Transport { 15 Response invoke(HttpMethod httpMethod, String uri, String authenticaton, String eTag, String mimeType, ConnectionWriter body, Locale acceptLanguage); 16 void closeConnection(); 17 }