| java.lang.Object com.quadcap.http.util.HeaderParser
HeaderParser | public class HeaderParser (Code) | | An HTTP header parser.
author: Stan Bailes |
getToken | public static String getToken(Scanner scanner, OctetMap map) throws IOException(Code) | | Parsing helper: Get the next bytes all of which are in the
specified map
Parameters: scanner - the current scanner input source Parameters: map - the octet map specifying the bytes we want |
parseCRLF | public static void parseCRLF(Scanner scanner) throws IOException(Code) | | Skip trailing whitespace followed by CRLF
Parameters: scanner - the current scanner input source exception: IOException - if anything other than CRLF is found |
parseHeaders | public static Map parseHeaders(InputStream is) throws IOException(Code) | | Utility method to parse HTTP headers from an input stream, leaving
the stream posisitioned after the blank line following the headers.
|
|
|