Top Fields Constructors Methods
org.xnio.http

pack-priv Class HttpUpgradeParser

extends Object
Class Inheritance
Imports
java.io.IOException, java.nio.ByteBuffer, java.util.ArrayList, .HashMap, .List, .Locale, .Map

Author
Stuart Douglas

Field Summary

Modifier and TypeField and Description
private static final int
private final StringBuilder
private static final int
private static final int
private String
private final Map<String, List<String>>
private String
private static final int
private String
private int
private int
private static final int
private static final int

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Map<String, List<String>>
public String
public String
public int
pack-priv boolean
pack-priv void
parse(final ByteBuffer buffer)

private void
private void
private void
parseMessage(final ByteBuffer buffer)

private void
private void
parseVersion(final ByteBuffer buffer)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

COMPLETEback to summary
private static final int COMPLETE
currentback to summary
private final StringBuilder current
HEADER_NAMEback to summary
private static final int HEADER_NAME
HEADER_VALUEback to summary
private static final int HEADER_VALUE
headerNameback to summary
private String headerName
headersback to summary
private final Map<String, List<String>> headers
httpVersionback to summary
private String httpVersion
MESSAGEback to summary
private static final int MESSAGE
messageback to summary
private String message
parseStateback to summary
private int parseState
responseCodeback to summary
private int responseCode
STATUS_CODEback to summary
private static final int STATUS_CODE
VERSIONback to summary
private static final int VERSION

Constructor Detail

HttpUpgradeParserback to summary
pack-priv HttpUpgradeParser()

Method Detail

getHeadersback to summary
public Map<String, List<String>> getHeaders()
getHttpVersionback to summary
public String getHttpVersion()
getMessageback to summary
public String getMessage()
getResponseCodeback to summary
public int getResponseCode()
isCompleteback to summary
pack-priv boolean isComplete()
parseback to summary
pack-priv void parse(final ByteBuffer buffer) throws IOException
parseHeaderNameback to summary
private void parseHeaderName(final ByteBuffer buffer) throws IOException
parseHeaderValueback to summary
private void parseHeaderValue(final ByteBuffer buffer)
parseMessageback to summary
private void parseMessage(final ByteBuffer buffer) throws IOException
parseStatusCodeback to summary
private void parseStatusCode(final ByteBuffer buffer) throws IOException
parseVersionback to summary
private void parseVersion(final ByteBuffer buffer) throws IOException