cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r888633 - in /websites/production/cxf/content: cache/docs.pageCache docs/validationfeature.html
Date Sat, 30 Nov 2013 17:48:16 GMT
Author: buildbot
Date: Sat Nov 30 17:48:16 2013
New Revision: 888633

Log:
Production update by buildbot for cxf

Modified:
    websites/production/cxf/content/cache/docs.pageCache
    websites/production/cxf/content/docs/validationfeature.html

Modified: websites/production/cxf/content/cache/docs.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/cxf/content/docs/validationfeature.html
==============================================================================
--- websites/production/cxf/content/docs/validationfeature.html (original)
+++ websites/production/cxf/content/docs/validationfeature.html Sat Nov 30 17:48:16 2013
@@ -122,7 +122,65 @@ Apache CXF -- ValidationFeature
            <div class="wiki-content">
 <div id="ConfluenceContent"><p><span style="font-size:2em;font-weight:bold">
Bean Validation Feature </span></p>
 
-</div>
+<div>
+<ul><li><a shape="rect" href="#ValidationFeature-Introduction">Introduction</a></li><li><a
shape="rect" href="#ValidationFeature-Dependencies">Dependencies</a></li><ul><li><a
shape="rect" href="#ValidationFeature-UsingHibernateValidatorasbeanvalidationprovider">Using
Hibernate Validator as bean validation provider</a></li><li><a shape="rect"
href="#ValidationFeature-UsingApacheBValasbeanvalidationprovider">Using Apache BVal as
bean validation provider</a></li></ul></ul></div>
+
+<h2><a shape="rect" name="ValidationFeature-Introduction"></a>Introduction</h2>
+<p>Among many other features, JAX-RS 2.0 specification introduces Bean Validation 1.1
support as a mandatory part of implementation. In an effort to fulfill this requirement, Apache
CXF provides full-fledge validation support for JAX-RS / JAX-WS endpoints, both for request
parameters and response values.</p>
+
+<h2><a shape="rect" name="ValidationFeature-Dependencies"></a>Dependencies</h2>
+<p>Bean Validation support in Apache CXF is implementation-independent and is built
solely using API. As such, the only required dependency is:</p>
+<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent
panelContent">
+<pre>&lt;dependency&gt;
+    &lt;groupId&gt;javax.validation&lt;/groupId&gt;
+    &lt;artifactId&gt;validation-api&lt;/artifactId&gt;
+    &lt;version&gt;1.1.0.Final&lt;/version&gt;
+&lt;/dependency&gt;
+</pre>
+</div></div>
+
+<p>API doesn't provide implementation but there are couple of choices to pick from.
Please notice that bean validation implementation is taken from the ones present in classpath.
If no implementation is detected, bean validation is not available for use and constraints
validation won't have any effect. </p>
+
+<h3><a shape="rect" name="ValidationFeature-UsingHibernateValidatorasbeanvalidationprovider"></a>Using
Hibernate Validator as bean validation provider</h3>
+<p><a shape="rect" class="external-link" href="http://www.hibernate.org/subprojects/validator.html"
rel="nofollow">http://www.hibernate.org/subprojects/validator.html</a></p>
+
+<p>Hibernate Validator is mature and feature-rich validation provider with full support
of Bean Validation 1.1 (as of version 5.x.x which is the reference implementation for JSR
349 - Bean Validation 1.1 API). To use Hibernate Validator in your Apache CXF projects, couple
of additional dependencies should be included:</p>
+
+<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent
panelContent">
+<pre>&lt;dependency&gt;
+    &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
+    &lt;artifactId&gt;hibernate-validator&lt;/artifactId&gt;
+    &lt;version&gt;5.0.1.Final&lt;/version&gt;
+&lt;/dependency&gt;
+
+&lt;dependency&gt;
+    &lt;groupId&gt;javax.el&lt;/groupId&gt;
+    &lt;artifactId&gt;javax.el-api&lt;/artifactId&gt;
+    &lt;version&gt;3.0-b02&lt;/version&gt;
+&lt;/dependency&gt;
+
+&lt;dependency&gt;
+    &lt;groupId&gt;org.glassfish&lt;/groupId&gt;
+    &lt;artifactId&gt;javax.el&lt;/artifactId&gt;
+    &lt;version&gt;3.0-b01/version&gt;
+&lt;/dependency&gt;
+</pre>
+</div></div>
+
+<p>Hibernate Validator uses Java Expression Language 3.0 in order to provide better
validation messages support so the respective EL 3.0 API and implementation dependencies should
be included.  </p>
+
+<h3><a shape="rect" name="ValidationFeature-UsingApacheBValasbeanvalidationprovider"></a>Using
Apache BVal as bean validation provider</h3>
+<p><a shape="rect" class="external-link" href="http://bval.apache.org/">http://bval.apache.org/</a></p>
+
+<p>Current stable version of Apache BVal (0.5) doesn't support Bean Validation 1.1
but the upcoming 1.1.0 should have it fully implemented (at the moment 1.1.0-alpha-SNAPSHOT
could be used).</p>
+<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent
panelContent">
+<pre>&lt;dependency&gt;
+    &lt;groupId&gt;org.apache.bval&lt;/groupId&gt;
+    &lt;artifactId&gt;bval-jsr&lt;/artifactId&gt;
+    &lt;version&gt;1.1.0-alpha-SNAPSHOT&lt;/version&gt;
+&lt;/dependency&gt;
+</pre>
+</div></div></div>
            </div>
            <!-- Content -->
          </td>



Mime
View raw message