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