cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r867253 [36/46] - in /websites/production/cxf/content: ./ 2008/04/28/ 2008/06/20/ 2009/02/10/ 2009/08/04/ cache/ docs/ docs/cxf-architecture.thumbs/ docs/cxf-dependency-graphs.thumbs/ docs/logbrowser-configuration.thumbs/ docs/logbrowser-so...
Date Mon, 24 Jun 2013 17:10:57 GMT
Modified: websites/production/cxf/content/docs/security.html
==============================================================================
--- websites/production/cxf/content/docs/security.html (original)
+++ websites/production/cxf/content/docs/security.html Mon Jun 24 17:10:51 2013
@@ -25,6 +25,18 @@
 <meta http-equiv="Content-type" content="text/html;charset=UTF-8">
 <meta name="keywords" content="business integration, EAI, SOA, Service Oriented Architecture, web services, SOAP, JBI, JMS, WSDL, XML, EDI, Electronic Data Interchange, standards support, integration standards, application integration, middleware, software, solutions, services, CXF, open source">
 <meta name="description" content="Apache CXF, Services Framework - Security">
+
+  <link href='http://cxf.apache.org/resources/highlighter/styles/shCore.css' rel='stylesheet' type='text/css' />
+  <link href='http://cxf.apache.org/resources/highlighter/styles/shThemeCXF.css' rel='stylesheet' type='text/css' />
+  <script src='http://cxf.apache.org/resources/highlighter/scripts/shCore.js' type='text/javascript'></script>
+  <script src='http://cxf.apache.org/resources/highlighter/scripts/shBrushJava.js' type='text/javascript'></script>
+  <script src='http://cxf.apache.org/resources/highlighter/scripts/shBrushXml.js' type='text/javascript'></script>
+  
+  <script type="text/javascript">
+  SyntaxHighlighter.defaults['toolbar'] = false;
+  SyntaxHighlighter.all();
+  </script>
+ 
     <title>
 Apache CXF -- Security
     </title>
@@ -42,19 +54,15 @@ Apache CXF -- Security
     <td id="cell-1-0">&nbsp;</td>
     <td id="cell-1-1">&nbsp;</td>
     <td id="cell-1-2">
-      <div style="padding: 5px;">
-        <div id="banner">
-          <!-- Banner -->
-<div id="banner-content">
+      <!-- Banner -->
+<div class="banner" id="banner"><p>
 <table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="left" colspan="1" nowrap>
 <a shape="rect" href="http://cxf.apache.org/" title="Apache CXF"><span style="font-weight: bold; font-size: 170%; color: white">Apache CXF</span></a>
 </td><td align="right" colspan="1" nowrap>
 <a shape="rect" href="http://www.apache.org/" title="The Apache Sofware Foundation"><img border="0" alt="ASF Logo" src="http://cxf.apache.org/images/asf-logo.png"></a>
 </td></tr></table>
-</div>
-          <!-- Banner -->
-        </div>
-      </div>
+</p></div>
+      <!-- Banner -->
       <div id="top-menu">
         <table border="0" cellpadding="1" cellspacing="0" width="100%">
           <tr>
@@ -94,7 +102,7 @@ Apache CXF -- Security
 
 
 <hr>
-<ul class="alternate" type="square"><li>Search
+<ul class="alternate" type="square"><li>Search<br clear="none">
 
 <form enctype="application/x-www-form-urlencoded" method="get" id="cse-search-box" action="http://www.google.com/cse">
   <div>
@@ -159,38 +167,38 @@ Apache CXF -- Security
 <p>Example :</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;jaxws:endpoint address=<span class="code-quote">"/soapService"</span>&gt;</span>
- <span class="code-tag">&lt;jaxws:inInterceptors&gt;</span>
-   <span class="code-tag">&lt;ref bean=<span class="code-quote">"authenticationInterceptor"</span>/&gt;</span>
- <span class="code-tag">&lt;/jaxws:inInterceptors&gt;</span>
-<span class="code-tag">&lt;/jaxws:endpoint&gt;</span>
-
-<span class="code-tag">&lt;bean id=<span class="code-quote">"authenticationInterceptor"</span> class=<span class="code-quote">"org.apache.cxf.interceptor.security.JAASLoginInterceptor"</span>&gt;</span>
-   <span class="code-tag">&lt;property name=<span class="code-quote">"contextName"</span> value=<span class="code-quote">"jaasContext"</span>/&gt;</span>
-   <span class="code-tag">&lt;property name=<span class="code-quote">"roleClassifier"</span> value=<span class="code-quote">"ROLE_"</span>/&gt;</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;jaxws:endpoint address="/soapService"&gt;
+ &lt;jaxws:inInterceptors&gt;
+   &lt;ref bean="authenticationInterceptor"/&gt;
+ &lt;/jaxws:inInterceptors&gt;
+&lt;/jaxws:endpoint&gt;
+
+&lt;bean id="authenticationInterceptor" class="org.apache.cxf.interceptor.security.JAASLoginInterceptor"&gt;
+   &lt;property name="contextName" value="jaasContext"/&gt;
+   &lt;property name="roleClassifier" value="ROLE_"/&gt;
 
-<span class="code-tag">&lt;/bean&gt;</span>
+&lt;/bean&gt;
 &lt;!--
   Similarly for JAX-RS endpoints.
   Note that org.apache.cxf.jaxrs.security.JAASAuthenticationFilter
   can be registered as jaxrs:provider instead
 --&gt;
-</pre>
+]]></script>
 </div></div>
 <p>The JAAS authenticator is configured with the name of the JAAS login context (the one usually specified in the JAAS configuration resource which the server is aware of). It is also configured with an optional "roleClassifier" property which is needed by the CXF SecurityContext in order to differentiate between user and role Principals. By default CXF will assume that role Principals are represented by javax.security.acl.Group instances.</p>
 
 <p>In some cases objects representing a user principal and roles are implementing the same marker interface such as Principal. That can be handled like this:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;bean id=<span class="code-quote">"authenticationInterceptor"</span> class=<span class="code-quote">"org.apache.cxf.interceptor.security.JAASLoginInterceptor"</span>&gt;</span>
-   <span class="code-tag">&lt;property name=<span class="code-quote">"contextName"</span> value=<span class="code-quote">"jaasContext"</span>/&gt;</span>
-   <span class="code-tag">&lt;property name=<span class="code-quote">"roleClassifier"</span> value=<span class="code-quote">"RolePrincipal"</span>/&gt;</span>
-   <span class="code-tag">&lt;property name=<span class="code-quote">"roleClassifierType"</span> value=<span class="code-quote">"classname"</span>/&gt;</span>
-<span class="code-tag">&lt;/bean&gt;</span>
-<span class="code-tag"><span class="code-comment">&lt;!-- Similarly for JAX-RS endpoints --&gt;</span></span>
-</pre>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;bean id="authenticationInterceptor" class="org.apache.cxf.interceptor.security.JAASLoginInterceptor"&gt;
+   &lt;property name="contextName" value="jaasContext"/&gt;
+   &lt;property name="roleClassifier" value="RolePrincipal"/&gt;
+   &lt;property name="roleClassifierType" value="classname"/&gt;
+&lt;/bean&gt;
+&lt;!-- Similarly for JAX-RS endpoints --&gt;
+]]></script>
 </div></div>
 <p>In this case JAASLoginInterceptor will know that the roles are represented by a class whose simple name is RolePrincipal. Note that full class names are also supported.</p>
 
@@ -216,39 +224,39 @@ Apache CXF -- Security
 <p>Example :</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;jaxws:endpoint id=<span class="code-quote">"endpoint1"</span> address=<span class="code-quote">"/soapService1"</span>&gt;</span>
