com.github.kristofa.brave.jersey.JerseyHttpResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of brave-jersey Show documentation
Show all versions of brave-jersey Show documentation
Jersey integration that uses the brave api to submit client and server side span information.
package com.github.kristofa.brave.jersey;
import com.github.kristofa.brave.http.HttpResponse;
import com.sun.jersey.api.client.ClientResponse;
public class JerseyHttpResponse implements HttpResponse {
private final ClientResponse clientResponse;
public JerseyHttpResponse(ClientResponse clientResponse) {
this.clientResponse = clientResponse;
}
@Override
public int getHttpStatusCode() {
return clientResponse.getStatus();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy