public void setHTTPClientVersion(ConfigurationContext configurationContext) { configurationContext.setProperty(HTTPTransportConstants.HTTP_CLIENT_VERSION, HTTPTransportConstants.HTTP_CLIENT_3_X_VERSION); }
public void setHTTPClientVersion(ConfigurationContext configurationContext) { configurationContext.setProperty(HTTPTransportConstants.HTTP_CLIENT_VERSION, HTTPTransportConstants.HTTP_CLIENT_4_X_VERSION); }
public void setHTTPClientVersion(ConfigurationContext configurationContext) { configurationContext.setProperty(HTTPTransportConstants.HTTP_CLIENT_VERSION, HTTPTransportConstants.HTTP_CLIENT_3_X_VERSION); }
public void setHTTPClientVersion(ConfigurationContext configurationContext) { configurationContext.setProperty(HTTPTransportConstants.HTTP_CLIENT_VERSION, HTTPTransportConstants.HTTP_CLIENT_3_X_VERSION); }
public void setHTTPClientVersion(ConfigurationContext configurationContext) { configurationContext.setProperty(HTTPTransportConstants.HTTP_CLIENT_VERSION, HTTPTransportConstants.HTTP_CLIENT_3_X_VERSION); }
public void setHTTPClientVersion(ConfigurationContext configurationContext) { configurationContext.setProperty(HTTPTransportConstants.HTTP_CLIENT_VERSION, HTTPTransportConstants.HTTP_CLIENT_4_X_VERSION); }
ConfigurationContext axisContext; try { axisContext = ConfigurationContextFactory.createDefaultConfigurationContext(); } catch (Exception e) { throw new AxisFault(e.getMessage()); } axisContext.setProperty(HTTPConstants.CACHED_HTTP_CLIENT, httpClient); stub = new MyStub(axisContext, url);
public void init (ServiceContext serviceContext){ ConfigurationContext configurationContext = MessageContext.getCurrentMessageContext() .getConfigurationContext(); if (configurationContext != null) { book = new Book(); configurationContext.setProperty("SERVICE_BOOK", book); } } public void destroy(ServiceContext serviceContext) { }
private void setDoingMTOM(boolean value) { if (value) { m_msgCtx.getConfigurationContext().setProperty( org.apache.axis2.Constants.Configuration.ENABLE_MTOM, org.apache.axis2.Constants.VALUE_TRUE); } else { m_msgCtx.getConfigurationContext().setProperty( org.apache.axis2.Constants.Configuration.ENABLE_MTOM, org.apache.axis2.Constants.VALUE_FALSE); } }
@Override protected void doInit() throws AxisFault { super.doInit(); // set the synchronise callback table if (cfgCtx.getProperty(BaseConstants.CALLBACK_TABLE) == null){ cfgCtx.setProperty(BaseConstants.CALLBACK_TABLE, new ConcurrentHashMap()); } }
@Override protected void doInit() throws AxisFault { super.doInit(); // set the synchronise callback table if (cfgCtx.getProperty(BaseConstants.CALLBACK_TABLE) == null){ cfgCtx.setProperty(BaseConstants.CALLBACK_TABLE, new ConcurrentHashMap()); } }
@Override protected void doInit() throws AxisFault { super.doInit(); // set the synchronise callback table if (cfgCtx.getProperty(BaseConstants.CALLBACK_TABLE) == null){ cfgCtx.setProperty(BaseConstants.CALLBACK_TABLE, new ConcurrentHashMap()); } }
@Override protected final void before() throws Throwable { super.before(); if (server != null) { SSLContext sslContext = server.getClientSSLContext(); if (sslContext != null) { getConfigurationContext().setProperty(SSLContext.class.getName(), sslContext); } } }
public void serverRegistered() { ConfigurationContext configCtx = MessageContext.getCurrentMessageContext().getConfigurationContext(); configCtx.setProperty(ServerConstants.SERVER_REGISTERED, "true"); pm.updateConfigurationProperty(ServerConstants.SERVER_REGISTERED, "true"); }
public void createdConfigurationContext(ConfigurationContext configContext) { TaskScheduler scheduler = (TaskScheduler)configContext.getProperty(AutoscalerTaskInitializer.CARBON_TASK_SCHEDULER); if (scheduler == null) { scheduler = new TaskScheduler(TaskConstants.TASK_SCHEDULER); scheduler.init(null); configContext.setProperty(AutoscalerTaskInitializer.CARBON_TASK_SCHEDULER, scheduler); } else if(!scheduler.isInitialized()) { scheduler.init(null); } if (configContext.getProperty(AutoscalerTaskInitializer.CARBON_TASK_REPOSITORY) == null) { TaskDescriptionRepository repository = new TaskDescriptionRepository(); configContext.setProperty( AutoscalerTaskInitializer.CARBON_TASK_REPOSITORY, repository); } }
public boolean isServerRegistered() { ConfigurationContext configCtx = MessageContext.getCurrentMessageContext().getConfigurationContext(); String serverReg = (String) configCtx.getProperty(ServerConstants.SERVER_REGISTERED); if (serverReg == null) { serverReg = pm.getConfigurationProperty(ServerConstants.SERVER_REGISTERED); if (serverReg == null) { serverReg = "false"; pm.updateConfigurationProperty(ServerConstants.SERVER_REGISTERED, "false"); configCtx.setProperty(ServerConstants.SERVER_REGISTERED, "false"); } } return serverReg.equals("true"); }
public void startUp(ConfigurationContext configContext, AxisService axisService) { Boolean inited = (Boolean) configContext.getProperty(WsmgCommonConstants.BROKER_INITED); if (inited == null || inited == false) { log.info("starting broker"); Axis2Utils.overrideAddressingPhaseHander(configContext, new PublishedMessageHandler()); WsmgConfigurationContext brokerConext = initConfigurations(configContext, axisService); initQueue(brokerConext); initDeliveryMethod(brokerConext.getConfigurationManager()); inited = true; configContext.setProperty(WsmgCommonConstants.BROKER_INITED, inited); } else { log.info("init was already done by another webservice"); } }
public void setConfigContext(ConfigurationContext configContext) { // setting ServletContext into configctx configContext.setProperty(HTTPConstants.MC_HTTP_SERVLETCONTEXT, config.getServletContext()); Parameter servletConfigParam = new Parameter(); servletConfigParam.setName(HTTPConstants.HTTP_SERVLETCONFIG); servletConfigParam.setValue(config); try { configContext.getAxisConfiguration().addParameter(servletConfigParam); } catch (AxisFault axisFault) { log.error(axisFault.getMessage(), axisFault); } super.setConfigContext(configContext); } }
public void setConfigContext(ConfigurationContext configContext) { // setting ServletContext into configctx configContext.setProperty(HTTPConstants.MC_HTTP_SERVLETCONTEXT, config.getServletContext()); Parameter servletConfigParam = new Parameter(); servletConfigParam.setName(HTTPConstants.HTTP_SERVLETCONFIG); servletConfigParam.setValue(config); try { configContext.getAxisConfiguration().addParameter(servletConfigParam); } catch (AxisFault axisFault) { log.error(axisFault.getMessage(), axisFault); } super.setConfigContext(configContext); } }
void setMaxConnections() { MultiThreadedHttpConnectionManager multiThreadedHttpConnectionManager = new MultiThreadedHttpConnectionManager(); HttpConnectionManagerParams params = new HttpConnectionManagerParams(); params.setDefaultMaxConnectionsPerHost(50); params.setMaxTotalConnections(50); params.setSoTimeout(20000); params.setConnectionTimeout(20000); multiThreadedHttpConnectionManager.setParams(params); HttpClient httpClient = new HttpClient(multiThreadedHttpConnectionManager); serviceClient.getServiceContext().getConfigurationContext().setProperty(HTTPConstants.CACHED_HTTP_CLIENT, httpClient); }