com.sun.corba.se.impl.ior.EncapsulationUtility Java Examples

The following examples show how to use com.sun.corba.se.impl.ior.EncapsulationUtility. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: IIOPProfileTemplateImpl.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
public void write( ObjectKeyTemplate okeyTemplate, ObjectId id, OutputStream os)
{
    giopVersion.write( os ) ;
    primary.write( os ) ;

    // Note that this is NOT an encapsulation: do not marshal
    // the endianness flag.  However, the length is required.
    // Note that this cannot be accomplished with a codec!

    // Use the byte order of the given stream
    OutputStream encapsulatedOS =
        sun.corba.OutputStreamFactory.newEncapsOutputStream(
            (ORB)os.orb(), ((CDROutputStream)os).isLittleEndian() ) ;

    okeyTemplate.write( id, encapsulatedOS ) ;
    EncapsulationUtility.writeOutputStream( encapsulatedOS, os ) ;

    if (giopVersion.getMinor() > 0)
        EncapsulationUtility.writeIdentifiableSequence( this, os ) ;
}
 
Example #2
Source File: IIOPProfileTemplateImpl.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
public void write( ObjectKeyTemplate okeyTemplate, ObjectId id, OutputStream os)
{
    giopVersion.write( os ) ;
    primary.write( os ) ;

    // Note that this is NOT an encapsulation: do not marshal
    // the endianness flag.  However, the length is required.
    // Note that this cannot be accomplished with a codec!

    // Use the byte order of the given stream
    OutputStream encapsulatedOS =
        sun.corba.OutputStreamFactory.newEncapsOutputStream(
            (ORB)os.orb(), ((CDROutputStream)os).isLittleEndian() ) ;

    okeyTemplate.write( id, encapsulatedOS ) ;
    EncapsulationUtility.writeOutputStream( encapsulatedOS, os ) ;

    if (giopVersion.getMinor() > 0)
        EncapsulationUtility.writeIdentifiableSequence( this, os ) ;
}
 
Example #3
Source File: IIOPProfileTemplateImpl.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
public void write( ObjectKeyTemplate okeyTemplate, ObjectId id, OutputStream os)
{
    giopVersion.write( os ) ;
    primary.write( os ) ;

    // Note that this is NOT an encapsulation: do not marshal
    // the endianness flag.  However, the length is required.
    // Note that this cannot be accomplished with a codec!

    // Use the byte order of the given stream
    OutputStream encapsulatedOS =
        sun.corba.OutputStreamFactory.newEncapsOutputStream(
            (ORB)os.orb(), ((CDROutputStream)os).isLittleEndian() ) ;

    okeyTemplate.write( id, encapsulatedOS ) ;
    EncapsulationUtility.writeOutputStream( encapsulatedOS, os ) ;

    if (giopVersion.getMinor() > 0)
        EncapsulationUtility.writeIdentifiableSequence( this, os ) ;
}
 
Example #4
Source File: IIOPProfileTemplateImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
public void write( ObjectKeyTemplate okeyTemplate, ObjectId id, OutputStream os)
{
    giopVersion.write( os ) ;
    primary.write( os ) ;

    // Note that this is NOT an encapsulation: do not marshal
    // the endianness flag.  However, the length is required.
    // Note that this cannot be accomplished with a codec!

    // Use the byte order of the given stream
    OutputStream encapsulatedOS =
        sun.corba.OutputStreamFactory.newEncapsOutputStream(
            (ORB)os.orb(), ((CDROutputStream)os).isLittleEndian() ) ;

    okeyTemplate.write( id, encapsulatedOS ) ;
    EncapsulationUtility.writeOutputStream( encapsulatedOS, os ) ;

    if (giopVersion.getMinor() > 0)
        EncapsulationUtility.writeIdentifiableSequence( this, os ) ;
}
 
