com.sun.corba.se.spi.transport.CorbaContactInfoListIterator Java Examples

The following examples show how to use com.sun.corba.se.spi.transport.CorbaContactInfoListIterator. 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: CorbaClientDelegateImpl.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
public OutputStream request(org.omg.CORBA.Object self,
                            String operation,
                            boolean responseExpected)
{
    ClientInvocationInfo invocationInfo =
        orb.createOrIncrementInvocationInfo();
    Iterator contactInfoListIterator =
        invocationInfo.getContactInfoListIterator();
    if (contactInfoListIterator == null) {
        contactInfoListIterator = contactInfoList.iterator();
        invocationInfo.setContactInfoListIterator(contactInfoListIterator);
    }
    if (! contactInfoListIterator.hasNext()) {
        throw ((CorbaContactInfoListIterator)contactInfoListIterator)
            .getFailureException();
    }
    CorbaContactInfo contactInfo = (CorbaContactInfo) contactInfoListIterator.next();
    ClientRequestDispatcher subcontract = contactInfo.getClientRequestDispatcher();
    // Remember chosen subcontract for invoke and releaseReply.
    // NOTE: This is necessary since a stream is not available in
    // releaseReply if there is a client marshaling error or an
    // error in _invoke.
    invocationInfo.setClientRequestDispatcher(subcontract);
    return (OutputStream)
        subcontract.beginRequest(self, operation,
                                 !responseExpected, contactInfo);
}
 
Example #2
Source File: ClientRequestInfoImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
protected void setLocatedIOR(IOR ior)
{
    ORB orb = (ORB) messageMediator.getBroker();

    CorbaContactInfoListIterator iterator = (CorbaContactInfoListIterator)
        ((CorbaInvocationInfo)orb.getInvocationInfo())
        .getContactInfoListIterator();

    // REVISIT - this most likely causes reportRedirect to happen twice.
    // Once here and once inside the request dispatcher.
    iterator.reportRedirect(
        (CorbaContactInfo)messageMediator.getContactInfo(),
        ior);
}
 
Example #3
Source File: CorbaClientDelegateImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public OutputStream request(org.omg.CORBA.Object self,
                            String operation,
                            boolean responseExpected)
{
    ClientInvocationInfo invocationInfo =
        orb.createOrIncrementInvocationInfo();
    Iterator contactInfoListIterator =
        invocationInfo.getContactInfoListIterator();
    if (contactInfoListIterator == null) {
        contactInfoListIterator = contactInfoList.iterator();
        invocationInfo.setContactInfoListIterator(contactInfoListIterator);
    }
    if (! contactInfoListIterator.hasNext()) {
        throw ((CorbaContactInfoListIterator)contactInfoListIterator)
            .getFailureException();
    }
    CorbaContactInfo contactInfo = (CorbaContactInfo) contactInfoListIterator.next();
    ClientRequestDispatcher subcontract = contactInfo.getClientRequestDispatcher();
    // Remember chosen subcontract for invoke and releaseReply.
    // NOTE: This is necessary since a stream is not available in
    // releaseReply if there is a client marshaling error or an
    // error in _invoke.
    invocationInfo.setClientRequestDispatcher(subcontract);
    return (OutputStream)
        subcontract.beginRequest(self, operation,
                                 !responseExpected, contactInfo);
}
 
Example #4
Source File: ClientRequestInfoImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
protected void setLocatedIOR(IOR ior)
{
    ORB orb = (ORB) messageMediator.getBroker();

    CorbaContactInfoListIterator iterator = (CorbaContactInfoListIterator)
        ((CorbaInvocationInfo)orb.getInvocationInfo())
        .getContactInfoListIterator();

    // REVISIT - this most likely causes reportRedirect to happen twice.
    // Once here and once inside the request dispatcher.
    iterator.reportRedirect(
        (CorbaContactInfo)messageMediator.getContactInfo(),
        ior);
}
 
