Class RestletHttpResponse

  • All Implemented Interfaces:
    org.jboss.resteasy.spi.HttpResponse

    @Deprecated
    public class RestletHttpResponse
    extends java.lang.Object
    implements org.jboss.resteasy.spi.HttpResponse
    Deprecated.
    Will be removed in next minor release.
    RESTEasy HTTP response wrapper for Restlet requests.
    • Field Detail

      • response

        private final Response response
        Deprecated.
    • Constructor Detail

      • RestletHttpResponse

        public RestletHttpResponse​(Response response)
        Deprecated.
    • Method Detail

      • toNewCookie

        public static javax.ws.rs.core.NewCookie toNewCookie​(CookieSetting cookieSetting)
                                                      throws java.lang.IllegalArgumentException
        Deprecated.
        Converts the Restlet CookieSetting to a JAX-RS NewCookie.
        Parameters:
        cookieSetting - The Restlet cookie setting.
        Returns:
        The JAX-RS NewCookie
        Throws:
        java.lang.IllegalArgumentException
      • toRestletCookieSetting

        public static CookieSetting toRestletCookieSetting​(javax.ws.rs.core.NewCookie newCookie)
                                                    throws java.lang.IllegalArgumentException
        Deprecated.
        Converts the Restlet JAX-RS NewCookie to a CookieSettings.
        Parameters:
        newCookie -
        Returns:
        the converted CookieSetting
        Throws:
        java.lang.IllegalArgumentException
      • addNewCookie

        public void addNewCookie​(javax.ws.rs.core.NewCookie cookie)
        Deprecated.
        Specified by:
        addNewCookie in interface org.jboss.resteasy.spi.HttpResponse
      • getOutputHeaders

        public javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.Object> getOutputHeaders()
        Deprecated.
        Specified by:
        getOutputHeaders in interface org.jboss.resteasy.spi.HttpResponse
      • getOutputStream

        public java.io.OutputStream getOutputStream()
                                             throws java.io.IOException
        Deprecated.
        Specified by:
        getOutputStream in interface org.jboss.resteasy.spi.HttpResponse
        Throws:
        java.io.IOException
      • getResponse

        public Response getResponse()
        Deprecated.
        Returns the wrapped Restlet response.
        Returns:
        The wrapped Restlet response.
      • getStatus

        public int getStatus()
        Deprecated.
        Specified by:
        getStatus in interface org.jboss.resteasy.spi.HttpResponse
      • isCommitted

        public boolean isCommitted()
        Deprecated.
        Specified by:
        isCommitted in interface org.jboss.resteasy.spi.HttpResponse
      • reset

        public void reset()
        Deprecated.
        Specified by:
        reset in interface org.jboss.resteasy.spi.HttpResponse
      • sendError

        public void sendError​(int arg0)
                       throws java.io.IOException
        Deprecated.
        Specified by:
        sendError in interface org.jboss.resteasy.spi.HttpResponse
        Throws:
        java.io.IOException
      • sendError

        public void sendError​(int arg0,
                              java.lang.String arg1)
                       throws java.io.IOException
        Deprecated.
        Specified by:
        sendError in interface org.jboss.resteasy.spi.HttpResponse
        Throws:
        java.io.IOException
      • setOutputStream

        public void setOutputStream​(java.io.OutputStream arg0)
        Deprecated.
        Specified by:
        setOutputStream in interface org.jboss.resteasy.spi.HttpResponse
      • setStatus

        public void setStatus​(int arg0)
        Deprecated.
        Specified by:
        setStatus in interface org.jboss.resteasy.spi.HttpResponse