corba/src/share/classes/com/sun/corba/se/impl/orb/ORBDataParserImpl.java
author coffeys
Mon, 08 Apr 2013 23:12:03 +0100
changeset 18304 56149cf29cf9
parent 5555 b2b5ed3f0d0d
permissions -rw-r--r--
8001032: Restrict object access Summary: Restrict object access; fix reviewed also by Alexander Fomin Reviewed-by: alanb, ahgross
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4
02bb8761fcce Initial load
duke
parents:
diff changeset
     1
/*
18304
56149cf29cf9 8001032: Restrict object access
coffeys
parents: 5555
diff changeset
     2
 * Copyright (c) 2002, 2013, 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
02bb8761fcce Initial load
duke
parents:
diff changeset
    27
package com.sun.corba.se.impl.orb ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    28
02bb8761fcce Initial load
duke
parents:
diff changeset
    29
import java.net.URL ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    30
02bb8761fcce Initial load
duke
parents:
diff changeset
    31
import org.omg.CORBA.CompletionStatus ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    32
import org.omg.PortableInterceptor.ORBInitializer ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    33
02bb8761fcce Initial load
duke
parents:
diff changeset
    34
import com.sun.corba.se.pept.transport.Acceptor;
02bb8761fcce Initial load
duke
parents:
diff changeset
    35
02bb8761fcce Initial load
duke
parents:
diff changeset
    36
import com.sun.corba.se.spi.ior.iiop.GIOPVersion ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    37
import com.sun.corba.se.spi.logging.CORBALogDomains ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    38
import com.sun.corba.se.spi.orb.DataCollector ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    39
import com.sun.corba.se.spi.orb.ORB ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    40
import com.sun.corba.se.spi.orb.ORBData ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    41
import com.sun.corba.se.spi.orb.ParserImplTableBase ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    42
import com.sun.corba.se.spi.orb.StringPair ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    43
import com.sun.corba.se.spi.transport.CorbaContactInfoListFactory;
02bb8761fcce Initial load
duke
parents:
diff changeset
    44
import com.sun.corba.se.spi.transport.CorbaTransportManager;
02bb8761fcce Initial load
duke
parents:
diff changeset
    45
import com.sun.corba.se.spi.transport.IORToSocketInfo;
02bb8761fcce Initial load
duke
parents:
diff changeset
    46
import com.sun.corba.se.spi.transport.IIOPPrimaryToContactInfo;
02bb8761fcce Initial load
duke
parents:
diff changeset
    47
import com.sun.corba.se.spi.transport.ReadTimeouts;
02bb8761fcce Initial load
duke
parents:
diff changeset
    48
02bb8761fcce Initial load
duke
parents:
diff changeset
    49
import com.sun.corba.se.impl.encoding.CodeSetComponentInfo ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    50
import com.sun.corba.se.impl.legacy.connection.USLPort;
02bb8761fcce Initial load
duke
parents:
diff changeset
    51
import com.sun.corba.se.impl.orbutil.ORBConstants ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    52
import com.sun.corba.se.impl.logging.ORBUtilSystemException ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    53
02bb8761fcce Initial load
duke
parents:
diff changeset
    54
02bb8761fcce Initial load
duke
parents:
diff changeset
    55
public class ORBDataParserImpl extends ParserImplTableBase implements ORBData
02bb8761fcce Initial load
duke
parents:
diff changeset
    56
{
02bb8761fcce Initial load
duke
parents:
diff changeset
    57
    private ORB orb ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    58
    private ORBUtilSystemException wrapper ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    59
    private String ORBInitialHost ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    60
    private int ORBInitialPort ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    61
    private String ORBServerHost ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    62
    private int ORBServerPort ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    63
    private String listenOnAllInterfaces;
02bb8761fcce Initial load
duke
parents:
diff changeset
    64
    private com.sun.corba.se.spi.legacy.connection.ORBSocketFactory legacySocketFactory ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    65
    private com.sun.corba.se.spi.transport.ORBSocketFactory socketFactory;
02bb8761fcce Initial load
duke
parents:
diff changeset
    66
    private USLPort[] userSpecifiedListenPorts ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    67
    private IORToSocketInfo iorToSocketInfo;
02bb8761fcce Initial load
duke
parents:
diff changeset
    68
    private IIOPPrimaryToContactInfo iiopPrimaryToContactInfo;
02bb8761fcce Initial load
duke
parents:
diff changeset
    69
    private String orbId ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    70
    private boolean orbServerIdPropertySpecified ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    71
    private URL servicesURL ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    72
    private String propertyInitRef ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    73
    private boolean allowLocalOptimization ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    74
    private GIOPVersion giopVersion ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    75
    private int highWaterMark ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    76
    private int lowWaterMark ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    77
    private int numberToReclaim ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    78
    private int giopFragmentSize ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    79
    private int giopBufferSize ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    80
    private int giop11BuffMgr ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    81
    private int giop12BuffMgr ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    82
    private short giopTargetAddressPreference ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    83
    private short giopAddressDisposition ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    84
    private boolean useByteOrderMarkers ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    85
    private boolean useByteOrderMarkersInEncaps ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    86
    private boolean alwaysSendCodeSetCtx ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    87
    private boolean persistentPortInitialized ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    88
    private int persistentServerPort ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    89
    private boolean persistentServerIdInitialized ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    90
    private int persistentServerId ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    91
    private boolean serverIsORBActivated ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    92
    private Class badServerIdHandlerClass ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    93
    private CodeSetComponentInfo.CodeSetComponent charData ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    94
    private CodeSetComponentInfo.CodeSetComponent wcharData ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    95
    private ORBInitializer[] orbInitializers ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    96
    private StringPair[] orbInitialReferences ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    97
    private String defaultInitRef ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    98
    private String[] debugFlags ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    99
    private Acceptor[] acceptors;
02bb8761fcce Initial load
duke
parents:
diff changeset
   100
    private CorbaContactInfoListFactory corbaContactInfoListFactory;
02bb8761fcce Initial load
duke
parents:
diff changeset
   101
    private String acceptorSocketType;
02bb8761fcce Initial load
duke
parents:
diff changeset
   102
    private boolean acceptorSocketUseSelectThreadToWait;
02bb8761fcce Initial load
duke
parents:
diff changeset
   103
    private boolean acceptorSocketUseWorkerThreadForEvent;
02bb8761fcce Initial load
duke
parents:
diff changeset
   104
    private String connectionSocketType;
02bb8761fcce Initial load
duke
parents:
diff changeset
   105
    private boolean connectionSocketUseSelectThreadToWait;
02bb8761fcce Initial load
duke
parents:
diff changeset
   106
    private boolean connectionSocketUseWorkerThreadForEvent;
02bb8761fcce Initial load
duke
parents:
diff changeset
   107
    private ReadTimeouts readTimeouts;
02bb8761fcce Initial load
duke
parents:
diff changeset
   108
    private boolean disableDirectByteBufferUse;
02bb8761fcce Initial load
duke
parents:
diff changeset
   109
    private boolean enableJavaSerialization;
02bb8761fcce Initial load
duke
parents:
diff changeset
   110
    private boolean useRepId;
02bb8761fcce Initial load
duke
parents:
diff changeset
   111
02bb8761fcce Initial load
duke
parents:
diff changeset
   112
    // This is not initialized from ParserTable.
02bb8761fcce Initial load
duke
parents:
diff changeset
   113
    private CodeSetComponentInfo codesets ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   114
02bb8761fcce Initial load
duke
parents:
diff changeset
   115
// Public accessor methods ========================================================================
02bb8761fcce Initial load
duke
parents:
diff changeset
   116
02bb8761fcce Initial load
duke
parents:
diff changeset
   117
    public String getORBInitialHost()
02bb8761fcce Initial load
duke
parents:
diff changeset
   118
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   119
        return ORBInitialHost;
02bb8761fcce Initial load
duke
parents:
diff changeset
   120
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   121
02bb8761fcce Initial load
duke
parents:
diff changeset
   122
    public int getORBInitialPort()
02bb8761fcce Initial load
duke
parents:
diff changeset
   123
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   124
        return ORBInitialPort;
02bb8761fcce Initial load
duke
parents:
diff changeset
   125
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   126
02bb8761fcce Initial load
duke
parents:
diff changeset
   127
    public String getORBServerHost()
02bb8761fcce Initial load
duke
parents:
diff changeset
   128
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   129
        return ORBServerHost;
02bb8761fcce Initial load
duke
parents:
diff changeset
   130
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   131
02bb8761fcce Initial load
duke
parents:
diff changeset
   132
    public String getListenOnAllInterfaces()
02bb8761fcce Initial load
duke
parents:
diff changeset
   133
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   134
        return listenOnAllInterfaces;
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 int getORBServerPort()
02bb8761fcce Initial load
duke
parents:
diff changeset
   138
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   139
        return ORBServerPort;
02bb8761fcce Initial load
duke
parents:
diff changeset
   140
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   141
02bb8761fcce Initial load
duke
parents:
diff changeset
   142
    public com.sun.corba.se.spi.legacy.connection.ORBSocketFactory getLegacySocketFactory()
02bb8761fcce Initial load
duke
parents:
diff changeset
   143
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   144
        return legacySocketFactory;
02bb8761fcce Initial load
duke
parents:
diff changeset
   145
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   146
02bb8761fcce Initial load
duke
parents:
diff changeset
   147
    public com.sun.corba.se.spi.transport.ORBSocketFactory getSocketFactory()
02bb8761fcce Initial load
duke
parents:
diff changeset
   148
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   149
        return socketFactory;
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 USLPort[] getUserSpecifiedListenPorts ()
02bb8761fcce Initial load
duke
parents:
diff changeset
   153
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   154
        return userSpecifiedListenPorts;
02bb8761fcce Initial load
duke
parents:
diff changeset
   155
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   156
02bb8761fcce Initial load
duke
parents:
diff changeset
   157
    public IORToSocketInfo getIORToSocketInfo()
02bb8761fcce Initial load
duke
parents:
diff changeset
   158
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   159
        return iorToSocketInfo;
02bb8761fcce Initial load
duke
parents:
diff changeset
   160
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   161
02bb8761fcce Initial load
duke
parents:
diff changeset
   162
    public IIOPPrimaryToContactInfo getIIOPPrimaryToContactInfo()
02bb8761fcce Initial load
duke
parents:
diff changeset
   163
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   164
        return iiopPrimaryToContactInfo;
02bb8761fcce Initial load
duke
parents:
diff changeset
   165
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   166
02bb8761fcce Initial load
duke
parents:
diff changeset
   167
    public String getORBId()
02bb8761fcce Initial load
duke
parents:
diff changeset
   168
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   169
        return orbId;
02bb8761fcce Initial load
duke
parents:
diff changeset
   170
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   171
02bb8761fcce Initial load
duke
parents:
diff changeset
   172
    public boolean getORBServerIdPropertySpecified()
02bb8761fcce Initial load
duke
parents:
diff changeset
   173
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   174
        return orbServerIdPropertySpecified;
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 boolean isLocalOptimizationAllowed()
02bb8761fcce Initial load
duke
parents:
diff changeset
   178
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   179
        return allowLocalOptimization ;
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 GIOPVersion getGIOPVersion()
02bb8761fcce Initial load
duke
parents:
diff changeset
   183
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   184
        return giopVersion;
02bb8761fcce Initial load
duke
parents:
diff changeset
   185
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   186
02bb8761fcce Initial load
duke
parents:
diff changeset
   187
    public int getHighWaterMark()
02bb8761fcce Initial load
duke
parents:
diff changeset
   188
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   189
        return highWaterMark;
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 int getLowWaterMark()
02bb8761fcce Initial load
duke
parents:
diff changeset
   193
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   194
        return lowWaterMark;
02bb8761fcce Initial load
duke
parents:
diff changeset
   195
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   196
02bb8761fcce Initial load
duke
parents:
diff changeset
   197
    public int getNumberToReclaim()
02bb8761fcce Initial load
duke
parents:
diff changeset
   198
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   199
        return numberToReclaim;
02bb8761fcce Initial load
duke
parents:
diff changeset
   200
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   201
02bb8761fcce Initial load
duke
parents:
diff changeset
   202
    public int getGIOPFragmentSize()
02bb8761fcce Initial load
duke
parents:
diff changeset
   203
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   204
        return giopFragmentSize;
02bb8761fcce Initial load
duke
parents:
diff changeset
   205
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   206
02bb8761fcce Initial load
duke
parents:
diff changeset
   207
    public int getGIOPBufferSize()
02bb8761fcce Initial load
duke
parents:
diff changeset
   208
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   209
        return giopBufferSize;
02bb8761fcce Initial load
duke
parents:
diff changeset
   210
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   211
02bb8761fcce Initial load
duke
parents:
diff changeset
   212
    public int getGIOPBuffMgrStrategy(GIOPVersion gv)
02bb8761fcce Initial load
duke
parents:
diff changeset
   213
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   214
        if(gv!=null){
02bb8761fcce Initial load
duke
parents:
diff changeset
   215
            if (gv.equals(GIOPVersion.V1_0)) return 0; //Always grow for 1.0
02bb8761fcce Initial load
duke
parents:
diff changeset
   216
            if (gv.equals(GIOPVersion.V1_1)) return giop11BuffMgr;
02bb8761fcce Initial load
duke
parents:
diff changeset
   217
            if (gv.equals(GIOPVersion.V1_2)) return giop12BuffMgr;
02bb8761fcce Initial load
duke
parents:
diff changeset
   218
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   219
        //If a "faulty" GIOPVersion is passed, it's going to return 0;
02bb8761fcce Initial load
duke
parents:
diff changeset
   220
        return 0;
02bb8761fcce Initial load
duke
parents:
diff changeset
   221
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   222
02bb8761fcce Initial load
duke
parents:
diff changeset
   223
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   224
     * @return the GIOP Target Addressing preference of the ORB.
02bb8761fcce Initial load
duke
parents:
diff changeset
   225
     * This ORB by default supports all addressing dispositions unless specified
02bb8761fcce Initial load
duke
parents:
diff changeset
   226
     * otherwise via a java system property ORBConstants.GIOP_TARGET_ADDRESSING
02bb8761fcce Initial load
duke
parents:
diff changeset
   227
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   228
    public short getGIOPTargetAddressPreference()
02bb8761fcce Initial load
duke
parents:
diff changeset
   229
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   230
        return giopTargetAddressPreference;
02bb8761fcce Initial load
duke
parents:
diff changeset
   231
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   232
02bb8761fcce Initial load
duke
parents:
diff changeset
   233
    public short getGIOPAddressDisposition()
02bb8761fcce Initial load
duke
parents:
diff changeset
   234
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   235
        return giopAddressDisposition;
02bb8761fcce Initial load
duke
parents:
diff changeset
   236
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   237
02bb8761fcce Initial load
duke
parents:
diff changeset
   238
    public boolean useByteOrderMarkers()
02bb8761fcce Initial load
duke
parents:
diff changeset
   239
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   240
        return useByteOrderMarkers;
02bb8761fcce Initial load
duke
parents:
diff changeset
   241
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   242
02bb8761fcce Initial load
duke
parents:
diff changeset
   243
    public boolean useByteOrderMarkersInEncapsulations()
02bb8761fcce Initial load
duke
parents:
diff changeset
   244
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   245
        return useByteOrderMarkersInEncaps;
02bb8761fcce Initial load
duke
parents:
diff changeset
   246
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   247
02bb8761fcce Initial load
duke
parents:
diff changeset
   248
    public boolean alwaysSendCodeSetServiceContext()
02bb8761fcce Initial load
duke
parents:
diff changeset
   249
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   250
        return alwaysSendCodeSetCtx;
02bb8761fcce Initial load
duke
parents:
diff changeset
   251
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   252
02bb8761fcce Initial load
duke
parents:
diff changeset
   253
    public boolean getPersistentPortInitialized()
02bb8761fcce Initial load
duke
parents:
diff changeset
   254
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   255
        return persistentPortInitialized ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   256
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   257
02bb8761fcce Initial load
duke
parents:
diff changeset
   258
    //public void setPersistentServerPort(int sp)
02bb8761fcce Initial load
duke
parents:
diff changeset
   259
    //{
02bb8761fcce Initial load
duke
parents:
diff changeset
   260
        //persistentServerPort = sp;
02bb8761fcce Initial load
duke
parents:
diff changeset
   261
        //persistentPortInitialized = true;
02bb8761fcce Initial load
duke
parents:
diff changeset
   262
    //}
02bb8761fcce Initial load
duke
parents:
diff changeset
   263
02bb8761fcce Initial load
duke
parents:
diff changeset
   264
    public int getPersistentServerPort()
02bb8761fcce Initial load
duke
parents:
diff changeset
   265
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   266
        if ( persistentPortInitialized ) // this is a user-activated server
02bb8761fcce Initial load
duke
parents:
diff changeset
   267
            return persistentServerPort;
02bb8761fcce Initial load
duke
parents:
diff changeset
   268
        else {
02bb8761fcce Initial load
duke
parents:
diff changeset
   269
            throw wrapper.persistentServerportNotSet(
02bb8761fcce Initial load
duke
parents:
diff changeset
   270
                CompletionStatus.COMPLETED_MAYBE );
02bb8761fcce Initial load
duke
parents:
diff changeset
   271
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   272
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   273
02bb8761fcce Initial load
duke
parents:
diff changeset
   274
    public boolean getPersistentServerIdInitialized()
02bb8761fcce Initial load
duke
parents:
diff changeset
   275
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   276
        return persistentServerIdInitialized;
02bb8761fcce Initial load
duke
parents:
diff changeset
   277
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   278
02bb8761fcce Initial load
duke
parents:
diff changeset
   279
    /** Set the persistent-server-id of this server. This id is the same
02bb8761fcce Initial load
duke
parents:
diff changeset
   280
     *  across multiple activations of this server. The id can be set to any
02bb8761fcce Initial load
duke
parents:
diff changeset
   281
     *  integer value other than 0. This id must be set before any persistent
02bb8761fcce Initial load
duke
parents:
diff changeset
   282
     *  objects can be created.
02bb8761fcce Initial load
duke
parents:
diff changeset
   283
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   284
    //public void setPersistentServerId(int id)
02bb8761fcce Initial load
duke
parents:
diff changeset
   285
    //{
02bb8761fcce Initial load
duke
parents:
diff changeset
   286
        //persistentServerId = id;
02bb8761fcce Initial load
duke
parents:
diff changeset
   287
        //persistentServerIdInitialized = true;
02bb8761fcce Initial load
duke
parents:
diff changeset
   288
    //}
02bb8761fcce Initial load
duke
parents:
diff changeset
   289
02bb8761fcce Initial load
duke
parents:
diff changeset
   290
    /** Return the persistent-server-id of this server. This id is the same
02bb8761fcce Initial load
duke
parents:
diff changeset
   291
     *  across multiple activations of this server. This is in contrast to
02bb8761fcce Initial load
duke
parents:
diff changeset
   292
     *  com.sun.corba.se.impl.iiop.ORB.getTransientServerId() which
02bb8761fcce Initial load
duke
parents:
diff changeset
   293
     *  returns a transient id that is guaranteed to be different
02bb8761fcce Initial load
duke
parents:
diff changeset
   294
     *  across multiple activations of
02bb8761fcce Initial load
duke
parents:
diff changeset
   295
     *  this server. The user/environment is required to supply the
02bb8761fcce Initial load
duke
parents:
diff changeset
   296
     *  persistent-server-id every time this server is started, in
02bb8761fcce Initial load
duke
parents:
diff changeset
   297
     *  the ORBServerId parameter, System properties, or other means.
02bb8761fcce Initial load
duke
parents:
diff changeset
   298
     *  The user is also required to ensure that no two persistent servers
02bb8761fcce Initial load
duke
parents:
diff changeset
   299
     *  on the same host have the same server-id.
02bb8761fcce Initial load
duke
parents:
diff changeset
   300
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   301
    public int getPersistentServerId()
02bb8761fcce Initial load
duke
parents:
diff changeset
   302
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   303
        if ( persistentServerIdInitialized ) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   304
            return persistentServerId;
02bb8761fcce Initial load
duke
parents:
diff changeset
   305
        } else {
02bb8761fcce Initial load
duke
parents:
diff changeset
   306
            throw wrapper.persistentServeridNotSet(
02bb8761fcce Initial load
duke
parents:
diff changeset
   307
                CompletionStatus.COMPLETED_MAYBE);
02bb8761fcce Initial load
duke
parents:
diff changeset
   308
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   309
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   310
02bb8761fcce Initial load
duke
parents:
diff changeset
   311
    public boolean getServerIsORBActivated()
02bb8761fcce Initial load
duke
parents:
diff changeset
   312
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   313
        return serverIsORBActivated ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   314
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   315
02bb8761fcce Initial load
duke
parents:
diff changeset
   316
    public Class getBadServerIdHandler()
02bb8761fcce Initial load
duke
parents:
diff changeset
   317
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   318
        return badServerIdHandlerClass ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   319
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   320
02bb8761fcce Initial load
duke
parents:
diff changeset
   321
     /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   322
     * Get the prefered code sets for connections. Should the client send the code set service context on every
02bb8761fcce Initial load
duke
parents:
diff changeset
   323
     * request?
02bb8761fcce Initial load
duke
parents:
diff changeset
   324
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   325
    public CodeSetComponentInfo getCodeSetComponentInfo()
02bb8761fcce Initial load
duke
parents:
diff changeset
   326
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   327
        return codesets;
02bb8761fcce Initial load
duke
parents:
diff changeset
   328
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   329
02bb8761fcce Initial load
duke
parents:
diff changeset
   330
    public ORBInitializer[] getORBInitializers()
02bb8761fcce Initial load
duke
parents:
diff changeset
   331
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   332
        return orbInitializers ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   333
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   334
02bb8761fcce Initial load
duke
parents:
diff changeset
   335
    public StringPair[] getORBInitialReferences()
02bb8761fcce Initial load
duke
parents:
diff changeset
   336
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   337
        return orbInitialReferences ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   338
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   339
02bb8761fcce Initial load
duke
parents:
diff changeset
   340
    public String getORBDefaultInitialReference()
02bb8761fcce Initial load
duke
parents:
diff changeset
   341
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   342
        return defaultInitRef ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   343
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   344
02bb8761fcce Initial load
duke
parents:
diff changeset
   345
    public String[] getORBDebugFlags()
02bb8761fcce Initial load
duke
parents:
diff changeset
   346
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   347
        return debugFlags ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   348
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   349
02bb8761fcce Initial load
duke
parents:
diff changeset
   350
    public Acceptor[] getAcceptors()
02bb8761fcce Initial load
duke
parents:
diff changeset
   351
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   352
        return acceptors;
02bb8761fcce Initial load
duke
parents:
diff changeset
   353
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   354
02bb8761fcce Initial load
duke
parents:
diff changeset
   355
    public CorbaContactInfoListFactory getCorbaContactInfoListFactory()
02bb8761fcce Initial load
duke
parents:
diff changeset
   356
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   357
        return corbaContactInfoListFactory;
02bb8761fcce Initial load
duke
parents:
diff changeset
   358
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   359
02bb8761fcce Initial load
duke
parents:
diff changeset
   360
    public String acceptorSocketType()
02bb8761fcce Initial load
duke
parents:
diff changeset
   361
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   362
        return acceptorSocketType;
02bb8761fcce Initial load
duke
parents:
diff changeset
   363
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   364
    public boolean acceptorSocketUseSelectThreadToWait()
02bb8761fcce Initial load
duke
parents:
diff changeset
   365
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   366
        return acceptorSocketUseSelectThreadToWait;
02bb8761fcce Initial load
duke
parents:
diff changeset
   367
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   368
    public boolean acceptorSocketUseWorkerThreadForEvent()
02bb8761fcce Initial load
duke
parents:
diff changeset
   369
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   370
        return acceptorSocketUseWorkerThreadForEvent;
02bb8761fcce Initial load
duke
parents:
diff changeset
   371
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   372
    public String connectionSocketType()
02bb8761fcce Initial load
duke
parents:
diff changeset
   373
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   374
        return connectionSocketType;
02bb8761fcce Initial load
duke
parents:
diff changeset
   375
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   376
    public boolean connectionSocketUseSelectThreadToWait()
02bb8761fcce Initial load
duke
parents:
diff changeset
   377
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   378
        return connectionSocketUseSelectThreadToWait;
02bb8761fcce Initial load
duke
parents:
diff changeset
   379
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   380
    public boolean connectionSocketUseWorkerThreadForEvent()
02bb8761fcce Initial load
duke
parents:
diff changeset
   381
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   382
        return connectionSocketUseWorkerThreadForEvent;
02bb8761fcce Initial load
duke
parents:
diff changeset
   383
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   384
    public boolean isJavaSerializationEnabled()
02bb8761fcce Initial load
duke
parents:
diff changeset
   385
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   386
        return enableJavaSerialization;
02bb8761fcce Initial load
duke
parents:
diff changeset
   387
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   388
    public ReadTimeouts getTransportTCPReadTimeouts()
02bb8761fcce Initial load
duke
parents:
diff changeset
   389
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   390
        return readTimeouts;
02bb8761fcce Initial load
duke
parents:
diff changeset
   391
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   392
    public boolean disableDirectByteBufferUse()
02bb8761fcce Initial load
duke
parents:
diff changeset
   393
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   394
        return disableDirectByteBufferUse ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   395
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   396
    public boolean useRepId()
02bb8761fcce Initial load
duke
parents:
diff changeset
   397
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   398
        return useRepId;
02bb8761fcce Initial load
duke
parents:
diff changeset
   399
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   400
02bb8761fcce Initial load
duke
parents:
diff changeset
   401
// Methods for constructing and initializing this object ===========================================
02bb8761fcce Initial load
duke
parents:
diff changeset
   402
02bb8761fcce Initial load
duke
parents:
diff changeset
   403
    public ORBDataParserImpl( ORB orb, DataCollector coll )
02bb8761fcce Initial load
duke
parents:
diff changeset
   404
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   405
        super( ParserTable.get().getParserData() ) ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   406
        this.orb = orb ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   407
        wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.ORB_LIFECYCLE ) ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   408
        init( coll ) ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   409
        complete() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   410
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   411
02bb8761fcce Initial load
duke
parents:
diff changeset
   412
    public void complete()
02bb8761fcce Initial load
duke
parents:
diff changeset
   413
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   414
        codesets = new CodeSetComponentInfo(charData, wcharData);
02bb8761fcce Initial load
duke
parents:
diff changeset
   415
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   416
}
02bb8761fcce Initial load
duke
parents:
diff changeset
   417
02bb8761fcce Initial load
duke
parents:
diff changeset
   418
// End of file.