1 7 8 package com.sun.corba.se.impl.naming.namingutil; 9 10 import com.sun.corba.se.impl.orbutil.ORBConstants; 11 12 19 public class IIOPEndpointInfo 20 { 21 private int major, minor; 23 24 private String host; 26 private int port; 27 28 IIOPEndpointInfo( ) { 29 major = ORBConstants.DEFAULT_INS_GIOP_MAJOR_VERSION; 31 minor = ORBConstants.DEFAULT_INS_GIOP_MINOR_VERSION; 32 host = ORBConstants.DEFAULT_INS_HOST; 34 port = ORBConstants.DEFAULT_INS_PORT; 36 } 37 38 public void setHost( String theHost ) { 39 host = theHost; 40 } 41 42 public String getHost( ) { 43 return host; 44 } 45 46 public void setPort( int thePort ) { 47 port = thePort; 48 } 49 50 public int getPort( ) { 51 return port; 52 } 53 54 public void setVersion( int theMajor, int theMinor ) { 55 major = theMajor; 56 minor = theMinor; 57 } 58 59 public int getMajor( ) { 60 return major; 61 } 62 63 public int getMinor( ) { 64 return minor; 65 } 66 67 69 public void dump( ) { 70 System.out.println( " Major -> " + major + " Minor -> " + minor ); 71 System.out.println( "host -> " + host ); 72 System.out.println( "port -> " + port ); 73 } 74 } 75 76 | Popular Tags |