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 File: CorbaClientDelegateImpl.java From openjdk-8-source with 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 #2
Source File: CorbaClientDelegateImpl.java From openjdk-jdk9 with 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 #3
Source File: CorbaClientDelegateImpl.java From TencentKona-8 with 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 #4
Source File: CorbaClientDelegateImpl.java From openjdk-jdk8u-backup with 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 #5
Source File: CorbaClientDelegateImpl.java From TencentKona-8 with 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 File: CorbaContactInfoBase.java From JDKSourceCode1.8 with MIT License | 5 votes |
public ClientRequestDispatcher getClientRequestDispatcher() { int scid = getEffectiveProfile().getObjectKeyTemplate().getSubcontractId() ; RequestDispatcherRegistry scr = orb.getRequestDispatcherRegistry() ; return scr.getClientRequestDispatcher( scid ) ; }
Example #7
Source File: CorbaClientDelegateImpl.java From openjdk-jdk8u-backup with 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 File: CorbaClientDelegateImpl.java From JDKSourceCode1.8 with 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 #9
Source File: CorbaClientDelegateImpl.java From JDKSourceCode1.8 with 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 #10
Source File: CorbaClientDelegateImpl.java From hottub with 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 #11
Source File: CorbaClientDelegateImpl.java From openjdk-jdk8u with 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 #12
Source File: CorbaClientDelegateImpl.java From openjdk-jdk8u with 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 #13
Source File: CorbaContactInfoBase.java From openjdk-jdk8u-backup with 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 File: CorbaClientDelegateImpl.java From openjdk-jdk8u-backup with 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 File: CorbaClientDelegateImpl.java From jdk8u60 with 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 #16
Source File: CorbaContactInfoBase.java From openjdk-jdk8u with 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 #17
Source File: CorbaClientDelegateImpl.java From jdk1.8-source-analysis with 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 #18
Source File: CorbaClientDelegateImpl.java From jdk1.8-source-analysis with 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 #19
Source File: CorbaClientDelegateImpl.java From openjdk-8-source with 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 #20
Source File: CorbaContactInfoBase.java From TencentKona-8 with 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 #21
Source File: CorbaContactInfoBase.java From openjdk-8-source with 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 #22
Source File: CorbaContactInfoBase.java From jdk8u60 with 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 File: CorbaContactInfoBase.java From hottub with 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 File: RequestDispatcherRegistryImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public synchronized void registerClientRequestDispatcher( ClientRequestDispatcher csc, int scid) { CSRegistry.set( scid, csc ) ; }
Example #25
Source File: RequestDispatcherRegistryImpl.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public synchronized void registerClientRequestDispatcher( ClientRequestDispatcher csc, int scid) { CSRegistry.set( scid, csc ) ; }
Example #26
Source File: CorbaInvocationInfo.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public ClientRequestDispatcher getClientRequestDispatcher() { return clientRequestDispatcher; }
Example #27
Source File: RequestDispatcherDefault.java From hottub with GNU General Public License v2.0 | 4 votes |
public static ClientRequestDispatcher makeClientRequestDispatcher() { return new CorbaClientRequestDispatcherImpl() ; }
Example #28
Source File: SharedCDRContactInfoImpl.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public ClientRequestDispatcher getClientRequestDispatcher() { // REVISIT - use registry return new SharedCDRClientRequestDispatcherImpl(); }
Example #29
Source File: RequestDispatcherDefault.java From JDKSourceCode1.8 with MIT License | 4 votes |
public static ClientRequestDispatcher makeClientRequestDispatcher() { return new CorbaClientRequestDispatcherImpl() ; }
Example #30
Source File: CorbaInvocationInfo.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public void setClientRequestDispatcher(ClientRequestDispatcher clientRequestDispatcher) { this.clientRequestDispatcher = clientRequestDispatcher; }