@Test public void testCreateRequestFile() throws Exception { final String path = BASE_DIR + "requestData.json"; final URI uri = getFile(path).toURI(); final ClientHttpRequest request = resolvingFactory.createRequest(uri, HttpMethod.GET); final ClientHttpResponse response = request.execute(); assertEquals(HttpStatus.OK, response.getStatusCode()); String expected = getFileContent(path); final String actual = new String(IOUtils.toByteArray(response.getBody()), Constants.DEFAULT_CHARSET); assertEquals(expected, actual); }
@Override public ClientHttpRequest createRequest( final URI uri, final HttpMethod httpMethod) { return new ConfigFileResolvingRequest(uri, httpMethod); }
ConfigFileResolvingHttpRequestFactory implements MfClientHttpRequestFactory { @Override public ClientHttpRequest createRequest( final URI uri, final HttpMethod httpMethod) { return new ConfigFileResolvingRequest(uri, httpMethod); } }
ConfigFileResolvingHttpRequestFactory implements MfClientHttpRequestFactory { @Override public ClientHttpRequest createRequest( final URI uri, final HttpMethod httpMethod) { return new ConfigFileResolvingRequest(uri, httpMethod); } ConfigFileResolvingHttpRequestFactory(
            final MfClientHttpRequestFactoryImpl httpRequestFactory,
            final Configuration config, final String jobId); }
ConfigFileResolvingHttpRequestFactory implements MfClientHttpRequestFactory { @Override public ClientHttpRequest createRequest( final URI uri, final HttpMethod httpMethod) { return new ConfigFileResolvingRequest(uri, httpMethod); } ConfigFileResolvingHttpRequestFactory(
            final MfClientHttpRequestFactoryImpl httpRequestFactory,
            final Configuration config, final String jobId); @Override void register(@Nonnull final RequestConfigurator callback); @Override ClientHttpRequest createRequest(
            final URI uri,
            final HttpMethod httpMethod); }
ConfigFileResolvingHttpRequestFactory implements MfClientHttpRequestFactory { @Override public ClientHttpRequest createRequest( final URI uri, final HttpMethod httpMethod) { return new ConfigFileResolvingRequest(uri, httpMethod); } ConfigFileResolvingHttpRequestFactory(
            final MfClientHttpRequestFactoryImpl httpRequestFactory,
            final Configuration config, final String jobId); @Override void register(@Nonnull final RequestConfigurator callback); @Override ClientHttpRequest createRequest(
            final URI uri,
            final HttpMethod httpMethod);  }