Example #5
Source File: CorbaClientDelegateImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public OutputStream request(org.omg.CORBA.Object self,
                            String operation,
                            boolean responseExpected)
{
    ClientInvocationInfo invocationInfo =
        orb.createOrIncrementInvocationInfo();
    Iterator contactInfoListIterator =
        invocationInfo.getContactInfoListIterator();
    if (contactInfoListIterator == null) {
        contactInfoListIterator = contactInfoList.iterator();
        invocationInfo.setContactInfoListIterator(contactInfoListIterator);
    }
    if (! contactInfoListIterator.hasNext()) {
        throw ((CorbaContactInfoListIterator)contactInfoListIterator)
            .getFailureException();
    }
    CorbaContactInfo contactInfo = (CorbaContactInfo) contactInfoListIterator.next();
    ClientRequestDispatcher subcontract = contactInfo.getClientRequestDispatcher();
    // Remember chosen subcontract for invoke and releaseReply.
    // NOTE: This is necessary since a stream is not available in
    // releaseReply if there is a client marshaling error or an
    // error in _invoke.
    invocationInfo.setClientRequestDispatcher(subcontract);
    return (OutputStream)
        subcontract.beginRequest(self, operation,
                                 !responseExpected, contactInfo);
}
 
Example #6
Source File: ClientRequestInfoImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
protected void setLocatedIOR(IOR ior)
{
    ORB orb = (ORB) messageMediator.getBroker();

    CorbaContactInfoListIterator iterator = (CorbaContactInfoListIterator)
        ((CorbaInvocationInfo)orb.getInvocationInfo())
        .getContactInfoListIterator();

    // REVISIT - this most likely causes reportRedirect to happen twice.
    // Once here and once inside the request dispatcher.
    iterator.reportRedirect(
        (CorbaContactInfo)messageMediator.getContactInfo(),
        ior);
}
 
Example #7
Source File: CorbaClientDelegateImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public OutputStream request(org.omg.CORBA.Object self,
                            String operation,
                            boolean responseExpected)
{
    ClientInvocationInfo invocationInfo =
        orb.createOrIncrementInvocationInfo();
    Iterator contactInfoListIterator =
        invocationInfo.getContactInfoListIterator();
    if (contactInfoListIterator == null) {
        contactInfoListIterator = contactInfoList.iterator();
        invocationInfo.setContactInfoListIterator(contactInfoListIterator);
    }
    if (! contactInfoListIterator.hasNext()) {
        throw ((CorbaContactInfoListIterator)contactInfoListIterator)
            .getFailureException();
    }
    CorbaContactInfo contactInfo = (CorbaContactInfo) contactInfoListIterator.next();
    ClientRequestDispatcher subcontract = contactInfo.getClientRequestDispatcher();
    // Remember chosen subcontract for invoke and releaseReply.
    // NOTE: This is necessary since a stream is not available in
    // releaseReply if there is a client marshaling error or an
    // error in _invoke.
    invocationInfo.setClientRequestDispatcher(subcontract);
    return (OutputStream)
        subcontract.beginRequest(self, operation,
                                 !responseExpected, contactInfo);
}
 
Example #8
Source File: ClientRequestInfoImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
protected void setLocatedIOR(IOR ior)
{
    ORB orb = (ORB) messageMediator.getBroker();

    CorbaContactInfoListIterator iterator = (CorbaContactInfoListIterator)
        ((CorbaInvocationInfo)orb.getInvocationInfo())
        .getContactInfoListIterator();

    // REVISIT - this most likely causes reportRedirect to happen twice.
    // Once here and once inside the request dispatcher.
    iterator.reportRedirect(
        (CorbaContactInfo)messageMediator.getContactInfo(),
        ior);
}
 
Example #9
Source File: CorbaClientDelegateImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public OutputStream request(org.omg.CORBA.Object self,
                            String operation,
                            boolean responseExpected)
{
    ClientInvocationInfo invocationInfo =
        orb.createOrIncrementInvocationInfo();
    Iterator contactInfoListIterator =
        invocationInfo.getContactInfoListIterator();
    if (contactInfoListIterator == null) {
        contactInfoListIterator = contactInfoList.iterator();
        invocationInfo.setContactInfoListIterator(contactInfoListIterator);
    }
    if (! contactInfoListIterator.hasNext()) {
        throw ((CorbaContactInfoListIterator)contactInfoListIterator)
            .getFailureException();
    }
    CorbaContactInfo contactInfo = (CorbaContactInfo) contactInfoListIterator.next();
    ClientRequestDispatcher subcontract = contactInfo.getClientRequestDispatcher();
    // Remember chosen subcontract for invoke and releaseReply.
    // NOTE: This is necessary since a stream is not available in
    // releaseReply if there is a client marshaling error or an
    // error in _invoke.
    invocationInfo.setClientRequestDispatcher(subcontract);
    return (OutputStream)
        subcontract.beginRequest(self, operation,
                                 !responseExpected, contactInfo);
}
 
