⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 servletconnector.java

📁 提供ESB 应用mule源代码 提供ESB 应用mule源代码
💻 JAVA
字号:
/* * $Id: ServletConnector.java 12420 2008-07-29 18:58:27Z tcarlson $ * -------------------------------------------------------------------------------------- * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com * * The software in this package is published under the terms of the CPAL v1.0 * license, a copy of which has been included with this distribution in the * LICENSE.txt file. */package org.mule.transport.servlet;import org.mule.api.MuleException;import org.mule.api.lifecycle.InitialisationException;import org.mule.transport.AbstractConnector;import org.mule.transport.http.HttpConnector;import org.mule.transport.http.HttpsConnector;import java.util.Map;/** * <code>ServletConnector</code> is a channel adapter between Mule and a servlet * engine. It allows the MuleReceiverServlet to look up components interested in * requests it receives via the servlet container. *  * @see MuleReceiverServlet */public class ServletConnector extends AbstractConnector{    public static final String SERVLET = "servlet";    // The real URL that the servlet container is bound on.    // If this is not set the wsdl may not be generated correctly    protected String servletUrl;    public ServletConnector()    {        super();        registerSupportedProtocol(HttpConnector.HTTP);        registerSupportedProtocol(HttpsConnector.HTTPS);    }    protected void doInitialise() throws InitialisationException    {        // template method, nothing to do    }    protected void doDispose()    {        // template method    }    protected void doConnect() throws Exception    {        // template method    }    protected void doDisconnect() throws Exception    {        // template method    }    protected void doStart() throws MuleException    {        // template method    }    protected void doStop() throws MuleException    {        // template method    }    public String getProtocol()    {        return SERVLET;    }    public Map getReceivers()    {        return receivers;    }    public String getServletUrl()    {        return servletUrl;    }    public void setServletUrl(String servletUrl)    {        this.servletUrl = servletUrl;    }//    protected Object getReceiverKey(Service service, InboundEndpoint endpoint)//    {//        return service.getName();//    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -