congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ConfigureForm.setAnswer
Code IndexAdd Tabnine to your IDE (free)

How to use
setAnswer
method
in
org.jivesoftware.smackx.pubsub.ConfigureForm

Best Java code snippets using org.jivesoftware.smackx.pubsub.ConfigureForm.setAnswer (Showing top 20 results out of 315)

origin: igniterealtime/Smack

/**
 * Sets the URL of an XSL transformation which can be applied to the payload
 * format in order to generate a valid Data Forms result that the client could
 * display using a generic Data Forms rendering engine.
 *
 * @param url The URL of an XSL transformation
 */
public void setDataformXSLT(String url) {
  addField(ConfigureNodeFields.dataform_xslt, FormField.Type.text_single);
  setAnswer(ConfigureNodeFields.dataform_xslt.getFieldName(), url);
}
origin: igniterealtime/Smack

/**
 * Set the maximum number of items to persisted to this node if {@link #isPersistItems()} is
 * true.
 *
 * @param max The maximum number of items to persist
 */
public void setMaxItems(int max) {
  addField(ConfigureNodeFields.max_items, FormField.Type.text_single);
  setAnswer(ConfigureNodeFields.max_items.getFieldName(), max);
}
origin: igniterealtime/Smack

/**
 * Sets the maximum payload size in bytes.
 *
 * @param max The maximum payload size
 */
public void setMaxPayloadSize(int max) {
  addField(ConfigureNodeFields.max_payload_size, FormField.Type.text_single);
  setAnswer(ConfigureNodeFields.max_payload_size.getFieldName(), max);
}
origin: igniterealtime/Smack

/**
 * Sets the type of node data, usually specified by the namespace of the payload (if any).
 *
 * @param type The type of node data
 */
public void setDataType(String type)  {
  addField(ConfigureNodeFields.type, FormField.Type.text_single);
  setAnswer(ConfigureNodeFields.type.getFieldName(), type);
}
origin: igniterealtime/Smack

/**
 * Set the JID's in the whitelist of users that can associate child nodes with the collection
 * node.  This is only relevant if {@link #getChildrenAssociationPolicy()} is set to
 * {@link ChildrenAssociationPolicy#whitelist}.
 *
 * @param whitelist The list of JID's
 */
public void setChildrenAssociationWhitelist(List<String> whitelist) {
  addField(ConfigureNodeFields.children_association_whitelist, FormField.Type.jid_multi);
  setAnswer(ConfigureNodeFields.children_association_whitelist.getFieldName(), whitelist);
}
origin: igniterealtime/Smack

/**
 * Set the maximum number of child nodes that can be associated with a collection node.
 *
 * @param max The maximum number of child nodes.
 */
public void setChildrenMax(int max) {
  addField(ConfigureNodeFields.children_max, FormField.Type.text_single);
  setAnswer(ConfigureNodeFields.children_max.getFieldName(), max);
}
origin: igniterealtime/Smack

/**
 * Sets whether subscribers should be notified when the node is deleted.
 *
 * @param notify true if subscribers should be notified, false otherwise
 */
public void setNotifyDelete(boolean notify)  {
  addField(ConfigureNodeFields.notify_delete, FormField.Type.bool);
  setAnswer(ConfigureNodeFields.notify_delete.getFieldName(), notify);
}
origin: igniterealtime/Smack

/**
 * Sets whether subscribers should be notified when items are deleted
 * from the node.
 *
 * @param notify true if subscribers should be notified, false otherwise
 */
public void setNotifyRetract(boolean notify)  {
  addField(ConfigureNodeFields.notify_retract, FormField.Type.bool);
  setAnswer(ConfigureNodeFields.notify_retract.getFieldName(), notify);
}
origin: igniterealtime/Smack

/**
 * Sets the roster groups that are allowed to subscribe and retrieve items.
 *
 * @param groups The roster groups
 */
public void setRosterGroupsAllowed(List<String> groups) {
  addField(ConfigureNodeFields.roster_groups_allowed, FormField.Type.list_multi);
  setAnswer(ConfigureNodeFields.roster_groups_allowed.getFieldName(), groups);
}
origin: igniterealtime/Smack

/**
 * Sets the multi user chat rooms that are specified as reply rooms.
 *
 * @param replyRooms The multi user chat room to use as reply rooms
 */
public void setReplyRoom(List<String> replyRooms)  {
  addField(ConfigureNodeFields.replyroom, FormField.Type.list_multi);
  setAnswer(ConfigureNodeFields.replyroom.getFieldName(), replyRooms);
}
origin: igniterealtime/Smack

/**
 * Sets a human readable title for the node.
 *
 * @param title The node title
 */
