Class OutboundJaxrsResponse
java.lang.Object
jakarta.ws.rs.core.Response
org.glassfish.jersey.message.internal.OutboundJaxrsResponse
- All Implemented Interfaces:
AutoCloseable
An outbound JAX-RS response message.
The implementation delegates method calls to an
underlying
outbound message context.- Author:
- Marek Potociar
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classOutbound JAX-RSResponse.ResponseBuilderimplementation.Nested classes/interfaces inherited from class jakarta.ws.rs.core.Response
Response.ResponseBuilder, Response.Status, Response.StatusType -
Constructor Summary
ConstructorsConstructorDescriptionOutboundJaxrsResponse(Response.StatusType status, OutboundMessageContext context) Create new outbound JAX-RS response message instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidclose()static OutboundJaxrsResponseDeprecated.static OutboundJaxrsResponsefrom(Response response, Configuration configuration) Get an OutboundJaxrsResponse instance for a given JAX-RS response.Get the underlying outbound message context.getDate()getHeaderString(String name) intgetLinkBuilder(String relation) getLinks()intbooleanboolean<T> TreadEntity(GenericType<T> entityType) <T> TreadEntity(GenericType<T> entityType, Annotation[] annotations) <T> TreadEntity(Class<T> type) <T> TreadEntity(Class<T> type, Annotation[] annotations) toString()Methods inherited from class jakarta.ws.rs.core.Response
accepted, accepted, created, fromResponse, getHeaders, isClosed, noContent, notAcceptable, notModified, notModified, notModified, ok, ok, ok, ok, ok, seeOther, serverError, status, status, status, status, temporaryRedirect
-
Constructor Details
-
OutboundJaxrsResponse
Create new outbound JAX-RS response message instance.- Parameters:
status- response status.context- underlying outbound message context.
-
-
Method Details
-
from
Get an OutboundJaxrsResponse instance for a given JAX-RS response.- Parameters:
response- response instance to from.configuration- the related client/server sideConfiguration. Can benull.- Returns:
- corresponding
OutboundJaxrsResponseinstance.
-
from
Deprecated.Get an OutboundJaxrsResponse instance for a given JAX-RS response.- Parameters:
response- response instance to from.- Returns:
- corresponding
OutboundJaxrsResponseinstance. - See Also:
-
getContext
Get the underlying outbound message context.- Returns:
- underlying outbound message context.
-
getStatus
public int getStatus() -
getStatusInfo
- Specified by:
getStatusInfoin classResponse
-
getEntity
-
readEntity
- Specified by:
readEntityin classResponse- Throws:
ProcessingException
-
readEntity
- Specified by:
readEntityin classResponse- Throws:
ProcessingException
-
readEntity
- Specified by:
readEntityin classResponse- Throws:
ProcessingException
-
readEntity
public <T> T readEntity(GenericType<T> entityType, Annotation[] annotations) throws ProcessingException - Specified by:
readEntityin classResponse- Throws:
ProcessingException
-
hasEntity
public boolean hasEntity() -
bufferEntity
- Specified by:
bufferEntityin classResponse- Throws:
ProcessingException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classResponse- Throws:
ProcessingException
-
getStringHeaders
- Specified by:
getStringHeadersin classResponse
-
getHeaderString
- Specified by:
getHeaderStringin classResponse
-
getMediaType
- Specified by:
getMediaTypein classResponse
-
getLanguage
- Specified by:
getLanguagein classResponse
-
getLength
public int getLength() -
getCookies
- Specified by:
getCookiesin classResponse
-
getEntityTag
- Specified by:
getEntityTagin classResponse
-
getDate
-
getLastModified
- Specified by:
getLastModifiedin classResponse
-
getAllowedMethods
- Specified by:
getAllowedMethodsin classResponse
-
getLocation
- Specified by:
getLocationin classResponse
-
getLinks
-
hasLink
-
getLink
-
getLinkBuilder
- Specified by:
getLinkBuilderin classResponse
-
getMetadata
- Specified by:
getMetadatain classResponse
-
toString
-