PINoOpHandlerImpl.java revision 608:7e06bf1dcb09
1/*
2 * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.  Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26package com.sun.corba.se.impl.interceptors;
27
28import java.io.IOException;
29
30import org.omg.CORBA.Any;
31import org.omg.CORBA.NVList;
32
33import org.omg.IOP.CodecFactory;
34
35import org.omg.CORBA.portable.RemarshalException;
36
37import org.omg.PortableInterceptor.ObjectReferenceTemplate ;
38import org.omg.PortableInterceptor.ForwardRequest;
39import org.omg.PortableInterceptor.Interceptor;
40import org.omg.PortableInterceptor.PolicyFactory;
41import org.omg.PortableInterceptor.Current;
42
43import org.omg.PortableInterceptor.ORBInitInfoPackage.DuplicateName ;
44
45import com.sun.corba.se.pept.encoding.OutputObject;
46
47import com.sun.corba.se.spi.ior.ObjectKeyTemplate;
48
49import com.sun.corba.se.spi.oa.ObjectAdapter;
50
51import com.sun.corba.se.spi.orb.ORB;
52
53import com.sun.corba.se.spi.protocol.PIHandler;
54import com.sun.corba.se.spi.protocol.ForwardException;
55import com.sun.corba.se.spi.protocol.CorbaMessageMediator;
56
57import com.sun.corba.se.impl.corba.RequestImpl;
58
59import com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage;
60
61/**
62 * This is No-Op implementation of PIHandler. It is used in ORBConfigurator
63 * to initialize a piHandler before the Persistent Server Activation. This
64 * PIHandler implementation will be replaced by the real PIHandler in
65 * ORB.postInit( ) call.
66 */
67public class PINoOpHandlerImpl implements PIHandler
68{
69    public PINoOpHandlerImpl( ) {
70    }
71
72    public void close() {
73    }
74
75    public void initialize() {
76    }
77
78    public void destroyInterceptors() {
79    }
80
81    public void objectAdapterCreated( ObjectAdapter oa )
82    {
83    }
84
85    public void adapterManagerStateChanged( int managerId,
86        short newState )
87    {
88    }
89
90    public void adapterStateChanged( ObjectReferenceTemplate[]
91        templates, short newState )
92    {
93    }
94
95
96    public void disableInterceptorsThisThread() {
97    }
98
99    public void enableInterceptorsThisThread() {
100    }
101
102    public void invokeClientPIStartingPoint()
103        throws RemarshalException
104    {
105    }
106
107    public Exception invokeClientPIEndingPoint(
108        int replyStatus, Exception exception )
109    {
110        return null;
111    }
112
113    public Exception makeCompletedClientRequest(
114        int replyStatus, Exception exception ) {
115        return null;
116    }
117
118    public void initiateClientPIRequest( boolean diiRequest ) {
119    }
120
121    public void cleanupClientPIRequest() {
122    }
123
124    public void setClientPIInfo(CorbaMessageMediator messageMediator)
125    {
126    }
127
128    public void setClientPIInfo( RequestImpl requestImpl )
129    {
130    }
131
132    final public void sendCancelRequestIfFinalFragmentNotSent()
133    {
134    }
135
136
137    public void invokeServerPIStartingPoint()
138    {
139    }
140
141    public void invokeServerPIIntermediatePoint()
142    {
143    }
144
145    public void invokeServerPIEndingPoint( ReplyMessage replyMessage )
146    {
147    }
148
149    public void setServerPIInfo( Exception exception ) {
150    }
151
152    public void setServerPIInfo( NVList arguments )
153    {
154    }
155
156    public void setServerPIExceptionInfo( Any exception )
157    {
158    }
159
160    public void setServerPIInfo( Any result )
161    {
162    }
163
164    public void initializeServerPIInfo( CorbaMessageMediator request,
165        ObjectAdapter oa, byte[] objectId, ObjectKeyTemplate oktemp )
166    {
167    }
168
169    public void setServerPIInfo( java.lang.Object servant,
170                                          String targetMostDerivedInterface )
171    {
172    }
173
174    public void cleanupServerPIRequest() {
175    }
176
177    public void register_interceptor( Interceptor interceptor, int type )
178        throws DuplicateName
179    {
180    }
181
182    public Current getPICurrent( ) {
183        return null;
184    }
185
186    public org.omg.CORBA.Policy create_policy(int type, org.omg.CORBA.Any val)
187        throws org.omg.CORBA.PolicyError
188    {
189        return null;
190    }
191
192    public void registerPolicyFactory( int type, PolicyFactory factory ) {
193    }
194
195    public int allocateServerRequestId ()
196    {
197        return 0;
198    }
199}
200