@NotThreadSafe 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 servletpublic javax.ws.rs.core.Response close(Integer id)
id
- the stream idpublic javax.ws.rs.core.Response read(Integer id)
id
- the stream idpublic javax.ws.rs.core.Response write(Integer id, InputStream is)
id
- the stream idis
- the input streamCopyright © 2023. All Rights Reserved.