@Test(expected = IllegalArgumentException.class) public void testCreateFactoryWrapperIllegalRequest() throws Exception { final RestrictUrisProcessor restrictUrisProcessor = createLocalhostOnly(); ClientHttpFactoryProcessorParam params = new ClientHttpFactoryProcessorParam(); final ClientHttpRequestFactory factoryWrapper = restrictUrisProcessor.createFactoryWrapper(params, requestFactory); factoryWrapper.createRequest(new URI("http: }
@Override public MfClientHttpRequestFactory createFactoryWrapper( final ClientHttpFactoryProcessorParam clientHttpFactoryProcessorParam, final MfClientHttpRequestFactory requestFactory) { return new AbstractMfClientHttpRequestFactoryWrapper(requestFactory, matchers, true) { @Override protected ClientHttpRequest createRequest( final URI uri, final HttpMethod httpMethod, final MfClientHttpRequestFactory requestFactory) throws IOException { return requestFactory.createRequest(uri, httpMethod); } }; }
RestrictUrisProcessor extends AbstractClientHttpRequestFactoryProcessor { @Override public MfClientHttpRequestFactory createFactoryWrapper( final ClientHttpFactoryProcessorParam clientHttpFactoryProcessorParam, final MfClientHttpRequestFactory requestFactory) { return new AbstractMfClientHttpRequestFactoryWrapper(requestFactory, matchers, true) { @Override protected ClientHttpRequest createRequest( final URI uri, final HttpMethod httpMethod, final MfClientHttpRequestFactory requestFactory) throws IOException { return requestFactory.createRequest(uri, httpMethod); } }; } }
RestrictUrisProcessor extends AbstractClientHttpRequestFactoryProcessor { @Override public MfClientHttpRequestFactory createFactoryWrapper( final ClientHttpFactoryProcessorParam clientHttpFactoryProcessorParam, final MfClientHttpRequestFactory requestFactory) { return new AbstractMfClientHttpRequestFactoryWrapper(requestFactory, matchers, true) { @Override protected ClientHttpRequest createRequest( final URI uri, final HttpMethod httpMethod, final MfClientHttpRequestFactory requestFactory) throws IOException { return requestFactory.createRequest(uri, httpMethod); } }; }  }
RestrictUrisProcessor extends AbstractClientHttpRequestFactoryProcessor { @Override public MfClientHttpRequestFactory createFactoryWrapper( final ClientHttpFactoryProcessorParam clientHttpFactoryProcessorParam, final MfClientHttpRequestFactory requestFactory) { return new AbstractMfClientHttpRequestFactoryWrapper(requestFactory, matchers, true) { @Override protected ClientHttpRequest createRequest( final URI uri, final HttpMethod httpMethod, final MfClientHttpRequestFactory requestFactory) throws IOException { return requestFactory.createRequest(uri, httpMethod); } }; }  @Override MfClientHttpRequestFactory createFactoryWrapper(
            final ClientHttpFactoryProcessorParam clientHttpFactoryProcessorParam,
            final MfClientHttpRequestFactory requestFactory); }
RestrictUrisProcessor extends AbstractClientHttpRequestFactoryProcessor { @Override public MfClientHttpRequestFactory createFactoryWrapper( final ClientHttpFactoryProcessorParam clientHttpFactoryProcessorParam, final MfClientHttpRequestFactory requestFactory) { return new AbstractMfClientHttpRequestFactoryWrapper(requestFactory, matchers, true) { @Override protected ClientHttpRequest createRequest( final URI uri, final HttpMethod httpMethod, final MfClientHttpRequestFactory requestFactory) throws IOException { return requestFactory.createRequest(uri, httpMethod); } }; }  @Override MfClientHttpRequestFactory createFactoryWrapper(
            final ClientHttpFactoryProcessorParam clientHttpFactoryProcessorParam,
            final MfClientHttpRequestFactory requestFactory);  }