#include <OW_HTTPChunkedIStream.hpp>
Inheritance diagram for OW_NAMESPACE::HTTPChunkedIStream:
Public Member Functions | |
HTTPChunkedIStream (std::istream &istr) | |
Convert a istream& into a HTTPChunkedIStream. | |
~HTTPChunkedIStream () | |
std::istream & | getInputStreamOrig () |
Get the original istream&. | |
Map< String, String > | getTrailers () const |
Get the HTTP trailers from the http response. | |
void | resetInput () |
Clear the EOF/BAD bits, so that input can continue. | |
virtual void | checkForError () const |
This function should be called after the end of the stream has been reached. | |
virtual String | getTrailer (const String &key) const |
Private Member Functions | |
void | buildTrailerMap () |
A callback function, invoked by the HTTPChunkingStreamBuffer. | |
HTTPChunkedIStream (const HTTPChunkedIStream &) | |
HTTPChunkedIStream & | operator= (const HTTPChunkedIStream &) |
Private Attributes | |
std::istream & | m_istr |
Map< String, String > | m_trailerMap |
Friends | |
class | HTTPChunkedIStreamBuffer |
Definition at line 75 of file OW_HTTPChunkedIStream.hpp.
|
Convert a istream& into a HTTPChunkedIStream. The istream& passed in is wrapped to that the new input available from this is de-chunked.
|
|
Definition at line 135 of file OW_HTTPChunkedIStream.cpp. |
|
|
|
A callback function, invoked by the HTTPChunkingStreamBuffer. After a zero length chunk is encountered, this is called to build the trailer map, if there is one Definition at line 147 of file OW_HTTPChunkedIStream.cpp. References m_istr, m_trailerMap, OW_THROW, and OW_NAMESPACE::HTTPUtils::parseHeader(). Referenced by OW_NAMESPACE::HTTPChunkedIStreamBuffer::buffer_from_device(). |
|
This function should be called after the end of the stream has been reached. It will check the trailers for an error, and throw an appropriate CIMException (constructed from the info from the trailers). Reimplemented from OW_NAMESPACE::CIMProtocolIStreamIFC. Definition at line 171 of file OW_HTTPChunkedIStream.cpp. References OW_NAMESPACE::String::c_str(), OW_NAMESPACE::String::empty(), getTrailer(), and OW_THROW. |
|
Get the original istream&.
Definition at line 91 of file OW_HTTPChunkedIStream.hpp. |
|
Definition at line 157 of file OW_HTTPChunkedIStream.cpp. References OW_NAMESPACE::Map< Key, T, Compare >::begin(), OW_NAMESPACE::Map< Key, T, Compare >::end(), and m_trailerMap. Referenced by checkForError(). |
|
Get the HTTP trailers from the http response. This must be called after EOF is hit on the input stream.
Definition at line 97 of file OW_HTTPChunkedIStream.hpp. |
|
|
|
Clear the EOF/BAD bits, so that input can continue.
Definition at line 140 of file OW_HTTPChunkedIStream.cpp. References OW_NAMESPACE::HTTPChunkedIStreamBase::m_strbuf, and OW_NAMESPACE::HTTPChunkedIStreamBuffer::resetInput(). |
|
Definition at line 129 of file OW_HTTPChunkedIStream.hpp. |
|
Definition at line 106 of file OW_HTTPChunkedIStream.hpp. Referenced by buildTrailerMap(). |
|
Definition at line 114 of file OW_HTTPChunkedIStream.hpp. Referenced by buildTrailerMap(), and getTrailer(). |