Example #5
Source File: IIOPProfileTemplateImpl.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
public void write( ObjectKeyTemplate okeyTemplate, ObjectId id, OutputStream os)
{
    giopVersion.write( os ) ;
    primary.write( os ) ;

    // Note that this is NOT an encapsulation: do not marshal
    // the endianness flag.  However, the length is required.
    // Note that this cannot be accomplished with a codec!

    // Use the byte order of the given stream
    OutputStream encapsulatedOS =
        sun.corba.OutputStreamFactory.newEncapsOutputStream(
            (ORB)os.orb(), ((CDROutputStream)os).isLittleEndian() ) ;

    okeyTemplate.write( id, encapsulatedOS ) ;
    EncapsulationUtility.writeOutputStream( encapsulatedOS, os ) ;

    if (giopVersion.getMinor() > 0)
        EncapsulationUtility.writeIdentifiableSequence( this, os ) ;
}
 
Example #6
Source File: IIOPProfileTemplateImpl.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
public void write( ObjectKeyTemplate okeyTemplate, ObjectId id, OutputStream os)
{
    giopVersion.write( os ) ;
    primary.write( os ) ;

    // Note that this is NOT an encapsulation: do not marshal
    // the endianness flag.  However, the length is required.
    // Note that this cannot be accomplished with a codec!

    // Use the byte order of the given stream
    OutputStream encapsulatedOS =
        sun.corba.OutputStreamFactory.newEncapsOutputStream(
            (ORB)os.orb(), ((CDROutputStream)os).isLittleEndian() ) ;

    okeyTemplate.write( id, encapsulatedOS ) ;
    EncapsulationUtility.writeOutputStream( encapsulatedOS, os ) ;

    if (giopVersion.getMinor() > 0)
        EncapsulationUtility.writeIdentifiableSequence( this, os ) ;
}
 
Example #7
Source File: IIOPProfileTemplateImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
public void write( ObjectKeyTemplate okeyTemplate, ObjectId id, OutputStream os)
{
    giopVersion.write( os ) ;
    primary.write( os ) ;

    // Note that this is NOT an encapsulation: do not marshal
    // the endianness flag.  However, the length is required.
    // Note that this cannot be accomplished with a codec!

    // Use the byte order of the given stream
    OutputStream encapsulatedOS =
        sun.corba.OutputStreamFactory.newEncapsOutputStream(
            (ORB)os.orb(), ((CDROutputStream)os).isLittleEndian() ) ;

    okeyTemplate.write( id, encapsulatedOS ) ;
    EncapsulationUtility.writeOutputStream( encapsulatedOS, os ) ;

    if (giopVersion.getMinor() > 0)
        EncapsulationUtility.writeIdentifiableSequence( this, os ) ;
}
 
Example #8
Source File: IIOPProfileTemplateImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
public void write( ObjectKeyTemplate okeyTemplate, ObjectId id, OutputStream os)
{
    giopVersion.write( os ) ;
    primary.write( os ) ;

    // Note that this is NOT an encapsulation: do not marshal
    // the endianness flag.  However, the length is required.
    // Note that this cannot be accomplished with a codec!

    // Use the byte order of the given stream
    OutputStream encapsulatedOS =
        sun.corba.OutputStreamFactory.newEncapsOutputStream(
            (ORB)os.orb(), ((CDROutputStream)os).isLittleEndian() ) ;

    okeyTemplate.write( id, encapsulatedOS ) ;
    EncapsulationUtility.writeOutputStream( encapsulatedOS, os ) ;

    if (giopVersion.getMinor() > 0)
        EncapsulationUtility.writeIdentifiableSequence( this, os ) ;
}
 
Example #9
Source File: IIOPProfileTemplateImpl.java    From JDKSourceCode1.8 with MIT License 6 votes vote down vote up
public void write( ObjectKeyTemplate okeyTemplate, ObjectId id, OutputStream os)
{
    giopVersion.write( os ) ;
    primary.write( os ) ;

    // Note that this is NOT an encapsulation: do not marshal
    // the endianness flag.  However, the length is required.
    // Note that this cannot be accomplished with a codec!

    // Use the byte order of the given stream
    OutputStream encapsulatedOS =
        sun.corba.OutputStreamFactory.newEncapsOutputStream(
            (ORB)os.orb(), ((CDROutputStream)os).isLittleEndian() ) ;

    okeyTemplate.write( id, encapsulatedOS ) ;
    EncapsulationUtility.writeOutputStream( encapsulatedOS, os ) ;

    if (giopVersion.getMinor() > 0)
        EncapsulationUtility.writeIdentifiableSequence( this, os ) ;
}
 
