Class JaxrsHttpResponseAdapter

java.lang.Object
org.apache.dubbo.rpc.protocol.tri.rest.support.jaxrs.JaxrsHttpResponseAdapter
All Implemented Interfaces:
org.jboss.resteasy.spi.HttpResponse

public final class JaxrsHttpResponseAdapter extends Object implements org.jboss.resteasy.spi.HttpResponse
  • Constructor Details

    • JaxrsHttpResponseAdapter

      public JaxrsHttpResponseAdapter(org.apache.dubbo.remoting.http12.HttpResponse response)
  • Method Details

    • getStatus

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

      public void setStatus(int status)
      Specified by:
      setStatus in interface org.jboss.resteasy.spi.HttpResponse
    • getOutputHeaders

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

      public OutputStream getOutputStream()
      Specified by:
      getOutputStream in interface org.jboss.resteasy.spi.HttpResponse
    • setOutputStream

      public void setOutputStream(OutputStream os)
      Specified by:
      setOutputStream in interface org.jboss.resteasy.spi.HttpResponse
    • addNewCookie

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

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

      public void sendError(int status, String message)
      Specified by:
      sendError in interface org.jboss.resteasy.spi.HttpResponse
    • isCommitted

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

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

      public void flushBuffer()
      Specified by:
      flushBuffer in interface org.jboss.resteasy.spi.HttpResponse