Java Code Examples for javax.ws.rs.client.ClientRequestContext#getStringHeaders()

The following examples show how to use javax.ws.rs.client.ClientRequestContext#getStringHeaders() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RequestLoggingFilter.java    From pnc with Apache License 2.0 5 votes vote down vote up
@Override
public void filter(ClientRequestContext requestContext) throws IOException {
    MultivaluedMap<String, String> headers = requestContext.getStringHeaders();
    logger.debug(
            "Requesting: {} {} Headers: {}.",
            requestContext.getMethod(),
            requestContext.getUri(),
            toString(headers));
}
 
Example 2
Source File: BraveClientProvider.java    From cxf with Apache License 2.0 5 votes vote down vote up
@Override
public void filter(final ClientRequestContext requestContext) throws IOException {
    final TraceScopeHolder<TraceScope> holder = super.startTraceSpan(requestContext.getStringHeaders(),
        requestContext.getUri(), requestContext.getMethod());

    if (holder != null) {
        requestContext.setProperty(TRACE_SPAN, holder);
    }
}
 
Example 3
Source File: OpenTracingClientProvider.java    From cxf with Apache License 2.0 5 votes vote down vote up
@Override
public void filter(final ClientRequestContext requestContext) throws IOException {
    final TraceScopeHolder<TraceScope> holder = super.startTraceSpan(requestContext.getStringHeaders(),
        requestContext.getUri(), requestContext.getMethod());

    if (holder != null) {
        requestContext.setProperty(TRACE_SPAN, holder);
    }
}