Package org.apache.cxf.jaxrs.impl
Class ResponseImpl
java.lang.Object
jakarta.ws.rs.core.Response
org.apache.cxf.jaxrs.impl.ResponseImpl
- All Implemented Interfaces:
AutoCloseable
public final class ResponseImpl
extends jakarta.ws.rs.core.Response
-
Nested Class Summary
Nested classes/interfaces inherited from class jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response.ResponseBuilder, jakarta.ws.rs.core.Response.Status, jakarta.ws.rs.core.Response.StatusType -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMetadata(jakarta.ws.rs.core.MultivaluedMap<String, Object> meta) protected voidprotected voidautoCloseWithHint(Class<?> cls, boolean autoCloseHint, boolean exception) booleanvoidclose()<T> TdoReadEntity(Class<T> cls, Type t, Annotation[] anns) getDate()jakarta.ws.rs.core.EntityTaggetHeaderString(String header) intjakarta.ws.rs.core.Linkjakarta.ws.rs.core.Link.BuildergetLinkBuilder(String relation) Set<jakarta.ws.rs.core.Link>getLinks()jakarta.ws.rs.core.MediaTypeorg.apache.cxf.message.Messageintjakarta.ws.rs.core.Response.StatusTypebooleanboolean<T> TreadEntity(jakarta.ws.rs.core.GenericType<T> genType) <T> TreadEntity(jakarta.ws.rs.core.GenericType<T> genType, Annotation[] anns) <T> TreadEntity(Class<T> cls) <T> TreadEntity(Class<T> cls, Annotation[] anns) voidsetEntity(Object e, Annotation[] anns) voidsetEntityAnnotations(Annotation[] anns) voidsetOutMessage(org.apache.cxf.message.Message message) voidsetStatus(int statusCode) voidtoString()Methods inherited from class jakarta.ws.rs.core.Response
accepted, accepted, created, fromResponse, isClosed, noContent, notAcceptable, notModified, notModified, notModified, ok, ok, ok, ok, ok, seeOther, serverError, status, status, status, status, temporaryRedirect
-
Field Details
-
RESPONSE_STREAM_AUTO_CLOSE
- See Also:
-
-
Method Details
-
addMetadata
-
setStatus
public void setStatus(int statusCode) -
setStatus
-
setEntity
-
setEntityAnnotations
-
getEntityAnnotations
-
setOutMessage
public void setOutMessage(org.apache.cxf.message.Message message) -
getOutMessage
public org.apache.cxf.message.Message getOutMessage() -
getStatus
public int getStatus()- Specified by:
getStatusin classjakarta.ws.rs.core.Response
-
getStatusInfo
public jakarta.ws.rs.core.Response.StatusType getStatusInfo()- Specified by:
getStatusInfoin classjakarta.ws.rs.core.Response
-
getActualEntity
-
getEntity
- Specified by:
getEntityin classjakarta.ws.rs.core.Response
-
hasEntity
public boolean hasEntity()- Specified by:
hasEntityin classjakarta.ws.rs.core.Response
-
getMetadata
- Specified by:
getMetadatain classjakarta.ws.rs.core.Response
-
getHeaders
- Overrides:
getHeadersin classjakarta.ws.rs.core.Response
-
getStringHeaders
- Specified by:
getStringHeadersin classjakarta.ws.rs.core.Response
-
getHeaderString
- Specified by:
getHeaderStringin classjakarta.ws.rs.core.Response
-
getAllowedMethods
- Specified by:
getAllowedMethodsin classjakarta.ws.rs.core.Response
-
getCookies
- Specified by:
getCookiesin classjakarta.ws.rs.core.Response
-
getDate
- Specified by:
getDatein classjakarta.ws.rs.core.Response
-
getEntityTag
public jakarta.ws.rs.core.EntityTag getEntityTag()- Specified by:
getEntityTagin classjakarta.ws.rs.core.Response
-
getLanguage
- Specified by:
getLanguagein classjakarta.ws.rs.core.Response
-
getLastModified
- Specified by:
getLastModifiedin classjakarta.ws.rs.core.Response
-
getLength
public int getLength()- Specified by:
getLengthin classjakarta.ws.rs.core.Response
-
getLocation
- Specified by:
getLocationin classjakarta.ws.rs.core.Response
-
getMediaType
public jakarta.ws.rs.core.MediaType getMediaType()- Specified by:
getMediaTypein classjakarta.ws.rs.core.Response
-
hasLink
- Specified by:
hasLinkin classjakarta.ws.rs.core.Response
-
getLink
- Specified by:
getLinkin classjakarta.ws.rs.core.Response
-
getLinkBuilder
- Specified by:
getLinkBuilderin classjakarta.ws.rs.core.Response
-
getLinks
- Specified by:
getLinksin classjakarta.ws.rs.core.Response
-
readEntity
public <T> T readEntity(Class<T> cls) throws jakarta.ws.rs.ProcessingException, IllegalStateException - Specified by:
readEntityin classjakarta.ws.rs.core.Response- Throws:
jakarta.ws.rs.ProcessingExceptionIllegalStateException
-
readEntity
public <T> T readEntity(jakarta.ws.rs.core.GenericType<T> genType) throws jakarta.ws.rs.ProcessingException, IllegalStateException - Specified by:
readEntityin classjakarta.ws.rs.core.Response- Throws:
jakarta.ws.rs.ProcessingExceptionIllegalStateException
-
readEntity
public <T> T readEntity(Class<T> cls, Annotation[] anns) throws jakarta.ws.rs.ProcessingException, IllegalStateException - Specified by:
readEntityin classjakarta.ws.rs.core.Response- Throws:
jakarta.ws.rs.ProcessingExceptionIllegalStateException
-
readEntity
public <T> T readEntity(jakarta.ws.rs.core.GenericType<T> genType, Annotation[] anns) throws jakarta.ws.rs.ProcessingException, IllegalStateException - Specified by:
readEntityin classjakarta.ws.rs.core.Response- Throws:
jakarta.ws.rs.ProcessingExceptionIllegalStateException
-
doReadEntity
public <T> T doReadEntity(Class<T> cls, Type t, Annotation[] anns) throws jakarta.ws.rs.ProcessingException, IllegalStateException - Throws:
jakarta.ws.rs.ProcessingExceptionIllegalStateException
-
convertEntityToStreamIfPossible
-
autoClose
-
autoCloseWithHint
-
bufferEntity
public boolean bufferEntity() throws jakarta.ws.rs.ProcessingException- Specified by:
bufferEntityin classjakarta.ws.rs.core.Response- Throws:
jakarta.ws.rs.ProcessingException
-
close
public void close() throws jakarta.ws.rs.ProcessingException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classjakarta.ws.rs.core.Response- Throws:
jakarta.ws.rs.ProcessingException
-
toString
-