Package com.sun.jersey.core.util

Examples of com.sun.jersey.core.util.StringKeyObjectValueIgnoreCaseMultivaluedMap


        return mockedSpan;
    }

    private void validateUsingSpan(final SpanId span) throws Exception {
        when(clientRequest.getURI()).thenReturn(URI.create("http://testuri.com/path"));
        when(clientRequest.getHeaders()).thenReturn(new StringKeyObjectValueIgnoreCaseMultivaluedMap());
        when(clientTracer.startNewSpan(anyString())).thenReturn(span);

        ClientRequestHeaders.addTracingHeaders(new JerseyClientRequestAdapter(clientRequest), span, null);

        final MultivaluedMap<String, Object> headers = clientRequest.getHeaders();
View Full Code Here


    {
        return metaData;
    }

    private MultivaluedMap<String, Object> extractMetaData(ClientResponse jettyResponse) {
        MultivaluedMap<String, Object> metadata = new StringKeyObjectValueIgnoreCaseMultivaluedMap();
        for ( Map.Entry<String, List<String>> header : jettyResponse.getHeaders()
                .entrySet() )
        {
            for ( Object value : header.getValue() )
            {
                metadata.putSingle( header.getKey(), value );
            }
        }
        return metadata;
    }
View Full Code Here

TOP

Related Classes of com.sun.jersey.core.util.StringKeyObjectValueIgnoreCaseMultivaluedMap

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.