|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.server.internal.monitoring.EmptyRequestEventBuilder
public class EmptyRequestEventBuilder
Empty mock implementation of RequestEventBuilder.
| Field Summary | |
|---|---|
static EmptyRequestEventBuilder |
EMPTY_EVENT_BUILDER
Instance of empty request event builder. |
| Constructor Summary | |
|---|---|
EmptyRequestEventBuilder()
|
|
| Method Summary | |
|---|---|
RequestEvent |
build(RequestEvent.Type eventType)
Build the instance of request event. |
RequestEventBuilder |
setContainerRequest(ContainerRequest containerRequest)
Set the container request. |
RequestEventBuilder |
setContainerRequestFilters(Iterable<javax.ws.rs.container.ContainerRequestFilter> containerRequestFilters)
Set request filters. |
RequestEventBuilder |
setContainerResponse(ContainerResponse containerResponse)
Set the container response. |
RequestEventBuilder |
setContainerResponseFilters(Iterable<javax.ws.rs.container.ContainerResponseFilter> containerResponseFilters)
Set response filters. |
RequestEventBuilder |
setException(Throwable throwable,
RequestEvent.ExceptionCause exceptionCause)
Set exception thrown. |
RequestEventBuilder |
setExceptionMapper(javax.ws.rs.ext.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static EmptyRequestEventBuilder EMPTY_EVENT_BUILDER
| Constructor Detail |
|---|
public EmptyRequestEventBuilder()
| Method Detail |
|---|
public RequestEventBuilder setExceptionMapper(javax.ws.rs.ext.ExceptionMapper<?> exceptionMapper)
RequestEventBuilder
setExceptionMapper in interface RequestEventBuilderexceptionMapper - Exception mapper.
public RequestEventBuilder setContainerRequest(ContainerRequest containerRequest)
RequestEventBuilder
setContainerRequest in interface RequestEventBuildercontainerRequest - Container request.
public RequestEventBuilder setContainerResponse(ContainerResponse containerResponse)
RequestEventBuilder
setContainerResponse in interface RequestEventBuildercontainerResponse - Container response.
public RequestEventBuilder setSuccess(boolean success)
RequestEventBuildertrue
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 RequestEventBuildersuccess - True if response processing was successful.
RequestEvent.isSuccess()public RequestEventBuilder setResponseWritten(boolean responseWritten)
RequestEventBuilder
setResponseWritten in interface RequestEventBuilderresponseWritten - true is response has been written without failure.
public RequestEventBuilder setException(Throwable throwable,
RequestEvent.ExceptionCause exceptionCause)
RequestEventBuilder
setException in interface RequestEventBuilderthrowable - Exception.exceptionCause - Cause of the throwable
public RequestEventBuilder setExtendedUriInfo(ExtendedUriInfo extendedUriInfo)
RequestEventBuilder
setExtendedUriInfo in interface RequestEventBuilderextendedUriInfo - Extended uri info.
public RequestEventBuilder setContainerResponseFilters(Iterable<javax.ws.rs.container.ContainerResponseFilter> containerResponseFilters)
RequestEventBuilder
setContainerResponseFilters in interface RequestEventBuildercontainerResponseFilters - Container response filters.
public RequestEventBuilder setContainerRequestFilters(Iterable<javax.ws.rs.container.ContainerRequestFilter> containerRequestFilters)
RequestEventBuilder
setContainerRequestFilters in interface RequestEventBuildercontainerRequestFilters - Container request filters.
public RequestEventBuilder setResponseSuccessfullyMapped(boolean responseSuccessfullyMapped)
RequestEventBuilder
setResponseSuccessfullyMapped in interface RequestEventBuilderresponseSuccessfullyMapped - true if the response has been successfully mapped.
public RequestEvent build(RequestEvent.Type eventType)
RequestEventBuilderrequest event.
build in interface RequestEventBuildereventType - Type of the event to be built.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||