use of jetbrains.communicator.core.transport.XmlResponseProvider in project intellij-plugins by JetBrains.
the class SendXmlMessageP2PCommand method createResponse.
private Element createResponse(Element rootElement, String remoteUser) {
Element response = new Element("response", Transport.NAMESPACE);
XmlResponseProvider provider = XmlResponseProvider.getProvider(rootElement, myEventBroadcaster);
if (provider.processAndFillResponse(response, rootElement, myTransport, remoteUser)) {
return response;
}
return null;
}
use of jetbrains.communicator.core.transport.XmlResponseProvider in project intellij-plugins by JetBrains.
the class BaseTestCase method registerResponseProviders.
protected void registerResponseProviders(UserModel userModel, IDEFacade ideFacade) {
final XmlResponseProvider[] providers = { new GetVFileContentsProvider(ideFacade, userModel), new GetProjectsDataProvider(ideFacade, userModel), new CodePointerEventProvider(getBroadcaster()), new TextMessageEventProvider(getBroadcaster()), new BecomeAvailableXmlMessage() };
for (XmlResponseProvider provider : providers) {
Pico.getInstance().registerComponentInstance(provider);
}
disposeOnTearDown(new Disposable() {
@Override
public void dispose() {
for (XmlResponseProvider provider : providers) {
Pico.getInstance().unregisterComponentByInstance(provider);
}
}
});
}
Aggregations