public final class JettyClientTags
extends java.lang.Object
Tags
associated with a request-response exchange that
is handled by Jetty HttpClient
.Modifier and Type | Method and Description |
---|---|
static Tag |
exception(org.eclipse.jetty.client.api.Result result)
Creates an
exception tag based on the simple
name of the class of the given exception . |
static Tag |
method(org.eclipse.jetty.client.api.Request request)
Creates a
method tag based on the method of the given request . |
static Tag |
outcome(org.eclipse.jetty.client.api.Result result)
Creates an
outcome tag based on the status of the given result . |
static Tag |
status(org.eclipse.jetty.client.api.Result result)
Creates a
status tag based on the status of the given result . |
static Tag |
uri(org.eclipse.jetty.client.api.Result result,
java.util.function.Function<org.eclipse.jetty.client.api.Result,java.lang.String> successfulUriPattern)
Creates a
uri tag based on the URI of the given result . |
public static Tag method(org.eclipse.jetty.client.api.Request request)
method
tag based on the method
of the given request
.request
- the requestpublic static Tag status(org.eclipse.jetty.client.api.Result result)
status
tag based on the status of the given result
.result
- the request resultpublic static Tag uri(org.eclipse.jetty.client.api.Result result, java.util.function.Function<org.eclipse.jetty.client.api.Result,java.lang.String> successfulUriPattern)
uri
tag based on the URI of the given result
.
REDIRECTION
for 3xx responses, NOT_FOUND
for 404 responses.result
- the request resultsuccessfulUriPattern
- successful URI patternpublic static Tag exception(org.eclipse.jetty.client.api.Result result)
exception
tag based on the simple
name
of the class of the given exception
.result
- the request resultpublic static Tag outcome(org.eclipse.jetty.client.api.Result result)
outcome
tag based on the status of the given result
.result
- the request result