alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Apache CXF example source code file (handlers.xml)

This example Apache CXF source code file (handlers.xml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Apache CXF tags/keywords

apache, asf, asf, license, license, of, see, see, testlogicalhandler, testlogicalhandler, testprotocolhandler, unless, version, you

The Apache CXF handlers.xml source code

<?xml version="1.0" encoding="UTF-8"?>
	<!--
		Licensed to the Apache Software Foundation (ASF) under one or more
		contributor license agreements. See the NOTICE file distributed with
		this work for additional information regarding copyright ownership.
		The ASF licenses this file to you under the Apache License, Version
		2.0 (the "License"); you may not use this file except in compliance
		with the License. You may obtain a copy of the License at

		http://www.apache.org/licenses/LICENSE-2.0 Unless required by
		applicable law or agreed to in writing, software distributed under the
		License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
		CONDITIONS OF ANY KIND, either express or implied. See the License for
		the specific language governing permissions and limitations under the
		License.
	-->
<handler-chains xmlns="http://java.sun.com/xml/ns/javaee"
	xmlns:cfg="http://cxf.apache.org/configuration/cfg" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee">
	<handler-chain>
		<handler>
			<handler-name>lh3
			<handler-class>
				org.apache.cxf.jaxws.handler.AnnotationHandlerChainBuilderTest$TestProtocolHandler
			</handler-class>
			<init-param>
				<param-name>token
				<param-value>String
			</init-param>
		</handler>
	</handler-chain>
	<handler-chain>
		<handler>
			<handler-name>lh1
			<handler-class>
				org.apache.cxf.jaxws.handler.AnnotationHandlerChainBuilderTest$TestLogicalHandler
			</handler-class>
			<init-param>
				<param-name>token
				<param-value>String
			</init-param>
		</handler>
		<handler>
			<handler-name>lh2
			<handler-class>
				org.apache.cxf.jaxws.handler.AnnotationHandlerChainBuilderTest$TestLogicalHandler
			</handler-class>
			<init-param>
				<param-name>token
				<param-value>String
			</init-param>
		</handler>
	</handler-chain>


	<handler-chain>
		<port-name-pattern xmlns:ns1="http://apache.org/handler_test">
			ns1:Soap*
		</port-name-pattern>
		<handler>
			<handler-name>Handler1
			<handler-class>
				org.apache.cxf.jaxws.handler.AnnotationHandlerChainBuilderTest$TestLogicalHandler
			</handler-class>
		</handler>
		<handler>
			<handler-name>Handler2
			<handler-class>
				org.apache.cxf.jaxws.handler.AnnotationHandlerChainBuilderTest$TestLogicalHandler
			</handler-class>
		</handler>
	</handler-chain>

	<handler-chain>
		<service-name-pattern xmlns:ns1="http://apache.org/handler_test">
			ns1:Soap*
		</service-name-pattern>
		<handler>
			<handler-name>Handler1
			<handler-class>
				org.apache.cxf.jaxws.handler.AnnotationHandlerChainBuilderTest$TestLogicalHandler
			</handler-class>
		</handler>
		<handler>
			<handler-name>Handler2
			<handler-class>
				org.apache.cxf.jaxws.handler.AnnotationHandlerChainBuilderTest$TestLogicalHandler
			</handler-class>
		</handler>
	</handler-chain>

	<!-- ====================== -->
	<!-- protocol based handlers-->
	<!-- ====================== -->
	<handler-chain>
		<!--
			REVISIT: valued used by TCK, do not understand...
			<protocol-bindings>##SOAP11_HTTP
		-->
		<protocol-bindings>http://schemas.xmlsoap.org/wsdl/soap/http
		</protocol-bindings>
		<handler>
			<handler-name>Handler7
			<handler-class>
				org.apache.cxf.jaxws.handler.AnnotationHandlerChainBuilderTest$TestLogicalHandler
			</handler-class>
		</handler>
		<handler>
			<handler-name>Handler8
			<handler-class>
				org.apache.cxf.jaxws.handler.AnnotationHandlerChainBuilderTest$TestProtocolHandler
			</handler-class>
		</handler>
	</handler-chain>
</handler-chains>

Other Apache CXF examples (source code examples)

Here is a short list of links related to this Apache CXF handlers.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.