@Test public void callEndpointWithoutResponse() throws ODataClientException, MalformedURLException { thrown.expect(ODataClientHttpError.class); thrown.expectMessage("Unable to get response from OData service: No Response"); caller.callEndpoint(singletonMap("Accept", JSON.getType()), new URL(basePath)); }
@Override public String callEndpoint(Map<String, String> requestProperties, URL urlToCall) throws ODataClientException { LOG.debug("Preparing the call endpoint for given url: {}", urlToCall); HttpURLConnection conn = getConnection(populateRequestProperties(requestProperties, -1, null, XML), urlToCall); return getResponse(conn); }
BasicEndpointCaller implements EndpointCaller { @Override public String callEndpoint(Map<String, String> requestProperties, URL urlToCall) throws ODataClientException { LOG.debug("Preparing the call endpoint for given url: {}", urlToCall); HttpURLConnection conn = getConnection(populateRequestProperties(requestProperties, -1, null, XML), urlToCall); return getResponse(conn); } }
BasicEndpointCaller implements EndpointCaller { @Override public String callEndpoint(Map<String, String> requestProperties, URL urlToCall) throws ODataClientException { LOG.debug("Preparing the call endpoint for given url: {}", urlToCall); HttpURLConnection conn = getConnection(populateRequestProperties(requestProperties, -1, null, XML), urlToCall); return getResponse(conn); } BasicEndpointCaller(Properties properties); }
BasicEndpointCaller implements EndpointCaller { @Override public String callEndpoint(Map<String, String> requestProperties, URL urlToCall) throws ODataClientException { LOG.debug("Preparing the call endpoint for given url: {}", urlToCall); HttpURLConnection conn = getConnection(populateRequestProperties(requestProperties, -1, null, XML), urlToCall); return getResponse(conn); } BasicEndpointCaller(Properties properties); @Override String callEndpoint(Map<String, String> requestProperties, URL urlToCall); @Override InputStream getInputStream(Map<String, String> requestProperties, URL url); @Override String doPostEntity(Map<String, String> requestProperties, URL urlToCall, String body,
                               MediaType contentType, MediaType acceptType); @Override String doPutEntity(Map<String, String> requestProperties, URL urlToCall, String body,
                              MediaType type); @Override void doDeleteEntity(Map<String, String> requestProperties, URL urlToCall); }
BasicEndpointCaller implements EndpointCaller { @Override public String callEndpoint(Map<String, String> requestProperties, URL urlToCall) throws ODataClientException { LOG.debug("Preparing the call endpoint for given url: {}", urlToCall); HttpURLConnection conn = getConnection(populateRequestProperties(requestProperties, -1, null, XML), urlToCall); return getResponse(conn); } BasicEndpointCaller(Properties properties); @Override String callEndpoint(Map<String, String> requestProperties, URL urlToCall); @Override InputStream getInputStream(Map<String, String> requestProperties, URL url); @Override String doPostEntity(Map<String, String> requestProperties, URL urlToCall, String body,
                               MediaType contentType, MediaType acceptType); @Override String doPutEntity(Map<String, String> requestProperties, URL urlToCall, String body,
                              MediaType type); @Override void doDeleteEntity(Map<String, String> requestProperties, URL urlToCall);  }