|
OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimHttpResponse.h>
Public Member Functions | |
| ossimHttpResponse () | |
| ossimByteStreamBuffer & | headerBuffer () |
| const ossimByteStreamBuffer & | headerBuffer () const |
| ossimByteStreamBuffer & | bodyBuffer () |
| const ossimByteStreamBuffer & | bodyBuffer () const |
| std::iostream & | headerStream () |
| std::iostream & | bodyStream () |
| virtual std::istream * | getInputStream () |
| This might have to change in the future if we start doing other protocols such as ftp scp, ... More... | |
| virtual void | clear () |
| Clears out the Response and prepares for a new response. More... | |
| void | convertHeaderStreamToKeywordlist () |
| This will parse out the response code from the status line and initialize the header variables into a keywordlist. More... | |
| virtual void | clearLastError () |
| virtual ossimString | getLastError () const |
| ossimKeywordlist & | headerKwl () |
| const ossimKeywordlist & | headerKwl () const |
| ossim_int64 | getContentLength () const |
| ossimString | getHeaderValue (const ossimString &headerName) const |
| const ossimString & | statusLine () const |
| ossim_uint32 | getStatusCode () const |
Public Member Functions inherited from ossimWebResponse | |
| ossimWebResponse () | |
| void | copyAllDataFromInputStream (ByteBuffer &buffer) |
Public Member Functions inherited from ossimObject | |
| ossimObject () | |
| virtual | ~ossimObject () |
| virtual ossimObject * | dup () const |
| virtual ossimString | getShortName () const |
| virtual ossimString | getLongName () const |
| virtual ossimString | getDescription () const |
| virtual ossimString | getClassName () const |
| virtual RTTItypeid | getType () const |
| virtual bool | canCastTo (ossimObject *obj) const |
| virtual bool | canCastTo (const RTTItypeid &id) const |
| virtual bool | canCastTo (const ossimString &parentClassName) const |
| virtual bool | saveState (ossimKeywordlist &kwl, const char *prefix=0) const |
| virtual bool | loadState (const ossimKeywordlist &kwl, const char *prefix=0) |
| virtual std::ostream & | print (std::ostream &out) const |
| Generic print method. More... | |
| virtual bool | isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const |
| virtual void | accept (ossimVisitor &visitor) |
Public Member Functions inherited from ossimReferenced | |
| ossimReferenced () | |
| ossimReferenced (const ossimReferenced &) | |
| ossimReferenced & | operator= (const ossimReferenced &) |
| void | ref () const |
| increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
| void | unref () const |
| decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| void | unref_nodelete () const |
| decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| int | referenceCount () const |
Protected Attributes | |
| ossimKeywordlist | m_headerKwl |
| ossimByteStreamBuffer | m_headerBuffer |
| ossimByteStreamBuffer | m_bodyBuffer |
| std::iostream | m_headerStream |
| std::iostream | m_bodyStream |
| ossimString | m_statusLine |
| ossim_uint32 | m_statusCode |
| TYPE_DATA | |
Additional Inherited Members | |
Public Types inherited from ossimWebResponse | |
| typedef std::vector< char > | ByteBuffer |
Public Attributes inherited from ossimWebResponse | |
| TYPE_DATA | |
Protected Member Functions inherited from ossimReferenced | |
| virtual | ~ossimReferenced () |
Definition at line 21 of file ossimHttpResponse.h.
|
inline |
Definition at line 24 of file ossimHttpResponse.h.
|
inline |
Definition at line 33 of file ossimHttpResponse.h.
|
inline |
Definition at line 34 of file ossimHttpResponse.h.
|
inline |
Definition at line 37 of file ossimHttpResponse.h.
Referenced by ossimCurlHttpRequest::curlWriteResponseBody().
|
inlinevirtual |
Clears out the Response and prepares for a new response.
Definition at line 45 of file ossimHttpResponse.h.
|
inlinevirtual |
Definition at line 59 of file ossimHttpResponse.h.
| void ossimHttpResponse::convertHeaderStreamToKeywordlist | ( | ) |
This will parse out the response code from the status line and initialize the header variables into a keywordlist.
Definition at line 5 of file ossimHttpResponse.cpp.
References ossimKeywordlist::clear(), getline(), m_headerBuffer, m_headerKwl, m_statusCode, m_statusLine, ossimKeywordlist::parseStream(), ossimString::split(), and statusLine().
Referenced by ossimCurlHttpRequest::getContentLength(), ossimCurlHttpRequest::getResponse(), and ossim::CurlStreamBuffer::loadBlock().
| ossim_int64 ossimHttpResponse::getContentLength | ( | ) | const |
Definition at line 38 of file ossimHttpResponse.cpp.
References ossimString::empty(), ossimKeywordlist::find(), m_headerKwl, and ossimString::toInt64().
Referenced by ossim::CurlStreamBuffer::loadBlock().
| ossimString ossimHttpResponse::getHeaderValue | ( | const ossimString & | headerName | ) | const |
Definition at line 31 of file ossimHttpResponse.cpp.
References ossimKeywordlist::find(), and m_headerKwl.
|
inlinevirtual |
This might have to change in the future if we start doing other protocols such as ftp scp, ...
etc.
We currently will return the main input stream that can be used to read the bytes returned from the request. If you need access to say a header stream from an http protocol then you can dynamic_cast to an ossimHttpResponse.
Implements ossimWebResponse.
Definition at line 39 of file ossimHttpResponse.h.
|
inlinevirtual |
Definition at line 61 of file ossimHttpResponse.h.
|
inline |
Definition at line 68 of file ossimHttpResponse.h.
Referenced by ossimKakaduJpipHandler::allocateSession(), ossim::CurlStreamBuffer::loadBlock(), and ossimKakaduJpipHandler::loadClient().
|
inline |
Definition at line 31 of file ossimHttpResponse.h.
|
inline |
Definition at line 32 of file ossimHttpResponse.h.
|
inline |
Definition at line 63 of file ossimHttpResponse.h.
Referenced by ossimKakaduJpipHandler::allocateSession(), ossim::CurlStreamBuffer::loadBlock(), and ossimKakaduJpipHandler::loadClient().
|
inline |
Definition at line 64 of file ossimHttpResponse.h.
|
inline |
Definition at line 36 of file ossimHttpResponse.h.
Referenced by ossimCurlHttpRequest::curlWriteResponseHeader().
|
inline |
Definition at line 67 of file ossimHttpResponse.h.
Referenced by convertHeaderStreamToKeywordlist().
|
protected |
Definition at line 73 of file ossimHttpResponse.h.
|
protected |
Definition at line 75 of file ossimHttpResponse.h.
|
protected |
Definition at line 72 of file ossimHttpResponse.h.
Referenced by convertHeaderStreamToKeywordlist().
|
protected |
Definition at line 71 of file ossimHttpResponse.h.
Referenced by convertHeaderStreamToKeywordlist(), getContentLength(), and getHeaderValue().
|
protected |
Definition at line 74 of file ossimHttpResponse.h.
|
protected |
Definition at line 77 of file ossimHttpResponse.h.
Referenced by convertHeaderStreamToKeywordlist().
|
protected |
Definition at line 76 of file ossimHttpResponse.h.
Referenced by convertHeaderStreamToKeywordlist().
|
protected |
Definition at line 79 of file ossimHttpResponse.h.
1.8.14