@Test public void timeoutPostEntity() throws MalformedURLException, ODataClientException { thrown.expect(ODataClientTimeout.class); caller.doPostEntity(emptyMap(), buildUrlToCall(HTTP_CLIENT_TIMEOUT), "", JSON, JSON); }
@Override public String doPostEntity(Map<String, String> requestProperties, URL url, String body, MediaType contentType, MediaType acceptType) throws ODataClientException { return sendRequest(getRequestHeaders(requestProperties, body.length(), contentType, acceptType), url, body, ODataRequest.Method.POST.name()); }
TracingEndpointCaller implements EndpointCaller { @Override public String doPostEntity(Map<String, String> requestProperties, URL url, String body, MediaType contentType, MediaType acceptType) throws ODataClientException { return sendRequest(getRequestHeaders(requestProperties, body.length(), contentType, acceptType), url, body, ODataRequest.Method.POST.name()); } }
TracingEndpointCaller implements EndpointCaller { @Override public String doPostEntity(Map<String, String> requestProperties, URL url, String body, MediaType contentType, MediaType acceptType) throws ODataClientException { return sendRequest(getRequestHeaders(requestProperties, body.length(), contentType, acceptType), url, body, ODataRequest.Method.POST.name()); } TracingEndpointCaller(Properties properties); }
TracingEndpointCaller implements EndpointCaller { @Override public String doPostEntity(Map<String, String> requestProperties, URL url, String body, MediaType contentType, MediaType acceptType) throws ODataClientException { return sendRequest(getRequestHeaders(requestProperties, body.length(), contentType, acceptType), url, body, ODataRequest.Method.POST.name()); } TracingEndpointCaller(Properties properties); @Override String callEndpoint(Map<String, String> requestProperties, URL url); @Override InputStream getInputStream(Map<String, String> requestProperties, URL url); @Override String doPostEntity(Map<String, String> requestProperties, URL url, String body,
                               MediaType contentType, MediaType acceptType); @Override String doPutEntity(Map<String, String> requestProperties, URL url, String body, MediaType type); @Override void doDeleteEntity(Map<String, String> requestProperties, URL url); }
TracingEndpointCaller implements EndpointCaller { @Override public String doPostEntity(Map<String, String> requestProperties, URL url, String body, MediaType contentType, MediaType acceptType) throws ODataClientException { return sendRequest(getRequestHeaders(requestProperties, body.length(), contentType, acceptType), url, body, ODataRequest.Method.POST.name()); } TracingEndpointCaller(Properties properties); @Override String callEndpoint(Map<String, String> requestProperties, URL url); @Override InputStream getInputStream(Map<String, String> requestProperties, URL url); @Override String doPostEntity(Map<String, String> requestProperties, URL url, String body,
                               MediaType contentType, MediaType acceptType); @Override String doPutEntity(Map<String, String> requestProperties, URL url, String body, MediaType type); @Override void doDeleteEntity(Map<String, String> requestProperties, URL url);  }