Example #10
Source File: IIOPProfileTemplateImpl.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
public void write( ObjectKeyTemplate okeyTemplate, ObjectId id, OutputStream os)
{
    giopVersion.write( os ) ;
    primary.write( os ) ;

    // Note that this is NOT an encapsulation: do not marshal
    // the endianness flag.  However, the length is required.
    // Note that this cannot be accomplished with a codec!

    // Use the byte order of the given stream
    OutputStream encapsulatedOS =
        sun.corba.OutputStreamFactory.newEncapsOutputStream(
            (ORB)os.orb(), ((CDROutputStream)os).isLittleEndian() ) ;

    okeyTemplate.write( id, encapsulatedOS ) ;
    EncapsulationUtility.writeOutputStream( encapsulatedOS, os ) ;

    if (giopVersion.getMinor() > 0)
        EncapsulationUtility.writeIdentifiableSequence( this, os ) ;
}
 
Example #11
Source File: IIOPProfileTemplateImpl.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
/** Write out this IIOPProfileTemplateImpl only.
*/
public void writeContents( OutputStream os)
{
    giopVersion.write( os ) ;
    primary.write( os ) ;

    if (giopVersion.getMinor() > 0)
        EncapsulationUtility.writeIdentifiableSequence( this, os ) ;
}
 
Example #12
Source File: IIOPProfileTemplateImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/** Write out this IIOPProfileTemplateImpl only.
*/
public void writeContents( OutputStream os)
{
    giopVersion.write( os ) ;
    primary.write( os ) ;

    if (giopVersion.getMinor() > 0)
        EncapsulationUtility.writeIdentifiableSequence( this, os ) ;
}
 
Example #13
Source File: IIOPProfileTemplateImpl.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
/** Write out this IIOPProfileTemplateImpl only.
*/
public void writeContents( OutputStream os)
{
    giopVersion.write( os ) ;
    primary.write( os ) ;

    if (giopVersion.getMinor() > 0)
        EncapsulationUtility.writeIdentifiableSequence( this, os ) ;
}
 
Example #14
Source File: IIOPProfileTemplateImpl.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
public IIOPProfileTemplateImpl( InputStream istr )
{
    byte major = istr.read_octet() ;
    byte minor = istr.read_octet() ;
    giopVersion = GIOPVersion.getInstance( major, minor ) ;
    primary = new IIOPAddressImpl( istr ) ;
    orb = (ORB)(istr.orb()) ;
    // Handle any tagged components (if applicable)
    if (minor > 0)
        EncapsulationUtility.readIdentifiableSequence(
            this, orb.getTaggedComponentFactoryFinder(), istr ) ;

    makeImmutable() ;
}
 
Example #15
Source File: IIOPProfileImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
private void init( InputStream istr )
{
    // First, read all of the IIOP IOR data
    GIOPVersion version = new GIOPVersion() ;
    version.read( istr ) ;
    IIOPAddress primary = new IIOPAddressImpl( istr ) ;
    byte[] key = EncapsulationUtility.readOctets( istr ) ;

    ObjectKey okey = orb.getObjectKeyFactory().create( key ) ;
    oktemp = okey.getTemplate() ;
    oid = okey.getId() ;

    proftemp = IIOPFactories.makeIIOPProfileTemplate( orb,
        version, primary ) ;

    // Handle any tagged components (if applicable)
    if (version.getMinor() > 0)
        EncapsulationUtility.readIdentifiableSequence( proftemp,
            orb.getTaggedComponentFactoryFinder(), istr ) ;

    // If there is no codebase in this IOR and there IS a
    // java.rmi.server.codebase property set, we need to
    // update the IOR with the local codebase.  Note that
    // there is only one instance of the local codebase, but it
    // can be safely shared in multiple IORs since it is immutable.
    if (uncachedGetCodeBase() == null) {
        JavaCodebaseComponent jcc = LocalCodeBaseSingletonHolder.comp ;

        if (jcc != null) {
            if (version.getMinor() > 0)
                proftemp.add( jcc ) ;

            codebase = jcc.getURLs() ;
        }

        // Whether codebase is null or not, we have it,
        // and so getCodebase ned never call uncachedGetCodebase.
        cachedCodebase = true;
    }
}
 
