Package org.globus.util.http
Class HTTPParser
java.lang.Object
org.globus.util.http.HTTPParser
- Direct Known Subclasses:
HTTPRequestParser
,HTTPResponseParser
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected String
protected long
protected String
protected String
protected LineReader
protected String
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
_server
-
_host
-
_contentType
-
_connection
-
_contentLength
protected long _contentLength -
_chunked
protected boolean _chunked -
_reader
-
-
Constructor Details
-
HTTPParser
- Throws:
IOException
-
-
Method Details
-
getContentType
-
getContentLength
public long getContentLength() -
isChunked
public boolean isChunked() -
getReader
-
setInputStream
-
parseHead
- Throws:
IOException
-
parse
Parses the typical HTTP header.- Throws:
IOException
- if a connection fails or bad/incomplete request
-
getRest
-