Java Code Examples for com.sun.corba.se.spi.ior.iiop.IIOPProfileTemplate#getPrimaryAddress()
The following examples show how to use
com.sun.corba.se.spi.ior.iiop.IIOPProfileTemplate#getPrimaryAddress() .
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: DefaultSocketFactory.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public SocketInfo getEndPointInfo(ORB orb, IOR ior, SocketInfo socketInfo) { IIOPProfileTemplate temp = (IIOPProfileTemplate)ior.getProfile().getTaggedProfileTemplate() ; IIOPAddress primary = temp.getPrimaryAddress() ; return new EndPointInfoImpl(ORBSocketFactory.IIOP_CLEAR_TEXT, primary.getPort(), primary.getHost().toLowerCase()); }
Example 2
Source File: DefaultIORToSocketInfoImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public List getSocketInfo(IOR ior) { SocketInfo socketInfo; List result = new ArrayList(); IIOPProfileTemplate iiopProfileTemplate = (IIOPProfileTemplate) ior.getProfile().getTaggedProfileTemplate() ; IIOPAddress primary = iiopProfileTemplate.getPrimaryAddress() ; String hostname = primary.getHost().toLowerCase(); int port = primary.getPort(); // NOTE: we could check for 0 (i.e., CSIv2) but, for a // non-CSIv2-configured client ORB talking to a CSIv2 configured // server ORB you might end up with an empty contact info list // which would then report a failure which would not be as // instructive as leaving a ContactInfo with a 0 port in the list. socketInfo = createSocketInfo(hostname, port); result.add(socketInfo); Iterator iterator = iiopProfileTemplate.iteratorById( TAG_ALTERNATE_IIOP_ADDRESS.value); while (iterator.hasNext()) { AlternateIIOPAddressComponent alternate = (AlternateIIOPAddressComponent) iterator.next(); hostname = alternate.getAddress().getHost().toLowerCase(); port = alternate.getAddress().getPort(); socketInfo= createSocketInfo(hostname, port); result.add(socketInfo); } return result; }
Example 3
Source File: DefaultSocketFactory.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public SocketInfo getEndPointInfo(ORB orb, IOR ior, SocketInfo socketInfo) { IIOPProfileTemplate temp = (IIOPProfileTemplate)ior.getProfile().getTaggedProfileTemplate() ; IIOPAddress primary = temp.getPrimaryAddress() ; return new EndPointInfoImpl(ORBSocketFactory.IIOP_CLEAR_TEXT, primary.getPort(), primary.getHost().toLowerCase()); }
Example 4
Source File: DefaultIORToSocketInfoImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public List getSocketInfo(IOR ior) { SocketInfo socketInfo; List result = new ArrayList(); IIOPProfileTemplate iiopProfileTemplate = (IIOPProfileTemplate) ior.getProfile().getTaggedProfileTemplate() ; IIOPAddress primary = iiopProfileTemplate.getPrimaryAddress() ; String hostname = primary.getHost().toLowerCase(); int port = primary.getPort(); // NOTE: we could check for 0 (i.e., CSIv2) but, for a // non-CSIv2-configured client ORB talking to a CSIv2 configured // server ORB you might end up with an empty contact info list // which would then report a failure which would not be as // instructive as leaving a ContactInfo with a 0 port in the list. socketInfo = createSocketInfo(hostname, port); result.add(socketInfo); Iterator iterator = iiopProfileTemplate.iteratorById( TAG_ALTERNATE_IIOP_ADDRESS.value); while (iterator.hasNext()) { AlternateIIOPAddressComponent alternate = (AlternateIIOPAddressComponent) iterator.next(); hostname = alternate.getAddress().getHost().toLowerCase(); port = alternate.getAddress().getPort(); socketInfo= createSocketInfo(hostname, port); result.add(socketInfo); } return result; }
Example 5
Source File: DefaultSocketFactory.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public SocketInfo getEndPointInfo(ORB orb, IOR ior, SocketInfo socketInfo) { IIOPProfileTemplate temp = (IIOPProfileTemplate)ior.getProfile().getTaggedProfileTemplate() ; IIOPAddress primary = temp.getPrimaryAddress() ; return new EndPointInfoImpl(ORBSocketFactory.IIOP_CLEAR_TEXT, primary.getPort(), primary.getHost().toLowerCase()); }
Example 6
Source File: DefaultIORToSocketInfoImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
public List getSocketInfo(IOR ior) { SocketInfo socketInfo; List result = new ArrayList(); IIOPProfileTemplate iiopProfileTemplate = (IIOPProfileTemplate) ior.getProfile().getTaggedProfileTemplate() ; IIOPAddress primary = iiopProfileTemplate.getPrimaryAddress() ; String hostname = primary.getHost().toLowerCase(); int port = primary.getPort(); // NOTE: we could check for 0 (i.e., CSIv2) but, for a // non-CSIv2-configured client ORB talking to a CSIv2 configured // server ORB you might end up with an empty contact info list // which would then report a failure which would not be as // instructive as leaving a ContactInfo with a 0 port in the list. socketInfo = createSocketInfo(hostname, port); result.add(socketInfo); Iterator iterator = iiopProfileTemplate.iteratorById( TAG_ALTERNATE_IIOP_ADDRESS.value); while (iterator.hasNext()) { AlternateIIOPAddressComponent alternate = (AlternateIIOPAddressComponent) iterator.next(); hostname = alternate.getAddress().getHost().toLowerCase(); port = alternate.getAddress().getPort(); socketInfo= createSocketInfo(hostname, port); result.add(socketInfo); } return result; }
Example 7
Source File: DefaultSocketFactory.java From hottub with GNU General Public License v2.0 | 5 votes |
public SocketInfo getEndPointInfo(ORB orb, IOR ior, SocketInfo socketInfo) { IIOPProfileTemplate temp = (IIOPProfileTemplate)ior.getProfile().getTaggedProfileTemplate() ; IIOPAddress primary = temp.getPrimaryAddress() ; return new EndPointInfoImpl(ORBSocketFactory.IIOP_CLEAR_TEXT, primary.getPort(), primary.getHost().toLowerCase()); }
Example 8
Source File: DefaultIORToSocketInfoImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public List getSocketInfo(IOR ior) { SocketInfo socketInfo; List result = new ArrayList(); IIOPProfileTemplate iiopProfileTemplate = (IIOPProfileTemplate) ior.getProfile().getTaggedProfileTemplate() ; IIOPAddress primary = iiopProfileTemplate.getPrimaryAddress() ; String hostname = primary.getHost().toLowerCase(); int port = primary.getPort(); // NOTE: we could check for 0 (i.e., CSIv2) but, for a // non-CSIv2-configured client ORB talking to a CSIv2 configured // server ORB you might end up with an empty contact info list // which would then report a failure which would not be as // instructive as leaving a ContactInfo with a 0 port in the list. socketInfo = createSocketInfo(hostname, port); result.add(socketInfo); Iterator iterator = iiopProfileTemplate.iteratorById( TAG_ALTERNATE_IIOP_ADDRESS.value); while (iterator.hasNext()) { AlternateIIOPAddressComponent alternate = (AlternateIIOPAddressComponent) iterator.next(); hostname = alternate.getAddress().getHost().toLowerCase(); port = alternate.getAddress().getPort(); socketInfo= createSocketInfo(hostname, port); result.add(socketInfo); } return result; }
Example 9
Source File: DefaultSocketFactory.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public SocketInfo getEndPointInfo(ORB orb, IOR ior, SocketInfo socketInfo) { IIOPProfileTemplate temp = (IIOPProfileTemplate)ior.getProfile().getTaggedProfileTemplate() ; IIOPAddress primary = temp.getPrimaryAddress() ; return new EndPointInfoImpl(ORBSocketFactory.IIOP_CLEAR_TEXT, primary.getPort(), primary.getHost().toLowerCase()); }
Example 10
Source File: DefaultIORToSocketInfoImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public List getSocketInfo(IOR ior) { SocketInfo socketInfo; List result = new ArrayList(); IIOPProfileTemplate iiopProfileTemplate = (IIOPProfileTemplate) ior.getProfile().getTaggedProfileTemplate() ; IIOPAddress primary = iiopProfileTemplate.getPrimaryAddress() ; String hostname = primary.getHost().toLowerCase(); int port = primary.getPort(); // NOTE: we could check for 0 (i.e., CSIv2) but, for a // non-CSIv2-configured client ORB talking to a CSIv2 configured // server ORB you might end up with an empty contact info list // which would then report a failure which would not be as // instructive as leaving a ContactInfo with a 0 port in the list. socketInfo = createSocketInfo(hostname, port); result.add(socketInfo); Iterator iterator = iiopProfileTemplate.iteratorById( TAG_ALTERNATE_IIOP_ADDRESS.value); while (iterator.hasNext()) { AlternateIIOPAddressComponent alternate = (AlternateIIOPAddressComponent) iterator.next(); hostname = alternate.getAddress().getHost().toLowerCase(); port = alternate.getAddress().getPort(); socketInfo= createSocketInfo(hostname, port); result.add(socketInfo); } return result; }
Example 11
Source File: DefaultSocketFactory.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
public SocketInfo getEndPointInfo(ORB orb, IOR ior, SocketInfo socketInfo) { IIOPProfileTemplate temp = (IIOPProfileTemplate)ior.getProfile().getTaggedProfileTemplate() ; IIOPAddress primary = temp.getPrimaryAddress() ; return new EndPointInfoImpl(ORBSocketFactory.IIOP_CLEAR_TEXT, primary.getPort(), primary.getHost().toLowerCase()); }
Example 12
Source File: DefaultIORToSocketInfoImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public List getSocketInfo(IOR ior) { SocketInfo socketInfo; List result = new ArrayList(); IIOPProfileTemplate iiopProfileTemplate = (IIOPProfileTemplate) ior.getProfile().getTaggedProfileTemplate() ; IIOPAddress primary = iiopProfileTemplate.getPrimaryAddress() ; String hostname = primary.getHost().toLowerCase(); int port = primary.getPort(); // NOTE: we could check for 0 (i.e., CSIv2) but, for a // non-CSIv2-configured client ORB talking to a CSIv2 configured // server ORB you might end up with an empty contact info list // which would then report a failure which would not be as // instructive as leaving a ContactInfo with a 0 port in the list. socketInfo = createSocketInfo(hostname, port); result.add(socketInfo); Iterator iterator = iiopProfileTemplate.iteratorById( TAG_ALTERNATE_IIOP_ADDRESS.value); while (iterator.hasNext()) { AlternateIIOPAddressComponent alternate = (AlternateIIOPAddressComponent) iterator.next(); hostname = alternate.getAddress().getHost().toLowerCase(); port = alternate.getAddress().getPort(); socketInfo= createSocketInfo(hostname, port); result.add(socketInfo); } return result; }
Example 13
Source File: DefaultSocketFactory.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public SocketInfo getEndPointInfo(ORB orb, IOR ior, SocketInfo socketInfo) { IIOPProfileTemplate temp = (IIOPProfileTemplate)ior.getProfile().getTaggedProfileTemplate() ; IIOPAddress primary = temp.getPrimaryAddress() ; return new EndPointInfoImpl(ORBSocketFactory.IIOP_CLEAR_TEXT, primary.getPort(), primary.getHost().toLowerCase()); }
Example 14
Source File: DefaultIORToSocketInfoImpl.java From JDKSourceCode1.8 with MIT License | 5 votes |
public List getSocketInfo(IOR ior) { SocketInfo socketInfo; List result = new ArrayList(); IIOPProfileTemplate iiopProfileTemplate = (IIOPProfileTemplate) ior.getProfile().getTaggedProfileTemplate() ; IIOPAddress primary = iiopProfileTemplate.getPrimaryAddress() ; String hostname = primary.getHost().toLowerCase(); int port = primary.getPort(); // NOTE: we could check for 0 (i.e., CSIv2) but, for a // non-CSIv2-configured client ORB talking to a CSIv2 configured // server ORB you might end up with an empty contact info list // which would then report a failure which would not be as // instructive as leaving a ContactInfo with a 0 port in the list. socketInfo = createSocketInfo(hostname, port); result.add(socketInfo); Iterator iterator = iiopProfileTemplate.iteratorById( TAG_ALTERNATE_IIOP_ADDRESS.value); while (iterator.hasNext()) { AlternateIIOPAddressComponent alternate = (AlternateIIOPAddressComponent) iterator.next(); hostname = alternate.getAddress().getHost().toLowerCase(); port = alternate.getAddress().getPort(); socketInfo= createSocketInfo(hostname, port); result.add(socketInfo); } return result; }
Example 15
Source File: DefaultSocketFactory.java From JDKSourceCode1.8 with MIT License | 5 votes |
public SocketInfo getEndPointInfo(ORB orb, IOR ior, SocketInfo socketInfo) { IIOPProfileTemplate temp = (IIOPProfileTemplate)ior.getProfile().getTaggedProfileTemplate() ; IIOPAddress primary = temp.getPrimaryAddress() ; return new EndPointInfoImpl(ORBSocketFactory.IIOP_CLEAR_TEXT, primary.getPort(), primary.getHost().toLowerCase()); }
Example 16
Source File: DefaultIORToSocketInfoImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public List getSocketInfo(IOR ior) { SocketInfo socketInfo; List result = new ArrayList(); IIOPProfileTemplate iiopProfileTemplate = (IIOPProfileTemplate) ior.getProfile().getTaggedProfileTemplate() ; IIOPAddress primary = iiopProfileTemplate.getPrimaryAddress() ; String hostname = primary.getHost().toLowerCase(); int port = primary.getPort(); // NOTE: we could check for 0 (i.e., CSIv2) but, for a // non-CSIv2-configured client ORB talking to a CSIv2 configured // server ORB you might end up with an empty contact info list // which would then report a failure which would not be as // instructive as leaving a ContactInfo with a 0 port in the list. socketInfo = createSocketInfo(hostname, port); result.add(socketInfo); Iterator iterator = iiopProfileTemplate.iteratorById( TAG_ALTERNATE_IIOP_ADDRESS.value); while (iterator.hasNext()) { AlternateIIOPAddressComponent alternate = (AlternateIIOPAddressComponent) iterator.next(); hostname = alternate.getAddress().getHost().toLowerCase(); port = alternate.getAddress().getPort(); socketInfo= createSocketInfo(hostname, port); result.add(socketInfo); } return result; }
Example 17
Source File: DefaultSocketFactory.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public SocketInfo getEndPointInfo(ORB orb, IOR ior, SocketInfo socketInfo) { IIOPProfileTemplate temp = (IIOPProfileTemplate)ior.getProfile().getTaggedProfileTemplate() ; IIOPAddress primary = temp.getPrimaryAddress() ; return new EndPointInfoImpl(ORBSocketFactory.IIOP_CLEAR_TEXT, primary.getPort(), primary.getHost().toLowerCase()); }
Example 18
Source File: DefaultIORToSocketInfoImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public List getSocketInfo(IOR ior) { SocketInfo socketInfo; List result = new ArrayList(); IIOPProfileTemplate iiopProfileTemplate = (IIOPProfileTemplate) ior.getProfile().getTaggedProfileTemplate() ; IIOPAddress primary = iiopProfileTemplate.getPrimaryAddress() ; String hostname = primary.getHost().toLowerCase(); int port = primary.getPort(); // NOTE: we could check for 0 (i.e., CSIv2) but, for a // non-CSIv2-configured client ORB talking to a CSIv2 configured // server ORB you might end up with an empty contact info list // which would then report a failure which would not be as // instructive as leaving a ContactInfo with a 0 port in the list. socketInfo = createSocketInfo(hostname, port); result.add(socketInfo); Iterator iterator = iiopProfileTemplate.iteratorById( TAG_ALTERNATE_IIOP_ADDRESS.value); while (iterator.hasNext()) { AlternateIIOPAddressComponent alternate = (AlternateIIOPAddressComponent) iterator.next(); hostname = alternate.getAddress().getHost().toLowerCase(); port = alternate.getAddress().getPort(); socketInfo= createSocketInfo(hostname, port); result.add(socketInfo); } return result; }
Example 19
Source File: DefaultSocketFactory.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public SocketInfo getEndPointInfo(ORB orb, IOR ior, SocketInfo socketInfo) { IIOPProfileTemplate temp = (IIOPProfileTemplate)ior.getProfile().getTaggedProfileTemplate() ; IIOPAddress primary = temp.getPrimaryAddress() ; return new EndPointInfoImpl(ORBSocketFactory.IIOP_CLEAR_TEXT, primary.getPort(), primary.getHost().toLowerCase()); }
Example 20
Source File: DefaultIORToSocketInfoImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
public List getSocketInfo(IOR ior) { SocketInfo socketInfo; List result = new ArrayList(); IIOPProfileTemplate iiopProfileTemplate = (IIOPProfileTemplate) ior.getProfile().getTaggedProfileTemplate() ; IIOPAddress primary = iiopProfileTemplate.getPrimaryAddress() ; String hostname = primary.getHost().toLowerCase(); int port = primary.getPort(); // NOTE: we could check for 0 (i.e., CSIv2) but, for a // non-CSIv2-configured client ORB talking to a CSIv2 configured // server ORB you might end up with an empty contact info list // which would then report a failure which would not be as // instructive as leaving a ContactInfo with a 0 port in the list. socketInfo = createSocketInfo(hostname, port); result.add(socketInfo); Iterator iterator = iiopProfileTemplate.iteratorById( TAG_ALTERNATE_IIOP_ADDRESS.value); while (iterator.hasNext()) { AlternateIIOPAddressComponent alternate = (AlternateIIOPAddressComponent) iterator.next(); hostname = alternate.getAddress().getHost().toLowerCase(); port = alternate.getAddress().getPort(); socketInfo= createSocketInfo(hostname, port); result.add(socketInfo); } return result; }