Example #10
Source File: ClientRequestInfoImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
protected void setLocatedIOR(IOR ior)
{
    ORB orb = (ORB) messageMediator.getBroker();

    CorbaContactInfoListIterator iterator = (CorbaContactInfoListIterator)
        ((CorbaInvocationInfo)orb.getInvocationInfo())
        .getContactInfoListIterator();

    // REVISIT - this most likely causes reportRedirect to happen twice.
    // Once here and once inside the request dispatcher.
    iterator.reportRedirect(
        (CorbaContactInfo)messageMediator.getContactInfo(),
        ior);
}
 
Example #11
Source File: CorbaClientDelegateImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public OutputStream request(org.omg.CORBA.Object self,
                            String operation,
                            boolean responseExpected)
{
    ClientInvocationInfo invocationInfo =
        orb.createOrIncrementInvocationInfo();
    Iterator contactInfoListIterator =
        invocationInfo.getContactInfoListIterator();
    if (contactInfoListIterator == null) {
        contactInfoListIterator = contactInfoList.iterator();
        invocationInfo.setContactInfoListIterator(contactInfoListIterator);
    }
    if (! contactInfoListIterator.hasNext()) {
        throw ((CorbaContactInfoListIterator)contactInfoListIterator)
            .getFailureException();
    }
    CorbaContactInfo contactInfo = (CorbaContactInfo) contactInfoListIterator.next();
    ClientRequestDispatcher subcontract = contactInfo.getClientRequestDispatcher();
    // Remember chosen subcontract for invoke and releaseReply.
    // NOTE: This is necessary since a stream is not available in
    // releaseReply if there is a client marshaling error or an
    // error in _invoke.
    invocationInfo.setClientRequestDispatcher(subcontract);
    return (OutputStream)
        subcontract.beginRequest(self, operation,
                                 !responseExpected, contactInfo);
}
 
Example #12
Source File: ClientRequestInfoImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
protected void setLocatedIOR(IOR ior)
{
    ORB orb = (ORB) messageMediator.getBroker();

    CorbaContactInfoListIterator iterator = (CorbaContactInfoListIterator)
        ((CorbaInvocationInfo)orb.getInvocationInfo())
        .getContactInfoListIterator();

    // REVISIT - this most likely causes reportRedirect to happen twice.
    // Once here and once inside the request dispatcher.
    iterator.reportRedirect(
        (CorbaContactInfo)messageMediator.getContactInfo(),
        ior);
}
 
Example #13
Source File: CorbaClientDelegateImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public OutputStream request(org.omg.CORBA.Object self,
                            String operation,
                            boolean responseExpected)
{
    ClientInvocationInfo invocationInfo =
        orb.createOrIncrementInvocationInfo();
    Iterator contactInfoListIterator =
        invocationInfo.getContactInfoListIterator();
    if (contactInfoListIterator == null) {
        contactInfoListIterator = contactInfoList.iterator();
        invocationInfo.setContactInfoListIterator(contactInfoListIterator);
    }
    if (! contactInfoListIterator.hasNext()) {
        throw ((CorbaContactInfoListIterator)contactInfoListIterator)
            .getFailureException();
    }
    CorbaContactInfo contactInfo = (CorbaContactInfo) contactInfoListIterator.next();
    ClientRequestDispatcher subcontract = contactInfo.getClientRequestDispatcher();
    // Remember chosen subcontract for invoke and releaseReply.
    // NOTE: This is necessary since a stream is not available in
    // releaseReply if there is a client marshaling error or an
    // error in _invoke.
    invocationInfo.setClientRequestDispatcher(subcontract);
    return (OutputStream)
        subcontract.beginRequest(self, operation,
                                 !responseExpected, contactInfo);
}
 
Example #14
Source File: ClientRequestInfoImpl.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
protected void setLocatedIOR(IOR ior)
{
    ORB orb = (ORB) messageMediator.getBroker();

    CorbaContactInfoListIterator iterator = (CorbaContactInfoListIterator)
        ((CorbaInvocationInfo)orb.getInvocationInfo())
        .getContactInfoListIterator();

    // REVISIT - this most likely causes reportRedirect to happen twice.
    // Once here and once inside the request dispatcher.
    iterator.reportRedirect(
        (CorbaContactInfo)messageMediator.getContactInfo(),
        ior);
}
 
