Public Types | Public Member Functions

Swift::ErrorPayload Class Reference

Inheritance diagram for Swift::ErrorPayload:
Collaboration diagram for Swift::ErrorPayload:

List of all members.

Public Types

enum  Type {
  Cancel, Continue, Modify, Auth,
  Wait
}
enum  Condition {
  BadRequest, Conflict, FeatureNotImplemented, Forbidden,
  Gone, InternalServerError, ItemNotFound, JIDMalformed,
  NotAcceptable, NotAllowed, NotAuthorized, PaymentRequired,
  RecipientUnavailable, Redirect, RegistrationRequired, RemoteServerNotFound,
  RemoteServerTimeout, ResourceConstraint, ServiceUnavailable, SubscriptionRequired,
  UndefinedCondition, UnexpectedRequest
}
typedef boost::shared_ptr
< ErrorPayload
ref

Public Member Functions

 ErrorPayload (Condition condition=UndefinedCondition, Type type=Cancel, const std::string &text=std::string())
Type getType () const
void setType (Type type)
Condition getCondition () const
void setCondition (Condition condition)
void setText (const std::string &text)
const std::string & getText () const
void setPayload (boost::shared_ptr< Payload > payload)
boost::shared_ptr< PayloadgetPayload () const

Detailed Description

Definition at line 15 of file ErrorPayload.h.


Member Typedef Documentation

typedef boost::shared_ptr<ErrorPayload> Swift::ErrorPayload::ref

Reimplemented from Swift::Payload.

Definition at line 17 of file ErrorPayload.h.


Member Enumeration Documentation

Enumerator:
BadRequest 
Conflict 
FeatureNotImplemented 
Forbidden 
Gone 
InternalServerError 
ItemNotFound 
JIDMalformed 
NotAcceptable 
NotAllowed 
NotAuthorized 
PaymentRequired 
RecipientUnavailable 
Redirect 
RegistrationRequired 
RemoteServerNotFound 
RemoteServerTimeout 
ResourceConstraint 
ServiceUnavailable 
SubscriptionRequired 
UndefinedCondition 
UnexpectedRequest 

Definition at line 21 of file ErrorPayload.h.

Enumerator:
Cancel 
Continue 
Modify 
Auth 
Wait 

Definition at line 19 of file ErrorPayload.h.


Constructor & Destructor Documentation

Swift::ErrorPayload::ErrorPayload ( Condition  condition = UndefinedCondition,
Type  type = Cancel,
const std::string &  text = std::string() 
) [inline]

Definition at line 46 of file ErrorPayload.h.


Member Function Documentation

Condition Swift::ErrorPayload::getCondition (  )  const [inline]

Definition at line 56 of file ErrorPayload.h.

boost::shared_ptr<Payload> Swift::ErrorPayload::getPayload (  )  const [inline]

Definition at line 76 of file ErrorPayload.h.

const std::string& Swift::ErrorPayload::getText (  )  const [inline]

Definition at line 68 of file ErrorPayload.h.

Type Swift::ErrorPayload::getType (  )  const [inline]

Definition at line 48 of file ErrorPayload.h.

void Swift::ErrorPayload::setCondition ( Condition  condition  )  [inline]

Definition at line 60 of file ErrorPayload.h.

void Swift::ErrorPayload::setPayload ( boost::shared_ptr< Payload payload  )  [inline]

Definition at line 72 of file ErrorPayload.h.

void Swift::ErrorPayload::setText ( const std::string &  text  )  [inline]

Definition at line 64 of file ErrorPayload.h.

void Swift::ErrorPayload::setType ( Type  type  )  [inline]

Definition at line 52 of file ErrorPayload.h.