reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
Processor.hxx
Go to the documentation of this file.
1#if !defined(RESIP_REQUEST_PROCESSOR_HXX)
2#define RESIP_REQUEST_PROCESSOR_HXX
3
4#include <iosfwd>
5#include <vector>
7#include "rutil/Data.hxx"
8
9namespace repro
10{
11class ProcessorChain;
12class RequestContext;
13
15{
16 public:
24
25 Processor(const resip::Data& name, ChainType type=NO_TYPE);
26 virtual ~Processor();
27
28 typedef enum
29 {
30 Continue, // move onto the next Processor
31 WaitingForEvent, // stop Processor chain and wait for async response
34 }
36
38
39 virtual void setChainType(ChainType type);
40 virtual ChainType getChainType() const;
41
42 virtual void setName(const resip::Data& name);
43 virtual const resip::Data& getName() const;
44
45 virtual void pushAddress(const std::vector<short>& address);
46 virtual void pushAddress(const short address);
47
48 virtual const std::vector<short>& getAddress() const;
49
50 protected:
51 std::vector<short> mAddress;
54
55 friend class ProcessorChain;
56};
57
59}
60
61
62#endif
63
64/* ====================================================================
65 * The Vovida Software License, Version 1.0
66 *
67 * Copyright (c) 2000 Vovida Networks, Inc. All rights reserved.
68 *
69 * Redistribution and use in source and binary forms, with or without
70 * modification, are permitted provided that the following conditions
71 * are met:
72 *
73 * 1. Redistributions of source code must retain the above copyright
74 * notice, this list of conditions and the following disclaimer.
75 *
76 * 2. Redistributions in binary form must reproduce the above copyright
77 * notice, this list of conditions and the following disclaimer in
78 * the documentation and/or other materials provided with the
79 * distribution.
80 *
81 * 3. The names "VOCAL", "Vovida Open Communication Application Library",
82 * and "Vovida Open Communication Application Library (VOCAL)" must
83 * not be used to endorse or promote products derived from this
84 * software without prior written permission. For written
85 * permission, please contact vocal@vovida.org.
86 *
87 * 4. Products derived from this software may not be called "VOCAL", nor
88 * may "VOCAL" appear in their name, without prior written
89 * permission of Vovida Networks, Inc.
90 *
91 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
92 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
93 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
94 * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL VOVIDA
95 * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
96 * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
97 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
98 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
99 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
100 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
101 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
102 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
103 * DAMAGE.
104 *
105 * ====================================================================
106 *
107 * This software consists of voluntary contributions made by Vovida
108 * Networks, Inc. and many individuals on behalf of Vovida Networks,
109 * Inc. For more information on Vovida Networks, Inc., please see
110 * <http://www.vovida.org/>.
111 *
112 */
virtual void setChainType(ChainType type)
Definition Processor.cxx:39
virtual processor_action_t process(RequestContext &)=0
resip::Data mName
Definition Processor.hxx:53
virtual ChainType getChainType() const
Definition Processor.cxx:45
std::vector< short > mAddress
Definition Processor.hxx:51
virtual void setName(const resip::Data &name)
Definition Processor.cxx:51
virtual const resip::Data & getName() const
Definition Processor.cxx:57
virtual const std::vector< short > & getAddress() const
Definition Processor.cxx:63
virtual ~Processor()
Definition Processor.cxx:19
ChainType mType
Definition Processor.hxx:52
virtual void pushAddress(const std::vector< short > &address)
Definition Processor.cxx:24
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
Definition Data.hxx:90
This Class is used to implement a primitive form of RPC using loose XML formatting.
EncodeStream & operator<<(EncodeStream &os, const repro::Processor &rp)
Definition Processor.cxx:69
Replaces STL streams for general encoding purposes.
#define EncodeStream
void list()
Definition userAdmin.cxx:66