public class StreamUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTENT_LENGTH |
static java.lang.String |
DATA_STREAM_ID |
static java.lang.String |
FILE_UPLOAD_ID |
static java.lang.String |
PATH_STREAM_CLOSE |
static java.lang.String |
PATH_STREAM_OPEN |
static java.lang.String |
PATH_STREAM_REGISTER |
static java.lang.String |
PATH_STREAM_SEND |
static java.lang.String |
PATH_STREAM_UNREGISTER |
Constructor and Description |
---|
StreamUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
checkServiceName(java.lang.String serviceName) |
static StreamServiceContext |
getDataStreamContext(Connection connection,
java.lang.String dataStreamId) |
static StreamServiceContext |
getDataStreamContext(java.util.List<Connection> connections,
java.lang.String dataStreamId) |
static java.lang.String |
getDataStreamId(Http2Headers headers) |
static java.util.Map<java.lang.String,StreamServiceContext> |
getDataStreamMaps(Connection connection) |
static java.lang.String |
getFileUploadId(Http2Headers headers) |
static java.lang.String |
getNextAppendPosition(Http2Headers headers) |
static void |
putDataStreamContext(Connection connection,
java.lang.String dataStreamId,
StreamServiceContext context) |
static void |
removeDataStreamContext(Connection connection,
java.lang.String streamId) |
static void |
setupConnection(Connection connection,
Http2StreamListener http2StreamListener) |
public static final java.lang.String PATH_STREAM_REGISTER
public static final java.lang.String PATH_STREAM_UNREGISTER
public static final java.lang.String PATH_STREAM_OPEN
public static final java.lang.String PATH_STREAM_CLOSE
public static final java.lang.String PATH_STREAM_SEND
public static final java.lang.String DATA_STREAM_ID
public static final java.lang.String FILE_UPLOAD_ID
public static final java.lang.String CONTENT_LENGTH
public static void setupConnection(Connection connection, Http2StreamListener http2StreamListener)
public static java.util.Map<java.lang.String,StreamServiceContext> getDataStreamMaps(Connection connection)
public static StreamServiceContext getDataStreamContext(java.util.List<Connection> connections, java.lang.String dataStreamId)
public static StreamServiceContext getDataStreamContext(Connection connection, java.lang.String dataStreamId)
public static void putDataStreamContext(Connection connection, java.lang.String dataStreamId, StreamServiceContext context)
public static void removeDataStreamContext(Connection connection, java.lang.String streamId)
public static java.lang.String getDataStreamId(Http2Headers headers)
public static java.lang.String getFileUploadId(Http2Headers headers)
public static java.lang.String getNextAppendPosition(Http2Headers headers)
public static void checkServiceName(java.lang.String serviceName)