
uk.org.retep.xmpp.muc.builder.MucRoomLookupLogicBuilder Maven / Gradle / Ivy
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package uk.org.retep.xmpp.muc.builder;
import uk.org.retep.xmpp.builder.AbstractProtocolLogicSetBuilder;
import uk.org.retep.xmpp.builder.XMPPLogicBuilder;
import uk.org.retep.xmpp.muc.MucRoomSet;
import uk.org.retep.xmpp.muc.MucService;
import uk.org.retep.xmpp.muc.logic.RoomLookupLogic;
/**
* {@link XMPPLogicBuilder} implementation for looking up rooms
*
* @author peter
* @since 9.12
*/
public class MucRoomLookupLogicBuilder
extends AbstractProtocolLogicSetBuilder
{
/**
* Use {@link MucServiceBuilder#getMucRoomLogicBuilder()
*/
public MucRoomLookupLogicBuilder()
{
}
/**
* Adds the various components needed for a basic Muc implementation.
*
* @param Type of this builder
* @return this instance
*/
@Override
public T addDefaultLogic()
{
addRoomLookupLogic();
@SuppressWarnings( "unchecked" )
final T ret = (T) this;
return ret;
}
/**
* Adds a Basic message relay algorithm to the service - i.e. one message
* per room occupant is sent
*
* @return this instance
*/
public MucRoomLookupLogicBuilder addRoomLookupLogic()
{
return addXMPPLogic( RoomLookupLogic.INSTANCE );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy