Package org.jivesoftware.smackx.muclight
Class MultiUserChatLightManager
- java.lang.Object
-
- org.jivesoftware.smack.Manager
-
- org.jivesoftware.smackx.muclight.MultiUserChatLightManager
-
public final class MultiUserChatLightManager extends Manager
Multi-User Chat Light manager class.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidblockRoom(DomainBareJid mucLightService, Jid roomJid)Block a room.voidblockRooms(DomainBareJid mucLightService, java.util.List<Jid> roomsJids)Block rooms.voidblockUser(DomainBareJid mucLightService, Jid userJid)Block a user.voidblockUsers(DomainBareJid mucLightService, java.util.List<Jid> usersJids)Block users.static MultiUserChatLightManagergetInstanceFor(XMPPConnection connection)Get a instance of a MUC Light manager for the given connection.java.util.List<DomainBareJid>getLocalServices()Returns a collection with the XMPP addresses of the MUC Light services.MultiUserChatLightgetMultiUserChatLight(EntityBareJid jid)Obtain the MUC Light.java.util.List<Jid>getOccupiedRooms(DomainBareJid mucLightService)Returns a List of the rooms the user occupies.java.util.List<Jid>getRoomsBlocked(DomainBareJid mucLightService)Get rooms blocked.java.util.List<Jid>getUsersAndRoomsBlocked(DomainBareJid mucLightService)Get users and rooms blocked.java.util.List<Jid>getUsersBlocked(DomainBareJid mucLightService)Get users blocked.booleanisFeatureSupported(DomainBareJid mucLightService)Returns true if Multi-User Chat Light feature is supported by the server.voidunblockRoom(DomainBareJid mucLightService, Jid roomJid)Unblock a room.voidunblockRooms(DomainBareJid mucLightService, java.util.List<Jid> roomsJids)Unblock rooms.voidunblockUser(DomainBareJid mucLightService, Jid userJid)Unblock a user.voidunblockUsers(DomainBareJid mucLightService, java.util.List<Jid> usersJids)Unblock users.-
Methods inherited from class org.jivesoftware.smack.Manager
connection, getAuthenticatedConnectionOrThrow, schedule, schedule, scheduleBlocking
-
-
-
-
Method Detail
-
getInstanceFor
public static MultiUserChatLightManager getInstanceFor(XMPPConnection connection)
Get a instance of a MUC Light manager for the given connection.- Parameters:
connection- TODO javadoc me please- Returns:
- a MUCLight manager.
-
getMultiUserChatLight
public MultiUserChatLight getMultiUserChatLight(EntityBareJid jid)
Obtain the MUC Light.- Parameters:
jid- TODO javadoc me please- Returns:
- the MUCLight.
-
isFeatureSupported
public boolean isFeatureSupported(DomainBareJid mucLightService) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
Returns true if Multi-User Chat Light feature is supported by the server.- Parameters:
mucLightService- TODO javadoc me please- Returns:
- true if Multi-User Chat Light feature is supported by the server.
- Throws:
SmackException.NotConnectedException- if the XMPP connection is not connected.XMPPException.XMPPErrorException- if there was an XMPP error returned.SmackException.NoResponseException- if there was no response from the remote entity.java.lang.InterruptedException- if the calling thread was interrupted.
-
getOccupiedRooms
public java.util.List<Jid> getOccupiedRooms(DomainBareJid mucLightService) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
Returns a List of the rooms the user occupies.- Parameters:
mucLightService- TODO javadoc me please- Returns:
- a List of the rooms the user occupies.
- Throws:
XMPPException.XMPPErrorException- if there was an XMPP error returned.SmackException.NoResponseException- if there was no response from the remote entity.SmackException.NotConnectedException- if the XMPP connection is not connected.java.lang.InterruptedException- if the calling thread was interrupted.
-
getLocalServices
public java.util.List<DomainBareJid> getLocalServices() throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
Returns a collection with the XMPP addresses of the MUC Light services.- Returns:
- a collection with the XMPP addresses of the MUC Light services.
- Throws:
XMPPException.XMPPErrorException- if there was an XMPP error returned.SmackException.NoResponseException- if there was no response from the remote entity.SmackException.NotConnectedException- if the XMPP connection is not connected.java.lang.InterruptedException- if the calling thread was interrupted.
-
getUsersAndRoomsBlocked
public java.util.List<Jid> getUsersAndRoomsBlocked(DomainBareJid mucLightService) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
Get users and rooms blocked.- Parameters:
mucLightService- TODO javadoc me please- Returns:
- the list of users and rooms blocked
- Throws:
SmackException.NoResponseException- if there was no response from the remote entity.XMPPException.XMPPErrorException- if there was an XMPP error returned.SmackException.NotConnectedException- if the XMPP connection is not connected.java.lang.InterruptedException- if the calling thread was interrupted.
-
getRoomsBlocked
public java.util.List<Jid> getRoomsBlocked(DomainBareJid mucLightService) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
Get rooms blocked.- Parameters:
mucLightService- TODO javadoc me please- Returns:
- the list of rooms blocked
- Throws:
SmackException.NoResponseException- if there was no response from the remote entity.XMPPException.XMPPErrorException- if there was an XMPP error returned.SmackException.NotConnectedException- if the XMPP connection is not connected.java.lang.InterruptedException- if the calling thread was interrupted.
-
getUsersBlocked
public java.util.List<Jid> getUsersBlocked(DomainBareJid mucLightService) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
Get users blocked.- Parameters:
mucLightService- TODO javadoc me please- Returns:
- the list of users blocked
- Throws:
SmackException.NoResponseException- if there was no response from the remote entity.XMPPException.XMPPErrorException- if there was an XMPP error returned.SmackException.NotConnectedException- if the XMPP connection is not connected.java.lang.InterruptedException- if the calling thread was interrupted.
-
blockRoom
public void blockRoom(DomainBareJid mucLightService, Jid roomJid) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
Block a room.- Parameters:
mucLightService- TODO javadoc me pleaseroomJid- TODO javadoc me please- Throws:
SmackException.NoResponseException- if there was no response from the remote entity.XMPPException.XMPPErrorException- if there was an XMPP error returned.SmackException.NotConnectedException- if the XMPP connection is not connected.java.lang.InterruptedException- if the calling thread was interrupted.
-
blockRooms
public void blockRooms(DomainBareJid mucLightService, java.util.List<Jid> roomsJids) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
Block rooms.- Parameters:
mucLightService- TODO javadoc me pleaseroomsJids- TODO javadoc me please- Throws:
SmackException.NoResponseException- if there was no response from the remote entity.XMPPException.XMPPErrorException- if there was an XMPP error returned.SmackException.NotConnectedException- if the XMPP connection is not connected.java.lang.InterruptedException- if the calling thread was interrupted.
-
blockUser
public void blockUser(DomainBareJid mucLightService, Jid userJid) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
Block a user.- Parameters:
mucLightService- TODO javadoc me pleaseuserJid- TODO javadoc me please- Throws:
SmackException.NoResponseException- if there was no response from the remote entity.XMPPException.XMPPErrorException- if there was an XMPP error returned.SmackException.NotConnectedException- if the XMPP connection is not connected.java.lang.InterruptedException- if the calling thread was interrupted.
-
blockUsers
public void blockUsers(DomainBareJid mucLightService, java.util.List<Jid> usersJids) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
Block users.- Parameters:
mucLightService- TODO javadoc me pleaseusersJids- TODO javadoc me please- Throws:
SmackException.NoResponseException- if there was no response from the remote entity.XMPPException.XMPPErrorException- if there was an XMPP error returned.SmackException.NotConnectedException- if the XMPP connection is not connected.java.lang.InterruptedException- if the calling thread was interrupted.
-
unblockRoom
public void unblockRoom(DomainBareJid mucLightService, Jid roomJid) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
Unblock a room.- Parameters:
mucLightService- TODO javadoc me pleaseroomJid- TODO javadoc me please- Throws:
SmackException.NoResponseException- if there was no response from the remote entity.XMPPException.XMPPErrorException- if there was an XMPP error returned.SmackException.NotConnectedException- if the XMPP connection is not connected.java.lang.InterruptedException- if the calling thread was interrupted.
-
unblockRooms
public void unblockRooms(DomainBareJid mucLightService, java.util.List<Jid> roomsJids) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
Unblock rooms.- Parameters:
mucLightService- TODO javadoc me pleaseroomsJids- TODO javadoc me please- Throws:
SmackException.NoResponseException- if there was no response from the remote entity.XMPPException.XMPPErrorException- if there was an XMPP error returned.SmackException.NotConnectedException- if the XMPP connection is not connected.java.lang.InterruptedException- if the calling thread was interrupted.
-
unblockUser
public void unblockUser(DomainBareJid mucLightService, Jid userJid) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
Unblock a user.- Parameters:
mucLightService- TODO javadoc me pleaseuserJid- TODO javadoc me please- Throws:
SmackException.NoResponseException- if there was no response from the remote entity.XMPPException.XMPPErrorException- if there was an XMPP error returned.SmackException.NotConnectedException- if the XMPP connection is not connected.java.lang.InterruptedException- if the calling thread was interrupted.
-
unblockUsers
public void unblockUsers(DomainBareJid mucLightService, java.util.List<Jid> usersJids) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
Unblock users.- Parameters:
mucLightService- TODO javadoc me pleaseusersJids- TODO javadoc me please- Throws:
SmackException.NoResponseException- if there was no response from the remote entity.XMPPException.XMPPErrorException- if there was an XMPP error returned.SmackException.NotConnectedException- if the XMPP connection is not connected.java.lang.InterruptedException- if the calling thread was interrupted.
-
-