Example #16
Source File: IIOPProfileTemplateImpl.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
public IIOPProfileTemplateImpl( InputStream istr )
{
    byte major = istr.read_octet() ;
    byte minor = istr.read_octet() ;
    giopVersion = GIOPVersion.getInstance( major, minor ) ;
    primary = new IIOPAddressImpl( istr ) ;
    orb = (ORB)(istr.orb()) ;
    // Handle any tagged components (if applicable)
    if (minor > 0)
        EncapsulationUtility.readIdentifiableSequence(
            this, orb.getTaggedComponentFactoryFinder(), istr ) ;

    makeImmutable() ;
}
 
Example #17
Source File: IIOPProfileTemplateImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/** Write out this IIOPProfileTemplateImpl only.
*/
public void writeContents( OutputStream os)
{
    giopVersion.write( os ) ;
    primary.write( os ) ;

    if (giopVersion.getMinor() > 0)
        EncapsulationUtility.writeIdentifiableSequence( this, os ) ;
}
 
Example #18
Source File: IIOPProfileTemplateImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public IIOPProfileTemplateImpl( InputStream istr )
{
    byte major = istr.read_octet() ;
    byte minor = istr.read_octet() ;
    giopVersion = GIOPVersion.getInstance( major, minor ) ;
    primary = new IIOPAddressImpl( istr ) ;
    orb = (ORB)(istr.orb()) ;
    // Handle any tagged components (if applicable)
    if (minor > 0)
        EncapsulationUtility.readIdentifiableSequence(
            this, orb.getTaggedComponentFactoryFinder(), istr ) ;

    makeImmutable() ;
}
 
Example #19
Source File: IIOPProfileTemplateImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/** Write out this IIOPProfileTemplateImpl only.
*/
public void writeContents( OutputStream os)
{
    giopVersion.write( os ) ;
    primary.write( os ) ;

    if (giopVersion.getMinor() > 0)
        EncapsulationUtility.writeIdentifiableSequence( this, os ) ;
}
 
Example #20
Source File: IIOPProfileImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private void init( InputStream istr )
{
    // First, read all of the IIOP IOR data
    GIOPVersion version = new GIOPVersion() ;
    version.read( istr ) ;
    IIOPAddress primary = new IIOPAddressImpl( istr ) ;
    byte[] key = EncapsulationUtility.readOctets( istr ) ;

    ObjectKey okey = orb.getObjectKeyFactory().create( key ) ;
    oktemp = okey.getTemplate() ;
    oid = okey.getId() ;

    proftemp = IIOPFactories.makeIIOPProfileTemplate( orb,
        version, primary ) ;

    // Handle any tagged components (if applicable)
    if (version.getMinor() > 0)
        EncapsulationUtility.readIdentifiableSequence( proftemp,
            orb.getTaggedComponentFactoryFinder(), istr ) ;

    // If there is no codebase in this IOR and there IS a
    // java.rmi.server.codebase property set, we need to
    // update the IOR with the local codebase.  Note that
    // there is only one instance of the local codebase, but it
    // can be safely shared in multiple IORs since it is immutable.
    if (uncachedGetCodeBase() == null) {
        JavaCodebaseComponent jcc = LocalCodeBaseSingletonHolder.comp ;

        if (jcc != null) {
            if (version.getMinor() > 0)
                proftemp.add( jcc ) ;

            codebase = jcc.getURLs() ;
        }

        // Whether codebase is null or not, we have it,
        // and so getCodebase ned never call uncachedGetCodebase.
        cachedCodebase = true;
    }
}
 
