@NotThreadSafe @Path(value="streams") @Produces(value="application/json") @Consumes(value="application/json") public final class StreamsRestServiceHandler extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CLOSE |
static String |
ID_PARAM |
static String |
READ |
static String |
SERVICE_PREFIX |
static String |
WRITE |
Constructor and Description |
---|
StreamsRestServiceHandler(javax.servlet.ServletContext context)
Constructs a new
StreamsRestServiceHandler . |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
close(Integer id) |
javax.ws.rs.core.Response |
read(Integer id) |
javax.ws.rs.core.Response |
write(Integer id,
InputStream is) |
public static final String SERVICE_PREFIX
public static final String ID_PARAM
public static final String CLOSE
public static final String READ
public static final String WRITE
public StreamsRestServiceHandler(@Context javax.servlet.ServletContext context)
StreamsRestServiceHandler
.context
- context for the servlet@POST @Path(value="{id}/close") public javax.ws.rs.core.Response close(@PathParam(value="id") Integer id)
id
- the stream id@POST @Path(value="{id}/read") @Produces(value="application/octet-stream") public javax.ws.rs.core.Response read(@PathParam(value="id") Integer id)
id
- the stream id@POST @Path(value="{id}/write") @Consumes(value="application/octet-stream") public javax.ws.rs.core.Response write(@PathParam(value="id") Integer id, InputStream is)
id
- the stream idis
- the input streamCopyright © 2023. All Rights Reserved.