Contact Us 1-800-596-4880

Jetty SSL Transport

The Jetty SSL transport works exactly the same way as the HTTPS Transport Reference.

For example, the following configuration specifies the Jetty-SSL connectors in the first flow and the HTTPS connector in the second:

<?xml version="1.0" encoding="UTF-8"?>

<mule xmlns:https="http://www.mulesoft.org/schema/mule/https" xmlns:jetty="http://www.mulesoft.org/schema/mule/jetty"
	xmlns:mulexml="http://www.mulesoft.org/schema/mule/xml" xmlns:vm="http://www.mulesoft.org/schema/mule/vm"
	xmlns:cxf="http://www.mulesoft.org/schema/mule/cxf" xmlns:jms="http://www.mulesoft.org/schema/mule/jms"
	xmlns:ajax="http://www.mulesoft.org/schema/mule/ajax" xmlns="http://www.mulesoft.org/schema/mule/core"
	xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:spring="http://www.springframework.org/schema/beans"
	version="CE-3.3.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/xml http://www.mulesoft.org/schema/mule/xml/current/mule-xml.xsd
http://www.mulesoft.org/schema/mule/https http://www.mulesoft.org/schema/mule/https/current/mule-https.xsd
http://www.mulesoft.org/schema/mule/jetty http://www.mulesoft.org/schema/mule/jetty/current/mule-jetty.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/vm http://www.mulesoft.org/schema/mule/vm/current/mule-vm.xsd
http://www.mulesoft.org/schema/mule/cxf http://www.mulesoft.org/schema/mule/cxf/current/mule-cxf.xsd
http://www.mulesoft.org/schema/mule/jms http://www.mulesoft.org/schema/mule/jms/current/mule-jms.xsd
http://www.mulesoft.org/schema/mule/ajax http://www.mulesoft.org/schema/mule/ajax/current/mule-ajax.xsd ">


    <flow name="jettyFlow">
        <jetty:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8081"/>
        <echo-component/>
    </flow>

    <https:connector name="HTTP_HTTPS" enableCookies="true" cookieSpec="netscape" validateConnections="true"
    	sendBufferSize="0" receiveBufferSize="0" receiveBacklog="0" clientSoTimeout="10000" serverSoTimeout="10000"
   		socketSoLinger="0" proxyHostname="localhost" proxyPort="80"/>
    <flow name="HTTPSFlow">
        <https:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8081"
        	connector-ref="HTTP_HTTPS"/>
        <echo-component/>
    </flow>
</mule>

If you do not need this level of security, you can use the Jetty Transport Reference instead.