@Override
public void setTitle(String title)  {
  addField(ConfigureNodeFields.title, FormField.Type.text_single);
  setAnswer(ConfigureNodeFields.title.getFieldName(), title);
}
origin: igniterealtime/Smack

/**
 * Set the URL of an XSL transformation which can be applied to payloads in order to
 * generate an appropriate message body element.
 *
 * @param bodyXslt The URL of an XSL
 */
public void setBodyXSLT(String bodyXslt) {
  addField(ConfigureNodeFields.body_xslt, FormField.Type.text_single);
  setAnswer(ConfigureNodeFields.body_xslt.getFieldName(), bodyXslt);
}
origin: igniterealtime/Smack

/**
 * Sets the collection node which the node is affiliated with.
 *
 * @param collection The node id of the collection node
 */
public void setCollection(String collection) {
  addField(ConfigureNodeFields.collection, FormField.Type.text_single);
  setAnswer(ConfigureNodeFields.collection.getFieldName(), collection);
}
origin: igniterealtime/Smack

/**
 * Sets whether items should be persisted in the node.
 *
 * @param persist true if items should be persisted, false otherwise
 */
public void setPersistentItems(boolean persist)  {
  addField(ConfigureNodeFields.persist_items, FormField.Type.bool);
  setAnswer(ConfigureNodeFields.persist_items.getFieldName(), persist);
}
origin: igniterealtime/Smack

/**
 * Sets the specific JID's for reply to.
 *
 * @param replyTos The JID's to reply to
 */
public void setReplyTo(List<String> replyTos) {
  addField(ConfigureNodeFields.replyto, FormField.Type.list_multi);
  setAnswer(ConfigureNodeFields.replyto.getFieldName(), replyTos);
}
origin: igniterealtime/Smack

/**
 * Sets whether to deliver notifications to available users only.
 *
 * @param presenceBased true if user must be available, false otherwise
 */
public void setPresenceBasedDelivery(boolean presenceBased)  {
  addField(ConfigureNodeFields.presence_based_delivery, FormField.Type.bool);
  setAnswer(ConfigureNodeFields.presence_based_delivery.getFieldName(), presenceBased);
}
origin: igniterealtime/Smack

/**
 * Sets the value of access model.
 *
 * @param accessModel
 */
public void setAccessModel(AccessModel accessModel) {
  addField(ConfigureNodeFields.access_model, FormField.Type.list_single);
  setAnswer(ConfigureNodeFields.access_model.getFieldName(), getListSingle(accessModel.toString()));
}
origin: igniterealtime/Smack

/**
 * Sets the NotificationType for the node.
 *
 * @param notificationType The enum representing the possible options
 * @since 4.3
 */
public void setNotificationType(NotificationType notificationType) {
  addField(ConfigureNodeFields.notification_type, FormField.Type.list_single);
  setAnswer(ConfigureNodeFields.notification_type.getFieldName(), getListSingle(notificationType.toString()));
}
origin: igniterealtime/Smack

/**
 * Sets the node type.
 *
 * @param type The node type
 */
public void setNodeType(NodeType type) {
  addField(ConfigureNodeFields.node_type, FormField.Type.list_single);
  setAnswer(ConfigureNodeFields.node_type.getFieldName(), getListSingle(type.toString()));
}
origin: igniterealtime/Smack

/**
 * Sets the publishing model for the node, which determines who may publish to it.
 *
 * @param publish The enum representing the possible options for the publishing model
 */
public void setPublishModel(PublishModel publish)  {
  addField(ConfigureNodeFields.publish_model, FormField.Type.list_single);
  setAnswer(ConfigureNodeFields.publish_model.getFieldName(), getListSingle(publish.toString()));
}
org.jivesoftware.smackx.pubsubConfigureFormsetAnswer

Popular methods of ConfigureForm

  • <init>
    Create a decorator from an existing DataForm that has been retrieved from parsing a node configurati
  • addField
  • getDataFormToSend
  • getField
  • getFieldValue
  • getFieldValues
  • getFields
  • getListSingle
  • parseBoolean
  • setAccessModel
    Sets the value of access model.
  • setPersistentItems
    Sets whether items should be persisted in the node.
  • setDeliverPayloads
    Sets whether the node will deliver payloads with event notifications.
  • setPersistentItems,
  • setDeliverPayloads,
  • createAnswerForm,
  • getAccessModel,
  • getChildrenAssociationPolicy,
  • getNotificationType,
  • isSubscribe,
  • setChildrenAssociationPolicy,
  • setNotificationType

Popular in Java

  • Making http post requests using okhttp
  • getSharedPreferences (Context)
  • compareTo (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • JTable (javax.swing)
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now