/** * Returns true if the XHTML support is enabled for the given connection. * * @param connection the connection to look for XHTML support * @return a boolean indicating if the XHTML support is enabled for the given connection */ public static boolean isServiceEnabled(Connection connection) { return ServiceDiscoveryManager.getInstanceFor(connection).includesFeature(namespace); }
/** * Create a decorator from an existing {@link Form} for node configuration. * Typically, this can be used to create a decorator for an answer form * by using the result of {@link #createAnswerForm()} as the input parameter. * * @param nodeConfigForm */ public ConfigureForm(Form nodeConfigForm) { super(nodeConfigForm.getDataFormToSend()); }
/** * Creates a new message event manager. * * @param con a Connection to a XMPP server. */ public MessageEventManager(Connection con) { this.con = con; init(); }
/** * Adds the SOCKS5 Bytestream feature to the service discovery. */ private void enableService() { ServiceDiscoveryManager manager = ServiceDiscoveryManager.getInstanceFor(this.connection); if (!manager.includesFeature(NAMESPACE)) { manager.addFeature(NAMESPACE); } }
/** * Returns the discovered items of a given XMPP entity addressed by its JID. * * @param entityID the address of the XMPP entity. * @return the discovered information. * @throws XMPPException if the operation failed for some reason. */ public DiscoverItems discoverItems(String entityID) throws XMPPException { return discoverItems(entityID, null); }
/** * Returns the discovered information of a given XMPP entity addressed by its JID. * * @param entityID the address of the XMPP entity. * @return the discovered information. * @throws XMPPException if the operation failed for some reason. */ public DiscoverInfo discoverInfo(String entityID) throws XMPPException { return discoverInfo(entityID, null); }
public void deliveredNotificationRequested(String from, String packetID, MessageEventManager messageEventManager) { // Send to the message's sender that the message has been delivered messageEventManager.sendDeliveredNotification(from, packetID); }
/** * Creates a new ServiceDiscoveryManager for a given XMPPConnection. This means that the * service manager will respond to any service discovery request that the connection may * receive. * * @param connection the connection to which a ServiceDiscoveryManager is going to be created. */ public ServiceDiscoveryManager(XMPPConnection connection) { this.connection = connection; init(); }
/** * Creates a new XHTMLText with body tag params. * * @param style the XHTML style of the body * @param lang the language of the body */ public XHTMLText(String style, String lang) { appendOpenBodyTag(style, lang); }
/** * Creates a new roster exchange manager. * * @param con a Connection which is used to send and receive messages. */ public RosterExchangeManager(Connection con) { this.con = con; init(); }
/** * Creates a new PEP exchange manager. * * @param connection a Connection which is used to send and receive messages. */ public PEPManager(Connection connection) { this.connection = connection; init(); }
private Bookmarks retrieveBookmarks() throws XMPPException { synchronized(bookmarkLock) { if(bookmarks == null) { bookmarks = (Bookmarks) privateDataManager.getPrivateData("storage", "storage:bookmarks"); } return bookmarks; } } }
/** * Returns true if the XHTML support is enabled for the given connection. * * @param connection the connection to look for XHTML support * @return a boolean indicating if the XHTML support is enabled for the given connection */ public static boolean isServiceEnabled(Connection connection) { return ServiceDiscoveryManager.getInstanceFor(connection).includesFeature(namespace); }
public void deliveredNotificationRequested(String from, String packetID, MessageEventManager messageEventManager) { // Send to the message's sender that the message has been delivered messageEventManager.sendDeliveredNotification(from, packetID); }
/** * Create a decorator from an existing {@link Form} for node configuration. * Typically, this can be used to create a decorator for an answer form * by using the result of {@link #createAnswerForm()} as the input parameter. * * @param nodeConfigForm */ public ConfigureForm(Form nodeConfigForm) { super(nodeConfigForm.getDataFormToSend()); }
/** * Creates a new ServiceDiscoveryManager for a given Connection. This means that the * service manager will respond to any service discovery request that the connection may * receive. * * @param connection the connection to which a ServiceDiscoveryManager is going to be created. */ public ServiceDiscoveryManager(Connection connection) { this.connection = connection; init(); }
/** * Creates a new XHTMLText with body tag params. * * @param style the XHTML style of the body * @param lang the language of the body */ public XHTMLText(String style, String lang) { appendOpenBodyTag(style, lang); }
/** * Creates a new PEP exchange manager. * * @param connection a Connection which is used to send and receive messages. */ public PEPManager(Connection connection) { this.connection = connection; init(); }
private Bookmarks retrieveBookmarks() throws XMPPException { synchronized(bookmarkLock) { if(bookmarks == null) { bookmarks = (Bookmarks) privateDataManager.getPrivateData("storage", "storage:bookmarks"); } return bookmarks; } } }
public void deliveredNotificationRequested(String from, String packetID, MessageEventManager messageEventManager) { // Send to the message's sender that the message has been delivered messageEventManager.sendDeliveredNotification(from, packetID); }