public class ParamsContentParser extends ContentParser
Parser for the PARAMS frame body.
struct small_name_small_value_params_body { ubyte nameLength; ubyte valueLength; ubyte[] nameBytes; ubyte[] valueBytes; } struct small_name_large_value_params_body { ubyte nameLength; uint valueLength; ubyte[] nameBytes; ubyte[] valueBytes; } struct large_name_small_value_params_body { uint nameLength; ubyte valueLength; ubyte[] nameBytes; ubyte[] valueBytes; } struct large_name_large_value_params_body { uint nameLength; uint valueLength; ubyte[] nameBytes; ubyte[] valueBytes; }
ContentParser.Result
Constructor and Description |
---|
ParamsContentParser(HeaderParser headerParser,
ServerParser.Listener listener) |
Modifier and Type | Method and Description |
---|---|
void |
noContent() |
protected void |
onParam(String name,
String value) |
protected void |
onParams() |
ContentParser.Result |
parse(ByteBuffer buffer) |
getContentLength, getRequest
public ParamsContentParser(HeaderParser headerParser, ServerParser.Listener listener)
public ContentParser.Result parse(ByteBuffer buffer)
parse
in class ContentParser
public void noContent()
noContent
in class ContentParser
protected void onParams()
Copyright © 1995–2017 Webtide. All rights reserved.