void function ( XMPPConnection arg0 , boolean arg1 ) { if ( isServiceEnabled ( arg0 ) == arg1 ) return ; if ( arg1 ) { ServiceDiscoveryManager . getInstanceFor ( arg0 ) . addFeature ( AMPExtension . NAMESPACE ) ; } else { ServiceDiscoveryManager . getInstanceFor ( arg0 ) . removeFeature ( AMPExtension . NAMESPACE ) ; } }
enables or disables the amp support on a given connection . before starting to send amp messages to a user , check that the user can handle xhtml messages . enable the amp support to indicate that this client handles xhtml messages . concode_field_sep PlaceHolder placeHolder concode_field_sep void connectionCreated concode_elem_sep boolean isActionSupported concode_elem_sep boolean isFeatureSupportedByServer concode_elem_sep boolean isServiceEnabled concode_elem_sep boolean isConditionSupported