@Test(expectedExceptions = MantaClientHttpResponseException.class) public void deleteValidatesErrorResponseCode() throws Exception { when(statusLine.getStatusCode()) .thenReturn(SC_BAD_REQUEST); final StandardHttpHelper helper = new StandardHttpHelper(connCtx, config); helper.httpDelete("/path"); }
@Override public HttpResponse httpDelete(final String path) throws IOException { return this.httpDelete(path, null); }
StandardHttpHelper implements HttpHelper { @Override public HttpResponse httpDelete(final String path) throws IOException { return this.httpDelete(path, null); } }
StandardHttpHelper implements HttpHelper { @Override public HttpResponse httpDelete(final String path) throws IOException { return this.httpDelete(path, null); } @Deprecated  StandardHttpHelper(final MantaConnectionContext connectionContext,
                              final MantaConnectionFactory connectionFactory,
                              final ConfigContext config); @SuppressWarnings("deprecation")  StandardHttpHelper(final MantaConnectionContext connectionContext,
                       final ConfigContext config); @Deprecated  StandardHttpHelper(final MantaConnectionContext connectionContext,
                              final MantaHttpRequestFactory requestFactory,
                              final ConfigContext config);  StandardHttpHelper(final MantaConnectionContext connectionContext,
                              final MantaHttpRequestFactory requestFactory,
                              final boolean verifyUploads,
                              final Integer downloadContinuation); }
StandardHttpHelper implements HttpHelper { @Override public HttpResponse httpDelete(final String path) throws IOException { return this.httpDelete(path, null); } @Deprecated  StandardHttpHelper(final MantaConnectionContext connectionContext,
                              final MantaConnectionFactory connectionFactory,
                              final ConfigContext config); @SuppressWarnings("deprecation")  StandardHttpHelper(final MantaConnectionContext connectionContext,
                       final ConfigContext config); @Deprecated  StandardHttpHelper(final MantaConnectionContext connectionContext,
                              final MantaHttpRequestFactory requestFactory,
                              final ConfigContext config);  StandardHttpHelper(final MantaConnectionContext connectionContext,
                              final MantaHttpRequestFactory requestFactory,
                              final boolean verifyUploads,
                              final Integer downloadContinuation); @Override MantaConnectionContext getConnectionContext(); @Override MantaHttpRequestFactory getRequestFactory(); @Override HttpResponse httpHead(final String path); @Override HttpResponse httpGet(final String path); @Override HttpResponse httpDelete(final String path); @Override HttpResponse httpDelete(final String path,
                                   final MantaHttpHeaders headers); @Override HttpResponse httpPost(final String path); @Override HttpResponse httpPost(final String path,
                                 final MantaHttpHeaders headers,
                                 final HttpEntity entity); @Override MantaObjectResponse httpPut(final String path,
                                       final MantaHttpHeaders headers,
                                       final HttpEntity entity,
                                       final MantaMetadata metadata); @Override MantaObjectResponse httpPutMetadata(final String path,
                                               final MantaHttpHeaders headers,
                                               final MantaMetadata metadata); @Override MantaObjectInputStream httpRequestAsInputStream(final HttpUriRequest request,
                                                           final MantaHttpHeaders requestHeaders); @Override CloseableHttpResponse executeRequest(final HttpUriRequest request,
                                                final String logMessage,
                                                final Object... logParameters); @Override CloseableHttpResponse executeRequest(final HttpUriRequest request,
                                                final Integer expectedStatusCode,
                                                final String logMessage,
                                                final Object... logParameters); @Override CloseableHttpResponse executeAndCloseRequest(final HttpUriRequest request,
                                                        final String logMessage,
                                                        final Object... logParameters); @Override CloseableHttpResponse executeAndCloseRequest(final HttpUriRequest request,
                                                        final Integer expectedStatusCode,
                                                        final String logMessage,
                                                        final Object... logParameters); @Override CloseableHttpResponse executeRequest(final HttpUriRequest request,
                                                final Integer expectedStatusCode,
                                                final boolean closeResponse,
                                                final String logMessage,
                                                final Object... logParameters); @Override R executeAndCloseRequest(final HttpUriRequest request,
                                        final Function<CloseableHttpResponse, R> responseAction,
                                        final String logMessage,
                                        final Object... logParameters); @Override R executeAndCloseRequest(final HttpUriRequest request,
                                        final Integer expectedStatusCode,
                                        final Function<CloseableHttpResponse, R> responseAction,
                                        final String logMessage,
                                        final Object... logParameters); @Override R executeRequest(final HttpUriRequest request,
                                final Integer expectedStatusCode,
                                final Function<CloseableHttpResponse, R> responseAction,
                                final boolean closeResponse,
                                final String logMessage,
                                final Object... logParameters); @Override void close(); }