- <span class="code-tag">&lt;jaxws:inInterceptors&gt;</span>
-   <span class="code-tag">&lt;ref bean=<span class="code-quote">"authorizationInterceptor"</span>/&gt;</span>
- <span class="code-tag">&lt;/jaxws:inInterceptors&gt;</span>
-<span class="code-tag">&lt;/jaxws:endpoint&gt;</span>
-
-<span class="code-tag">&lt;bean id=<span class="code-quote">"authorizationInterceptor"</span> class=<span class="code-quote">"org.apache.cxf.interceptor.security.SimpleAuthorizingInterceptor"</span>&gt;</span>
-   <span class="code-tag">&lt;property name=<span class="code-quote">"methodRolesMap"</span>&gt;</span>
-      <span class="code-tag">&lt;map&gt;</span>
-        <span class="code-tag"><span class="code-comment">&lt;!-- no wildcard support, names need to match exactly --&gt;</span></span>
-        <span class="code-tag">&lt;entry key=<span class="code-quote">"addNumbers"</span> value=<span class="code-quote">"ROLE_USER ROLE_ADMIN"</span>/&gt;</span>
-        <span class="code-tag">&lt;entry key=<span class="code-quote">"divideNumbers"</span> value=<span class="code-quote">"ROLE_ADMIN"</span>/&gt;</span>
-      <span class="code-tag">&lt;/map&gt;</span>
-   <span class="code-tag">&lt;/property&gt;</span>
-   <span class="code-tag"><span class="code-comment">&lt;!-- its possible to define global roles that apply to all WSDL operations not listed above --&gt;</span></span>
-   <span class="code-tag">&lt;property name=<span class="code-quote">"globalRoles"</span> value=<span class="code-quote">"ROLE_ADMIN"</span>/&gt;</span>
-<span class="code-tag">&lt;/bean&gt;</span>
-
-<span class="code-tag">&lt;jaxws:endpoint id=<span class="code-quote">"endpoint2"</span> address=<span class="code-quote">"/soapService2"</span> implementor=<span class="code-quote">"#secureBean"</span>&gt;</span>
- <span class="code-tag">&lt;jaxws:inInterceptors&gt;</span>
-   <span class="code-tag">&lt;ref bean=<span class="code-quote">"authorizationInterceptor2"</span>/&gt;</span>
- <span class="code-tag">&lt;/jaxws:inInterceptors&gt;</span>
-<span class="code-tag">&lt;/jaxws:endpoint&gt;</span>
-
-<span class="code-tag"><span class="code-comment">&lt;!-- This bean is annotated with secure annotations such as RolesAllowed --&gt;</span></span>
-<span class="code-tag">&lt;bean id=<span class="code-quote">"secureBean"</span> class=<span class="code-quote">"org.apache.cxf.tests.security.SecureService"</span>/&gt;</span>
-
-<span class="code-tag">&lt;bean id=<span class="code-quote">"authorizationInterceptor2"</span> class=<span class="code-quote">"org.apache.cxf.interceptor.security.SecureAnnotationsInterceptor"</span>&gt;</span>
-   <span class="code-tag">&lt;property name=<span class="code-quote">"securedObject"</span> ref=<span class="code-quote">"secureBean"</span>/&gt;</span>
-<span class="code-tag">&lt;/bean&gt;</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;jaxws:endpoint id="endpoint1" address="/soapService1"&gt;
+ &lt;jaxws:inInterceptors&gt;
+   &lt;ref bean="authorizationInterceptor"/&gt;
+ &lt;/jaxws:inInterceptors&gt;
+&lt;/jaxws:endpoint&gt;
+
+&lt;bean id="authorizationInterceptor" class="org.apache.cxf.interceptor.security.SimpleAuthorizingInterceptor"&gt;
+   &lt;property name="methodRolesMap"&gt;
+      &lt;map&gt;
+        &lt;!-- no wildcard support, names need to match exactly --&gt;
+        &lt;entry key="addNumbers" value="ROLE_USER ROLE_ADMIN"/&gt;
+        &lt;entry key="divideNumbers" value="ROLE_ADMIN"/&gt;
+      &lt;/map&gt;
+   &lt;/property&gt;
+   &lt;!-- its possible to define global roles that apply to all WSDL operations not listed above --&gt;
+   &lt;property name="globalRoles" value="ROLE_ADMIN"/&gt;
+&lt;/bean&gt;
+
+&lt;jaxws:endpoint id="endpoint2" address="/soapService2" implementor="#secureBean"&gt;
+ &lt;jaxws:inInterceptors&gt;
+   &lt;ref bean="authorizationInterceptor2"/&gt;
+ &lt;/jaxws:inInterceptors&gt;
+&lt;/jaxws:endpoint&gt;
+
+&lt;!-- This bean is annotated with secure annotations such as RolesAllowed --&gt;
+&lt;bean id="secureBean" class="org.apache.cxf.tests.security.SecureService"/&gt;
+
+&lt;bean id="authorizationInterceptor2" class="org.apache.cxf.interceptor.security.SecureAnnotationsInterceptor"&gt;
+   &lt;property name="securedObject" ref="secureBean"/&gt;
+&lt;/bean&gt;
 
-</pre>
+]]></script>
 </div></div>
 <h1><a shape="rect" name="Security-ControllingLargeRequestPayloads"></a>Controlling Large Request Payloads</h1>
 
@@ -259,32 +267,32 @@ Apache CXF -- Security
 <p>The complete number of XML elements, the number of immediate children of a given XML element may contain and the stack depth of the payload can be restricted, for example:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;bean id=<span class="code-quote">"depthInterceptor"</span> class=<span class="code-quote">"org.apache.cxf.interceptor.security.DepthRestrictingStreamInterceptor"</span>&gt;</span>
-  <span class="code-tag"><span class="code-comment">&lt;!-- Total number of elements in the XML payload --&gt;</span></span>
-  <span class="code-tag">&lt;property name=<span class="code-quote">"elementCountThreshold"</span> value=<span class="code-quote">"5000"</span>/&gt;</span>
-
-  <span class="code-tag"><span class="code-comment">&lt;!-- Total number of child elements for XML elements --&gt;</span></span>
-  <span class="code-tag">&lt;property name=<span class="code-quote">"innerElementCountThreshold"</span> value=<span class="code-quote">"3000"</span>/&gt;</span>
-
-  <span class="code-tag"><span class="code-comment">&lt;!-- Maximum stack depth of the XML payload --&gt;</span></span>
-  <span class="code-tag">&lt;property name=<span class="code-quote">"innerElementLevelThreshold"</span> value=<span class="code-quote">"20"</span>/&gt;</span>
-
-<span class="code-tag">&lt;/bean&gt;</span>
-
-<span class="code-tag">&lt;jaxws:endpoint&gt;</span>
-  <span class="code-tag">&lt;jaxws:inInterceptors&gt;</span>
-   <span class="code-tag">&lt;ref bean=<span class="code-quote">"depthInterceptor"</span>/&gt;</span>
- <span class="code-tag">&lt;/jaxws:inInterceptors&gt;</span>
-<span class="code-tag">&lt;jaxws:endpoint&gt;</span>
-
-<span class="code-tag">&lt;jaxrs:server&gt;</span>
-  <span class="code-tag">&lt;jaxrs:inInterceptors&gt;</span>
-   <span class="code-tag">&lt;ref bean=<span class="code-quote">"depthInterceptor"</span>/&gt;</span>
- <span class="code-tag">&lt;/jaxrs:inInterceptors&gt;</span>
-<span class="code-tag">&lt;jaxrs:server&gt;</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;bean id="depthInterceptor" class="org.apache.cxf.interceptor.security.DepthRestrictingStreamInterceptor"&gt;
+  &lt;!-- Total number of elements in the XML payload --&gt;
+  &lt;property name="elementCountThreshold" value="5000"/&gt;
+
+  &lt;!-- Total number of child elements for XML elements --&gt;
+  &lt;property name="innerElementCountThreshold" value="3000"/&gt;
+
+  &lt;!-- Maximum stack depth of the XML payload --&gt;
+  &lt;property name="innerElementLevelThreshold" value="20"/&gt;
+
+&lt;/bean&gt;
+
+&lt;jaxws:endpoint&gt;
+  &lt;jaxws:inInterceptors&gt;
+   &lt;ref bean="depthInterceptor"/&gt;
+ &lt;/jaxws:inInterceptors&gt;
+&lt;jaxws:endpoint&gt;
+
+&lt;jaxrs:server&gt;
+  &lt;jaxrs:inInterceptors&gt;
+   &lt;ref bean="depthInterceptor"/&gt;
+ &lt;/jaxrs:inInterceptors&gt;
+&lt;jaxrs:server&gt;
 
-</pre>
+]]></script>
 </div></div>
 
 <p>When one of the limits is reached, the error is returned. JAX-WS consumers will receive 500, JAX-RS/HTTP consumers: 413.</p>

Modified: websites/production/cxf/content/docs/server-http-transport.html
==============================================================================
--- websites/production/cxf/content/docs/server-http-transport.html (original)
+++ websites/production/cxf/content/docs/server-http-transport.html Mon Jun 24 17:10:51 2013
@@ -25,6 +25,17 @@
 <meta http-equiv="Content-type" content="text/html;charset=UTF-8">
 <meta name="keywords" content="business integration, EAI, SOA, Service Oriented Architecture, web services, SOAP, JBI, JMS, WSDL, XML, EDI, Electronic Data Interchange, standards support, integration standards, application integration, middleware, software, solutions, services, CXF, open source">
 <meta name="description" content="Apache CXF, Services Framework - Server HTTP Transport">
+
+  <link href='http://cxf.apache.org/resources/highlighter/styles/shCore.css' rel='stylesheet' type='text/css' />
+  <link href='http://cxf.apache.org/resources/highlighter/styles/shThemeCXF.css' rel='stylesheet' type='text/css' />
+  <script src='http://cxf.apache.org/resources/highlighter/scripts/shCore.js' type='text/javascript'></script>
+  <script src='http://cxf.apache.org/resources/highlighter/scripts/shBrushJava.js' type='text/javascript'></script>
+  
+  <script type="text/javascript">
+  SyntaxHighlighter.defaults['toolbar'] = false;
+  SyntaxHighlighter.all();
+  </script>
+ 
     <title>
 Apache CXF -- Server HTTP Transport
     </title>
@@ -42,19 +53,15 @@ Apache CXF -- Server HTTP Transport
     <td id="cell-1-0">&nbsp;</td>
     <td id="cell-1-1">&nbsp;</td>
     <td id="cell-1-2">
-      <div style="padding: 5px;">
-        <div id="banner">
-          <!-- Banner -->
-<div id="banner-content">
+      <!-- Banner -->
+<div class="banner" id="banner"><p>
 <table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="left" colspan="1" nowrap>
 <a shape="rect" href="http://cxf.apache.org/" title="Apache CXF"><span style="font-weight: bold; font-size: 170%; color: white">Apache CXF</span></a>
 </td><td align="right" colspan="1" nowrap>
 <a shape="rect" href="http://www.apache.org/" title="The Apache Sofware Foundation"><img border="0" alt="ASF Logo" src="http://cxf.apache.org/images/asf-logo.png"></a>
 </td></tr></table>
-</div>
-          <!-- Banner -->
-        </div>
-      </div>
+</p></div>
+      <!-- Banner -->
       <div id="top-menu">
         <table border="0" cellpadding="1" cellspacing="0" width="100%">
           <tr>
@@ -94,7 +101,7 @@ Apache CXF -- Server HTTP Transport
 
 
 <hr>
-<ul class="alternate" type="square"><li>Search
+<ul class="alternate" type="square"><li>Search<br clear="none">
 
 <form enctype="application/x-www-form-urlencoded" method="get" id="cse-search-box" action="http://www.google.com/cse">
   <div>
@@ -136,15 +143,15 @@ Apache CXF -- Server HTTP Transport
 <p>The elements used to configure an HTTP provider endpoint are defined in the namespace <tt><a shape="rect" href="http://cxf.apache.org/transports/http/configuration">http://cxf.apache.org/transports/http/configuration</a></tt>. It is commonly referred to using the prefix <tt>http-conf</tt>. In order to use the HTTP configuration elements you will need to add the lines shown below to the beans element of your endpoint's configuration file. In addition, you will need to add the configuration elements' namespace to the <tt>xsi:schemaLocation</tt> attribute.</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>Adding the Configuration Namespace</b></div><div class="codeContent panelContent">
