public static boolean isServiceEnabled ( XMPPConnection connection , Jid userID ) throws NoResponseException , XMPPErrorException , NotConnectedException , InterruptedException { return ServiceDiscoveryManager . getInstanceFor ( connection ) . supportsFeature ( userID , XHTMLExtension . NAMESPACE ) ; }
Returns true if the specified user handles XHTML messages .