org.labkey.remoteapi

## Class Command.Response

- java.lang.Object
- - org.labkey.remoteapi.Command.Response

- All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
  Enclosing class:
    Command<ResponseType extends CommandResponse>

      protected static class Command.Response
      extends java.lang.Object
      implements java.io.Closeable

  Response class allows clients to get an InputStream, consume lazily, and close the connection when complete.

- - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()`
    `java.lang.String` | `getContentType()`
    `java.io.InputStream` | `getInputStream()`
    `int` | `getStatusCode()`
    `java.lang.String` | `getStatusText()`
    `java.lang.String` | `getText()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getStatusText

          public java.lang.String getStatusText()

    - #### getStatusCode

          public int getStatusCode()

    - #### getContentType

          public java.lang.String getContentType()

    - #### getInputStream

          public java.io.InputStream getInputStream()
                                             throws java.io.IOException

      Throws:
        `java.io.IOException`

    - #### getText

          public java.lang.String getText()
                                   throws java.io.IOException

      Throws:
        `java.io.IOException`

    - #### close

          public void close()
                     throws java.io.IOException

      Specified by:
        `close` in interface `java.io.Closeable`
      Specified by:
        `close` in interface `java.lang.AutoCloseable`
      Throws:
        `java.io.IOException`