-<pre class="code-java">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
 &lt;beans ...
-       xmlns:http-conf="http:<span class="code-comment">//cxf.apache.org/transports/http/configuration
-</span>       ...
+       xmlns:http-conf="http://cxf.apache.org/transports/http/configuration
+       ...
        xsi:schemaLocation="...
-          http:<span class="code-comment">//cxf.apache.org/transports/http/configuration
-</span>          http:<span class="code-comment">//cxf.apache.org/schemas/configuration/http-conf.xsd
-</span>       ..."&gt;
-</pre>
+          http://cxf.apache.org/transports/http/configuration
+          http://cxf.apache.org/schemas/configuration/http-conf.xsd
+       ..."&gt;
+]]></script>
 </div></div>
 
 <h3><a shape="rect" name="ServerHTTPTransport-The%7B%7Bdestination%7D%7Delement"></a>The <tt>destination</tt> element</h3>
@@ -152,14 +159,14 @@ Apache CXF -- Server HTTP Transport
 <p>You configure an HTTP server endpoint using the <tt>http-conf:destination</tt> element and its children. The <tt>http-conf:destination</tt> element takes a single attribute, <tt>name</tt>, the specifies the WSDL port element that corresponds to the endpoint. The value for the <tt>name</tt> attribute takes the form <em>portQName</em><tt>.http-destination</tt>. The example below shows the <tt>http-conf:destination</tt> element that would be used to add configuration for an endpoint that was specified by the WSDL fragment <tt>&lt;port binding="widgetSOAPBinding" name="widgetSOAPPort&gt;</tt> if the endpoint's target namespace was <tt><a shape="rect" class="external-link" href="http://widgets.widgetvendor.net" rel="nofollow">http://widgets.widgetvendor.net</a></tt>.</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>http-conf:destination Element</b></div><div class="codeContent panelContent">
-<pre class="code-java">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
 
 ...
-  &lt;http-conf:destination name=<span class="code-quote">"{http:<span class="code-comment">//widgets/widgetvendor.net}widgetSOAPPort.http-destination"</span>&gt;
-</span>    ...
+  &lt;http-conf:destination name="{http://widgets/widgetvendor.net}widgetSOAPPort.http-destination"&gt;
+    ...
   &lt;/http-conf:destination&gt;
 ...
-</pre>
+]]></script>
 </div></div>
 
 <p>The <tt>http-conf:destination</tt> element has a number of child elements that specify configuration information. They are described below.</p>
@@ -182,23 +189,23 @@ Apache CXF -- Server HTTP Transport
 
 <p>The example below shows a the configuration for an HTTP service provider endpoint that honors keep alive requests and suppresses all communication errors.</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>HTTP Service Provider Endpoint Configuration</b></div><div class="codeContent panelContent">
-<pre class="code-java">
-&lt;beans xmlns=<span class="code-quote">"http:<span class="code-comment">//www.springframework.org/schema/beans"</span>
-</span>       xmlns:xsi=<span class="code-quote">"http:<span class="code-comment">//www.w3.org/2001/XMLSchema-instance"</span>
-</span>       xmlns:http-conf=<span class="code-quote">"http:<span class="code-comment">//cxf.apache.org/transports/http/configuration"</span>
-</span>       xsi:schemaLocation="http:<span class="code-comment">//cxf.apache.org/transports/http/configuration
-</span>           http:<span class="code-comment">//cxf.apache.org/schemas/configuration/http-conf.xsd
-</span>           http:<span class="code-comment">//www.springframework.org/schema/beans
-</span>           http:<span class="code-comment">//www.springframework.org/schema/beans/spring-beans.xsd"&gt;
-</span>   
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;beans xmlns="http://www.springframework.org/schema/beans"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"
+       xsi:schemaLocation="http://cxf.apache.org/transports/http/configuration
+           http://cxf.apache.org/schemas/configuration/http-conf.xsd
+           http://www.springframework.org/schema/beans
+           http://www.springframework.org/schema/beans/spring-beans.xsd"&gt;
+   
   &lt;http-conf:destination 
-     name=<span class="code-quote">"{http:<span class="code-comment">//apache.org/hello_world_soap_http}SoapPort.http-destination"</span>&gt;
-</span>    &lt;http-conf:server SuppressClientSendErrors=<span class="code-quote">"<span class="code-keyword">true</span>"</span>
-                      SuppressClientReceiveErrors=<span class="code-quote">"<span class="code-keyword">true</span>"</span>
-                      HonorKeepAlive=<span class="code-quote">"<span class="code-keyword">true</span>"</span> /&gt;
+     name="{http://apache.org/hello_world_soap_http}SoapPort.http-destination"&gt;
+    &lt;http-conf:server SuppressClientSendErrors="true"
+                      SuppressClientReceiveErrors="true"
+                      HonorKeepAlive="true" /&gt;
   &lt;/http-conf:destination&gt;
 &lt;/beans&gt;
-</pre>
+]]></script>
 </div></div>
 
 <h2><a shape="rect" name="ServerHTTPTransport-UsingWSDL"></a>Using WSDL</h2>
@@ -207,10 +214,10 @@ Apache CXF -- Server HTTP Transport
 <p>The WSDL extension elements used to configure an HTTP server endpoint are defined in the namespace <tt><a shape="rect" href="http://cxf.apache.org/transports/http/configuration">http://cxf.apache.org/transports/http/configuration</a></tt>. It is commonly refered to using the prefix <tt>http-conf</tt>. In order to use the HTTP configuration elements you will need to add the line shown below to the <tt>definitions</tt> element of your endpoint's WSDL document.</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>HTTP Provider WSDL Element's Namespace</b></div><div class="codeContent panelContent">
-<pre class="code-java">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
 &lt;definitions ...
-       xmlns:http-conf="http:<span class="code-comment">//cxf.apache.org/transports/http/configuration</span>
-</pre>
+       xmlns:http-conf="http://cxf.apache.org/transports/http/configuration
+]]></script>
 </div></div>
 
 <h3><a shape="rect" name="ServerHTTPTransport-The%7B%7Bserver%7D%7Delement"></a>The <tt>server</tt> element</h3>
@@ -222,14 +229,14 @@ Apache CXF -- Server HTTP Transport
 <p>The example below shows a WSDL fragment that configures an HTTP server endpoint to specify that it will not interact with caches.</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>WSDL to Configure an HTTP Service Provider Endpoint</b></div><div class="codeContent panelContent">
-<pre class="code-java">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
 &lt;service ...&gt;
   &lt;port ...&gt;
     &lt;soap:address ... /&gt;
-    &lt;http-conf:server CacheControl=<span class="code-quote">"no-cache"</span> /&gt;
+    &lt;http-conf:server CacheControl="no-cache" /&gt;
   &lt;/port&gt;
 &lt;/service&gt;
-</pre>
+]]></script>
 </div></div>
 
 <h2><a shape="rect" name="ServerHTTPTransport-ServerCacheControlDirectives"></a>Server Cache Control Directives</h2>

Modified: websites/production/cxf/content/docs/server-service-and-client-factorybeans.html
==============================================================================
--- websites/production/cxf/content/docs/server-service-and-client-factorybeans.html (original)
+++ websites/production/cxf/content/docs/server-service-and-client-factorybeans.html Mon Jun 24 17:10:51 2013
@@ -25,6 +25,17 @@
 <meta http-equiv="Content-type" content="text/html;charset=UTF-8">
 <meta name="keywords" content="business integration, EAI, SOA, Service Oriented Architecture, web services, SOAP, JBI, JMS, WSDL, XML, EDI, Electronic Data Interchange, standards support, integration standards, application integration, middleware, software, solutions, services, CXF, open source">
 <meta name="description" content="Apache CXF, Services Framework - Server, Service, and Client FactoryBeans">
+
+  <link href='http://cxf.apache.org/resources/highlighter/styles/shCore.css' rel='stylesheet' type='text/css' />
+  <link href='http://cxf.apache.org/resources/highlighter/styles/shThemeCXF.css' rel='stylesheet' type='text/css' />
+  <script src='http://cxf.apache.org/resources/highlighter/scripts/shCore.js' type='text/javascript'></script>
+  <script src='http://cxf.apache.org/resources/highlighter/scripts/shBrushJava.js' type='text/javascript'></script>
+  
+  <script type="text/javascript">
+  SyntaxHighlighter.defaults['toolbar'] = false;
+  SyntaxHighlighter.all();
+  </script>
+ 
     <title>
 Apache CXF -- Server, Service, and Client FactoryBeans
     </title>
@@ -42,19 +53,15 @@ Apache CXF -- Server, Service, and Clien
     <td id="cell-1-0">&nbsp;</td>
     <td id="cell-1-1">&nbsp;</td>
     <td id="cell-1-2">
-      <div style="padding: 5px;">
-        <div id="banner">
-          <!-- Banner -->
-<div id="banner-content">
+      <!-- Banner -->
+<div class="banner" id="banner"><p>
 <table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="left" colspan="1" nowrap>
 <a shape="rect" href="http://cxf.apache.org/" title="Apache CXF"><span style="font-weight: bold; font-size: 170%; color: white">Apache CXF</span></a>
 </td><td align="right" colspan="1" nowrap>
 <a shape="rect" href="http://www.apache.org/" title="The Apache Sofware Foundation"><img border="0" alt="ASF Logo" src="http://cxf.apache.org/images/asf-logo.png"></a>
 </td></tr></table>
-</div>
-          <!-- Banner -->
-        </div>
-      </div>
+</p></div>
+      <!-- Banner -->
       <div id="top-menu">
         <table border="0" cellpadding="1" cellspacing="0" width="100%">
           <tr>
@@ -94,7 +101,7 @@ Apache CXF -- Server, Service, and Clien
 
 
 <hr>
