Class NetTestWebService
java.lang.Object
org.apache.openmeetings.webservice.NetTestWebService
The Service contains methods to trigger a network test
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
Generate a sample for network teststatic int
static NetTestWebService.TestType
getTypeByString
(String typeString) int
upload
(int size, InputStream stream) Upload media to test upload speed
-
Field Details
-
CLIENT_COUNT
-
-
Constructor Details
-
NetTestWebService
public NetTestWebService()
-
-
Method Details
-
get
@GET @Produces("application/octet-stream") @Path("/") public javax.ws.rs.core.Response get(@QueryParam("type") String type, @QueryParam("size") int inSize) Generate a sample for network test- Parameters:
type
- one of ping, jitter, download, uploadinSize
- requests size of sample- Returns:
- Content as requested
-
upload
@POST @Consumes("application/octet-stream") @Path("/") public int upload(@QueryParam("size") int size, InputStream stream) throws IOException Upload media to test upload speed- Parameters:
size
- size of filestream
- stream of file- Returns:
- Number of bytes uploaded
- Throws:
IOException
-
getTypeByString
-
getMaxClients
public static int getMaxClients()
-