FileDocCategorySizeDatePackage
IIOPFactories.javaAPI DocJava SE 5 API7008Fri Aug 26 14:54:36 BST 2005com.sun.corba.se.spi.ior.iiop

IIOPFactories

public abstract class IIOPFactories extends Object
This class provides all of the factories for the IIOP profiles and components. This includes direct construction of profiles and templates, as well as constructing factories that can be registered with an IdentifiableFactoryFinder.

Fields Summary
Constructors Summary
private IIOPFactories()

Methods Summary
public static com.sun.corba.se.spi.ior.iiop.AlternateIIOPAddressComponentmakeAlternateIIOPAddressComponent(com.sun.corba.se.spi.ior.iiop.IIOPAddress addr)

	return new AlternateIIOPAddressComponentImpl( addr ) ;
    
public static com.sun.corba.se.spi.ior.IdentifiableFactorymakeAlternateIIOPAddressComponentFactory()

	return new EncapsulationFactoryBase(TAG_ALTERNATE_IIOP_ADDRESS.value) {
	    public Identifiable readContents( InputStream in ) 
	    {
		IIOPAddress addr = new IIOPAddressImpl( in ) ;
		Identifiable comp = 
		    new AlternateIIOPAddressComponentImpl( addr ) ;
		return comp ;
	    }
	} ;
    
public static com.sun.corba.se.spi.ior.iiop.CodeSetsComponentmakeCodeSetsComponent(com.sun.corba.se.spi.orb.ORB orb)

	return new CodeSetsComponentImpl( orb ) ;
    
public static com.sun.corba.se.spi.ior.IdentifiableFactorymakeCodeSetsComponentFactory()

	return new EncapsulationFactoryBase(TAG_CODE_SETS.value) {
	    public Identifiable readContents( InputStream in ) 
	    {
		return new CodeSetsComponentImpl( in ) ;
	    }
	} ;
    
public static com.sun.corba.se.spi.ior.iiop.IIOPAddressmakeIIOPAddress(com.sun.corba.se.spi.orb.ORB orb, java.lang.String host, int port)

	return new IIOPAddressImpl( orb, host, port ) ;
    
public static com.sun.corba.se.spi.ior.iiop.IIOPAddressmakeIIOPAddress(org.omg.CORBA_2_3.portable.InputStream is)

	return new IIOPAddressImpl( is ) ;
    
public static com.sun.corba.se.spi.ior.iiop.IIOPProfilemakeIIOPProfile(com.sun.corba.se.spi.orb.ORB orb, com.sun.corba.se.spi.ior.ObjectKeyTemplate oktemp, com.sun.corba.se.spi.ior.ObjectId oid, com.sun.corba.se.spi.ior.iiop.IIOPProfileTemplate ptemp)

	return new IIOPProfileImpl( orb, oktemp, oid, ptemp ) ;
    
public static com.sun.corba.se.spi.ior.iiop.IIOPProfilemakeIIOPProfile(com.sun.corba.se.spi.orb.ORB orb, org.omg.IOP.TaggedProfile profile)

	return new IIOPProfileImpl( orb, profile ) ;
    
public static com.sun.corba.se.spi.ior.IdentifiableFactorymakeIIOPProfileFactory()

	return new EncapsulationFactoryBase(TAG_INTERNET_IOP.value) {
	    public Identifiable readContents( InputStream in ) 
	    {
		Identifiable result = new IIOPProfileImpl( in ) ;
		return result ;
	    }
	} ;
    
public static com.sun.corba.se.spi.ior.iiop.IIOPProfileTemplatemakeIIOPProfileTemplate(com.sun.corba.se.spi.orb.ORB orb, com.sun.corba.se.spi.ior.iiop.GIOPVersion version, com.sun.corba.se.spi.ior.iiop.IIOPAddress primary)

	return new IIOPProfileTemplateImpl( orb, version, primary ) ;
    
public static com.sun.corba.se.spi.ior.IdentifiableFactorymakeIIOPProfileTemplateFactory()

	return new EncapsulationFactoryBase(TAG_INTERNET_IOP.value) {
	    public Identifiable readContents( InputStream in ) 
	    {
		Identifiable result = new IIOPProfileTemplateImpl( in ) ;
		return result ;
	    }
	} ;
    
public static com.sun.corba.se.spi.ior.iiop.JavaCodebaseComponentmakeJavaCodebaseComponent(java.lang.String codebase)

	return new JavaCodebaseComponentImpl( codebase ) ;
    
public static com.sun.corba.se.spi.ior.IdentifiableFactorymakeJavaCodebaseComponentFactory()

	return new EncapsulationFactoryBase(TAG_JAVA_CODEBASE.value) {
	    public Identifiable readContents( InputStream in ) 
	    {
		String url = in.read_string() ;
		Identifiable comp = new JavaCodebaseComponentImpl( url ) ;
		return comp ;
	    }
	} ;
    
public static com.sun.corba.se.impl.ior.iiop.JavaSerializationComponentmakeJavaSerializationComponent()

        return JavaSerializationComponent.singleton();
    
public static com.sun.corba.se.spi.ior.IdentifiableFactorymakeJavaSerializationComponentFactory()

	return new EncapsulationFactoryBase(
				ORBConstants.TAG_JAVA_SERIALIZATION_ID) {
	    public Identifiable readContents(InputStream in) {
		byte version = in.read_octet();
		Identifiable cmp = new JavaSerializationComponent(version);
		return cmp;
	    }
	};
    
public static com.sun.corba.se.spi.ior.iiop.MaxStreamFormatVersionComponentmakeMaxStreamFormatVersionComponent()

	return new MaxStreamFormatVersionComponentImpl() ;
    
public static com.sun.corba.se.spi.ior.IdentifiableFactorymakeMaxStreamFormatVersionComponentFactory()

        return new EncapsulationFactoryBase(TAG_RMI_CUSTOM_MAX_STREAM_FORMAT.value) {
            public Identifiable readContents(InputStream in)
	    {
		byte version = in.read_octet() ;
		Identifiable comp = new MaxStreamFormatVersionComponentImpl(version);
		return comp ;
	    }
        };
    
public static com.sun.corba.se.spi.ior.iiop.ORBTypeComponentmakeORBTypeComponent(int type)

	return new ORBTypeComponentImpl( type ) ;
    
public static com.sun.corba.se.spi.ior.IdentifiableFactorymakeORBTypeComponentFactory()

	return new EncapsulationFactoryBase(TAG_ORB_TYPE.value) {
	    public Identifiable readContents( InputStream in ) 
	    {
		int type = in.read_ulong() ;
		Identifiable comp = new ORBTypeComponentImpl( type ) ;
		return comp ;
	    }
	} ;
    
public static com.sun.corba.se.spi.ior.iiop.RequestPartitioningComponentmakeRequestPartitioningComponent(int threadPoolToUse)

	return new RequestPartitioningComponentImpl(threadPoolToUse);
    
public static com.sun.corba.se.spi.ior.IdentifiableFactorymakeRequestPartitioningComponentFactory()

        return new EncapsulationFactoryBase(ORBConstants.TAG_REQUEST_PARTITIONING_ID) {
            public Identifiable readContents(InputStream in)
	    {
		int threadPoolToUse = in.read_ulong();
		Identifiable comp = 
		    new RequestPartitioningComponentImpl(threadPoolToUse);
		return comp;
	    }
        };