@Override
    public HttpFilterBuilder containsValue(final String name, final String value) {

        return addFilter(new RequestFilter<HttpRequest>() {

            @Override
            public boolean matches(HttpRequest request) {

                List<String> values = request.getHeaders(name);

                for (String val : values) {

                    if (val.equals(values)) {

                        return true;
                    }
                }

                return false;
            }

            @Override
            public String toString() {
                return String.format("containsValue('%s', '%s')", name, value);
            }
        });
    }
@ Override public HttpFilterBuilder containsValue ( final String name , final String value ) { return addFilter ( new RequestFilter < HttpRequest > ( ) { @ Override public boolean matches ( HttpRequest request ) { List < String > values = request . getHeaders ( name ) ; for ( String val : values ) { if ( val . equals ( values ) ) { return true ; } } return false ; } @ Override public String toString ( ) { return String . format ( "containsValue('%s', '%s')" , name , value ) ; } } ) ; }
{@inheritDoc}