@Test public void testCreateRequestHttpWriteToBody() throws Exception { URI uri = new URI("http: ClientHttpRequest request = resolvingFactory.createRequest(uri, HttpMethod.GET); request.getBody().write(new byte[]{1, 2, 3}); ClientHttpResponse response = request.execute(); String actual = new String(IOUtils.toByteArray(response.getBody()), Constants.DEFAULT_CHARSET); assertEquals(getExpected(), actual); uri = logbackXml.toURI(); request = resolvingFactory.createRequest(uri, HttpMethod.GET); request.getBody().write(new byte[]{1, 2, 3}); response = request.execute(); assertEquals(HttpStatus.NOT_FOUND, response.getStatusCode()); }
@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);  }