Class ResponseImpl


  • @Deprecated
    public class ResponseImpl
    extends javax.ws.rs.core.Response
    Deprecated.
    Will be removed in next minor release.
    Implementation of Response.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class javax.ws.rs.core.Response

        javax.ws.rs.core.Response.ResponseBuilder, javax.ws.rs.core.Response.Status, javax.ws.rs.core.Response.StatusType
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Object entity
      Deprecated.
       
      private javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.Object> metadata
      Deprecated.
       
      private int status
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      ResponseImpl()
      Deprecated.
      Creates a new Response Instance with status code 200
      ResponseImpl​(int status)
      Deprecated.
      Creates a new Response Instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      ResponseImpl clone()
      Deprecated.
       
      java.lang.Object getEntity()
      Deprecated.
       
      javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.Object> getMetadata()
      Deprecated.
      Get metadata associated with the response as a map.
      int getStatus()
      Deprecated.
       
      (package private) void setEntity​(java.lang.Object entity)
      Deprecated.
       
      (package private) void setStatus​(int status)
      Deprecated.
       
      • Methods inherited from class javax.ws.rs.core.Response

        created, fromResponse, noContent, notAcceptable, notModified, notModified, notModified, ok, ok, ok, ok, ok, seeOther, serverError, status, status, status, temporaryRedirect
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • entity

        private java.lang.Object entity
        Deprecated.
      • metadata

        private javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.Object> metadata
        Deprecated.
      • status

        private int status
        Deprecated.
    • Constructor Detail

      • ResponseImpl

        public ResponseImpl()
        Deprecated.
        Creates a new Response Instance with status code 200
      • ResponseImpl

        public ResponseImpl​(int status)
        Deprecated.
        Creates a new Response Instance.
        Parameters:
        status - the status code for the new response.
    • Method Detail

      • clone

        public ResponseImpl clone()
        Deprecated.
        Overrides:
        clone in class java.lang.Object
      • getEntity

        public java.lang.Object getEntity()
        Deprecated.
        Specified by:
        getEntity in class javax.ws.rs.core.Response
        See Also:
        Response.getEntity()
      • getMetadata

        public javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.Object> getMetadata()
        Deprecated.
        Get metadata associated with the response as a map. The returned map may be subsequently modified by the JAX-RS runtime.
        Specified by:
        getMetadata in class javax.ws.rs.core.Response
        Returns:
        response metadata as a map
        See Also:
        Response.getMetadata()
      • getStatus

        public int getStatus()
        Deprecated.
        Specified by:
        getStatus in class javax.ws.rs.core.Response
        See Also:
        Response.getStatus()
      • setEntity

        void setEntity​(java.lang.Object entity)
        Deprecated.
      • setStatus

        void setStatus​(int status)
        Deprecated.