FileDocCategorySizeDatePackage
IQRPC.javaAPI DocExample503Thu Feb 28 05:34:32 GMT 2002None

IQRPC.java

// 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>");
    }
}