public interface RequestEventBuilder
request monitoring event
builder.Modifier and Type | Method and Description |
---|---|
RequestEvent |
build(RequestEvent.Type eventType)
Build the instance of
request event . |
RequestEventBuilder |
setContainerRequest(ContainerRequest containerRequest)
Set the container request.
|
RequestEventBuilder |
setContainerRequestFilters(Iterable<ContainerRequestFilter> containerRequestFilters)
Set request filters.
|
RequestEventBuilder |
setContainerResponse(ContainerResponse containerResponse)
Set the container response.
|
RequestEventBuilder |
setContainerResponseFilters(Iterable<ContainerResponseFilter> containerResponseFilters)
Set response filters.
|
RequestEventBuilder |
setException(Throwable throwable,
RequestEvent.ExceptionCause exceptionCause)
Set exception thrown.
|
RequestEventBuilder |
setExceptionMapper(ExceptionMapper<?> exceptionMapper)
Set the exception mapper.
|
RequestEventBuilder |
setExtendedUriInfo(ExtendedUriInfo extendedUriInfo)
Set uri info.
|
RequestEventBuilder |
setResponseSuccessfullyMapped(boolean responseSuccessfullyMapped)
Set the flag indicating whether the response has been successfully mapped by an exception mapper.
|
RequestEventBuilder |
setResponseWritten(boolean responseWritten)
Set the flag indicating whether response has been successfully written.
|
RequestEventBuilder |
setSuccess(boolean success)
Set the flag indicating whether the response processing was successful.
|
RequestEventBuilder setExceptionMapper(ExceptionMapper<?> exceptionMapper)
exceptionMapper
- Exception mapper.RequestEventBuilder setContainerRequest(ContainerRequest containerRequest)
containerRequest
- Container request.RequestEventBuilder setContainerResponse(ContainerResponse containerResponse)
containerResponse
- Container response.RequestEventBuilder setSuccess(boolean success)
true
if the request and response has been successfully processed. Response is successfully
processed when the response code is smaller than 400 and response was successfully written.success
- True if response processing was successful.RequestEvent.isSuccess()
RequestEventBuilder setResponseWritten(boolean responseWritten)
responseWritten
- true
is response has been written without failure.RequestEventBuilder setException(Throwable throwable, RequestEvent.ExceptionCause exceptionCause)
throwable
- Exception.exceptionCause
- Cause of the throwable
RequestEventBuilder setExtendedUriInfo(ExtendedUriInfo extendedUriInfo)
extendedUriInfo
- Extended uri info.RequestEventBuilder setContainerResponseFilters(Iterable<ContainerResponseFilter> containerResponseFilters)
containerResponseFilters
- Container response filters.RequestEventBuilder setContainerRequestFilters(Iterable<ContainerRequestFilter> containerRequestFilters)
containerRequestFilters
- Container request filters.RequestEventBuilder setResponseSuccessfullyMapped(boolean responseSuccessfullyMapped)
responseSuccessfullyMapped
- true
if the response has been successfully mapped.RequestEvent build(RequestEvent.Type eventType)
request event
.eventType
- Type of the event to be built.Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.