@Produces(value="application/json") @Path(value="/server") public class ServerWebService extends Object
Constructor and Description |
---|
ServerWebService() |
Modifier and Type | Method and Description |
---|---|
ServerDTO |
add(String sid,
ServerDTO server)
Method to add/update server
|
long |
count(String sid)
Method to retrieve the total count of the servers participating in
cluster
|
ServiceResult |
delete(String sid,
long id)
Method to delete server
|
List<ServerDTO> |
getServers(String sid,
int start,
int max)
Method to retrieve the list of the servers participating in cluster
|
@GET @Path(value="/{start}/{max}") public List<ServerDTO> getServers(@QueryParam(value="sid") String sid, @PathParam(value="start") int start, @PathParam(value="max") int max) throws org.apache.openmeetings.webservice.error.ServiceException
sid
- - session id to identify the user making requeststart
- - server index to start withmax
- - Maximum server countorg.apache.openmeetings.webservice.error.ServiceException
@GET @Path(value="/count") public long count(@QueryParam(value="sid") String sid) throws org.apache.openmeetings.webservice.error.ServiceException
sid
- - session id to identify the user making requestorg.apache.openmeetings.webservice.error.ServiceException
@POST @Path(value="/") public ServerDTO add(@QueryParam(value="sid") String sid, @QueryParam(value="server") ServerDTO server) throws org.apache.openmeetings.webservice.error.ServiceException
sid
- - session id to identify the user making requestserver
- - server to add/updateorg.apache.openmeetings.webservice.error.ServiceException
@DELETE @Path(value="/{id}") public ServiceResult delete(@QueryParam(value="sid") String sid, @PathParam(value="id") long id) throws org.apache.openmeetings.webservice.error.ServiceException
sid
- - session id to identify the user making requestid
- - the id of the server to deleteorg.apache.openmeetings.webservice.error.ServiceException
Copyright © 2012–2017 Apache Software Foundation. All rights reserved.