OMA-TS-DM_TND-V1_2_1-20080617-A(10)

时间:2025-04-20

</Item> </Results>

6.2.2 Addressing Interior Node child lists

Interior Node child lists are addressed in the same way as Node values. The list of children is returned as an unordered list of names. The individual names in the list are separated by the character “/”. A returned child list has the format node in the meta information of the result. Note that the “/” character MUST NOT be part of any Node names according to [RFC2396]. Example:

The following Get command:

<Get>

<CmdID>4</CmdID> <Item>

<Target>

<LocURI>Vendor/Ring_signals</LocURI> </Target> </Item> </Get>

could receive a response like this:

<Results>

<CmdRef>4</CmdRef> <CmdID>7</CmdID> <Item> <Meta>

<Format xmlns=’syncml:metinf’>node</Format> <Type xmlns=’syncml:metinf’>text/plain</Type> </Meta>

<Data>Default_ring/Ring1/Ring2/Ring3/Ring4</Data> </Item> </Results>

If a Get command is issued on an Interior Node that does not have any children the client MUST return an empty child list, e.g. <Data/>, and the status code (200) OK.

6.2.3 Permanent and Dynamic Nodes

Nodes in the Management Tree can be either permanent or dynamic.

Permanent Nodes are typically built in at device manufacture. Permanent Nodes can also be temporarily added to a device by, for instance, connecting new accessory hardware. However, a DM Server cannot create or delete permanent Nodes at runtime. An attempt by a DM Server to delete a permanent Node will return status (405) Command not allowed.The same status code will also be returned for all attempts to modify the Name property of a permanent Node.

Dynamic Nodes can be created and deleted at runtime by DM Servers. The Add command is used to create new Nodes. The Delete command is used to delete Dynamic Nodes and all their properties. If a deleted Node has children, i.e. is an Interior Node, the children MUST also be deleted.

The complete layout of the permanent Nodes in the Management Tree is reflected in the device description.

6.2.4 Adding Dynamic Nodes

As stated in the previous section the Add command is used to create new Nodes. The definition of the Add command in [DMPRO] states that the Node addressed MUST NOT exist in the tree. The name of the newly created Node SHALL be the last segment of the URI presented in the Target element of the Add command. Note that devices might have various

…… 此处隐藏:256字,全部文档内容请下载后查看。喜欢就下载吧 ……
OMA-TS-DM_TND-V1_2_1-20080617-A(10).doc 将本文的Word文档下载到电脑

精彩图片

热门精选

大家正在看

× 游客快捷下载通道(下载后可以自由复制和排版)

限时特价:7 元/份 原价:20元

支付方式:

开通VIP包月会员 特价:29元/月

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219