/** * Add an outgoing transport description (i.e. sender) to our configuration. * * @param transport TransportOutDescription to add. * @throws AxisFault */ public void addTransportOut(TransportOutDescription transport) throws AxisFault { if (transport.getSender() == null) { throw new AxisFault( "Transport sender can not be null for the transport " + transport.getName()); } transportsOut.put(transport.getName(), transport); }
private void enableCGTransportSender(AxisConfiguration axisConfig) throws Exception { CGTransportSender sender = new CGTransportSender(); TransportOutDescription transportOut = new TransportOutDescription(CGConstant.CG_TRANSPORT_NAME); transportOut.setSender(sender); axisConfig.addTransportOut(transportOut); transportOut.getSender().init(getConfigContext(), transportOut); }
/** * Method getParameter. * * @param name * @return Returns Parameter. */ public Parameter getParameter(String name) { return tOut.getParameter(name); }
public TransportOutDescription createTransportOutDescription() throws Exception { TransportOutDescription trpOutDesc = new TransportOutDescription(name); trpOutDesc.setSender(senderClass.newInstance()); return trpOutDesc; } }
@Override public void onComplete() { try { _messageContext.getTransportOut().getSender().cleanup(_messageContext); } catch (final org.apache.axis2.AxisFault axisFault) { callback.receiveErrormdfeRecepcaoEvento(axisFault); } } });
public LocalResponseTransportOutDescription( TransportOutDescription localTransportSenderDescription) throws AxisFault { super(localTransportSenderDescription.getName()); this.tOut = localTransportSenderDescription; }
transportOutDescription = new TransportOutDescription("http"); transportOutDescription = new TransportOutDescription("https"); sender = new CommonsHTTPTransportSender(); transportOutDescription.addParameter(new Parameter("PROTOCOL", "HTTP/1.1")); } catch (final AxisFault af) { if (context.getLogger().isLoggable(Level.WARNING)) { + e.getMessage()); transportOutDescription.setSender(sender);
name = transportOut.getName(); Map<String, ProxyProfileConfig> proxyProfileConfigMap = getProxyProfiles(transportOut); Parameter proxyHostParam = transportOut.getParameter(PassThroughConstants.HTTP_PROXY_HOST); if (proxyHostParam != null) { proxyHost = (String) proxyHostParam.getValue(); Parameter proxyPortParam = transportOut.getParameter(PassThroughConstants.HTTP_PROXY_PORT); if (proxyPortParam != null) { proxyPort = Integer.parseInt((String) proxyPortParam.getValue()); Parameter bypassListParam = transportOut.getParameter(PassThroughConstants.HTTP_NON_PROXY_HOST); Parameter proxyUsernameParam = transportOut.getParameter(PassThroughConstants.HTTP_PROXY_USERNAME); Parameter proxyPasswordParam = transportOut.getParameter(PassThroughConstants.HTTP_PROXY_PASSWORD); if (proxyUsernameParam != null) { proxyCredentials = new UsernamePasswordCredentials((String) proxyUsernameParam.getValue(),
Parameter profilePathParam = transportOut.getParameter("dynamicSSLProfilesConfig"); profileParam.setValue(profileEl); transportOut.addParameter(profileParam); log.info("customSSLProfiles configuration is loaded from path: " + fullPath);
ConfigurationContext confContext = ConfigurationContextFactory .createEmptyConfigurationContext(); TransportOutDescription transportOut = new TransportOutDescription("http"); Parameter param = new Parameter(HTTPConstants.OMIT_SOAP_12_ACTION, false); SOAPEnvelope envelope = getEnvelope(); MessageContext msgContext = new MessageContext(); transportOut.addParameter(param);
public void testInit() throws AxisFault { ConfigurationContext confContext = ConfigurationContextFactory .createEmptyConfigurationContext(); TransportOutDescription transportOut = new TransportOutDescription("http"); TransportSender sender = getTransportSender(); sender.init(confContext, transportOut); }
@Override public void onComplete() { try { _messageContext.getTransportOut().getSender().cleanup(_messageContext); } catch (final org.apache.axis2.AxisFault axisFault) { callback.receiveErrorconsultaCadastro(axisFault); } } });
public TransportOutDescription createTransportOutDescription() throws Exception { TransportOutDescription trpOutDesc = new TransportOutDescription(name); trpOutDesc.setSender(senderClass.newInstance()); return trpOutDesc; } }
/** * @return Returns String. */ public String getName() { return tOut.getName(); }
name = transportOut.getName().toUpperCase(Locale.US) + " Sender"; Parameter param = transportOut.getParameter("warnOnHTTP500"); if (param != null) { String[] warnOnHttp500 = ((String) param.getValue()).split("\\|"); metrics = new NhttpMetricsCollector(false, transportOut.getName()); handler = new ClientHandler(connpool, connFactory, proxyConfig, cfgCtx, params, metrics); iodispatch = new ClientIODispatch(handler, connFactory); mbeanSupport = new TransportMBeanSupport(this, "nio-" + transportOut.getName()); mbeanSupport.register();
@Override public void onComplete() { try { _messageContext.getTransportOut().getSender().cleanup(_messageContext); } catch (org.apache.axis2.AxisFault axisFault) { callback.receiveErrornfeConsultaNF2(axisFault); } } });
/** * Add an outgoing transport description (i.e. sender) to our configuration. * * @param transport TransportOutDescription to add. * @throws AxisFault */ public void addTransportOut(TransportOutDescription transport) throws AxisFault { if (transport.getSender() == null) { throw new AxisFault( "Transport sender can not be null for the transport " + transport.getName()); } transportsOut.put(transport.getName(), transport); }
public TransportOutDescription createTransportOutDescription() throws Exception { TransportOutDescription trpOutDesc = new TransportOutDescription(name); trpOutDesc.setSender(senderClass.newInstance()); return trpOutDesc; } }
public LocalResponseTransportOutDescription( TransportOutDescription localTransportSenderDescription) throws AxisFault { super(localTransportSenderDescription.getName()); this.tOut = localTransportSenderDescription; }
/** * Method getParameter. * * @param name * @return Returns Parameter. */ public Parameter getParameter(String name) { return tOut.getParameter(name); }