@Test public void okPutEntity() throws MalformedURLException, ODataClientException { String body = URLTestUtils.loadTextFile(RESPONSE); String result = caller.doPutEntity(emptyMap(), new URL(basePath + RESPONSE), body, JSON); assertThat(body.substring(0, body.lastIndexOf(lineSeparator())), equalTo(result)); }
@Override public String doPutEntity(Map<String, String> requestProperties, URL url, String body, MediaType type) throws ODataClientException { return sendRequest(getRequestHeaders(requestProperties, body.length(), type, type), url, body, ODataRequest.Method.PUT.name()); }
TracingEndpointCaller implements EndpointCaller { @Override public String doPutEntity(Map<String, String> requestProperties, URL url, String body, MediaType type) throws ODataClientException { return sendRequest(getRequestHeaders(requestProperties, body.length(), type, type), url, body, ODataRequest.Method.PUT.name()); } }
TracingEndpointCaller implements EndpointCaller { @Override public String doPutEntity(Map<String, String> requestProperties, URL url, String body, MediaType type) throws ODataClientException { return sendRequest(getRequestHeaders(requestProperties, body.length(), type, type), url, body, ODataRequest.Method.PUT.name()); } TracingEndpointCaller(Properties properties); }
TracingEndpointCaller implements EndpointCaller { @Override public String doPutEntity(Map<String, String> requestProperties, URL url, String body, MediaType type) throws ODataClientException { return sendRequest(getRequestHeaders(requestProperties, body.length(), type, type), url, body, ODataRequest.Method.PUT.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 doPutEntity(Map<String, String> requestProperties, URL url, String body, MediaType type) throws ODataClientException { return sendRequest(getRequestHeaders(requestProperties, body.length(), type, type), url, body, ODataRequest.Method.PUT.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);  }