Class HTTPParser

    • Field Detail

      • _server

        protected String _server
      • _host

        protected String _host
      • _contentType

        protected String _contentType
      • _connection

        protected String _connection
      • _contentLength

        protected long _contentLength
      • _chunked

        protected boolean _chunked
    • Method Detail

      • getContentType

        public String getContentType()
      • getContentLength

        public long getContentLength()
      • isChunked

        public boolean isChunked()
      • setInputStream

        public void setInputStream​(InputStream in)
      • parse

        protected void parse()
                      throws IOException
        Parses the typical HTTP header.
        Throws:
        IOException - if a connection fails or bad/incomplete request
      • getRest

        protected static final String getRest​(String line,
                                              int index)