@Test public void testCreateRequestDataGet() throws Exception { final URI uri = new URI( "data:image/png;base64,iVBORw0KGgoAAA" + "ANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4" + " "5ErkJggg=="); final ClientHttpRequest request = resolvingFactory.createRequest(uri, HttpMethod.GET); final ClientHttpResponse response = request.execute(); assertEquals(HttpStatus.OK, response.getStatusCode()); final byte[] actual = IOUtils.toByteArray(response.getBody()); assertEquals(85, actual.length); }
@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);  }