Example #21
Source File: IIOPProfileTemplateImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public IIOPProfileTemplateImpl( InputStream istr )
{
    byte major = istr.read_octet() ;
    byte minor = istr.read_octet() ;
    giopVersion = GIOPVersion.getInstance( major, minor ) ;
    primary = new IIOPAddressImpl( istr ) ;
    orb = (ORB)(istr.orb()) ;
    // Handle any tagged components (if applicable)
    if (minor > 0)
        EncapsulationUtility.readIdentifiableSequence(
            this, orb.getTaggedComponentFactoryFinder(), istr ) ;

    makeImmutable() ;
}
 
Example #22
Source File: IIOPProfileTemplateImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/** Write out this IIOPProfileTemplateImpl only.
*/
public void writeContents( OutputStream os)
{
    giopVersion.write( os ) ;
    primary.write( os ) ;

    if (giopVersion.getMinor() > 0)
        EncapsulationUtility.writeIdentifiableSequence( this, os ) ;
}
 
Example #23
Source File: IIOPProfileTemplateImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public IIOPProfileTemplateImpl( InputStream istr )
{
    byte major = istr.read_octet() ;
    byte minor = istr.read_octet() ;
    giopVersion = GIOPVersion.getInstance( major, minor ) ;
    primary = new IIOPAddressImpl( istr ) ;
    orb = (ORB)(istr.orb()) ;
    // Handle any tagged components (if applicable)
    if (minor > 0)
        EncapsulationUtility.readIdentifiableSequence(
            this, orb.getTaggedComponentFactoryFinder(), istr ) ;

    makeImmutable() ;
}
 
Example #24
Source File: IIOPProfileImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private void init( InputStream istr )
{
    // First, read all of the IIOP IOR data
    GIOPVersion version = new GIOPVersion() ;
    version.read( istr ) ;
    IIOPAddress primary = new IIOPAddressImpl( istr ) ;
    byte[] key = EncapsulationUtility.readOctets( istr ) ;

    ObjectKey okey = orb.getObjectKeyFactory().create( key ) ;
    oktemp = okey.getTemplate() ;
    oid = okey.getId() ;

    proftemp = IIOPFactories.makeIIOPProfileTemplate( orb,
        version, primary ) ;

    // Handle any tagged components (if applicable)
    if (version.getMinor() > 0)
        EncapsulationUtility.readIdentifiableSequence( proftemp,
            orb.getTaggedComponentFactoryFinder(), istr ) ;

    // If there is no codebase in this IOR and there IS a
    // java.rmi.server.codebase property set, we need to
    // update the IOR with the local codebase.  Note that
    // there is only one instance of the local codebase, but it
    // can be safely shared in multiple IORs since it is immutable.
    if (uncachedGetCodeBase() == null) {
        JavaCodebaseComponent jcc = LocalCodeBaseSingletonHolder.comp ;

        if (jcc != null) {
            if (version.getMinor() > 0)
                proftemp.add( jcc ) ;

            codebase = jcc.getURLs() ;
        }

        // Whether codebase is null or not, we have it,
        // and so getCodebase ned never call uncachedGetCodebase.
        cachedCodebase = true;
    }
}
 
Example #25
Source File: IIOPProfileImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private void init( InputStream istr )
{
    // First, read all of the IIOP IOR data
    GIOPVersion version = new GIOPVersion() ;
    version.read( istr ) ;
    IIOPAddress primary = new IIOPAddressImpl( istr ) ;
    byte[] key = EncapsulationUtility.readOctets( istr ) ;

    ObjectKey okey = orb.getObjectKeyFactory().create( key ) ;
    oktemp = okey.getTemplate() ;
    oid = okey.getId() ;

    proftemp = IIOPFactories.makeIIOPProfileTemplate( orb,
        version, primary ) ;

    // Handle any tagged components (if applicable)
    if (version.getMinor() > 0)
        EncapsulationUtility.readIdentifiableSequence( proftemp,
            orb.getTaggedComponentFactoryFinder(), istr ) ;

    // If there is no codebase in this IOR and there IS a
    // java.rmi.server.codebase property set, we need to
    // update the IOR with the local codebase.  Note that
    // there is only one instance of the local codebase, but it
    // can be safely shared in multiple IORs since it is immutable.
    if (uncachedGetCodeBase() == null) {
        JavaCodebaseComponent jcc = LocalCodeBaseSingletonHolder.comp ;

        if (jcc != null) {
            if (version.getMinor() > 0)
                proftemp.add( jcc ) ;

            codebase = jcc.getURLs() ;
        }

        // Whether codebase is null or not, we have it,
        // and so getCodebase ned never call uncachedGetCodebase.
        cachedCodebase = true;
    }
}
 
