Class HeaderParser
java.lang.Object
com.bytedesk.call.esl.client.transport.HeaderParser
This parser provides a static helper method to split a standard Header field
into the name and value parts.
This code was copied from the splitHeader() method in the HttpMessageDecoder class, which
is licensed under the Apache License version 2. (Original author: Trustin Lee.)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intprivate static intfindNonWhitespace(String sb, int offset) static String[]splitHeader(String sb) Split a header in the form
-
Constructor Details
-
HeaderParser
public HeaderParser()
-
-
Method Details
-
splitHeader
Split a header in the formHeader-Name: Some_header-value
into a String array.- Parameters:
sb- the string header to parse- Returns:
- a String[] array with header name at 0 and header value at 1
-
findNonWhitespace
-
findEndOfString
-