Example #15
Source File: CorbaClientDelegateImpl.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
public OutputStream request(org.omg.CORBA.Object self,
                            String operation,
                            boolean responseExpected)
{
    ClientInvocationInfo invocationInfo =
        orb.createOrIncrementInvocationInfo();
    Iterator contactInfoListIterator =
        invocationInfo.getContactInfoListIterator();
    if (contactInfoListIterator == null) {
        contactInfoListIterator = contactInfoList.iterator();
        invocationInfo.setContactInfoListIterator(contactInfoListIterator);
    }
    if (! contactInfoListIterator.hasNext()) {
        throw ((CorbaContactInfoListIterator)contactInfoListIterator)
            .getFailureException();
    }
    CorbaContactInfo contactInfo = (CorbaContactInfo) contactInfoListIterator.next();
    ClientRequestDispatcher subcontract = contactInfo.getClientRequestDispatcher();
    // Remember chosen subcontract for invoke and releaseReply.
    // NOTE: This is necessary since a stream is not available in
    // releaseReply if there is a client marshaling error or an
    // error in _invoke.
    invocationInfo.setClientRequestDispatcher(subcontract);
    return (OutputStream)
        subcontract.beginRequest(self, operation,
                                 !responseExpected, contactInfo);
}
 
Example #16
Source File: ClientRequestInfoImpl.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
protected void setLocatedIOR(IOR ior)
{
    ORB orb = (ORB) messageMediator.getBroker();

    CorbaContactInfoListIterator iterator = (CorbaContactInfoListIterator)
        ((CorbaInvocationInfo)orb.getInvocationInfo())
        .getContactInfoListIterator();

    // REVISIT - this most likely causes reportRedirect to happen twice.
    // Once here and once inside the request dispatcher.
    iterator.reportRedirect(
        (CorbaContactInfo)messageMediator.getContactInfo(),
        ior);
}
 
Example #17
Source File: ClientRequestInfoImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
protected void setLocatedIOR(IOR ior)
{
    ORB orb = (ORB) messageMediator.getBroker();

    CorbaContactInfoListIterator iterator = (CorbaContactInfoListIterator)
        ((CorbaInvocationInfo)orb.getInvocationInfo())
        .getContactInfoListIterator();

    // REVISIT - this most likely causes reportRedirect to happen twice.
    // Once here and once inside the request dispatcher.
    iterator.reportRedirect(
        (CorbaContactInfo)messageMediator.getContactInfo(),
        ior);
}
 
Example #18
Source File: CorbaClientDelegateImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public OutputStream request(org.omg.CORBA.Object self,
                            String operation,
                            boolean responseExpected)
{
    ClientInvocationInfo invocationInfo =
        orb.createOrIncrementInvocationInfo();
    Iterator contactInfoListIterator =
        invocationInfo.getContactInfoListIterator();
    if (contactInfoListIterator == null) {
        contactInfoListIterator = contactInfoList.iterator();
        invocationInfo.setContactInfoListIterator(contactInfoListIterator);
    }
    if (! contactInfoListIterator.hasNext()) {
        throw ((CorbaContactInfoListIterator)contactInfoListIterator)
            .getFailureException();
    }
    CorbaContactInfo contactInfo = (CorbaContactInfo) contactInfoListIterator.next();
    ClientRequestDispatcher subcontract = contactInfo.getClientRequestDispatcher();
    // Remember chosen subcontract for invoke and releaseReply.
    // NOTE: This is necessary since a stream is not available in
    // releaseReply if there is a client marshaling error or an
    // error in _invoke.
    invocationInfo.setClientRequestDispatcher(subcontract);
    return (OutputStream)
        subcontract.beginRequest(self, operation,
                                 !responseExpected, contactInfo);
}
 
Example #19
Source File: CorbaClientDelegateImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public OutputStream request(org.omg.CORBA.Object self,
                            String operation,
                            boolean responseExpected)
{
    ClientInvocationInfo invocationInfo =
        orb.createOrIncrementInvocationInfo();
    Iterator contactInfoListIterator =
        invocationInfo.getContactInfoListIterator();
    if (contactInfoListIterator == null) {
        contactInfoListIterator = contactInfoList.iterator();
        invocationInfo.setContactInfoListIterator(contactInfoListIterator);
    }
    if (! contactInfoListIterator.hasNext()) {
        throw ((CorbaContactInfoListIterator)contactInfoListIterator)
            .getFailureException();
    }
    CorbaContactInfo contactInfo = (CorbaContactInfo) contactInfoListIterator.next();
    ClientRequestDispatcher subcontract = contactInfo.getClientRequestDispatcher();
    // Remember chosen subcontract for invoke and releaseReply.
    // NOTE: This is necessary since a stream is not available in
    // releaseReply if there is a client marshaling error or an
    // error in _invoke.
    invocationInfo.setClientRequestDispatcher(subcontract);
    return (OutputStream)
        subcontract.beginRequest(self, operation,
                                 !responseExpected, contactInfo);
}
 
