예제 #1
0
  public String getUPnPErrorDescription() {
    Node errorDescNode = getUPnPErrorDescriptionNode();

    if (errorDescNode == null) {
      return "";
    }

    return errorDescNode.getValue();
  }
예제 #2
0
  public int getUPnPErrorCode() {
    Node errorCodeNode = getUPnPErrorCodeNode();

    if (errorCodeNode == null) {
      return -1;
    }

    String errorCodeStr = errorCodeNode.getValue();

    try {
      return Integer.parseInt(errorCodeStr);
    } catch (Exception e) {
      return -1;
    }
  }