001 package org.omg.SSLIOP; 002 003 004 /** 005 * org/omg/SSLIOP/SSLHelper.java . 006 * Generated by the IDL-to-Java compiler (portable), version "3.2" 007 * from /home/iurt/rpm/BUILD/geronimo-spec-corba/src/main/idl/SSLIOP.idl 008 * Saturday, November 26, 2011 9:53:35 PM UTC 009 */ 010 011 abstract public class SSLHelper 012 { 013 private static String _id = "IDL:omg.org/SSLIOP/SSL:1.0"; 014 015 public static void insert (org.omg.CORBA.Any a, org.omg.SSLIOP.SSL that) 016 { 017 org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); 018 a.type (type ()); 019 write (out, that); 020 a.read_value (out.create_input_stream (), type ()); 021 } 022 023 public static org.omg.SSLIOP.SSL extract (org.omg.CORBA.Any a) 024 { 025 return read (a.create_input_stream ()); 026 } 027 028 private static org.omg.CORBA.TypeCode __typeCode = null; 029 private static boolean __active = false; 030 synchronized public static org.omg.CORBA.TypeCode type () 031 { 032 if (__typeCode == null) 033 { 034 synchronized (org.omg.CORBA.TypeCode.class) 035 { 036 if (__typeCode == null) 037 { 038 if (__active) 039 { 040 return org.omg.CORBA.ORB.init().create_recursive_tc ( _id ); 041 } 042 __active = true; 043 org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [3]; 044 org.omg.CORBA.TypeCode _tcOf_members0 = null; 045 _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_ushort); 046 _tcOf_members0 = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.Security.AssociationOptionsHelper.id (), "AssociationOptions", _tcOf_members0); 047 _members0[0] = new org.omg.CORBA.StructMember ( 048 "target_supports", 049 _tcOf_members0, 050 null); 051 _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_ushort); 052 _tcOf_members0 = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.Security.AssociationOptionsHelper.id (), "AssociationOptions", _tcOf_members0); 053 _members0[1] = new org.omg.CORBA.StructMember ( 054 "target_requires", 055 _tcOf_members0, 056 null); 057 _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_ushort); 058 _members0[2] = new org.omg.CORBA.StructMember ( 059 "port", 060 _tcOf_members0, 061 null); 062 __typeCode = org.omg.CORBA.ORB.init ().create_struct_tc (org.omg.SSLIOP.SSLHelper.id (), "SSL", _members0); 063 __active = false; 064 } 065 } 066 } 067 return __typeCode; 068 } 069 070 public static String id () 071 { 072 return _id; 073 } 074 075 public static org.omg.SSLIOP.SSL read (org.omg.CORBA.portable.InputStream istream) 076 { 077 org.omg.SSLIOP.SSL value = new org.omg.SSLIOP.SSL (); 078 value.target_supports = istream.read_ushort (); 079 value.target_requires = istream.read_ushort (); 080 value.port = istream.read_ushort (); 081 return value; 082 } 083 084 public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.SSLIOP.SSL value) 085 { 086 ostream.write_ushort (value.target_supports); 087 ostream.write_ushort (value.target_requires); 088 ostream.write_ushort (value.port); 089 } 090 091 }