Example #20
Source File: ClientRequestInfoImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
protected void setLocatedIOR(IOR ior)
{
    ORB orb = (ORB) messageMediator.getBroker();

    CorbaContactInfoListIterator iterator = (CorbaContactInfoListIterator)
        ((CorbaInvocationInfo)orb.getInvocationInfo())
        .getContactInfoListIterator();

    // REVISIT - this most likely causes reportRedirect to happen twice.
    // Once here and once inside the request dispatcher.
    iterator.reportRedirect(
        (CorbaContactInfo)messageMediator.getContactInfo(),
        ior);
}
 
Example #21
Source File: CorbaClientRequestDispatcherImpl.java    From jdk1.8-source-analysis with Apache License 2.0 4 votes vote down vote up
protected CorbaContactInfoListIterator  getContactInfoListIterator(ORB orb)
{
    return (CorbaContactInfoListIterator)
        ((CorbaInvocationInfo)orb.getInvocationInfo())
            .getContactInfoListIterator();
}
 
Example #22
Source File: CorbaClientRequestDispatcherImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
protected CorbaContactInfoListIterator  getContactInfoListIterator(ORB orb)
{
    return (CorbaContactInfoListIterator)
        ((CorbaInvocationInfo)orb.getInvocationInfo())
            .getContactInfoListIterator();
}
 
Example #23
Source File: CorbaClientRequestDispatcherImpl.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
protected CorbaContactInfoListIterator  getContactInfoListIterator(ORB orb)
{
    return (CorbaContactInfoListIterator)
        ((CorbaInvocationInfo)orb.getInvocationInfo())
            .getContactInfoListIterator();
}
 
Example #24
Source File: CorbaClientRequestDispatcherImpl.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
protected CorbaContactInfoListIterator  getContactInfoListIterator(ORB orb)
{
    return (CorbaContactInfoListIterator)
        ((CorbaInvocationInfo)orb.getInvocationInfo())
            .getContactInfoListIterator();
}
 
Example #25
Source File: CorbaClientRequestDispatcherImpl.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
protected CorbaContactInfoListIterator  getContactInfoListIterator(ORB orb)
{
    return (CorbaContactInfoListIterator)
        ((CorbaInvocationInfo)orb.getInvocationInfo())
            .getContactInfoListIterator();
}
 
Example #26
Source File: CorbaClientRequestDispatcherImpl.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
protected CorbaContactInfoListIterator  getContactInfoListIterator(ORB orb)
{
    return (CorbaContactInfoListIterator)
        ((CorbaInvocationInfo)orb.getInvocationInfo())
            .getContactInfoListIterator();
}
 
Example #27
Source File: CorbaClientRequestDispatcherImpl.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
protected CorbaContactInfoListIterator  getContactInfoListIterator(ORB orb)
{
    return (CorbaContactInfoListIterator)
        ((CorbaInvocationInfo)orb.getInvocationInfo())
            .getContactInfoListIterator();
}
 
Example #28
Source File: CorbaClientRequestDispatcherImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
protected CorbaContactInfoListIterator  getContactInfoListIterator(ORB orb)
{
    return (CorbaContactInfoListIterator)
        ((CorbaInvocationInfo)orb.getInvocationInfo())
            .getContactInfoListIterator();
}
 
Example #29
Source File: CorbaClientRequestDispatcherImpl.java    From JDKSourceCode1.8 with MIT License 4 votes vote down vote up
protected CorbaContactInfoListIterator  getContactInfoListIterator(ORB orb)
{
    return (CorbaContactInfoListIterator)
        ((CorbaInvocationInfo)orb.getInvocationInfo())
            .getContactInfoListIterator();
}
 
Example #30
Source File: CorbaClientRequestDispatcherImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
protected CorbaContactInfoListIterator  getContactInfoListIterator(ORB orb)
{
    return (CorbaContactInfoListIterator)
        ((CorbaInvocationInfo)orb.getInvocationInfo())
            .getContactInfoListIterator();
}