StandardHttpHelper implements HttpHelper { @Override public HttpResponse httpDelete(final String path) throws IOException { return this.httpDelete(path, null); } @Deprecated  StandardHttpHelper(final MantaConnectionContext connectionContext,
                              final MantaConnectionFactory connectionFactory,
                              final ConfigContext config); @SuppressWarnings("deprecation")  StandardHttpHelper(final MantaConnectionContext connectionContext,
                       final ConfigContext config); @Deprecated  StandardHttpHelper(final MantaConnectionContext connectionContext,
                              final MantaHttpRequestFactory requestFactory,
                              final ConfigContext config);  StandardHttpHelper(final MantaConnectionContext connectionContext,
                              final MantaHttpRequestFactory requestFactory,
                              final boolean verifyUploads,
                              final Integer downloadContinuation); @Override MantaConnectionContext getConnectionContext(); @Override MantaHttpRequestFactory getRequestFactory(); @Override HttpResponse httpHead(final String path); @Override HttpResponse httpGet(final String path); @Override HttpResponse httpDelete(final String path); @Override HttpResponse httpDelete(final String path,
                                   final MantaHttpHeaders headers); @Override HttpResponse httpPost(final String path); @Override HttpResponse httpPost(final String path,
                                 final MantaHttpHeaders headers,
                                 final HttpEntity entity); @Override MantaObjectResponse httpPut(final String path,
                                       final MantaHttpHeaders headers,
                                       final HttpEntity entity,
                                       final MantaMetadata metadata); @Override MantaObjectResponse httpPutMetadata(final String path,
                                               final MantaHttpHeaders headers,
                                               final MantaMetadata metadata); @Override MantaObjectInputStream httpRequestAsInputStream(final HttpUriRequest request,
                                                           final MantaHttpHeaders requestHeaders); @Override CloseableHttpResponse executeRequest(final HttpUriRequest request,
                                                final String logMessage,
                                                final Object... logParameters); @Override CloseableHttpResponse executeRequest(final HttpUriRequest request,
                                                final Integer expectedStatusCode,
                                                final String logMessage,
                                                final Object... logParameters); @Override CloseableHttpResponse executeAndCloseRequest(final HttpUriRequest request,
                                                        final String logMessage,
                                                        final Object... logParameters); @Override CloseableHttpResponse executeAndCloseRequest(final HttpUriRequest request,
                                                        final Integer expectedStatusCode,
                                                        final String logMessage,
                                                        final Object... logParameters); @Override CloseableHttpResponse executeRequest(final HttpUriRequest request,
                                                final Integer expectedStatusCode,
                                                final boolean closeResponse,
                                                final String logMessage,
                                                final Object... logParameters); @Override R executeAndCloseRequest(final HttpUriRequest request,
                                        final Function<CloseableHttpResponse, R> responseAction,
                                        final String logMessage,
                                        final Object... logParameters); @Override R executeAndCloseRequest(final HttpUriRequest request,
                                        final Integer expectedStatusCode,
                                        final Function<CloseableHttpResponse, R> responseAction,
                                        final String logMessage,
                                        final Object... logParameters); @Override R executeRequest(final HttpUriRequest request,
                                final Integer expectedStatusCode,
                                final Function<CloseableHttpResponse, R> responseAction,
                                final boolean closeResponse,
                                final String logMessage,
                                final Object... logParameters); @Override void close();  }