Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Internet Protocols Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWNumReplyLine

Module:  Internet Protocols Module   Package:  Internet Basics


Does not inherit

Local Index

Members

Non-Members

Header File

#include <rw/internet/RWNumReplyLine.h>

Description

RWNumReplyLine encapsulates a single numerical protocol reply as defined by the FTP and SMTP protocols. An example reply line is 200 Command Ok. If the 4th character of a reply line is the character - (dash) instead of <space>, the reply consists of multiple lines, with - as the continuation marker. The continuation marker is used by RWNumReply to build a complete reply that encapsulates an entire server response.

Public Constructors

RWNumReplyLine();
RWNumReplyLine(const RWCString& s);

Public Member Operators

bool
operator==(const RWNumReplyLine& other) const; 
bool
operator<(const RWNumReplyLine& other) const;

Public Member Functions

RWCString
codeAsString() const;
RWCString
getData() const;

NOTE -- This is the only RWNumReplyLine method an application can call after an exception is thrown.
unsigned int
getStatusCode() const;
RWCString
getText() const;
bool
isContinued() const;
bool
isValid() const;
bool     
is1XX() const;
bool
is2XX() const;
bool
is3XX() const;
bool
is4XX() const;
bool
is5XX() const;

NOTE -- Only one of these five methods returns true for any valid instance.
void
reset();
void
set(const RWCString& data);

Global Operator

ostream&
operator<<(ostream& strm, const RWNumReplyLine& r); 


Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.