/*
* $Id: JettySslNamespaceHandler.java 20823 2010-12-22 16:47:13Z aperepel $
* --------------------------------------------------------------------------------------
* Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.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.jetty.config;
import org.mule.config.spring.handlers.AbstractMuleNamespaceHandler;
import org.mule.config.spring.parsers.specific.tls.ClientKeyStoreDefinitionParser;
import org.mule.config.spring.parsers.specific.tls.KeyStoreDefinitionParser;
import org.mule.config.spring.parsers.specific.tls.ProtocolHandlerDefinitionParser;
import org.mule.config.spring.parsers.specific.tls.TrustStoreDefinitionParser;
import org.mule.transport.servlet.jetty.JettyHttpsConnector;
/**
* Registers a Bean Definition Parser for handling <code><jetty:connector></code> elements.
*/
public class JettySslNamespaceHandler extends AbstractMuleNamespaceHandler
{
public void init()
{
registerMetaTransportEndpoints(JettyHttpsConnector.JETTY_SSL);
registerConnectorDefinitionParser(JettyHttpsConnector.class);
registerBeanDefinitionParser("tls-key-store", new KeyStoreDefinitionParser());
registerBeanDefinitionParser("tls-client", new ClientKeyStoreDefinitionParser());
registerBeanDefinitionParser("tls-server", new TrustStoreDefinitionParser());
registerBeanDefinitionParser("tls-protocol-handler", new ProtocolHandlerDefinitionParser());
}
}