summaryrefslogtreecommitdiff
path: root/ACE/TAO/DevGuideExamples/PortableInterceptors/SimpleCodec/ServerInterceptor.h
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/TAO/DevGuideExamples/PortableInterceptors/SimpleCodec/ServerInterceptor.h')
-rw-r--r--ACE/TAO/DevGuideExamples/PortableInterceptors/SimpleCodec/ServerInterceptor.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/ACE/TAO/DevGuideExamples/PortableInterceptors/SimpleCodec/ServerInterceptor.h b/ACE/TAO/DevGuideExamples/PortableInterceptors/SimpleCodec/ServerInterceptor.h
new file mode 100644
index 00000000000..4ccc5ddf3ab
--- /dev/null
+++ b/ACE/TAO/DevGuideExamples/PortableInterceptors/SimpleCodec/ServerInterceptor.h
@@ -0,0 +1,38 @@
+// $Id$
+
+#ifndef SERVERINTERCEPTOR_H
+#define SERVERINTERCEPTOR_H
+
+#include "tao/PortableInterceptorC.h"
+#include "tao/PI_Server/ServerRequestInterceptorA.h"
+#include "tao/PI/ORBInitInfo.h"
+
+class ServerInterceptor
+: public PortableInterceptor::ServerRequestInterceptor
+{
+ public:
+ ServerInterceptor (IOP::CodecFactory_var);
+
+ ~ServerInterceptor ();
+
+ virtual char * name ();
+
+ virtual void destroy ();
+
+ virtual void receive_request (PortableInterceptor::ServerRequestInfo_ptr ri);
+
+ virtual void receive_request_service_contexts (
+ PortableInterceptor::ServerRequestInfo_ptr ri);
+
+ virtual void send_reply (PortableInterceptor::ServerRequestInfo_ptr ri);
+
+ virtual void send_exception (PortableInterceptor::ServerRequestInfo_ptr ri);
+
+ virtual void send_other (PortableInterceptor::ServerRequestInfo_ptr ri);
+
+ private:
+ const char *myname_;
+ IOP::Codec_var codec;
+};
+
+#endif