public interface SuspendableContainerResponseContext extends ContainerResponseContext
Throwable
.Modifier and Type | Method and Description |
---|---|
void |
resume()
Resumes the current response, and proceeds to the next response filter, if any,
or to send the response.
|
void |
resume(Throwable t)
Aborts the current response with the given exception.
|
void |
suspend()
Suspends the current response.
|
getAllowedMethods, getCookies, getDate, getEntity, getEntityAnnotations, getEntityClass, getEntityStream, getEntityTag, getEntityType, getHeaders, getHeaderString, getLanguage, getLastModified, getLength, getLink, getLinkBuilder, getLinks, getLocation, getMediaType, getStatus, getStatusInfo, getStringHeaders, hasEntity, hasLink, setEntity, setEntity, setEntityStream, setStatus, setStatusInfo
void suspend()
resume()
or aborted with resume(Throwable)
or
ResponseContainerRequestContext.abortWith(javax.ws.rs.core.Response)
.void resume()
void resume(Throwable t)
t
- the exception to send back to the client, as an internal server error.Copyright © 2019 JBoss by Red Hat. All rights reserved.