-<ul class="alternate" type="square"><li>Search
+<ul class="alternate" type="square"><li>Search<br clear="none">
 
 <form enctype="application/x-www-form-urlencoded" method="get" id="cse-search-box" action="http://www.google.com/cse">
   <div>
@@ -141,18 +148,18 @@ Apache CXF -- Server, Service, and Clien
 
 <p>To add your own service configuration:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-MyServiceConfiguration config = <span class="code-keyword">new</span> AbstractServiceConfiguration() {
-... <span class="code-comment">// your implementation
-</span>};
-ReflectionServiceFactoryBean serviceFactory = <span class="code-keyword">new</span> ReflectionServiceFactoryBean();
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+MyServiceConfiguration config = new AbstractServiceConfiguration() {
+... // your implementation
+};
+ReflectionServiceFactoryBean serviceFactory = new ReflectionServiceFactoryBean();
 serviceFactory.getServiceConfigurations().add(0, config);
 
-ServerFactoryBean svrFactory = <span class="code-keyword">new</span> ServerFactoryBean();
+ServerFactoryBean svrFactory = new ServerFactoryBean();
 svrFactory.setServiceFactory(serviceFactory);
 ...
 Server svr = svrFactory.create();
-</pre>
+]]></script>
 </div></div></div>
            </div>
            <!-- Content -->

Modified: websites/production/cxf/content/docs/service-routing.html
==============================================================================
--- websites/production/cxf/content/docs/service-routing.html (original)
+++ websites/production/cxf/content/docs/service-routing.html Mon Jun 24 17:10:51 2013
@@ -25,6 +25,18 @@
 <meta http-equiv="Content-type" content="text/html;charset=UTF-8">
 <meta name="keywords" content="business integration, EAI, SOA, Service Oriented Architecture, web services, SOAP, JBI, JMS, WSDL, XML, EDI, Electronic Data Interchange, standards support, integration standards, application integration, middleware, software, solutions, services, CXF, open source">
 <meta name="description" content="Apache CXF, Services Framework - Service Routing">
+
+  <link href='http://cxf.apache.org/resources/highlighter/styles/shCore.css' rel='stylesheet' type='text/css' />
+  <link href='http://cxf.apache.org/resources/highlighter/styles/shThemeCXF.css' rel='stylesheet' type='text/css' />
+  <script src='http://cxf.apache.org/resources/highlighter/scripts/shCore.js' type='text/javascript'></script>
+  <script src='http://cxf.apache.org/resources/highlighter/scripts/shBrushJava.js' type='text/javascript'></script>
+  <script src='http://cxf.apache.org/resources/highlighter/scripts/shBrushXml.js' type='text/javascript'></script>
+  
+  <script type="text/javascript">
+  SyntaxHighlighter.defaults['toolbar'] = false;
+  SyntaxHighlighter.all();
+  </script>
+ 
     <title>
 Apache CXF -- Service Routing
     </title>
@@ -42,19 +54,15 @@ Apache CXF -- Service Routing
     <td id="cell-1-0">&nbsp;</td>
     <td id="cell-1-1">&nbsp;</td>
     <td id="cell-1-2">
-      <div style="padding: 5px;">
-        <div id="banner">
-          <!-- Banner -->
-<div id="banner-content">
+      <!-- Banner -->
+<div class="banner" id="banner"><p>
 <table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="left" colspan="1" nowrap>
 <a shape="rect" href="http://cxf.apache.org/" title="Apache CXF"><span style="font-weight: bold; font-size: 170%; color: white">Apache CXF</span></a>
 </td><td align="right" colspan="1" nowrap>
 <a shape="rect" href="http://www.apache.org/" title="The Apache Sofware Foundation"><img border="0" alt="ASF Logo" src="http://cxf.apache.org/images/asf-logo.png"></a>
 </td></tr></table>
-</div>
-          <!-- Banner -->
-        </div>
-      </div>
+</p></div>
+      <!-- Banner -->
       <div id="top-menu">
         <table border="0" cellpadding="1" cellspacing="0" width="100%">
           <tr>
@@ -94,7 +102,7 @@ Apache CXF -- Service Routing
 
 
 <hr>
-<ul class="alternate" type="square"><li>Search
+<ul class="alternate" type="square"><li>Search<br clear="none">
 
 <form enctype="application/x-www-form-urlencoded" method="get" id="cse-search-box" action="http://www.google.com/cse">
   <div>
@@ -130,18 +138,18 @@ Apache CXF -- Service Routing
 <p>One common practice to version web services is using XML namespaces to clearly delineate the versions of a document that are compatible. For example:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;wsdl:types&gt;</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;wsdl:types&gt;
    &lt;schema
-      targetNamespace=<span class="code-quote">"http://apache.org/2007/03/21/hello_world_xml_http/mixed/types"</span>
-      xmlns=<span class="code-quote">"http://www.w3.org/2001/XMLSchema"</span>&gt;
-      <span class="code-tag">&lt;element name=<span class="code-quote">"sayHi"</span>&gt;</span>
-         <span class="code-tag">&lt;complexType /&gt;</span>
-      <span class="code-tag">&lt;/element&gt;</span>  
+      targetNamespace="http://apache.org/2007/03/21/hello_world_xml_http/mixed/types"
+      xmlns="http://www.w3.org/2001/XMLSchema"&gt;
+      &lt;element name="sayHi"&gt;
+         &lt;complexType /&gt;
+      &lt;/element&gt;  
       ..........     
-   <span class="code-tag">&lt;/schema&gt;</span>
-<span class="code-tag">&lt;/wsdl:types&gt;</span>
-</pre>
+   &lt;/schema&gt;
+&lt;/wsdl:types&gt;
+]]></script>
 </div></div>
 
 <p>Among many different possible implementations of service routing, one simple way ("simple" in terms of amount of code you have to write, but it does require a certain extent of familiarity with CXF internal architecture) to do this is by writing a CXF interceptor that acts as a routing mediator. </p>
@@ -151,156 +159,156 @@ Apache CXF -- Service Routing
 <p>Lets see the code:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>Example 1: The server - this server has three endpoints: one endpoint for the dummy service, another two endpoints are different versions of Greeter service</b></div><div class="codeContent panelContent">
-<pre class="code-java">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
 
-<span class="code-keyword">import</span> javax.xml.ws.Endpoint;
+import javax.xml.ws.Endpoint;
 
