Class TiangongServerHttpResponse

java.lang.Object
tech.riemann.nif.support.tiangong.websocket.TiangongServerHttpResponse
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable, org.springframework.http.HttpMessage, org.springframework.http.HttpOutputMessage, org.springframework.http.server.ServerHttpResponse

public class TiangongServerHttpResponse extends Object implements org.springframework.http.server.ServerHttpResponse
  • Constructor Details

    • TiangongServerHttpResponse

      public TiangongServerHttpResponse()
  • Method Details

    • setStatusCode

      public void setStatusCode(org.springframework.http.HttpStatusCode status)
      Specified by:
      setStatusCode in interface org.springframework.http.server.ServerHttpResponse
    • getStatusCode

      public org.springframework.http.HttpStatusCode getStatusCode()
    • getBody

      public OutputStream getBody()
      Specified by:
      getBody in interface org.springframework.http.HttpOutputMessage
    • getHeaders

      public org.springframework.http.HttpHeaders getHeaders()
      Specified by:
      getHeaders in interface org.springframework.http.HttpMessage
    • flush

      public void flush()
      Specified by:
      flush in interface Flushable
      Specified by:
      flush in interface org.springframework.http.server.ServerHttpResponse
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface org.springframework.http.server.ServerHttpResponse
    • isCommitted

      public boolean isCommitted()
    • getBodyStream

      public ByteArrayOutputStream getBodyStream()