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