@Incubating(since="1.4.0") public class HttpRequestTags extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Tag |
exception(java.lang.Throwable exception)
Creates a
exception tag based on the simple
name of the class of the given exception . |
static Tag |
method(javax.servlet.http.HttpServletRequest request)
Creates a
method tag based on the method of the given request . |
static Tag |
outcome(javax.servlet.http.HttpServletResponse response)
Creates an
outcome tag based on the status of the given response . |
static Tag |
status(javax.servlet.http.HttpServletResponse response)
Creates a
status tag based on the status of the given response . |
public static Tag method(javax.servlet.http.HttpServletRequest request)
method
tag based on the method
of the given request
.request
- the requestpublic static Tag status(javax.servlet.http.HttpServletResponse response)
status
tag based on the status of the given response
.response
- the HTTP responsepublic static Tag exception(java.lang.Throwable exception)
exception
tag based on the simple
name
of the class of the given exception
.exception
- the exception, may be null
public static Tag outcome(javax.servlet.http.HttpServletResponse response)
outcome
tag based on the status of the given response
.response
- the HTTP response