Example #26
Source File: IIOPProfileTemplateImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public IIOPProfileTemplateImpl( InputStream istr )
{
    byte major = istr.read_octet() ;
    byte minor = istr.read_octet() ;
    giopVersion = GIOPVersion.getInstance( major, minor ) ;
    primary = new IIOPAddressImpl( istr ) ;
    orb = (ORB)(istr.orb()) ;
    // Handle any tagged components (if applicable)
    if (minor > 0)
        EncapsulationUtility.readIdentifiableSequence(
            this, orb.getTaggedComponentFactoryFinder(), istr ) ;

    makeImmutable() ;
}
 
Example #27
Source File: IIOPProfileTemplateImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/** Write out this IIOPProfileTemplateImpl only.
*/
public void writeContents( OutputStream os)
{
    giopVersion.write( os ) ;
    primary.write( os ) ;

    if (giopVersion.getMinor() > 0)
        EncapsulationUtility.writeIdentifiableSequence( this, os ) ;
}
 
Example #28
Source File: IIOPProfileTemplateImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/** Write out this IIOPProfileTemplateImpl only.
*/
public void writeContents( OutputStream os)
{
    giopVersion.write( os ) ;
    primary.write( os ) ;

    if (giopVersion.getMinor() > 0)
        EncapsulationUtility.writeIdentifiableSequence( this, os ) ;
}
 
Example #29
Source File: IIOPProfileImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private void init( InputStream istr )
{
    // First, read all of the IIOP IOR data
    GIOPVersion version = new GIOPVersion() ;
    version.read( istr ) ;
    IIOPAddress primary = new IIOPAddressImpl( istr ) ;
    byte[] key = EncapsulationUtility.readOctets( istr ) ;

    ObjectKey okey = orb.getObjectKeyFactory().create( key ) ;
    oktemp = okey.getTemplate() ;
    oid = okey.getId() ;

    proftemp = IIOPFactories.makeIIOPProfileTemplate( orb,
        version, primary ) ;

    // Handle any tagged components (if applicable)
    if (version.getMinor() > 0)
        EncapsulationUtility.readIdentifiableSequence( proftemp,
            orb.getTaggedComponentFactoryFinder(), istr ) ;

    // If there is no codebase in this IOR and there IS a
    // java.rmi.server.codebase property set, we need to
    // update the IOR with the local codebase.  Note that
    // there is only one instance of the local codebase, but it
    // can be safely shared in multiple IORs since it is immutable.
    if (uncachedGetCodeBase() == null) {
        JavaCodebaseComponent jcc = LocalCodeBaseSingletonHolder.comp ;

        if (jcc != null) {
            if (version.getMinor() > 0)
                proftemp.add( jcc ) ;

            codebase = jcc.getURLs() ;
        }

        // Whether codebase is null or not, we have it,
        // and so getCodebase ned never call uncachedGetCodebase.
        cachedCodebase = true;
    }
}
 
Example #30
Source File: IIOPProfileTemplateImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public IIOPProfileTemplateImpl( InputStream istr )
{
    byte major = istr.read_octet() ;
    byte minor = istr.read_octet() ;
    giopVersion = GIOPVersion.getInstance( major, minor ) ;
    primary = new IIOPAddressImpl( istr ) ;
    orb = (ORB)(istr.orb()) ;
    // Handle any tagged components (if applicable)
    if (minor > 0)
        EncapsulationUtility.readIdentifiableSequence(
            this, orb.getTaggedComponentFactoryFinder(), istr ) ;

    makeImmutable() ;
}