/** * Initialize HTTP GET request processors * * @param config The ServletConfig of this Servlet */ protected void initGetRequestProcessors(ServletConfig config) { // The ListingAgent is an HTTP GET request processor agent = new ListingAgent(configContext); }
/** * Initialize HTTP GET request processors * * @param config The ServletConfig of this Servlet */ protected void initGetRequestProcessors(ServletConfig config) { // The ListingAgent is an HTTP GET request processor agent = new ListingAgent(configContext); }
/** * Overrides init method so that avoid starting listeners again * * @param config the servlet configuration on which synapse initializes. * @throws ServletException */ public void init(ServletConfig config) throws ServletException { ServletContext servletContext = config.getServletContext(); ServerManager serverManager = (ServerManager) config.getServletContext(). getAttribute(SynapseStartUpServlet.SYNAPSE_SERVER_MANAGER); if (serverManager != null) { this.configContext = (ConfigurationContext) serverManager. getServerContextInformation().getServerContext(); this.axisConfiguration = this.configContext.getAxisConfiguration(); servletContext.setAttribute(this.getClass().getName(), this); this.servletConfig = config; agent = new ListingAgent(configContext); initParams(); } }
/** * Overrides init method so that avoid starting listeners again * * @param config the servlet configuration on which synapse initializes. * @throws ServletException */ public void init(ServletConfig config) throws ServletException { ServletContext servletContext = config.getServletContext(); ServerManager serverManager = (ServerManager) config.getServletContext(). getAttribute(SynapseStartUpServlet.SYNAPSE_SERVER_MANAGER); if (serverManager != null) { this.configContext = (ConfigurationContext) serverManager. getServerContextInformation().getServerContext(); this.axisConfiguration = this.configContext.getAxisConfiguration(); servletContext.setAttribute(this.getClass().getName(), this); this.servletConfig = config; agent = new ListingAgent(configContext); initParams(); } }