mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-10 17:49:38 +02:00
Issue SMACK-308: Fixed multiple bugs in XML generation.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@11678 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
31cd0ab088
commit
ef74695a1b
2 changed files with 19 additions and 4 deletions
|
@ -40,9 +40,9 @@ public class GetItemsRequest extends NodeExtension
|
|||
maxItems = maxItemsToReturn;
|
||||
}
|
||||
|
||||
public GetItemsRequest(String nodeId, String subscriptionId, int maxItems)
|
||||
public GetItemsRequest(String nodeId, String subscriptionId, int maxItemsToReturn)
|
||||
{
|
||||
super(PubSubElementType.ITEMS, nodeId);
|
||||
this(nodeId, maxItemsToReturn);
|
||||
subId = subscriptionId;
|
||||
}
|
||||
|
||||
|
@ -70,14 +70,14 @@ public class GetItemsRequest extends NodeExtension
|
|||
{
|
||||
builder.append(" subid='");
|
||||
builder.append(getSubscriptionId());
|
||||
builder.append("'/>");
|
||||
builder.append("'");
|
||||
}
|
||||
|
||||
if (getMaxItems() > 0)
|
||||
{
|
||||
builder.append(" max_items='");
|
||||
builder.append(getMaxItems());
|
||||
builder.append("'/>");
|
||||
builder.append("'");
|
||||
}
|
||||
builder.append("/>");
|
||||
return builder.toString();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue