public class RestApiClient extends Object
| Constructor and Description |
|---|
RestApiClient(String url,
int port,
AuthenticationToken authenticationToken)
Instantiates a new rest api client.
|
RestApiClient(String url,
int port,
AuthenticationToken authenticationToken,
int connectionTimeout)
Instantiates a new rest api client.
|
RestApiClient(String url,
int port,
AuthenticationToken authenticationToken,
int connectionTimeout,
SupportedMediaType mediaType)
Instantiates a new rest api client.
|
RestApiClient(String url,
int port,
AuthenticationToken authenticationToken,
SupportedMediaType mediaType)
Instantiates a new rest api client.
|
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addAdmin(String roomName,
String jid)
Adds the admin.
|
javax.ws.rs.core.Response |
addAdminGroup(String roomName,
String groupName)
Adds the group admin.
|
javax.ws.rs.core.Response |
addMember(String roomName,
String jid)
Adds the member.
|
javax.ws.rs.core.Response |
addMemberGroup(String roomName,
String groupName)
Adds the group member.
|
javax.ws.rs.core.Response |
addOutcast(String roomName,
String jid)
Adds the outcast.
|
javax.ws.rs.core.Response |
addOutcastGroup(String roomName,
String groupName)
Adds the group outcast.
|
javax.ws.rs.core.Response |
addOwner(String roomName,
String jid)
Adds the owner.
|
javax.ws.rs.core.Response |
addOwnerGroup(String roomName,
String groupName)
Adds the owner group.
|
javax.ws.rs.core.Response |
addRosterEntry(String username,
RosterItemEntity rosterItemEntity)
Adds the roster entry.
|
javax.ws.rs.core.Response |
addUserToGroup(String username,
String groupName)
Adds the user to group.
|
javax.ws.rs.core.Response |
addUserToGroups(String username,
UserGroupsEntity userGroupsEntity)
Adds the user to groups.
|
javax.ws.rs.core.Response |
createChatRoom(MUCRoomEntity chatRoom)
Creates the chat room.
|
javax.ws.rs.core.Response |
createGroup(GroupEntity group)
Creates the group.
|
javax.ws.rs.core.Response |
createSystemProperty(SystemProperty property)
Creates the system property.
|
javax.ws.rs.core.Response |
createUser(UserEntity userEntity)
Creates the user.
|
javax.ws.rs.core.Response |
deleteAdmin(String roomName,
String jid)
Delete admin from chatroom.
|
javax.ws.rs.core.Response |
deleteAdminGroup(String roomName,
String groupName)
Delete admin group from chatroom.
|
javax.ws.rs.core.Response |
deleteChatRoom(String roomName)
Delete chat room.
|
javax.ws.rs.core.Response |
deleteGroup(String groupName)
Delete group.
|
javax.ws.rs.core.Response |
deleteMember(String roomName,
String jid)
Delete member from chatroom.
|
javax.ws.rs.core.Response |
deleteMemberGroup(String roomName,
String groupName)
Delete member group from chatroom.
|
javax.ws.rs.core.Response |
deleteOutcast(String roomName,
String jid)
Delete outcast from chatroom.
|
javax.ws.rs.core.Response |
deleteOutcastGroup(String roomName,
String groupName)
Delete outcast group from chatroom.
|
javax.ws.rs.core.Response |
deleteOwner(String roomName,
String jid)
Delete owner from chatroom.
|
javax.ws.rs.core.Response |
deleteOwnerGroup(String roomName,
String groupName)
Delete owner group from chatroom.
|
javax.ws.rs.core.Response |
deleteRosterEntry(String username,
String jid)
Delete roster entry.
|
javax.ws.rs.core.Response |
deleteSessions(String username)
Close all user sessions.
|
javax.ws.rs.core.Response |
deleteSystemProperty(String propertyName)
Delete system property.
|
javax.ws.rs.core.Response |
deleteUser(String username)
Delete user.
|
javax.ws.rs.core.Response |
deleteUserFromGroup(String username,
String groupName)
Delete user from group.
|
MUCRoomEntity |
getChatRoom(String roomName)
Gets the chat room.
|
ParticipantEntities |
getChatRoomParticipants(String roomName)
Gets the chat room participants.
|
MUCRoomEntities |
getChatRooms()
Gets the chat rooms.
|
MUCRoomEntities |
getChatRooms(Map<String,String> queryParams)
Gets the chat rooms.
|
GroupEntity |
getGroup(String groupName)
Gets the group.
|
GroupEntities |
getGroups()
Gets the groups.
|
RestClient |
getRestClient()
Gets the rest client.
|
RosterEntities |
getRoster(String username)
Gets the roster.
|
SessionEntities |
getSessions()
Gets the sessions.
|
SessionEntities |
getSessions(String username)
Gets the sessions.
|
SystemProperties |
getSystemProperties()
Gets the system properties.
|
SystemProperty |
getSystemProperty(String propertyName)
Gets the system property.
|
UserEntity |
getUser(String username)
Gets the user.
|
UserGroupsEntity |
getUserGroups(String username)
Gets the user groups.
|
UserEntities |
getUsers()
Gets the users.
|
UserEntities |
getUsers(Map<String,String> queryParams)
Gets the users.
|
javax.ws.rs.core.Response |
lockoutUser(String username)
Lockout user.
|
javax.ws.rs.core.Response |
unlockUser(String username)
Unlock user.
|
javax.ws.rs.core.Response |
updateChatRoom(MUCRoomEntity chatRoom)
Update chat room.
|
javax.ws.rs.core.Response |
updateGroup(GroupEntity group)
Update group.
|
javax.ws.rs.core.Response |
updateRosterEntry(String username,
RosterItemEntity rosterItemEntity)
Update roster entry.
|
javax.ws.rs.core.Response |
updateSystemProperty(SystemProperty property)
Update system property.
|
javax.ws.rs.core.Response |
updateUser(UserEntity userEntity)
Update user.
|
public RestApiClient(String url, int port, AuthenticationToken authenticationToken)
url - the urlport - the portauthenticationToken - the authentication tokenpublic RestApiClient(String url, int port, AuthenticationToken authenticationToken, SupportedMediaType mediaType)
url - the urlport - the portauthenticationToken - the authentication tokenmediaType - the media to send/acceptpublic RestApiClient(String url, int port, AuthenticationToken authenticationToken, int connectionTimeout)
url - the urlport - the portauthenticationToken - the authentication tokenconnectionTimeout - the connection timeoutpublic RestApiClient(String url, int port, AuthenticationToken authenticationToken, int connectionTimeout, SupportedMediaType mediaType)
url - the urlport - the portauthenticationToken - the authentication tokenconnectionTimeout - the connection timeoutmediaType - the media to send/acceptpublic UserEntities getUsers()
public UserEntities getUsers(Map<String,String> queryParams)
queryParams - the query paramspublic UserEntity getUser(String username)
username - the usernamepublic javax.ws.rs.core.Response createUser(UserEntity userEntity)
userEntity - the user entitypublic javax.ws.rs.core.Response updateUser(UserEntity userEntity)
userEntity - the user entitypublic javax.ws.rs.core.Response deleteUser(String username)
username - the usernamepublic MUCRoomEntities getChatRooms()
public MUCRoomEntities getChatRooms(Map<String,String> queryParams)
queryParams - the query paramspublic MUCRoomEntity getChatRoom(String roomName)
roomName - the room namepublic javax.ws.rs.core.Response createChatRoom(MUCRoomEntity chatRoom)
chatRoom - the chat roompublic javax.ws.rs.core.Response updateChatRoom(MUCRoomEntity chatRoom)
chatRoom - the chat roompublic javax.ws.rs.core.Response deleteChatRoom(String roomName)
roomName - the room namepublic ParticipantEntities getChatRoomParticipants(String roomName)
roomName - the room namepublic javax.ws.rs.core.Response addOwner(String roomName, String jid)
roomName - the room namejid - the jidpublic javax.ws.rs.core.Response deleteOwner(String roomName, String jid)
roomName - the room namejid - the jidpublic javax.ws.rs.core.Response addAdmin(String roomName, String jid)
roomName - the room namejid - the jidpublic javax.ws.rs.core.Response deleteAdmin(String roomName, String jid)
roomName - the room namejid - the jidpublic javax.ws.rs.core.Response addMember(String roomName, String jid)
roomName - the room namejid - the jidpublic javax.ws.rs.core.Response deleteMember(String roomName, String jid)
roomName - the room namejid - the jidpublic javax.ws.rs.core.Response addOutcast(String roomName, String jid)
roomName - the room namejid - the jidpublic javax.ws.rs.core.Response deleteOutcast(String roomName, String jid)
roomName - the room namejid - the jidpublic javax.ws.rs.core.Response addOwnerGroup(String roomName, String groupName)
roomName - the room namegroupName - the groupNamepublic javax.ws.rs.core.Response deleteOwnerGroup(String roomName, String groupName)
roomName - the room namegroupName - the groupNamepublic javax.ws.rs.core.Response addAdminGroup(String roomName, String groupName)
roomName - the room namegroupName - the groupNamepublic javax.ws.rs.core.Response deleteAdminGroup(String roomName, String groupName)
roomName - the room namegroupName - the groupNamepublic javax.ws.rs.core.Response addMemberGroup(String roomName, String groupName)
roomName - the room namegroupName - the groupNamepublic javax.ws.rs.core.Response deleteMemberGroup(String roomName, String groupName)
roomName - the room namegroupName - the groupNamepublic javax.ws.rs.core.Response addOutcastGroup(String roomName, String groupName)
roomName - the room namegroupName - the groupNamepublic javax.ws.rs.core.Response deleteOutcastGroup(String roomName, String groupName)
roomName - the room namegroupName - the groupNamepublic SessionEntities getSessions()
public SessionEntities getSessions(String username)
username - the usernamepublic javax.ws.rs.core.Response deleteSessions(String username)
username - the usernamepublic UserGroupsEntity getUserGroups(String username)
username - the usernamepublic javax.ws.rs.core.Response addUserToGroups(String username, UserGroupsEntity userGroupsEntity)
username - the usernameuserGroupsEntity - the user groups entitypublic javax.ws.rs.core.Response addUserToGroup(String username, String groupName)
username - the usernamegroupName - the group namepublic javax.ws.rs.core.Response deleteUserFromGroup(String username, String groupName)
username - the usernamegroupName - the group namepublic javax.ws.rs.core.Response lockoutUser(String username)
username - the usernamepublic javax.ws.rs.core.Response unlockUser(String username)
username - the usernamepublic SystemProperties getSystemProperties()
public SystemProperty getSystemProperty(String propertyName)
propertyName - the property namepublic javax.ws.rs.core.Response createSystemProperty(SystemProperty property)
property - the propertypublic javax.ws.rs.core.Response updateSystemProperty(SystemProperty property)
property - the propertypublic javax.ws.rs.core.Response deleteSystemProperty(String propertyName)
propertyName - the property namepublic GroupEntities getGroups()
public GroupEntity getGroup(String groupName)
groupName - the group namepublic javax.ws.rs.core.Response createGroup(GroupEntity group)
group - the grouppublic javax.ws.rs.core.Response updateGroup(GroupEntity group)
group - the grouppublic javax.ws.rs.core.Response deleteGroup(String groupName)
groupName - the group namepublic RosterEntities getRoster(String username)
username - the usernamepublic javax.ws.rs.core.Response addRosterEntry(String username, RosterItemEntity rosterItemEntity)
username - the usernamerosterItemEntity - the roster item entitypublic javax.ws.rs.core.Response updateRosterEntry(String username, RosterItemEntity rosterItemEntity)
username - the usernamerosterItemEntity - the roster item entitypublic javax.ws.rs.core.Response deleteRosterEntry(String username, String jid)
username - the usernamejid - the jidpublic RestClient getRestClient()
Copyright © 2019. All rights reserved.