-<span class="code-keyword">import</span> org.apache.cxf.jaxws.EndpointImpl;
-<span class="code-keyword">import</span> org.apache.cxf.testutil.common.AbstractBusTestServerBase;
-<span class="code-keyword">import</span> org.apache.hello_world_mixedstyle.GreeterImplMixedStyle;
+import org.apache.cxf.jaxws.EndpointImpl;
+import org.apache.cxf.testutil.common.AbstractBusTestServerBase;
+import org.apache.hello_world_mixedstyle.GreeterImplMixedStyle;
 
 
-<span class="code-keyword">public</span> class Server <span class="code-keyword">extends</span> AbstractBusTestServerBase {
+public class Server extends AbstractBusTestServerBase {
 
-    <span class="code-keyword">protected</span> void run() {
-        <span class="code-comment">//implementor1 and implementor2 are published using local transport
-</span>        <span class="code-object">Object</span> implementor1 = <span class="code-keyword">new</span> GreeterImplMixedStyle();
-        <span class="code-object">String</span> address1 = <span class="code-quote">"local:<span class="code-comment">//SoapContext/version1/SoapPort"</span>;
-</span>        Endpoint.publish(address1, implementor1);
+    protected void run() {
+        //implementor1 and implementor2 are published using local transport
+        Object implementor1 = new GreeterImplMixedStyle();
+        String address1 = "local://SoapContext/version1/SoapPort";
+        Endpoint.publish(address1, implementor1);
 
-        <span class="code-object">Object</span> implementor2 = <span class="code-keyword">new</span> GreeterImplMixedStyle();
-        <span class="code-object">String</span> address2 = <span class="code-quote">"local:<span class="code-comment">//SoapContext/version2/SoapPort"</span>;
-</span>        Endpoint.publish(address2, implementor2);
+        Object implementor2 = new GreeterImplMixedStyle();
+        String address2 = "local://SoapContext/version2/SoapPort";
+        Endpoint.publish(address2, implementor2);
         
-        <span class="code-comment">//A dummy service that acts as a routing mediator
-</span>        <span class="code-object">Object</span> implementor = <span class="code-keyword">new</span> GreeterImplMixedStyle();
-        <span class="code-object">String</span> address = <span class="code-quote">"http:<span class="code-comment">//localhost:9027/SoapContext/SoapPort"</span>;
-</span>        javax.xml.ws.Endpoint jaxwsEndpoint = Endpoint.publish(address, implementor);  
+        //A dummy service that acts as a routing mediator
+        Object implementor = new GreeterImplMixedStyle();
+        String address = "http://localhost:9027/SoapContext/SoapPort";
+        javax.xml.ws.Endpoint jaxwsEndpoint = Endpoint.publish(address, implementor);  
         
-        <span class="code-comment">//Register a MediatorInInterceptor on <span class="code-keyword">this</span> dummy service
-</span>        EndpointImpl jaxwsEndpointImpl = (EndpointImpl)jaxwsEndpoint;
+        //Register a MediatorInInterceptor on this dummy service
+        EndpointImpl jaxwsEndpointImpl = (EndpointImpl)jaxwsEndpoint;
         org.apache.cxf.endpoint.Server server = jaxwsEndpointImpl.getServer();
         org.apache.cxf.endpoint.Endpoint endpoint = server.getEndpoint();
-        endpoint.getInInterceptors().add(<span class="code-keyword">new</span> MediatorInInterceptor());
+        endpoint.getInInterceptors().add(new MediatorInInterceptor());
     }
 
-    <span class="code-keyword">public</span> <span class="code-keyword">static</span> void main(<span class="code-object">String</span>[] args) {
-        <span class="code-keyword">try</span> {
-            Server s = <span class="code-keyword">new</span> Server();
+    public static void main(String[] args) {
+        try {
+            Server s = new Server();
             s.run();
-        } <span class="code-keyword">catch</span> (Exception ex) {
+        } catch (Exception ex) {
             ex.printStackTrace();
-            <span class="code-object">System</span>.exit(-1);
-        } <span class="code-keyword">finally</span> {
-            <span class="code-object">System</span>.out.println(<span class="code-quote">"done!"</span>);
+            System.exit(-1);
+        } finally {
+            System.out.println("done!");
         }
     }
 }
-</pre>
+]]></script>
 </div></div>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>Example 2: The intermediary interceptor</b></div><div class="codeContent panelContent">
-<pre class="code-java">
-<span class="code-keyword">import</span> java.io.BufferedInputStream;
-<span class="code-keyword">import</span> java.io.IOException;
-<span class="code-keyword">import</span> java.io.InputStream;
-<span class="code-keyword">import</span> java.util.List;
-
-<span class="code-keyword">import</span> javax.xml.stream.XMLInputFactory;
-<span class="code-keyword">import</span> javax.xml.stream.XMLStreamConstants;
-<span class="code-keyword">import</span> javax.xml.stream.XMLStreamException;
-<span class="code-keyword">import</span> javax.xml.stream.XMLStreamReader;
-
-<span class="code-keyword">import</span> org.apache.cxf.Bus;
-<span class="code-keyword">import</span> org.apache.cxf.binding.soap.SoapMessage;
-<span class="code-keyword">import</span> org.apache.cxf.binding.soap.SoapVersion;
-<span class="code-keyword">import</span> org.apache.cxf.binding.soap.SoapVersionFactory;
-<span class="code-keyword">import</span> org.apache.cxf.bus.CXFBusFactory;
-<span class="code-keyword">import</span> org.apache.cxf.endpoint.Server;
-<span class="code-keyword">import</span> org.apache.cxf.endpoint.ServerRegistry;
-<span class="code-keyword">import</span> org.apache.cxf.interceptor.InterceptorChain;
-<span class="code-keyword">import</span> org.apache.cxf.interceptor.StaxInInterceptor;
-<span class="code-keyword">import</span> org.apache.cxf.message.Message;
-<span class="code-keyword">import</span> org.apache.cxf.phase.AbstractPhaseInterceptor;
-<span class="code-keyword">import</span> org.apache.cxf.phase.Phase;
-<span class="code-keyword">import</span> org.apache.cxf.staxutils.DepthXMLStreamReader;
-<span class="code-keyword">import</span> org.apache.cxf.staxutils.StaxUtils;
-<span class="code-keyword">import</span> org.apache.cxf.transport.MessageObserver;
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+import java.io.BufferedInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.List;
+
+import javax.xml.stream.XMLInputFactory;
+import javax.xml.stream.XMLStreamConstants;
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamReader;
+
+import org.apache.cxf.Bus;
+import org.apache.cxf.binding.soap.SoapMessage;
+import org.apache.cxf.binding.soap.SoapVersion;
+import org.apache.cxf.binding.soap.SoapVersionFactory;
+import org.apache.cxf.bus.CXFBusFactory;
+import org.apache.cxf.endpoint.Server;
+import org.apache.cxf.endpoint.ServerRegistry;
+import org.apache.cxf.interceptor.InterceptorChain;
+import org.apache.cxf.interceptor.StaxInInterceptor;
+import org.apache.cxf.message.Message;
+import org.apache.cxf.phase.AbstractPhaseInterceptor;
+import org.apache.cxf.phase.Phase;
+import org.apache.cxf.staxutils.DepthXMLStreamReader;
+import org.apache.cxf.staxutils.StaxUtils;
+import org.apache.cxf.transport.MessageObserver;
 
 
-<span class="code-keyword">public</span> class MediatorInInterceptor <span class="code-keyword">extends</span> AbstractPhaseInterceptor&lt;SoapMessage&gt; {
+public class MediatorInInterceptor extends AbstractPhaseInterceptor&lt;SoapMessage&gt; {
 
-    <span class="code-keyword">public</span> MediatorInInterceptor() {
-        <span class="code-keyword">super</span>();
+    public MediatorInInterceptor() {
+        super();
         setPhase(Phase.POST_STREAM);
         addBefore(StaxInInterceptor.class.getName());
     }
 
-    <span class="code-keyword">public</span> void handleMessage(SoapMessage message) {
-        <span class="code-object">String</span> schemaNamespace = "";
+    public void handleMessage(SoapMessage message) {
+        String schemaNamespace = "";
         InterceptorChain chain = message.getInterceptorChain();
 
-        <span class="code-comment">//scan the incoming message <span class="code-keyword">for</span> its schema namespace
-</span>        <span class="code-keyword">try</span> {
-            <span class="code-comment">//create a buffered stream so that we get back the original stream after scaning
-</span>            InputStream is = message.getContent(InputStream.class);
-            BufferedInputStream pis = <span class="code-keyword">new</span> BufferedInputStream(is);
+        //scan the incoming message for its schema namespace
+        try {
+            //create a buffered stream so that we get back the original stream after scaning
+            InputStream is = message.getContent(InputStream.class);
+            BufferedInputStream pis = new BufferedInputStream(is);
             pis.mark(pis.available());
             message.setContent(InputStream.class, pis);
 
-            <span class="code-comment">//TODO: process attachements
-</span>
-            <span class="code-object">String</span> encoding = (<span class="code-object">String</span>)message.get(Message.ENCODING);
+            //TODO: process attachements
+
+            String encoding = (String)message.get(Message.ENCODING);
             XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(pis, encoding);
-            DepthXMLStreamReader xmlReader = <span class="code-keyword">new</span> DepthXMLStreamReader(reader);
+            DepthXMLStreamReader xmlReader = new DepthXMLStreamReader(reader);
 
-            <span class="code-keyword">if</span> (xmlReader.nextTag() == XMLStreamConstants.START_ELEMENT) {
-                <span class="code-object">String</span> ns = xmlReader.getNamespaceURI();
+            if (xmlReader.nextTag() == XMLStreamConstants.START_ELEMENT) {
+                String ns = xmlReader.getNamespaceURI();
                 SoapVersion soapVersion = SoapVersionFactory.getInstance().getSoapVersion(ns);
-                <span class="code-comment">//advance just past header
-</span>                StaxUtils.toNextTag(xmlReader, soapVersion.getBody());
-                <span class="code-comment">//past body.
-</span>                xmlReader.nextTag();
+                //advance just past header
+                StaxUtils.toNextTag(xmlReader, soapVersion.getBody());
+                //past body.
+                xmlReader.nextTag();
             }
 
             schemaNamespace = xmlReader.getName().getNamespaceURI();
 
             pis.reset();
-        } <span class="code-keyword">catch</span> (IOException e) {
+        } catch (IOException e) {
             e.printStackTrace();
-        } <span class="code-keyword">catch</span> (XMLStreamException e) {
+        } catch (XMLStreamException e) {
             e.printStackTrace();
         }
 
-        <span class="code-comment">//Look up <span class="code-keyword">for</span> all available endpoints registered on the bus
-</span>        Bus bus = CXFBusFactory.getDefaultBus();
+        //Look up for all available endpoints registered on the bus
+        Bus bus = CXFBusFactory.getDefaultBus();
         ServerRegistry serverRegistry = bus.getExtension(ServerRegistry.class);
         List&lt;Server&gt; servers = serverRegistry.getServers();
 
-        <span class="code-comment">//<span class="code-keyword">if</span> the incoming message has a namespace contained <span class="code-quote">"2007/03/21"</span>, we redirect the message
-</span>        <span class="code-comment">//to the <span class="code-keyword">new</span> version of service on endpoint <span class="code-quote">"local://localhost:9027/SoapContext/version2/SoapPort"</span>
-</span>        Server targetServer = <span class="code-keyword">null</span>;
-        <span class="code-keyword">for</span> (Server server : servers) {
+        //if the incoming message has a namespace contained "2007/03/21", we redirect the message
+        //to the new version of service on endpoint "local://localhost:9027/SoapContext/version2/SoapPort"
+        Server targetServer = null;
+        for (Server server : servers) {
             targetServer = server;
-            <span class="code-object">String</span> address = server.getEndpoint().getEndpointInfo().getAddress();
-            <span class="code-keyword">if</span> (schemaNamespace.indexOf(<span class="code-quote">"2007/03/21"</span>) != -1) {
-                <span class="code-keyword">if</span> (address.indexOf(<span class="code-quote">"version2"</span>) != -1) {
-                    <span class="code-keyword">break</span>;
+            String address = server.getEndpoint().getEndpointInfo().getAddress();
+            if (schemaNamespace.indexOf("2007/03/21") != -1) {
+                if (address.indexOf("version2") != -1) {
+                    break;
                 }
-            } <span class="code-keyword">else</span> <span class="code-keyword">if</span> (address.indexOf(<span class="code-quote">"version1"</span>) != -1) {
-                <span class="code-keyword">break</span>;
+            } else if (address.indexOf("version1") != -1) {
+                break;
             }
         }
 
-        <span class="code-comment">//Redirect the request
-</span>        MessageObserver mo = targetServer.getMessageObserver();
+        //Redirect the request
+        MessageObserver mo = targetServer.getMessageObserver();
         mo.onMessage(message);
 
-        <span class="code-comment">//Now the response has been put in the message, abort the chain 
-</span>        chain.abort();
+        //Now the response has been put in the message, abort the chain 
+        chain.abort();
     }
 
-}</pre>
+}]]></script>
 </div></div>
 
 

Modified: websites/production/cxf/content/docs/servlet-transport.html
==============================================================================
--- websites/production/cxf/content/docs/servlet-transport.html (original)
+++ websites/production/cxf/content/docs/servlet-transport.html Mon Jun 24 17:10:51 2013
@@ -25,6 +25,18 @@
 <meta http-equiv="Content-type" content="text/html;charset=UTF-8">
 <meta name="keywords" content="business integration, EAI, SOA, Service Oriented Architecture, web services, SOAP, JBI, JMS, WSDL, XML, EDI, Electronic Data Interchange, standards support, integration standards, application integration, middleware, software, solutions, services, CXF, open source">
 <meta name="description" content="Apache CXF, Services Framework - Servlet Transport">
+
+  <link href='http://cxf.apache.org/resources/highlighter/styles/shCore.css' rel='stylesheet' type='text/css' />
+  <link href='http://cxf.apache.org/resources/highlighter/styles/shThemeCXF.css' rel='stylesheet' type='text/css' />
+  <script src='http://cxf.apache.org/resources/highlighter/scripts/shCore.js' type='text/javascript'></script>
+  <script src='http://cxf.apache.org/resources/highlighter/scripts/shBrushJava.js' type='text/javascript'></script>
+  <script src='http://cxf.apache.org/resources/highlighter/scripts/shBrushXml.js' type='text/javascript'></script>
+  
+  <script type="text/javascript">
+  SyntaxHighlighter.defaults['toolbar'] = false;
+  SyntaxHighlighter.all();
+  </script>
+ 
     <title>
 Apache CXF -- Servlet Transport
     </title>
@@ -42,19 +54,15 @@ Apache CXF -- Servlet Transport
     <td id="cell-1-0">&nbsp;</td>
     <td id="cell-1-1">&nbsp;</td>
     <td id="cell-1-2">
-      <div style="padding: 5px;">
-        <div id="banner">
-          <!-- Banner -->
-<div id="banner-content">
+      <!-- Banner -->
+<div class="banner" id="banner"><p>
 <table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="left" colspan="1" nowrap>
 <a shape="rect" href="http://cxf.apache.org/" title="Apache CXF"><span style="font-weight: bold; font-size: 170%; color: white">Apache CXF</span></a>
 </td><td align="right" colspan="1" nowrap>
 <a shape="rect" href="http://www.apache.org/" title="The Apache Sofware Foundation"><img border="0" alt="ASF Logo" src="http://cxf.apache.org/images/asf-logo.png"></a>
 </td></tr></table>
-</div>
-          <!-- Banner -->
-        </div>
-      </div>
+</p></div>
+      <!-- Banner -->
       <div id="top-menu">
         <table border="0" cellpadding="1" cellspacing="0" width="100%">
           <tr>
@@ -94,7 +102,7 @@ Apache CXF -- Servlet Transport
 
 
 <hr>
-<ul class="alternate" type="square"><li>Search
+<ul class="alternate" type="square"><li>Search<br clear="none">
 
 <form enctype="application/x-www-form-urlencoded" method="get" id="cse-search-box" action="http://www.google.com/cse">
   <div>
@@ -132,83 +140,83 @@ Apache CXF -- Servlet Transport
 <p>Next, you'll need to add CXFServlet to your web.xml:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;?xml version=<span class="code-quote">"1.0"</span> encoding=<span class="code-quote">"ISO-8859-1"</span>?&gt;</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
 &lt;!DOCTYPE web-app
-    PUBLIC <span class="code-quote">"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"</span>
-    <span class="code-quote">"http://java.sun.com/dtd/web-app_2_3.dtd"</span>&gt;
-<span class="code-tag">&lt;web-app&gt;</span>
-  <span class="code-tag">&lt;context-param&gt;</span>
-    <span class="code-tag">&lt;param-name&gt;</span>contextConfigLocation<span class="code-tag">&lt;/param-name&gt;</span>
-    <span class="code-tag">&lt;param-value&gt;</span>
+    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+    "http://java.sun.com/dtd/web-app_2_3.dtd"&gt;
+&lt;web-app&gt;
+  &lt;context-param&gt;
+    &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
+    &lt;param-value&gt;
       classpath:com/acme/ws/services.xml
-    <span class="code-tag">&lt;/param-value&gt;</span>
-  <span class="code-tag">&lt;/context-param&gt;</span>
+    &lt;/param-value&gt;
+  &lt;/context-param&gt;
 
-  <span class="code-tag">&lt;listener&gt;</span>
-    <span class="code-tag">&lt;listener-class&gt;</span>
+  &lt;listener&gt;
+    &lt;listener-class&gt;
       org.springframework.web.context.ContextLoaderListener
-    <span class="code-tag">&lt;/listener-class&gt;</span>
-  <span class="code-tag">&lt;/listener&gt;</span>
+    &lt;/listener-class&gt;
+  &lt;/listener&gt;
 
-  <span class="code-tag">&lt;servlet&gt;</span>
-    <span class="code-tag">&lt;servlet-name&gt;</span>CXFServlet<span class="code-tag">&lt;/servlet-name&gt;</span>
-    <span class="code-tag">&lt;display-name&gt;</span>CXF Servlet<span class="code-tag">&lt;/display-name&gt;</span>
-    <span class="code-tag">&lt;servlet-class&gt;</span>
+  &lt;servlet&gt;
+    &lt;servlet-name&gt;CXFServlet&lt;/servlet-name&gt;
+    &lt;display-name&gt;CXF Servlet&lt;/display-name&gt;
+    &lt;servlet-class&gt;
        org.apache.cxf.transport.servlet.CXFServlet
-    <span class="code-tag">&lt;/servlet-class&gt;</span>
-    <span class="code-tag">&lt;load-on-startup&gt;</span>1<span class="code-tag">&lt;/load-on-startup&gt;</span> 
-  <span class="code-tag">&lt;/servlet&gt;</span>
-
-  <span class="code-tag">&lt;servlet-mapping&gt;</span>
-    <span class="code-tag">&lt;servlet-name&gt;</span>CXFServlet<span class="code-tag">&lt;/servlet-name&gt;</span>
-    <span class="code-tag">&lt;url-pattern&gt;</span>/services/*<span class="code-tag">&lt;/url-pattern&gt;</span>
-  <span class="code-tag">&lt;/servlet-mapping&gt;</span>
+    &lt;/servlet-class&gt;
+    &lt;load-on-startup&gt;1&lt;/load-on-startup&gt; 
+  &lt;/servlet&gt;
+
+  &lt;servlet-mapping&gt;
+    &lt;servlet-name&gt;CXFServlet&lt;/servlet-name&gt;
+    &lt;url-pattern&gt;/services/*&lt;/url-pattern&gt;
+  &lt;/servlet-mapping&gt;
 
-<span class="code-tag">&lt;/web-app&gt;</span>
-</pre>
+&lt;/web-app&gt;
+]]></script>
 </div></div>
 
 <p>Alternatively, you can point to the configuration file using a CXFServlet init parameter :</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;?xml version=<span class="code-quote">"1.0"</span> encoding=<span class="code-quote">"ISO-8859-1"</span>?&gt;</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
 &lt;!DOCTYPE web-app
-    PUBLIC <span class="code-quote">"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"</span>
-    <span class="code-quote">"http://java.sun.com/dtd/web-app_2_3.dtd"</span>&gt;
-<span class="code-tag">&lt;web-app&gt;</span>
-
-  <span class="code-tag">&lt;servlet&gt;</span>
-    <span class="code-tag">&lt;servlet-name&gt;</span>CXFServlet<span class="code-tag">&lt;/servlet-name&gt;</span>
-    <span class="code-tag">&lt;display-name&gt;</span>CXF Servlet<span class="code-tag">&lt;/display-name&gt;</span>
-    <span class="code-tag">&lt;servlet-class&gt;</span>
+    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+    "http://java.sun.com/dtd/web-app_2_3.dtd"&gt;
+&lt;web-app&gt;
+
+  &lt;servlet&gt;
+    &lt;servlet-name&gt;CXFServlet&lt;/servlet-name&gt;
+    &lt;display-name&gt;CXF Servlet&lt;/display-name&gt;
+    &lt;servlet-class&gt;
         org.apache.cxf.transport.servlet.CXFServlet
-    <span class="code-tag">&lt;/servlet-class&gt;</span>
-    <span class="code-tag">&lt;init-param&gt;</span>
-      <span class="code-tag">&lt;param-name&gt;</span>config-location<span class="code-tag">&lt;/param-name&gt;</span>
-      <span class="code-tag">&lt;param-value&gt;</span>/WEB-INF/beans.xml<span class="code-tag">&lt;/param-value&gt;</span>    
-    <span class="code-tag">&lt;/init-param&gt;</span>
-    <span class="code-tag">&lt;load-on-startup&gt;</span>1<span class="code-tag">&lt;/load-on-startup&gt;</span>
-  <span class="code-tag">&lt;/servlet&gt;</span>
-
-  <span class="code-tag">&lt;servlet-mapping&gt;</span>
-    <span class="code-tag">&lt;servlet-name&gt;</span>CXFServlet<span class="code-tag">&lt;/servlet-name&gt;</span>
-    <span class="code-tag">&lt;url-pattern&gt;</span>/services/*<span class="code-tag">&lt;/url-pattern&gt;</span>
-  <span class="code-tag">&lt;/servlet-mapping&gt;</span>
+    &lt;/servlet-class&gt;
+    &lt;init-param&gt;
+      &lt;param-name&gt;config-location&lt;/param-name&gt;
+      &lt;param-value&gt;/WEB-INF/beans.xml&lt;/param-value&gt;    
+    &lt;/init-param&gt;
+    &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
+  &lt;/servlet&gt;
+
+  &lt;servlet-mapping&gt;
+    &lt;servlet-name&gt;CXFServlet&lt;/servlet-name&gt;
+    &lt;url-pattern&gt;/services/*&lt;/url-pattern&gt;
+  &lt;/servlet-mapping&gt;
   
-<span class="code-tag">&lt;/web-app&gt;</span>
-</pre>
+&lt;/web-app&gt;
+]]></script>
 </div></div>
 
 
 <p>The next step is to actually write the configuration file:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-&lt;beans xmlns=<span class="code-quote">"http://www.springframework.org/schema/beans"</span>
-      <span class="code-keyword">xmlns:xsi</span>=<span class="code-quote">"http://www.w3.org/2001/XMLSchema-instance"</span>
-      <span class="code-keyword">xmlns:jaxws</span>=<span class="code-quote">"http://cxf.apache.org/jaxws"</span>
-      <span class="code-keyword">xmlns:jaxrs</span>=<span class="code-quote">"http://cxf.apache.org/jaxrs"</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;beans xmlns="http://www.springframework.org/schema/beans"
+      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+      xmlns:jaxws="http://cxf.apache.org/jaxws"
+      xmlns:jaxrs="http://cxf.apache.org/jaxrs"
       xsi:schemaLocation="
          http://www.springframework.org/schema/beans
          http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
@@ -217,21 +225,21 @@ Apache CXF -- Servlet Transport
          http://cxf.apache.org/jaxrs
          http://cxf.apache.org/schemas/jaxrs.xsd"&gt;
 
-  <span class="code-tag">&lt;import resource=<span class="code-quote">"classpath:META-INF/cxf/cxf.xml"</span>/&gt;</span>
-  <span class="code-tag">&lt;import resource=<span class="code-quote">"classpath:META-INF/cxf/cxf-extension-soap.xml"</span>/&gt;</span>
-  <span class="code-tag">&lt;import resource=<span class="code-quote">"classpath:META-INF/cxf/cxf-extension-jaxrs-binding.xml"</span>/&gt;</span>
-  <span class="code-tag">&lt;import resource=<span class="code-quote">"classpath:META-INF/cxf/cxf-servlet.xml"</span>/&gt;</span>
-
-  &lt;jaxws:endpoint id=<span class="code-quote">"greeter"</span>
-      implementor=<span class="code-quote">"org.apache.hello_soap_http.GreeterImpl"</span>
-      address=<span class="code-quote">"/Greeter1"</span>/&gt;
-
-  &lt;jaxrs:server id=<span class="code-quote">"greeterRest"</span>
-      serviceClass=<span class="code-quote">"org.apache.hello_soap_http.GreeterImpl"</span>
-      address=<span class="code-quote">"/GreeterRest"</span>/&gt; 
+  &lt;import resource="classpath:META-INF/cxf/cxf.xml"/&gt;
+  &lt;import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/&gt;
+  &lt;import resource="classpath:META-INF/cxf/cxf-extension-jaxrs-binding.xml"/&gt;
+  &lt;import resource="classpath:META-INF/cxf/cxf-servlet.xml"/&gt;
+
+  &lt;jaxws:endpoint id="greeter"
+      implementor="org.apache.hello_soap_http.GreeterImpl"
+      address="/Greeter1"/&gt;
+
+  &lt;jaxrs:server id="greeterRest"
+      serviceClass="org.apache.hello_soap_http.GreeterImpl"
+      address="/GreeterRest"/&gt; 
 
-<span class="code-tag">&lt;/beans&gt;</span>
-</pre>
+&lt;/beans&gt;
+]]></script>
 </div></div>
 <p>Here we're creating a JAX-WS endpoint based on our implementation class, GreeterImpl.</p>
 
@@ -271,42 +279,42 @@ Apache CXF -- Servlet Transport
 <p>Option1. Delegating to Default Servlet</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;servlet&gt;</span>
-   <span class="code-tag">&lt;servlet-name&gt;</span>CXFServlet<span class="code-tag">&lt;/servlet-name&gt;</span>
-   <span class="code-tag">&lt;display-name&gt;</span>CXF Servlet<span class="code-tag">&lt;/display-name&gt;</span>
-   <span class="code-tag">&lt;servlet-class&gt;</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;servlet&gt;
+   &lt;servlet-name&gt;CXFServlet&lt;/servlet-name&gt;
+   &lt;display-name&gt;CXF Servlet&lt;/display-name&gt;
+   &lt;servlet-class&gt;
       org.apache.cxf.transport.servlet.CXFServlet
-   <span class="code-tag">&lt;/servlet-class&gt;</span>
-   <span class="code-tag">&lt;init-param&gt;</span>
-      <span class="code-tag">&lt;param-name&gt;</span>redirects-list<span class="code-tag">&lt;/param-name&gt;</span>
-      <span class="code-tag">&lt;param-value&gt;</span>
+   &lt;/servlet-class&gt;
+   &lt;init-param&gt;
+      &lt;param-name&gt;redirects-list&lt;/param-name&gt;
+      &lt;param-value&gt;
          /
          /index.html
-      <span class="code-tag">&lt;/param-value&gt;</span>
-   <span class="code-tag">&lt;/init-param&gt;</span>
-   <span class="code-tag">&lt;init-param&gt;</span>
-       <span class="code-tag">&lt;param-name&gt;</span>redirect-attributes<span class="code-tag">&lt;/param-name&gt;</span>
-       <span class="code-tag">&lt;param-value&gt;</span>
+      &lt;/param-value&gt;
+   &lt;/init-param&gt;
+   &lt;init-param&gt;
+       &lt;param-name&gt;redirect-attributes&lt;/param-name&gt;
+       &lt;param-value&gt;
          javax.servlet.include.request_uri
-       <span class="code-tag">&lt;/param-value&gt;</span>
-   <span class="code-tag">&lt;/init-param&gt;</span>
-   <span class="code-tag">&lt;init-param&gt;</span>
-       <span class="code-tag">&lt;param-name&gt;</span>redirect-servlet-name<span class="code-tag">&lt;/param-name&gt;</span>
-       <span class="code-tag">&lt;param-value&gt;</span>default<span class="code-tag">&lt;/param-value&gt;</span>
-   <span class="code-tag">&lt;/init-param&gt;</span>
-   <span class="code-tag">&lt;load-on-startup&gt;</span>1<span class="code-tag">&lt;/load-on-startup&gt;</span>
-<span class="code-tag">&lt;/servlet&gt;</span>
+       &lt;/param-value&gt;
+   &lt;/init-param&gt;
+   &lt;init-param&gt;
+       &lt;param-name&gt;redirect-servlet-name&lt;/param-name&gt;
+       &lt;param-value&gt;default&lt;/param-value&gt;
+   &lt;/init-param&gt;
+   &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
+&lt;/servlet&gt;
  
-<span class="code-tag">&lt;servlet-mapping&gt;</span>
-   <span class="code-tag">&lt;servlet-name&gt;</span>CXFServlet<span class="code-tag">&lt;/servlet-name&gt;</span>
-   <span class="code-tag">&lt;url-pattern&gt;</span>/*<span class="code-tag">&lt;/url-pattern&gt;</span>
-<span class="code-tag">&lt;/servlet-mapping&gt;</span>
-
-<span class="code-tag">&lt;welcome-file-list&gt;</span>
-   <span class="code-tag">&lt;welcome-file&gt;</span>index.html<span class="code-tag">&lt;/welcome-file&gt;</span>
-<span class="code-tag">&lt;/welcome-file-list&gt;</span>
-</pre>
+&lt;servlet-mapping&gt;
+   &lt;servlet-name&gt;CXFServlet&lt;/servlet-name&gt;
+   &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
+&lt;/servlet-mapping&gt;
+
+&lt;welcome-file-list&gt;
+   &lt;welcome-file&gt;index.html&lt;/welcome-file&gt;
+&lt;/welcome-file-list&gt;
+]]></script>
 </div></div>
 
 <p>Note that the redirects-list parameter has two space separated values, "/" and "index.html". The request attribute 'javax.servlet.include.request_uri' might need to be set for the underlying container like Jetty to successfully read "index.html".</p>
@@ -314,28 +322,28 @@ Apache CXF -- Servlet Transport
 <p>Option2. Using CXFServlet itself to read index.html</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;servlet&gt;</span>
-   <span class="code-tag">&lt;servlet-name&gt;</span>CXFServlet<span class="code-tag">&lt;/servlet-name&gt;</span>
-   <span class="code-tag">&lt;display-name&gt;</span>CXF Servlet<span class="code-tag">&lt;/display-name&gt;</span>
-   <span class="code-tag">&lt;servlet-class&gt;</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;servlet&gt;
+   &lt;servlet-name&gt;CXFServlet&lt;/servlet-name&gt;
+   &lt;display-name&gt;CXF Servlet&lt;/display-name&gt;
+   &lt;servlet-class&gt;
       org.apache.cxf.transport.servlet.CXFServlet
-   <span class="code-tag">&lt;/servlet-class&gt;</span>
-   <span class="code-tag">&lt;init-param&gt;</span>
-      <span class="code-tag">&lt;param-name&gt;</span>static-welcome-file<span class="code-tag">&lt;/param-name&gt;</span>
-      <span class="code-tag">&lt;param-value&gt;</span>/index.html<span class="code-tag">&lt;/param-value&gt;</span>
-   <span class="code-tag">&lt;/init-param&gt;</span> 
-   <span class="code-tag">&lt;init-param&gt;</span>
-      <span class="code-tag">&lt;param-name&gt;</span>static-resources-list<span class="code-tag">&lt;/param-name&gt;</span>
-      <span class="code-tag">&lt;param-value&gt;</span>/index.html<span class="code-tag">&lt;/param-value&gt;</span>
-   <span class="code-tag">&lt;/init-param&gt;</span> 
-   <span class="code-tag">&lt;load-on-startup&gt;</span>1<span class="code-tag">&lt;/load-on-startup&gt;</span>
-<span class="code-tag">&lt;/servlet&gt;</span>
-<span class="code-tag">&lt;servlet-mapping&gt;</span>
-   <span class="code-tag">&lt;servlet-name&gt;</span>CXFServlet<span class="code-tag">&lt;/servlet-name&gt;</span>
-   <span class="code-tag">&lt;url-pattern&gt;</span>/*<span class="code-tag">&lt;/url-pattern&gt;</span>
-<span class="code-tag">&lt;/servlet-mapping&gt;</span>
-</pre>
+   &lt;/servlet-class&gt;
+   &lt;init-param&gt;
+      &lt;param-name&gt;static-welcome-file&lt;/param-name&gt;
+      &lt;param-value&gt;/index.html&lt;/param-value&gt;
+   &lt;/init-param&gt; 
+   &lt;init-param&gt;
+      &lt;param-name&gt;static-resources-list&lt;/param-name&gt;
+      &lt;param-value&gt;/index.html&lt;/param-value&gt;
+   &lt;/init-param&gt; 
+   &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
+&lt;/servlet&gt;
+&lt;servlet-mapping&gt;
+   &lt;servlet-name&gt;CXFServlet&lt;/servlet-name&gt;
+   &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
+&lt;/servlet-mapping&gt;
+]]></script>
 </div></div>
 
 
@@ -343,18 +351,18 @@ Apache CXF -- Servlet Transport
 
 <p>Once your Servlet is registered in your web.xml, you should set the default bus with CXFServlet's bus to make sure that CXF uses it as its HTTP Transport. Simply publish with the related path "Greeter" and your service should appear at the address you specify:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-<span class="code-keyword">import</span> javax.xml.ws.Endpoint;
-<span class="code-keyword">import</span> org.apache.cxf.Bus;
-<span class="code-keyword">import</span> org.apache.cxf.BusFactory;
-<span class="code-keyword">import</span> org.apache.cxf.transport.servlet.CXFServlet;
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+import javax.xml.ws.Endpoint;
+import org.apache.cxf.Bus;
+import org.apache.cxf.BusFactory;
+import org.apache.cxf.transport.servlet.CXFServlet;
 .....
-<span class="code-comment">// cxf is the instance of the CXFServlet, you could also get 
-</span><span class="code-comment">// <span class="code-keyword">this</span> instance by extending the CXFServlet
-</span>Bus bus = cxf.getBus();
+// cxf is the instance of the CXFServlet, you could also get 
+// this instance by extending the CXFServlet
+Bus bus = cxf.getBus();
 BusFactory.setDefaultBus(bus); 
-Endpoint.publish(<span class="code-quote">"/Greeter"</span>, <span class="code-keyword">new</span> GreeterImpl());
-</pre>
+Endpoint.publish("/Greeter", new GreeterImpl());
+]]></script>
 </div></div>
 <p>The one thing you must ensure is that your CXFServlet is set up to listen on that path. Otherwise the CXFServlet will never receive the requests. </p>
 
@@ -369,73 +377,73 @@ Endpoint.publish(<span class="code-quote
 
 <p>A user who doesn't want to touch any Spring stuff could also publish the endpoint with CXF servlet transport. First you should extend the CXFNonSpringServlet and then override the method loadBus, e.g.:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-<span class="code-keyword">import</span> javax.xml.ws.Endpoint;
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+import javax.xml.ws.Endpoint;
 ...  
   
     @Override
-    <span class="code-keyword">public</span> void loadBus(ServletConfig servletConfig) <span class="code-keyword">throws</span> ServletException {
-        <span class="code-keyword">super</span>.loadBus(servletConfig);        
+    public void loadBus(ServletConfig servletConfig) throws ServletException {
+        super.loadBus(servletConfig);        
         
-        <span class="code-comment">// You could add the endpoint publish codes here
-</span>        Bus bus = cxf.getBus();
+        // You could add the endpoint publish codes here
+        Bus bus = cxf.getBus();
         BusFactory.setDefaultBus(bus); 
-        Endpoint.publish(<span class="code-quote">"/Greeter"</span>, <span class="code-keyword">new</span> GreeterImpl());
+        Endpoint.publish("/Greeter", new GreeterImpl());
         
-        <span class="code-comment">// You can als use the simple frontend API to <span class="code-keyword">do</span> <span class="code-keyword">this</span>
-</span>        ServerFactoryBean factroy = <span class="code-keyword">new</span> ServerFactoryBean();
+        // You can als use the simple frontend API to do this
+        ServerFactoryBean factroy = new ServerFactoryBean();
         factory.setBus(bus);
         factory.setServiceClass(GreeterImpl.class);
-        factory.setAddress(<span class="code-quote">"/Greeter"</span>);
+        factory.setAddress("/Greeter");
         factory.create();              
     }
-</pre>
+]]></script>
 </div></div>
 
 <p>If you are using the Jetty as the embedded servlet engine, you could publish endpoint like this:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-<span class="code-keyword">import</span> javax.xml.ws.Endpoint;
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+import javax.xml.ws.Endpoint;
 ...
 
-        <span class="code-comment">// Setup the system properties to use the CXFBusFactory not the SpringBusFactory
-</span>        <span class="code-object">String</span> busFactory = 
-            <span class="code-object">System</span>.getProperty(BusFactory.BUS_FACTORY_PROPERTY_NAME);
-        <span class="code-object">System</span>.setProperty(BusFactory.BUS_FACTORY_PROPERTY_NAME, 
-            <span class="code-quote">"org.apache.cxf.bus.CXFBusFactory"</span>);
-        <span class="code-keyword">try</span> {
-            <span class="code-comment">// Start up the jetty embedded server
-</span>            httpServer = <span class="code-keyword">new</span> Server(9000);
-            ContextHandlerCollection contexts = <span class="code-keyword">new</span> ContextHandlerCollection();
+        // Setup the system properties to use the CXFBusFactory not the SpringBusFactory
+        String busFactory = 
+            System.getProperty(BusFactory.BUS_FACTORY_PROPERTY_NAME);
+        System.setProperty(BusFactory.BUS_FACTORY_PROPERTY_NAME, 
+            "org.apache.cxf.bus.CXFBusFactory");
+        try {
+            // Start up the jetty embedded server
+            httpServer = new Server(9000);
+            ContextHandlerCollection contexts = new ContextHandlerCollection();
             httpServer.setHandler(contexts);
             
-            Context root = <span class="code-keyword">new</span> Context(contexts, <span class="code-quote">"/"</span>, Context.SESSIONS);
+            Context root = new Context(contexts, "/", Context.SESSIONS);
             
-            CXFNonSpringServlet cxf = <span class="code-keyword">new</span> CXFNonSpringServlet();
-            ServletHolder servlet = <span class="code-keyword">new</span> ServletHolder(cxf);
-            servlet.setName(<span class="code-quote">"soap"</span>);
-            servlet.setForcedPath(<span class="code-quote">"soap"</span>);
-            root.addServlet(servlet, <span class="code-quote">"/soap/*"</span>);
+            CXFNonSpringServlet cxf = new CXFNonSpringServlet();
+            ServletHolder servlet = new ServletHolder(cxf);
+            servlet.setName("soap");
+            servlet.setForcedPath("soap");
+            root.addServlet(servlet, "/soap/*");
             
             httpServer.start();
             
             Bus bus = cxf.getBus();
             setBus(bus);
             BusFactory.setDefaultBus(bus);
-            GreeterImpl impl = <span class="code-keyword">new</span> GreeterImpl();
-            Endpoint.publish(<span class="code-quote">"/Greeter"</span>, impl);
-        } <span class="code-keyword">catch</span> (Exception e) {
-            <span class="code-keyword">throw</span> <span class="code-keyword">new</span> RuntimeException(e);
-        } <span class="code-keyword">finally</span> {
-            <span class="code-comment">// clean up the system properties
-</span>            <span class="code-keyword">if</span> (busFactory != <span class="code-keyword">null</span>) {
-                <span class="code-object">System</span>.setProperty(BusFactory.BUS_FACTORY_PROPERTY_NAME, 
+            GreeterImpl impl = new GreeterImpl();
+            Endpoint.publish("/Greeter", impl);
+        } catch (Exception e) {
+            throw new RuntimeException(e);
+        } finally {
+            // clean up the system properties
+            if (busFactory != null) {
+                System.setProperty(BusFactory.BUS_FACTORY_PROPERTY_NAME, 
                    busFactory);
-            } <span class="code-keyword">else</span> {
-                <span class="code-object">System</span>.clearProperty(BusFactory.BUS_FACTORY_PROPERTY_NAME);
+            } else {
+                System.clearProperty(BusFactory.BUS_FACTORY_PROPERTY_NAME);
             }
         }
-</pre>
+]]></script>
 </div></div>
 
 <h2><a shape="rect" name="ServletTransport-AccessingtheMessageContextand%2ForHTTPRequestandResponse"></a>Accessing the MessageContext and/or HTTP Request and Response</h2>
@@ -444,18 +452,18 @@ Endpoint.publish(<span class="code-quote
 
 <p>First, declare a private field for the <a shape="rect" class="external-link" href="http://java.sun.com/javase/6/docs/api/javax/xml/ws/WebServiceContext.html" rel="nofollow">WebServiceContext</a> in your service implementation, and annotate it as a resource:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
 @Resource
-<span class="code-keyword">private</span> WebServiceContext context;
-</pre>
+private WebServiceContext context;
+]]></script>
 </div></div>
 <p>Then, within your implementing methods, you can access the MessageContext, HttpServletRequest, and HttpServletResponse as follows:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-<span class="code-keyword">import</span> javax.servlet.http.HttpServletRequest;
-<span class="code-keyword">import</span> javax.servlet.http.HttpServletResponse;
-<span class="code-keyword">import</span> javax.xml.ws.handler.MessageContext;
-<span class="code-keyword">import</span> org.apache.cxf.transport.http.AbstractHTTPDestination;
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import javax.xml.ws.handler.MessageContext;
+import org.apache.cxf.transport.http.AbstractHTTPDestination;
 ...
 
 MessageContext ctx = context.getMessageContext();
@@ -463,7 +471,7 @@ HttpServletRequest request = (HttpServle
     ctx.get(AbstractHTTPDestination.HTTP_REQUEST);
 HttpServletResponse response = (HttpServletResponse) 
     ctx.get(AbstractHTTPDestination.HTTP_RESPONSE);
-</pre>
+]]></script>
 </div></div>
 <p>Of course, it is always a good idea to program defensively if using transport-specific entities like the HttpServletRequest and HttpServletResponse.  If the transport were changed (for instance to the JMS transport), then these values would likely be null.</p></div>
            </div>



Mime
View raw message