Tue, 28 Dec 2010 15:52:36 -0800
6962318: Update copyright year
Reviewed-by: xdono
1 /*
2 * Copyright (c) 2003, 2010, 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 */
26 package com.sun.corba.se.impl.interceptors;
28 import java.io.IOException;
30 import org.omg.CORBA.Any;
31 import org.omg.CORBA.NVList;
33 import org.omg.IOP.CodecFactory;
35 import org.omg.CORBA.portable.RemarshalException;
37 import org.omg.PortableInterceptor.ObjectReferenceTemplate ;
38 import org.omg.PortableInterceptor.ForwardRequest;
39 import org.omg.PortableInterceptor.Interceptor;
40 import org.omg.PortableInterceptor.PolicyFactory;
41 import org.omg.PortableInterceptor.Current;
43 import org.omg.PortableInterceptor.ORBInitInfoPackage.DuplicateName ;
45 import com.sun.corba.se.pept.encoding.OutputObject;
47 import com.sun.corba.se.spi.ior.ObjectKeyTemplate;
49 import com.sun.corba.se.spi.oa.ObjectAdapter;
51 import com.sun.corba.se.spi.orb.ORB;
53 import com.sun.corba.se.spi.protocol.PIHandler;
54 import com.sun.corba.se.spi.protocol.ForwardException;
55 import com.sun.corba.se.spi.protocol.CorbaMessageMediator;
57 import com.sun.corba.se.impl.corba.RequestImpl;
59 import com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage;
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 */
67 public class PINoOpHandlerImpl implements PIHandler
68 {
69 public PINoOpHandlerImpl( ) {
70 }
72 public void initialize() {
73 }
75 public void destroyInterceptors() {
76 }
78 public void objectAdapterCreated( ObjectAdapter oa )
79 {
80 }
82 public void adapterManagerStateChanged( int managerId,
83 short newState )
84 {
85 }
87 public void adapterStateChanged( ObjectReferenceTemplate[]
88 templates, short newState )
89 {
90 }
93 public void disableInterceptorsThisThread() {
94 }
96 public void enableInterceptorsThisThread() {
97 }
99 public void invokeClientPIStartingPoint()
100 throws RemarshalException
101 {
102 }
104 public Exception invokeClientPIEndingPoint(
105 int replyStatus, Exception exception )
106 {
107 return null;
108 }
110 public Exception makeCompletedClientRequest(
111 int replyStatus, Exception exception ) {
112 return null;
113 }
115 public void initiateClientPIRequest( boolean diiRequest ) {
116 }
118 public void cleanupClientPIRequest() {
119 }
121 public void setClientPIInfo(CorbaMessageMediator messageMediator)
122 {
123 }
125 public void setClientPIInfo( RequestImpl requestImpl )
126 {
127 }
129 final public void sendCancelRequestIfFinalFragmentNotSent()
130 {
131 }
134 public void invokeServerPIStartingPoint()
135 {
136 }
138 public void invokeServerPIIntermediatePoint()
139 {
140 }
142 public void invokeServerPIEndingPoint( ReplyMessage replyMessage )
143 {
144 }
146 public void setServerPIInfo( Exception exception ) {
147 }
149 public void setServerPIInfo( NVList arguments )
150 {
151 }
153 public void setServerPIExceptionInfo( Any exception )
154 {
155 }
157 public void setServerPIInfo( Any result )
158 {
159 }
161 public void initializeServerPIInfo( CorbaMessageMediator request,
162 ObjectAdapter oa, byte[] objectId, ObjectKeyTemplate oktemp )
163 {
164 }
166 public void setServerPIInfo( java.lang.Object servant,
167 String targetMostDerivedInterface )
168 {
169 }
171 public void cleanupServerPIRequest() {
172 }
174 public void register_interceptor( Interceptor interceptor, int type )
175 throws DuplicateName
176 {
177 }
179 public Current getPICurrent( ) {
180 return null;
181 }
183 public org.omg.CORBA.Policy create_policy(int type, org.omg.CORBA.Any val)
184 throws org.omg.CORBA.PolicyError
185 {
186 return null;
187 }
189 public void registerPolicyFactory( int type, PolicyFactory factory ) {
190 }
192 public int allocateServerRequestId ()
193 {
194 return 0;
195 }
196 }