Java 类org.jivesoftware.smackx.pubsub.util.NodeUtils 实例源码

项目:EIM    文件:PubSubManager.java   
/**
 * Returns the default settings for Node configuration.
 * 
 * @return configuration form containing the default settings.
 */
public ConfigureForm getDefaultConfiguration()
    throws XMPPException
{
    // Errors will cause exceptions in getReply, so it only returns
    // on success.
    PubSub reply = (PubSub)sendPubsubPacket(Type.GET, new NodeExtension(PubSubElementType.DEFAULT), PubSubElementType.DEFAULT.getNamespace());
    return NodeUtils.getFormFromPacket(reply, PubSubElementType.DEFAULT);
}
项目:EIM    文件:Node.java   
/**
 * Returns a configuration form, from which you can create an answer form to be submitted
 * via the {@link #sendConfigurationForm(Form)}.
 * 
 * @return the configuration form
 */
public ConfigureForm getNodeConfiguration()
    throws XMPPException
{
    Packet reply = sendPubsubPacket(Type.GET, new NodeExtension(PubSubElementType.CONFIGURE_OWNER, getId()), PubSubNamespace.OWNER);
    return NodeUtils.getFormFromPacket(reply, PubSubElementType.CONFIGURE_OWNER);
}
项目:androidPN-client.    文件:PubSubManager.java   
/**
 * Returns the default settings for Node configuration.
 * 
 * @return configuration form containing the default settings.
 */
public ConfigureForm getDefaultConfiguration()
    throws XMPPException
{
    // Errors will cause exceptions in getReply, so it only returns
    // on success.
    PubSub reply = (PubSub)sendPubsubPacket(Type.GET, new NodeExtension(PubSubElementType.DEFAULT), PubSubElementType.DEFAULT.getNamespace());
    return NodeUtils.getFormFromPacket(reply, PubSubElementType.DEFAULT);
}
项目:androidPN-client.    文件:Node.java   
/**
 * Returns a configuration form, from which you can create an answer form to be submitted
 * via the {@link #sendConfigurationForm(Form)}.
 * 
 * @return the configuration form
 */
public ConfigureForm getNodeConfiguration()
    throws XMPPException
{
    Packet reply = sendPubsubPacket(Type.GET, new NodeExtension(PubSubElementType.CONFIGURE_OWNER, getId()), PubSubNamespace.OWNER);
    return NodeUtils.getFormFromPacket(reply, PubSubElementType.CONFIGURE_OWNER);
}
项目:xmppsupport_v2    文件:PubSubManager.java   
/**
 * Returns the default settings for Node configuration.
 * 
 * @return configuration form containing the default settings.
 */
public ConfigureForm getDefaultConfiguration() throws XMPPException {
    // Errors will cause exceptions in getReply, so it only returns
    // on success.
    PubSub reply = (PubSub) sendPubsubPacket(Type.GET, new NodeExtension(
            PubSubElementType.DEFAULT),
            PubSubElementType.DEFAULT.getNamespace());
    return NodeUtils.getFormFromPacket(reply, PubSubElementType.DEFAULT);
}
项目:xmppsupport_v2    文件:Node.java   
/**
 * Returns a configuration form, from which you can create an answer form to
 * be submitted via the {@link #sendConfigurationForm(Form)}.
 * 
 * @return the configuration form
 */
public ConfigureForm getNodeConfiguration() throws XMPPException {
    Packet reply = sendPubsubPacket(Type.GET, new NodeExtension(
            PubSubElementType.CONFIGURE_OWNER, getId()),
            PubSubNamespace.OWNER);
    return NodeUtils.getFormFromPacket(reply,
            PubSubElementType.CONFIGURE_OWNER);
}
项目:java-bells    文件:PubSubManager.java   
/**
 * Returns the default settings for Node configuration.
 * 
 * @return configuration form containing the default settings.
 */
public ConfigureForm getDefaultConfiguration()
    throws XMPPException
{
    // Errors will cause exceptions in getReply, so it only returns
    // on success.
    PubSub reply = (PubSub)sendPubsubPacket(Type.GET, new NodeExtension(PubSubElementType.DEFAULT), PubSubElementType.DEFAULT.getNamespace());
    return NodeUtils.getFormFromPacket(reply, PubSubElementType.DEFAULT);
}
项目:java-bells    文件:Node.java   
/**
 * Returns a configuration form, from which you can create an answer form to be submitted
 * via the {@link #sendConfigurationForm(Form)}.
 * 
 * @return the configuration form
 */
