com.sun.corba.se.spi.transport.SocketInfo Java Examples
The following examples show how to use
com.sun.corba.se.spi.transport.SocketInfo.
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: SocketFactoryContactInfoImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public SocketFactoryContactInfoImpl( ORB orb, CorbaContactInfoList contactInfoList, IOR effectiveTargetIOR, short addressingDisposition, SocketInfo cookie) { super(orb, contactInfoList); this.effectiveTargetIOR = effectiveTargetIOR; this.addressingDisposition = addressingDisposition; wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.RPC_TRANSPORT ) ; socketInfo = orb.getORBData().getLegacySocketFactory() .getEndPointInfo(orb, effectiveTargetIOR, cookie); socketType = socketInfo.getType(); hostname = socketInfo.getHost(); port = socketInfo.getPort(); }
Example #2
Source File: SocketFactoryContactInfoImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
public SocketFactoryContactInfoImpl( ORB orb, CorbaContactInfoList contactInfoList, IOR effectiveTargetIOR, short addressingDisposition, SocketInfo cookie) { super(orb, contactInfoList); this.effectiveTargetIOR = effectiveTargetIOR; this.addressingDisposition = addressingDisposition; wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.RPC_TRANSPORT ) ; socketInfo = orb.getORBData().getLegacySocketFactory() .getEndPointInfo(orb, effectiveTargetIOR, cookie); socketType = socketInfo.getType(); hostname = socketInfo.getHost(); port = socketInfo.getPort(); }
Example #3
Source File: CorbaContactInfoListImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
protected void addRemoteContactInfos( IOR effectiveTargetIOR, List effectiveTargetIORContactInfoList) { ContactInfo contactInfo; List socketInfos = orb.getORBData() .getIORToSocketInfo().getSocketInfo(effectiveTargetIOR); Iterator iterator = socketInfos.iterator(); while (iterator.hasNext()) { SocketInfo socketInfo = (SocketInfo) iterator.next(); String type = socketInfo.getType(); String host = socketInfo.getHost().toLowerCase(); int port = socketInfo.getPort(); contactInfo = createContactInfo(type, host, port); effectiveTargetIORContactInfoList.add(contactInfo); } }
Example #4
Source File: CorbaContactInfoListImpl.java From hottub with GNU General Public License v2.0 | 6 votes |
protected void addRemoteContactInfos( IOR effectiveTargetIOR, List effectiveTargetIORContactInfoList) { ContactInfo contactInfo; List socketInfos = orb.getORBData() .getIORToSocketInfo().getSocketInfo(effectiveTargetIOR); Iterator iterator = socketInfos.iterator(); while (iterator.hasNext()) { SocketInfo socketInfo = (SocketInfo) iterator.next(); String type = socketInfo.getType(); String host = socketInfo.getHost().toLowerCase(); int port = socketInfo.getPort(); contactInfo = createContactInfo(type, host, port); effectiveTargetIORContactInfoList.add(contactInfo); } }
Example #5
Source File: CorbaContactInfoListImpl.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
protected void addRemoteContactInfos( IOR effectiveTargetIOR, List effectiveTargetIORContactInfoList) { ContactInfo contactInfo; List socketInfos = orb.getORBData() .getIORToSocketInfo().getSocketInfo(effectiveTargetIOR); Iterator iterator = socketInfos.iterator(); while (iterator.hasNext()) { SocketInfo socketInfo = (SocketInfo) iterator.next(); String type = socketInfo.getType(); String host = socketInfo.getHost().toLowerCase(); int port = socketInfo.getPort(); contactInfo = createContactInfo(type, host, port); effectiveTargetIORContactInfoList.add(contactInfo); } }
Example #6
Source File: SocketFactoryContactInfoImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public SocketFactoryContactInfoImpl( ORB orb, CorbaContactInfoList contactInfoList, IOR effectiveTargetIOR, short addressingDisposition, SocketInfo cookie) { super(orb, contactInfoList); this.effectiveTargetIOR = effectiveTargetIOR; this.addressingDisposition = addressingDisposition; wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.RPC_TRANSPORT ) ; socketInfo = orb.getORBData().getLegacySocketFactory() .getEndPointInfo(orb, effectiveTargetIOR, cookie); socketType = socketInfo.getType(); hostname = socketInfo.getHost(); port = socketInfo.getPort(); }
Example #7
Source File: SocketFactoryContactInfoImpl.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public SocketFactoryContactInfoImpl( ORB orb, CorbaContactInfoList contactInfoList, IOR effectiveTargetIOR, short addressingDisposition, SocketInfo cookie) { super(orb, contactInfoList); this.effectiveTargetIOR = effectiveTargetIOR; this.addressingDisposition = addressingDisposition; wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.RPC_TRANSPORT ) ; socketInfo = orb.getORBData().getLegacySocketFactory() .getEndPointInfo(orb, effectiveTargetIOR, cookie); socketType = socketInfo.getType(); hostname = socketInfo.getHost(); port = socketInfo.getPort(); }
Example #8
Source File: CorbaContactInfoListImpl.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
protected void addRemoteContactInfos( IOR effectiveTargetIOR, List effectiveTargetIORContactInfoList) { ContactInfo contactInfo; List socketInfos = orb.getORBData() .getIORToSocketInfo().getSocketInfo(effectiveTargetIOR); Iterator iterator = socketInfos.iterator(); while (iterator.hasNext()) { SocketInfo socketInfo = (SocketInfo) iterator.next(); String type = socketInfo.getType(); String host = socketInfo.getHost().toLowerCase(); int port = socketInfo.getPort(); contactInfo = createContactInfo(type, host, port); effectiveTargetIORContactInfoList.add(contactInfo); } }
Example #9
Source File: SocketFactoryContactInfoImpl.java From hottub with GNU General Public License v2.0 | 6 votes |
public SocketFactoryContactInfoImpl( ORB orb, CorbaContactInfoList contactInfoList, IOR effectiveTargetIOR, short addressingDisposition, SocketInfo cookie) { super(orb, contactInfoList); this.effectiveTargetIOR = effectiveTargetIOR; this.addressingDisposition = addressingDisposition; wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.RPC_TRANSPORT ) ; socketInfo = orb.getORBData().getLegacySocketFactory() .getEndPointInfo(orb, effectiveTargetIOR, cookie); socketType = socketInfo.getType(); hostname = socketInfo.getHost(); port = socketInfo.getPort(); }
Example #10
Source File: SocketFactoryContactInfoImpl.java From JDKSourceCode1.8 with MIT License | 6 votes |
public SocketFactoryContactInfoImpl( ORB orb, CorbaContactInfoList contactInfoList, IOR effectiveTargetIOR, short addressingDisposition, SocketInfo cookie) { super(orb, contactInfoList); this.effectiveTargetIOR = effectiveTargetIOR; this.addressingDisposition = addressingDisposition; wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.RPC_TRANSPORT ) ; socketInfo = orb.getORBData().getLegacySocketFactory() .getEndPointInfo(orb, effectiveTargetIOR, cookie); socketType = socketInfo.getType(); hostname = socketInfo.getHost(); port = socketInfo.getPort(); }
Example #11
Source File: SocketFactoryContactInfoImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public SocketFactoryContactInfoImpl( ORB orb, CorbaContactInfoList contactInfoList, IOR effectiveTargetIOR, short addressingDisposition, SocketInfo cookie) { super(orb, contactInfoList); this.effectiveTargetIOR = effectiveTargetIOR; this.addressingDisposition = addressingDisposition; wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.RPC_TRANSPORT ) ; socketInfo = orb.getORBData().getLegacySocketFactory() .getEndPointInfo(orb, effectiveTargetIOR, cookie); socketType = socketInfo.getType(); hostname = socketInfo.getHost(); port = socketInfo.getPort(); }
Example #12
Source File: CorbaContactInfoListImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
protected void addRemoteContactInfos( IOR effectiveTargetIOR, List effectiveTargetIORContactInfoList) { ContactInfo contactInfo; List socketInfos = orb.getORBData() .getIORToSocketInfo().getSocketInfo(effectiveTargetIOR); Iterator iterator = socketInfos.iterator(); while (iterator.hasNext()) { SocketInfo socketInfo = (SocketInfo) iterator.next(); String type = socketInfo.getType(); String host = socketInfo.getHost().toLowerCase(); int port = socketInfo.getPort(); contactInfo = createContactInfo(type, host, port); effectiveTargetIORContactInfoList.add(contactInfo); } }
Example #13
Source File: CorbaContactInfoListImpl.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
protected void addRemoteContactInfos( IOR effectiveTargetIOR, List effectiveTargetIORContactInfoList) { ContactInfo contactInfo; List socketInfos = orb.getORBData() .getIORToSocketInfo().getSocketInfo(effectiveTargetIOR); Iterator iterator = socketInfos.iterator(); while (iterator.hasNext()) { SocketInfo socketInfo = (SocketInfo) iterator.next(); String type = socketInfo.getType(); String host = socketInfo.getHost().toLowerCase(); int port = socketInfo.getPort(); contactInfo = createContactInfo(type, host, port); effectiveTargetIORContactInfoList.add(contactInfo); } }
Example #14
Source File: CorbaContactInfoListImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
protected void addRemoteContactInfos( IOR effectiveTargetIOR, List effectiveTargetIORContactInfoList) { ContactInfo contactInfo; List socketInfos = orb.getORBData() .getIORToSocketInfo().getSocketInfo(effectiveTargetIOR); Iterator iterator = socketInfos.iterator(); while (iterator.hasNext()) { SocketInfo socketInfo = (SocketInfo) iterator.next(); String type = socketInfo.getType(); String host = socketInfo.getHost().toLowerCase(); int port = socketInfo.getPort(); contactInfo = createContactInfo(type, host, port); effectiveTargetIORContactInfoList.add(contactInfo); } }
Example #15
Source File: DefaultIORToSocketInfoImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private SocketInfo createSocketInfo(final String hostname, final int port) { return new SocketInfo() { public String getType() { return SocketInfo.IIOP_CLEAR_TEXT; } public String getHost() { return hostname; } public int getPort() { return port; }}; }
Example #16
Source File: DefaultIORToSocketInfoImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private SocketInfo createSocketInfo(final String hostname, final int port) { return new SocketInfo() { public String getType() { return SocketInfo.IIOP_CLEAR_TEXT; } public String getHost() { return hostname; } public int getPort() { return port; }}; }
Example #17
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 #18
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 #19
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 #20
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 #21
Source File: DefaultIORToSocketInfoImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private SocketInfo createSocketInfo(final String hostname, final int port) { return new SocketInfo() { public String getType() { return SocketInfo.IIOP_CLEAR_TEXT; } public String getHost() { return hostname; } public int getPort() { return port; }}; }
Example #22
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 #23
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 #24
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 #25
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 #26
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 #27
Source File: DefaultIORToSocketInfoImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private SocketInfo createSocketInfo(final String hostname, final int port) { return new SocketInfo() { public String getType() { return SocketInfo.IIOP_CLEAR_TEXT; } public String getHost() { return hostname; } public int getPort() { return port; }}; }
Example #28
Source File: DefaultIORToSocketInfoImpl.java From JDKSourceCode1.8 with MIT License | 5 votes |
private SocketInfo createSocketInfo(final String hostname, final int port) { return new SocketInfo() { public String getType() { return SocketInfo.IIOP_CLEAR_TEXT; } public String getHost() { return hostname; } public int getPort() { return port; }}; }
Example #29
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 #30
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()); }