// IQRPC.java
import org.jabber.jabberbeans.*;
import org.jabber.jabberbeans.Extension.*;
public class IQRPC
extends XMLData
implements QueryExtension
{
private String payload;
public IQRPC(IQRPCBuilder builder)
{
payload=builder.getPayload();
}
public String getPayload()
{
return payload;
}
public void appendItem(StringBuffer retval)
{
retval.append("<query xmlns=\"jabber:iq:rpc\">");
retval.append(payload);
retval.append("</query>");
}
}
|