public ConfigureForm getNodeConfiguration()
    throws XMPPException
{
    Packet reply = sendPubsubPacket(Type.GET, new NodeExtension(PubSubElementType.CONFIGURE_OWNER, getId()), PubSubNamespace.OWNER);
    return NodeUtils.getFormFromPacket(reply, PubSubElementType.CONFIGURE_OWNER);
}
项目:telegraph    文件:PubSubManager.java   
/**
 * Returns the default settings for Node configuration.
 * 
 * @return configuration form containing the default settings.
 */
public ConfigureForm getDefaultConfiguration()
    throws XMPPException
{
    // Errors will cause exceptions in getReply, so it only returns
    // on success.
    PubSub reply = (PubSub)sendPubsubPacket(Type.GET, new NodeExtension(PubSubElementType.DEFAULT), PubSubElementType.DEFAULT.getNamespace());
    return NodeUtils.getFormFromPacket(reply, PubSubElementType.DEFAULT);
}
项目:telegraph    文件:Node.java   
/**
 * Returns a configuration form, from which you can create an answer form to be submitted
 * via the {@link #sendConfigurationForm(Form)}.
 * 
 * @return the configuration form
 */
public ConfigureForm getNodeConfiguration()
    throws XMPPException
{
    Packet reply = sendPubsubPacket(Type.GET, new NodeExtension(PubSubElementType.CONFIGURE_OWNER, getId()), PubSubNamespace.OWNER);
    return NodeUtils.getFormFromPacket(reply, PubSubElementType.CONFIGURE_OWNER);
}
项目:NewCommunication-Android    文件:PubSubManager.java   
/**
 * Returns the default settings for Node configuration.
 * 
 * @return configuration form containing the default settings.
 */
public ConfigureForm getDefaultConfiguration()
    throws XMPPException
{
    // Errors will cause exceptions in getReply, so it only returns
    // on success.
    PubSub reply = (PubSub)sendPubsubPacket(Type.GET, new NodeExtension(PubSubElementType.DEFAULT), PubSubElementType.DEFAULT.getNamespace());
    return NodeUtils.getFormFromPacket(reply, PubSubElementType.DEFAULT);
}
项目:NewCommunication-Android    文件:Node.java   
/**
 * Returns a configuration form, from which you can create an answer form to be submitted
 * via the {@link #sendConfigurationForm(Form)}.
 * 
 * @return the configuration form
 */
public ConfigureForm getNodeConfiguration()
    throws XMPPException
{
    Packet reply = sendPubsubPacket(Type.GET, new NodeExtension(PubSubElementType.CONFIGURE_OWNER, getId()), PubSubNamespace.OWNER);
    return NodeUtils.getFormFromPacket(reply, PubSubElementType.CONFIGURE_OWNER);
}
项目:Smack    文件:PubSubManager.java   
/**
 * Returns the default settings for Node configuration.
 * 
 * @return configuration form containing the default settings.
 * @throws XMPPErrorException 
 * @throws NoResponseException 
 * @throws NotConnectedException 
 */
public ConfigureForm getDefaultConfiguration() throws NoResponseException, XMPPErrorException, NotConnectedException
{
    // Errors will cause exceptions in getReply, so it only returns
    // on success.
    PubSub reply = sendPubsubPacket(Type.get, new NodeExtension(PubSubElementType.DEFAULT), PubSubElementType.DEFAULT.getNamespace());
    return NodeUtils.getFormFromPacket(reply, PubSubElementType.DEFAULT);
}
项目:Smack    文件:Node.java   
/**
 * Returns a configuration form, from which you can create an answer form to be submitted
 * via the {@link #sendConfigurationForm(Form)}.
 * 
 * @return the configuration form
 * @throws XMPPErrorException 
 * @throws NoResponseException 
 * @throws NotConnectedException 
 */
public ConfigureForm getNodeConfiguration() throws NoResponseException, XMPPErrorException, NotConnectedException
{
       PubSub pubSub = createPubsubPacket(Type.get, new NodeExtension(
                       PubSubElementType.CONFIGURE_OWNER, getId()), PubSubNamespace.OWNER);
    Stanza reply = sendPubsubPacket(pubSub);
    return NodeUtils.getFormFromPacket(reply, PubSubElementType.CONFIGURE_OWNER);
}