com.sun.corba.se.pept.protocol.ClientRequestDispatcher Java Examples
The following examples show how to use
com.sun.corba.se.pept.protocol.ClientRequestDispatcher.
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 Project: openjdk-8-source Author: keerath File: CorbaContactInfoBase.java License: GNU General Public License v2.0 | 5 votes |
public ClientRequestDispatcher getClientRequestDispatcher() { int scid = getEffectiveProfile().getObjectKeyTemplate().getSubcontractId() ; RequestDispatcherRegistry scr = orb.getRequestDispatcherRegistry() ; return scr.getClientRequestDispatcher( scid ) ; }
Example #2
Source Project: jdk1.8-source-analysis Author: raysonfang File: CorbaClientDelegateImpl.java License: Apache License 2.0 | 5 votes |
public InputStream invoke(org.omg.CORBA.Object self, OutputStream output) throws ApplicationException, RemarshalException { ClientRequestDispatcher subcontract = getClientRequestDispatcher(); return (InputStream) subcontract.marshalingComplete((Object)self, (OutputObject)output); }
Example #3
Source Project: jdk1.8-source-analysis Author: raysonfang File: CorbaClientDelegateImpl.java License: Apache License 2.0 | 5 votes |
public void releaseReply(org.omg.CORBA.Object self, InputStream input) { // NOTE: InputStream may be null (e.g., exception request from PI). ClientRequestDispatcher subcontract = getClientRequestDispatcher(); subcontract.endRequest(orb, self, (InputObject)input); orb.releaseOrDecrementInvocationInfo(); }
Example #4
Source Project: openjdk-jdk8u-backup Author: AdoptOpenJDK File: CorbaClientDelegateImpl.java License: GNU General Public License v2.0 | 5 votes |
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 #5
Source Project: TencentKona-8 Author: Tencent File: CorbaClientDelegateImpl.java License: GNU General Public License v2.0 | 5 votes |
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 Project: TencentKona-8 Author: Tencent File: CorbaClientDelegateImpl.java License: GNU General Public License v2.0 | 5 votes |
public void releaseReply(org.omg.CORBA.Object self, InputStream input) { // NOTE: InputStream may be null (e.g., exception request from PI). ClientRequestDispatcher subcontract = getClientRequestDispatcher(); subcontract.endRequest(orb, self, (InputObject)input); orb.releaseOrDecrementInvocationInfo(); }
Example #7
Source Project: openjdk-jdk9 Author: AdoptOpenJDK File: CorbaClientDelegateImpl.java License: GNU General Public License v2.0 | 5 votes |
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 Project: TencentKona-8 Author: Tencent File: CorbaContactInfoBase.java License: GNU General Public License v2.0 | 5 votes |
public ClientRequestDispatcher getClientRequestDispatcher() { int scid = getEffectiveProfile().getObjectKeyTemplate().getSubcontractId() ; RequestDispatcherRegistry scr = orb.getRequestDispatcherRegistry() ; return scr.getClientRequestDispatcher( scid ) ; }
Example #9
Source Project: openjdk-jdk8u-backup Author: AdoptOpenJDK File: CorbaClientDelegateImpl.java License: GNU General Public License v2.0 | 5 votes |
public void releaseReply(org.omg.CORBA.Object self, InputStream input) { // NOTE: InputStream may be null (e.g., exception request from PI). ClientRequestDispatcher subcontract = getClientRequestDispatcher(); subcontract.endRequest(orb, self, (InputObject)input); orb.releaseOrDecrementInvocationInfo(); }
Example #10
Source Project: openjdk-jdk8u-backup Author: AdoptOpenJDK File: CorbaContactInfoBase.java License: GNU General Public License v2.0 | 5 votes |
public ClientRequestDispatcher getClientRequestDispatcher() { int scid = getEffectiveProfile().getObjectKeyTemplate().getSubcontractId() ; RequestDispatcherRegistry scr = orb.getRequestDispatcherRegistry() ; return scr.getClientRequestDispatcher( scid ) ; }
Example #11
Source Project: openjdk-8-source Author: keerath File: CorbaClientDelegateImpl.java License: GNU General Public License v2.0 | 5 votes |
public void releaseReply(org.omg.CORBA.Object self, InputStream input) { // NOTE: InputStream may be null (e.g., exception request from PI). ClientRequestDispatcher subcontract = getClientRequestDispatcher(); subcontract.endRequest(orb, self, (InputObject)input); orb.releaseOrDecrementInvocationInfo(); }
Example #12
Source Project: jdk8u60 Author: chenghanpeng File: CorbaClientDelegateImpl.java License: GNU General Public License v2.0 | 5 votes |
public InputStream invoke(org.omg.CORBA.Object self, OutputStream output) throws ApplicationException, RemarshalException { ClientRequestDispatcher subcontract = getClientRequestDispatcher(); return (InputStream) subcontract.marshalingComplete((Object)self, (OutputObject)output); }
Example #13
Source Project: jdk8u60 Author: chenghanpeng File: CorbaContactInfoBase.java License: GNU General Public License v2.0 | 5 votes |
public ClientRequestDispatcher getClientRequestDispatcher() { int scid = getEffectiveProfile().getObjectKeyTemplate().getSubcontractId() ; RequestDispatcherRegistry scr = orb.getRequestDispatcherRegistry() ; return scr.getClientRequestDispatcher( scid ) ; }
Example #14
Source Project: openjdk-8-source Author: keerath File: CorbaClientDelegateImpl.java License: GNU General Public License v2.0 | 5 votes |
public InputStream invoke(org.omg.CORBA.Object self, OutputStream output) throws ApplicationException, RemarshalException { ClientRequestDispatcher subcontract = getClientRequestDispatcher(); return (InputStream) subcontract.marshalingComplete((Object)self, (OutputObject)output); }
Example #15
Source Project: JDKSourceCode1.8 Author: wupeixuan File: CorbaClientDelegateImpl.java License: MIT License | 5 votes |
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 Project: JDKSourceCode1.8 Author: wupeixuan File: CorbaClientDelegateImpl.java License: MIT License | 5 votes |
public void releaseReply(org.omg.CORBA.Object self, InputStream input) { // NOTE: InputStream may be null (e.g., exception request from PI). ClientRequestDispatcher subcontract = getClientRequestDispatcher(); subcontract.endRequest(orb, self, (InputObject)input); orb.releaseOrDecrementInvocationInfo(); }
Example #17
Source Project: hottub Author: dsrg-uoft File: CorbaClientDelegateImpl.java License: GNU General Public License v2.0 | 5 votes |
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 #18
Source Project: JDKSourceCode1.8 Author: wupeixuan File: CorbaContactInfoBase.java License: MIT License | 5 votes |
public ClientRequestDispatcher getClientRequestDispatcher() { int scid = getEffectiveProfile().getObjectKeyTemplate().getSubcontractId() ; RequestDispatcherRegistry scr = orb.getRequestDispatcherRegistry() ; return scr.getClientRequestDispatcher( scid ) ; }
Example #19
Source Project: openjdk-jdk8u Author: AdoptOpenJDK File: CorbaClientDelegateImpl.java License: GNU General Public License v2.0 | 5 votes |
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 Project: openjdk-jdk8u Author: AdoptOpenJDK File: CorbaClientDelegateImpl.java License: GNU General Public License v2.0 | 5 votes |
public void releaseReply(org.omg.CORBA.Object self, InputStream input) { // NOTE: InputStream may be null (e.g., exception request from PI). ClientRequestDispatcher subcontract = getClientRequestDispatcher(); subcontract.endRequest(orb, self, (InputObject)input); orb.releaseOrDecrementInvocationInfo(); }
Example #21
Source Project: openjdk-jdk8u-backup Author: AdoptOpenJDK File: CorbaClientDelegateImpl.java License: GNU General Public License v2.0 | 5 votes |
public InputStream invoke(org.omg.CORBA.Object self, OutputStream output) throws ApplicationException, RemarshalException { ClientRequestDispatcher subcontract = getClientRequestDispatcher(); return (InputStream) subcontract.marshalingComplete((Object)self, (OutputObject)output); }
Example #22
Source Project: openjdk-jdk8u Author: AdoptOpenJDK File: CorbaContactInfoBase.java License: GNU General Public License v2.0 | 5 votes |
public ClientRequestDispatcher getClientRequestDispatcher() { int scid = getEffectiveProfile().getObjectKeyTemplate().getSubcontractId() ; RequestDispatcherRegistry scr = orb.getRequestDispatcherRegistry() ; return scr.getClientRequestDispatcher( scid ) ; }
Example #23
Source Project: hottub Author: dsrg-uoft File: CorbaContactInfoBase.java License: GNU General Public License v2.0 | 5 votes |
public ClientRequestDispatcher getClientRequestDispatcher() { int scid = getEffectiveProfile().getObjectKeyTemplate().getSubcontractId() ; RequestDispatcherRegistry scr = orb.getRequestDispatcherRegistry() ; return scr.getClientRequestDispatcher( scid ) ; }
Example #24
Source Project: openjdk-8 Author: bpupadhyaya File: CorbaClientDelegateImpl.java License: GNU General Public License v2.0 | 4 votes |
private ClientRequestDispatcher getClientRequestDispatcher() { return (ClientRequestDispatcher) ((CorbaInvocationInfo)orb.getInvocationInfo()) .getClientRequestDispatcher(); }
Example #25
Source Project: hottub Author: dsrg-uoft File: CorbaInvocationInfo.java License: GNU General Public License v2.0 | 4 votes |
public ClientRequestDispatcher getClientRequestDispatcher() { return clientRequestDispatcher; }
Example #26
Source Project: jdk1.8-source-analysis Author: raysonfang File: CorbaClientDelegateImpl.java License: Apache License 2.0 | 4 votes |
private ClientRequestDispatcher getClientRequestDispatcher() { return (ClientRequestDispatcher) ((CorbaInvocationInfo)orb.getInvocationInfo()) .getClientRequestDispatcher(); }
Example #27
Source Project: openjdk-8-source Author: keerath File: CorbaInvocationInfo.java License: GNU General Public License v2.0 | 4 votes |
public void setClientRequestDispatcher(ClientRequestDispatcher clientRequestDispatcher) { this.clientRequestDispatcher = clientRequestDispatcher; }
Example #28
Source Project: jdk1.8-source-analysis Author: raysonfang File: CorbaInvocationInfo.java License: Apache License 2.0 | 4 votes |
public ClientRequestDispatcher getClientRequestDispatcher() { return clientRequestDispatcher; }
Example #29
Source Project: openjdk-jdk8u-backup Author: AdoptOpenJDK File: CorbaInvocationInfo.java License: GNU General Public License v2.0 | 4 votes |
public ClientRequestDispatcher getClientRequestDispatcher() { return clientRequestDispatcher; }
Example #30
Source Project: jdk1.8-source-analysis Author: raysonfang File: SharedCDRContactInfoImpl.java License: Apache License 2.0 | 4 votes |
public ClientRequestDispatcher getClientRequestDispatcher() { // REVISIT - use registry return new SharedCDRClientRequestDispatcherImpl(); }