/** * Set transport used for outgoing message. * * @param senderTransport transport name in Axis2 configuration * ("http", "tcp", etc.) * @param axisConfiguration * @throws AxisFault if the transport is not found */ public void setSenderTransport(String senderTransport, AxisConfiguration axisConfiguration) throws AxisFault { this.transportOut = axisConfiguration.getTransportOut(senderTransport); if (senderTransport == null) { throw new AxisFault(Messages.getMessage("unknownTransport", senderTransport)); } }
/** * Set transport used for outgoing message. * * @param senderTransport transport name in Axis2 configuration * ("http", "tcp", etc.) * @param axisConfiguration * @throws AxisFault if the transport is not found */ public void setSenderTransport(String senderTransport, AxisConfiguration axisConfiguration) throws AxisFault { this.transportOut = axisConfiguration.getTransportOut(senderTransport); if (senderTransport == null) { throw new AxisFault(Messages.getMessage("unknownTransport", senderTransport)); } }
if (configContext != null && configContext.getAxisConfiguration().getTransportOut("mailto") != null) { List<Parameter> params = configContext.getAxisConfiguration().getTransportOut("mailto").getParameters(); for (Parameter parm: params) { props.put(parm.getName(), parm.getValue());
/** * This callback notifies when a FIX session is no longer online. This * could happen during a normal logout exchange or because of a forced * termination or a loss of network connection. * * @param sessionID QuickFIX session ID */ public void onLogout(SessionID sessionID) { FIXTransportSender trpSender = (FIXTransportSender) cfgCtx.getAxisConfiguration(). getTransportOut(FIXConstants.TRANSPORT_NAME).getSender(); trpSender.logOutIncomingSession(sessionID); countersMap.remove(sessionID); log.info("FIX session logged out: " + sessionID.toString()); if (eventHandler != null) { eventHandler.onLogout(this, sessionID); } }
String transport = Utils.getURIScheme(transportURI); if (transport != null) { TransportOutDescription transportOut = ac.getTransportOut(transport); if (transportOut == null) { log.error("No Tranport Sender found for : " + transport); throw new AxisFault("No Tranport Sender found for : " + transport); } else { return ac.getTransportOut(transport); if (transport != null && ac.getTransportOut(transport) != null) { return ac.getTransportOut(transport); } else { log.error(Messages.getMessage("cannotInferTransport", uri));
String transport = Utils.getURIScheme(transportURI); if (transport != null) { TransportOutDescription transportOut = ac.getTransportOut(transport); if (transportOut == null) { log.error("No Tranport Sender found for : " + transport); throw new AxisFault("No Tranport Sender found for : " + transport); } else { return ac.getTransportOut(transport); if (transport != null && ac.getTransportOut(transport) != null) { return ac.getTransportOut(transport); } else { log.error(Messages.getMessage("cannotInferTransport", uri));
if (transportName != null) { TransportOutDescription transportOut = configContext.getAxisConfiguration().getTransportOut( transportName.getValue().toString()); if (transportOut == null) {
if (transportName != null) { TransportOutDescription transportOut = configContext.getAxisConfiguration().getTransportOut( transportName.getValue().toString()); if (transportOut == null) {
TransportOutDescription transportOut = axisConfiguration.getTransportOut(trsPrefix); if (transportOut == null) { transportOut = axisConfiguration.getTransportOut(Constants.TRANSPORT_HTTP);
TransportOutDescription transportOut = axisConfiguration.getTransportOut(trsPrefix); if (transportOut == null) { transportOut = axisConfiguration.getTransportOut(Constants.TRANSPORT_HTTP);
context.getConfigurationContext(); transportOut = configurationContext.getAxisConfiguration() .getTransportOut(scheme); if (transportOut == null) { throw new AxisFault("Can not find the transport sender : " + scheme);
context.getConfigurationContext(); transportOut = configurationContext.getAxisConfiguration() .getTransportOut(scheme); if (transportOut == null) { throw new AxisFault("Can not find the transport sender : " + scheme);
/** * Deploy the proxy service * * @param metaData meta data associated with this proxy * @throws org.wso2.carbon.cloud.gateway.common.CGException throws in case of an error */ public void deployProxy(CGServiceMetaDataBean metaData) throws CGException { if (metaData == null) { handleException("CG Service meta data is null"); } try { ProxyData proxyData = createProxyData(metaData); new ProxyServiceAdmin().addProxy(proxyData); // enable CG transport sender for this tenant if not already done so, // this has to done this way because Stratos has no mechanism to enable custom // transport senders, because all messages are supposed to go through ST out flow // we can get rid of this once Stratos has that capabilities if (getAxisConfig().getTransportOut(CGConstant.CG_TRANSPORT_NAME) == null) { enableCGTransportSender(getAxisConfig()); } } catch (Exception e) { handleException("Could not deploy the CG service '" + metaData.getServiceName() + "'. " + e.getMessage(), e); } }
private void handleIncomingResponse(MessageContext outMsgCtx) { AbstractTransportSender trpSender = (AbstractTransportSender) cfgCtx.getAxisConfiguration(). getTransportOut(FIXConstants.TRANSPORT_NAME).getSender(); MessageContext msgCtx = trpSender.createResponseMessageContext(outMsgCtx); try { //Put the FIX message in a SOAPEnvelope FIXUtils.getInstance().setSOAPEnvelope(message, counter, sessionID.toString(), msgCtx); msgCtx.setServerSide(true); trpSender.handleIncomingMessage( msgCtx, FIXUtils.getTransportHeaders(service.getName(), FIXConstants.FIX_INITIATOR), null, FIXConstants.FIX_DEFAULT_CONTENT_TYPE ); } catch (AxisFault e) { handleException("Error while processing response FIX message", e); } }
messageContext.setEnvelope(soapEnvelope); TransportInDescription in = configurationContext.getAxisConfiguration().getTransportIn("sms"); TransportOutDescription out = configurationContext.getAxisConfiguration().getTransportOut("sms"); messageContext.setIncomingTransportName("sms"); messageContext.setProperty(SMSTransportConstents.SEND_TO , sender);
.getAxisConfiguration().getTransportIn("xmpp"); TransportOutDescription transportOut = configurationContext .getAxisConfiguration().getTransportOut("xmpp"); if ((transportIn != null) && (transportOut != null)) { msgContext = configurationContext.createMessageContext();
this.transportOut = cfgCtx.getAxisConfiguration().getTransportOut(getTransportName()); this.config = TransportConfiguration.getConfiguration(getTransportName());
this.transportOut = cfgCtx.getAxisConfiguration().getTransportOut(getTransportName()); this.config = TransportConfiguration.getConfiguration(getTransportName());
TransportOutDescription tOut = confContext.getAxisConfiguration().getTransportOut( Constants.TRANSPORT_LOCAL);
TransportOutDescription tOut = confContext.getAxisConfiguration().getTransportOut( Constants.TRANSPORT_LOCAL);