org.fourthline.cling.model.message

## Class UpnpResponse

- java.lang.Object
- - org.fourthline.cling.model.message.UpnpOperation
  - - org.fourthline.cling.model.message.UpnpResponse

-     public class UpnpResponse
      extends UpnpOperation

  A response message, with a status code and message (OK, NOT FOUND, etc).
  Author:
    Christian Bauer

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `UpnpResponse.Status`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `UpnpResponse(int statusCode, String statusMessage)`
    `UpnpResponse(UpnpResponse.Status status)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getResponseDetails()`
    `int` | `getStatusCode()`
    `String` | `getStatusMessage()`
    `boolean` | `isFailed()`
    `String` | `toString()`

    - ### Methods inherited from class org.fourthline.cling.model.message.UpnpOperation

      `getHttpMinorVersion, setHttpMinorVersion`

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

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

- - ### Constructor Detail

    - #### UpnpResponse

          public UpnpResponse(int statusCode,
                              String statusMessage)

    - #### UpnpResponse

          public UpnpResponse(UpnpResponse.Status status)

  - ### Method Detail

    - #### getStatusCode

          public int getStatusCode()

    - #### getStatusMessage

          public String getStatusMessage()

    - #### isFailed

          public boolean isFailed()

      Returns:
        `true` if the status code was equal or creater 300.

    - #### getResponseDetails

          public String getResponseDetails()

      Returns:
        The concatenated string of status code and status message (same as `toString()`.

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2016 4th Line GmbH, Switzerland. All rights reserved.