You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juneau.apache.org by ja...@apache.org on 2017/05/12 21:29:37 UTC
[01/15] incubator-juneau-website git commit: Update javadocs.
Repository: incubator-juneau-website
Updated Branches:
refs/heads/asf-site 7ae6e2992 -> 0c968486d
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/src-html/org/apache/juneau/rest/annotation/Header.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/rest/annotation/Header.html b/content/site/apidocs/src-html/org/apache/juneau/rest/annotation/Header.html
index 2a00573..9120b83 100644
--- a/content/site/apidocs/src-html/org/apache/juneau/rest/annotation/Header.html
+++ b/content/site/apidocs/src-html/org/apache/juneau/rest/annotation/Header.html
@@ -57,7 +57,12 @@
<span class="sourceLineNo">049</span> * HTTP header name.<a name="line.49"></a>
<span class="sourceLineNo">050</span> */<a name="line.50"></a>
<span class="sourceLineNo">051</span> String value();<a name="line.51"></a>
-<span class="sourceLineNo">052</span>}<a name="line.52"></a>
+<span class="sourceLineNo">052</span><a name="line.52"></a>
+<span class="sourceLineNo">053</span> /**<a name="line.53"></a>
+<span class="sourceLineNo">054</span> * The default value for this header if it's not present in the request.<a name="line.54"></a>
+<span class="sourceLineNo">055</span> */<a name="line.55"></a>
+<span class="sourceLineNo">056</span> String def() default "";<a name="line.56"></a>
+<span class="sourceLineNo">057</span>}<a name="line.57"></a>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/src-html/org/apache/juneau/rest/annotation/Query.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/rest/annotation/Query.html b/content/site/apidocs/src-html/org/apache/juneau/rest/annotation/Query.html
index 6e9c3e1..5276293 100644
--- a/content/site/apidocs/src-html/org/apache/juneau/rest/annotation/Query.html
+++ b/content/site/apidocs/src-html/org/apache/juneau/rest/annotation/Query.html
@@ -97,7 +97,12 @@
<span class="sourceLineNo">089</span> * <js>"foo"</js> when using UON mode.<a name="line.89"></a>
<span class="sourceLineNo">090</span> */<a name="line.90"></a>
<span class="sourceLineNo">091</span> String format() default "INHERIT";<a name="line.91"></a>
-<span class="sourceLineNo">092</span>}<a name="line.92"></a>
+<span class="sourceLineNo">092</span><a name="line.92"></a>
+<span class="sourceLineNo">093</span> /**<a name="line.93"></a>
+<span class="sourceLineNo">094</span> * The default value for this query parameter if it's not present in the request.<a name="line.94"></a>
+<span class="sourceLineNo">095</span> */<a name="line.95"></a>
+<span class="sourceLineNo">096</span> String def() default "";<a name="line.96"></a>
+<span class="sourceLineNo">097</span>}<a name="line.97"></a>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/src-html/org/apache/juneau/rest/annotation/RestMethod.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/rest/annotation/RestMethod.html b/content/site/apidocs/src-html/org/apache/juneau/rest/annotation/RestMethod.html
index 843ff09..172ba50 100644
--- a/content/site/apidocs/src-html/org/apache/juneau/rest/annotation/RestMethod.html
+++ b/content/site/apidocs/src-html/org/apache/juneau/rest/annotation/RestMethod.html
@@ -297,261 +297,304 @@
<span class="sourceLineNo">289</span> * ...<a name="line.289"></a>
<span class="sourceLineNo">290</span> * }<a name="line.290"></a>
<span class="sourceLineNo">291</span> * </p><a name="line.291"></a>
-<span class="sourceLineNo">292</span> */<a name="line.292"></a>
-<span class="sourceLineNo">293</span> String[] defaultRequestHeaders() default {};<a name="line.293"></a>
-<span class="sourceLineNo">294</span><a name="line.294"></a>
-<span class="sourceLineNo">295</span> /**<a name="line.295"></a>
-<span class="sourceLineNo">296</span> * Optional summary for the exposed API.<a name="line.296"></a>
-<span class="sourceLineNo">297</span> * <p><a name="line.297"></a>
-<span class="sourceLineNo">298</span> * This summary is used in the following locations:<a name="line.298"></a>
-<span class="sourceLineNo">299</span> * <ul class='spaced-list'><a name="line.299"></a>
-<span class="sourceLineNo">300</span> * <li>The value returned by {@link RestRequest#getMethodSummary()}.<a name="line.300"></a>
-<span class="sourceLineNo">301</span> * <li>The <js>"$R{methodSummary}"</js> variable.<a name="line.301"></a>
-<span class="sourceLineNo">302</span> * <li>The summary of the method in the Swagger page.<a name="line.302"></a>
-<span class="sourceLineNo">303</span> * </ul><a name="line.303"></a>
-<span class="sourceLineNo">304</span> * <p><a name="line.304"></a>
-<span class="sourceLineNo">305</span> * The default value pulls the description from the <code>(className.?)[javaMethodName].summary</code> entry in the servlet resource bundle.<a name="line.305"></a>
-<span class="sourceLineNo">306</span> * (e.g. <js>"MyClass.myMethod.summary = foo"</js> or <js>"myMethod.summary = foo"</js>).<a name="line.306"></a>
-<span class="sourceLineNo">307</span> * <p><a name="line.307"></a>
-<span class="sourceLineNo">308</span> * This field value can contain variables (e.g. "$L{my.localized.variable}").<a name="line.308"></a>
-<span class="sourceLineNo">309</span> * <p><a name="line.309"></a>
-<span class="sourceLineNo">310</span> * Corresponds to the swagger field <code>/paths/{path}/{method}/summary</code>.<a name="line.310"></a>
-<span class="sourceLineNo">311</span> */<a name="line.311"></a>
-<span class="sourceLineNo">312</span> String summary() default "";<a name="line.312"></a>
-<span class="sourceLineNo">313</span><a name="line.313"></a>
-<span class="sourceLineNo">314</span> /**<a name="line.314"></a>
-<span class="sourceLineNo">315</span> * Optional description for the exposed API.<a name="line.315"></a>
-<span class="sourceLineNo">316</span> * <p><a name="line.316"></a>
-<span class="sourceLineNo">317</span> * This description is used in the following locations:<a name="line.317"></a>
-<span class="sourceLineNo">318</span> * <ul class='spaced-list'><a name="line.318"></a>
-<span class="sourceLineNo">319</span> * <li>The value returned by {@link RestRequest#getMethodDescription()}.<a name="line.319"></a>
-<span class="sourceLineNo">320</span> * <li>The <js>"$R{methodDescription}"</js> variable.<a name="line.320"></a>
-<span class="sourceLineNo">321</span> * <li>The description of the method in the Swagger page.<a name="line.321"></a>
-<span class="sourceLineNo">322</span> * </ul><a name="line.322"></a>
-<span class="sourceLineNo">323</span> * <p><a name="line.323"></a>
-<span class="sourceLineNo">324</span> * The default value pulls the description from the <code>(className.?)[javaMethodName].description</code> entry in the servlet resource bundle.<a name="line.324"></a>
-<span class="sourceLineNo">325</span> * (e.g. <js>"MyClass.myMethod.description = foo"</js> or <js>"myMethod.description = foo"</js>).<a name="line.325"></a>
-<span class="sourceLineNo">326</span> * <p><a name="line.326"></a>
-<span class="sourceLineNo">327</span> * This field value can contain variables (e.g. "$L{my.localized.variable}").<a name="line.327"></a>
-<span class="sourceLineNo">328</span> * <p><a name="line.328"></a>
-<span class="sourceLineNo">329</span> * Corresponds to the swagger field <code>/paths/{path}/{method}/description</code>.<a name="line.329"></a>
-<span class="sourceLineNo">330</span> */<a name="line.330"></a>
-<span class="sourceLineNo">331</span> String description() default "";<a name="line.331"></a>
-<span class="sourceLineNo">332</span><a name="line.332"></a>
-<span class="sourceLineNo">333</span> /**<a name="line.333"></a>
-<span class="sourceLineNo">334</span> * Optional external documentation information for the exposed API.<a name="line.334"></a>
-<span class="sourceLineNo">335</span> * <p><a name="line.335"></a>
-<span class="sourceLineNo">336</span> * Used to populate the Swagger external documentation field.<a name="line.336"></a>
-<span class="sourceLineNo">337</span> * <p><a name="line.337"></a>
-<span class="sourceLineNo">338</span> * A simplified JSON string with the following fields:<a name="line.338"></a>
-<span class="sourceLineNo">339</span> * <p class='bcode'><a name="line.339"></a>
-<span class="sourceLineNo">340</span> * {<a name="line.340"></a>
-<span class="sourceLineNo">341</span> * description: string,<a name="line.341"></a>
-<span class="sourceLineNo">342</span> * url: string<a name="line.342"></a>
-<span class="sourceLineNo">343</span> * }<a name="line.343"></a>
-<span class="sourceLineNo">344</span> * </p><a name="line.344"></a>
-<span class="sourceLineNo">345</span> * <p><a name="line.345"></a>
-<span class="sourceLineNo">346</span> * The default value pulls the description from the <code>(className.?)[javaMethodName].externalDocs</code> entry in the servlet resource bundle.<a name="line.346"></a>
-<span class="sourceLineNo">347</span> * (e.g. <js>"MyClass.myMethod.externalDocs = {url:'http://juneau.apache.org'}"</js> or <js>"myMethod.externalDocs = {url:'http://juneau.apache.org'}"</js>).<a name="line.347"></a>
-<span class="sourceLineNo">348</span> *<a name="line.348"></a>
-<span class="sourceLineNo">349</span> * <h5 class='section'>Example:</h5><a name="line.349"></a>
-<span class="sourceLineNo">350</span> * <p class='bcode'><a name="line.350"></a>
-<span class="sourceLineNo">351</span> * <ja>@RestMethod</ja>(externalDocs=<js>"{url:'http://juneau.apache.org'}"</js>)<a name="line.351"></a>
-<span class="sourceLineNo">352</span> * </p><a name="line.352"></a>
-<span class="sourceLineNo">353</span> * <p><a name="line.353"></a>
-<span class="sourceLineNo">354</span> * This field can contain variables (e.g. "$L{my.localized.variable}").<a name="line.354"></a>
-<span class="sourceLineNo">355</span> * <p><a name="line.355"></a>
-<span class="sourceLineNo">356</span> * Corresponds to the swagger field <code>/paths/{path}/{method}/externalDocs</code>.<a name="line.356"></a>
-<span class="sourceLineNo">357</span> */<a name="line.357"></a>
-<span class="sourceLineNo">358</span> String externalDocs() default "";<a name="line.358"></a>
-<span class="sourceLineNo">359</span><a name="line.359"></a>
-<span class="sourceLineNo">360</span> /**<a name="line.360"></a>
-<span class="sourceLineNo">361</span> * Optional tagging information for the exposed API.<a name="line.361"></a>
-<span class="sourceLineNo">362</span> * <p><a name="line.362"></a>
-<span class="sourceLineNo">363</span> * Used to populate the Swagger tags field.<a name="line.363"></a>
-<span class="sourceLineNo">364</span> * <p><a name="line.364"></a>
-<span class="sourceLineNo">365</span> * A comma-delimited list of tags for API documentation control.<a name="line.365"></a>
-<span class="sourceLineNo">366</span> * Tags can be used for logical grouping of operations by resources or any other qualifier.<a name="line.366"></a>
-<span class="sourceLineNo">367</span> * <p><a name="line.367"></a>
-<span class="sourceLineNo">368</span> * The default value pulls the description from the <code>(className.?)[javaMethodName].tags</code> entry in the servlet resource bundle.<a name="line.368"></a>
-<span class="sourceLineNo">369</span> * (e.g. <js>"MyClass.myMethod.tags = foo,bar"</js> or <js>"myMethod.tags = foo,bar"</js>).<a name="line.369"></a>
-<span class="sourceLineNo">370</span> *<a name="line.370"></a>
-<span class="sourceLineNo">371</span> * <h5 class='section'>Example:</h5><a name="line.371"></a>
-<span class="sourceLineNo">372</span> * <p class='bcode'><a name="line.372"></a>
-<span class="sourceLineNo">373</span> * <ja>@RestMethod</ja>(tags=<js>"foo,bar"</js>)<a name="line.373"></a>
-<span class="sourceLineNo">374</span> * </p><a name="line.374"></a>
-<span class="sourceLineNo">375</span> * <p><a name="line.375"></a>
-<span class="sourceLineNo">376</span> * This field can contain variables (e.g. "$L{my.localized.variable}").<a name="line.376"></a>
-<span class="sourceLineNo">377</span> * <p><a name="line.377"></a>
-<span class="sourceLineNo">378</span> * Corresponds to the swagger field <code>/paths/{path}/{method}/tags</code>.<a name="line.378"></a>
-<span class="sourceLineNo">379</span> */<a name="line.379"></a>
-<span class="sourceLineNo">380</span> String tags() default "";<a name="line.380"></a>
-<span class="sourceLineNo">381</span><a name="line.381"></a>
-<span class="sourceLineNo">382</span> /**<a name="line.382"></a>
-<span class="sourceLineNo">383</span> * Optional deprecated flag for the exposed API.<a name="line.383"></a>
-<span class="sourceLineNo">384</span> * <p><a name="line.384"></a>
-<span class="sourceLineNo">385</span> * Used to populate the Swagger deprecated field.<a name="line.385"></a>
-<span class="sourceLineNo">386</span> * <p><a name="line.386"></a>
-<span class="sourceLineNo">387</span> * The default value pulls the description from the <code>(className.?)[javaMethodName].deprecated</code> entry in the servlet resource bundle.<a name="line.387"></a>
-<span class="sourceLineNo">388</span> * (e.g. <js>"MyClass.myMethod.deprecated = true"</js> or <js>"myMethod.deprecated = foo,bar"</js>).<a name="line.388"></a>
-<span class="sourceLineNo">389</span> *<a name="line.389"></a>
-<span class="sourceLineNo">390</span> * <h5 class='section'>Example:</h5><a name="line.390"></a>
-<span class="sourceLineNo">391</span> * <p class='bcode'><a name="line.391"></a>
-<span class="sourceLineNo">392</span> * <ja>@RestMethod</ja>(deprecated=<jk>true</jk>)<a name="line.392"></a>
-<span class="sourceLineNo">393</span> * </p><a name="line.393"></a>
-<span class="sourceLineNo">394</span> * <p><a name="line.394"></a>
-<span class="sourceLineNo">395</span> * This field can contain variables (e.g. "$L{my.localized.variable}").<a name="line.395"></a>
+<span class="sourceLineNo">292</span> * <p><a name="line.292"></a>
+<span class="sourceLineNo">293</span> * You can use either <js>':'</js> or <js>'='</js> as the key/value delimiter.<a name="line.293"></a>
+<span class="sourceLineNo">294</span> * Key and value is trimmed of whitespace.<a name="line.294"></a>
+<span class="sourceLineNo">295</span> */<a name="line.295"></a>
+<span class="sourceLineNo">296</span> String[] defaultRequestHeaders() default {};<a name="line.296"></a>
+<span class="sourceLineNo">297</span><a name="line.297"></a>
+<span class="sourceLineNo">298</span> /**<a name="line.298"></a>
+<span class="sourceLineNo">299</span> * Specifies default values for query parameters.<a name="line.299"></a>
+<span class="sourceLineNo">300</span> * <p><a name="line.300"></a>
+<span class="sourceLineNo">301</span> * Strings are of the format <js>"name=value"</js>.<a name="line.301"></a>
+<span class="sourceLineNo">302</span> * <p><a name="line.302"></a>
+<span class="sourceLineNo">303</span> * Affects values returned by {@link RestRequest#getQuery(String)} when the parameter is not present on the request.<a name="line.303"></a>
+<span class="sourceLineNo">304</span> *<a name="line.304"></a>
+<span class="sourceLineNo">305</span> * <h5 class='section'>Example:</h5><a name="line.305"></a>
+<span class="sourceLineNo">306</span> * <p class='bcode'><a name="line.306"></a>
+<span class="sourceLineNo">307</span> * <ja>@RestMethod</ja>(name=<js>"GET"</js>, path=<js>"/*"</js>, defaultQuery={<js>"foo=bar"</js>})<a name="line.307"></a>
+<span class="sourceLineNo">308</span> * <jk>public</jk> String doGet(<ja>@Query</ja>(<js>"foo"</js>) String foo) {<a name="line.308"></a>
+<span class="sourceLineNo">309</span> * ...<a name="line.309"></a>
+<span class="sourceLineNo">310</span> * }<a name="line.310"></a>
+<span class="sourceLineNo">311</span> * </p><a name="line.311"></a>
+<span class="sourceLineNo">312</span> * <p><a name="line.312"></a>
+<span class="sourceLineNo">313</span> * You can use either <js>':'</js> or <js>'='</js> as the key/value delimiter.<a name="line.313"></a>
+<span class="sourceLineNo">314</span> * Key and value is trimmed of whitespace.<a name="line.314"></a>
+<span class="sourceLineNo">315</span> */<a name="line.315"></a>
+<span class="sourceLineNo">316</span> String[] defaultQuery() default {};<a name="line.316"></a>
+<span class="sourceLineNo">317</span><a name="line.317"></a>
+<span class="sourceLineNo">318</span> /**<a name="line.318"></a>
+<span class="sourceLineNo">319</span> * Specifies default values for form-data parameters.<a name="line.319"></a>
+<span class="sourceLineNo">320</span> * <p><a name="line.320"></a>
+<span class="sourceLineNo">321</span> * Strings are of the format <js>"name=value"</js>.<a name="line.321"></a>
+<span class="sourceLineNo">322</span> * <p><a name="line.322"></a>
+<span class="sourceLineNo">323</span> * Affects values returned by {@link RestRequest#getFormData(String)} when the parameter is not present on the request.<a name="line.323"></a>
+<span class="sourceLineNo">324</span> *<a name="line.324"></a>
+<span class="sourceLineNo">325</span> * <h5 class='section'>Example:</h5><a name="line.325"></a>
+<span class="sourceLineNo">326</span> * <p class='bcode'><a name="line.326"></a>
+<span class="sourceLineNo">327</span> * <ja>@RestMethod</ja>(name=<js>"POST"</js>, path=<js>"/*"</js>, defaultFormData={<js>"foo=bar"</js>})<a name="line.327"></a>
+<span class="sourceLineNo">328</span> * <jk>public</jk> String doGet(<ja>@FormData</ja>(<js>"foo"</js>) String foo) {<a name="line.328"></a>
+<span class="sourceLineNo">329</span> * ...<a name="line.329"></a>
+<span class="sourceLineNo">330</span> * }<a name="line.330"></a>
+<span class="sourceLineNo">331</span> * </p><a name="line.331"></a>
+<span class="sourceLineNo">332</span> * <p><a name="line.332"></a>
+<span class="sourceLineNo">333</span> * You can use either <js>':'</js> or <js>'='</js> as the key/value delimiter.<a name="line.333"></a>
+<span class="sourceLineNo">334</span> * Key and value is trimmed of whitespace.<a name="line.334"></a>
+<span class="sourceLineNo">335</span> */<a name="line.335"></a>
+<span class="sourceLineNo">336</span> String[] defaultFormData() default {};<a name="line.336"></a>
+<span class="sourceLineNo">337</span><a name="line.337"></a>
+<span class="sourceLineNo">338</span> /**<a name="line.338"></a>
+<span class="sourceLineNo">339</span> * Optional summary for the exposed API.<a name="line.339"></a>
+<span class="sourceLineNo">340</span> * <p><a name="line.340"></a>
+<span class="sourceLineNo">341</span> * This summary is used in the following locations:<a name="line.341"></a>
+<span class="sourceLineNo">342</span> * <ul class='spaced-list'><a name="line.342"></a>
+<span class="sourceLineNo">343</span> * <li>The value returned by {@link RestRequest#getMethodSummary()}.<a name="line.343"></a>
+<span class="sourceLineNo">344</span> * <li>The <js>"$R{methodSummary}"</js> variable.<a name="line.344"></a>
+<span class="sourceLineNo">345</span> * <li>The summary of the method in the Swagger page.<a name="line.345"></a>
+<span class="sourceLineNo">346</span> * </ul><a name="line.346"></a>
+<span class="sourceLineNo">347</span> * <p><a name="line.347"></a>
+<span class="sourceLineNo">348</span> * The default value pulls the description from the <code>(className.?)[javaMethodName].summary</code> entry in the servlet resource bundle.<a name="line.348"></a>
+<span class="sourceLineNo">349</span> * (e.g. <js>"MyClass.myMethod.summary = foo"</js> or <js>"myMethod.summary = foo"</js>).<a name="line.349"></a>
+<span class="sourceLineNo">350</span> * <p><a name="line.350"></a>
+<span class="sourceLineNo">351</span> * This field value can contain variables (e.g. "$L{my.localized.variable}").<a name="line.351"></a>
+<span class="sourceLineNo">352</span> * <p><a name="line.352"></a>
+<span class="sourceLineNo">353</span> * Corresponds to the swagger field <code>/paths/{path}/{method}/summary</code>.<a name="line.353"></a>
+<span class="sourceLineNo">354</span> */<a name="line.354"></a>
+<span class="sourceLineNo">355</span> String summary() default "";<a name="line.355"></a>
+<span class="sourceLineNo">356</span><a name="line.356"></a>
+<span class="sourceLineNo">357</span> /**<a name="line.357"></a>
+<span class="sourceLineNo">358</span> * Optional description for the exposed API.<a name="line.358"></a>
+<span class="sourceLineNo">359</span> * <p><a name="line.359"></a>
+<span class="sourceLineNo">360</span> * This description is used in the following locations:<a name="line.360"></a>
+<span class="sourceLineNo">361</span> * <ul class='spaced-list'><a name="line.361"></a>
+<span class="sourceLineNo">362</span> * <li>The value returned by {@link RestRequest#getMethodDescription()}.<a name="line.362"></a>
+<span class="sourceLineNo">363</span> * <li>The <js>"$R{methodDescription}"</js> variable.<a name="line.363"></a>
+<span class="sourceLineNo">364</span> * <li>The description of the method in the Swagger page.<a name="line.364"></a>
+<span class="sourceLineNo">365</span> * </ul><a name="line.365"></a>
+<span class="sourceLineNo">366</span> * <p><a name="line.366"></a>
+<span class="sourceLineNo">367</span> * The default value pulls the description from the <code>(className.?)[javaMethodName].description</code> entry in the servlet resource bundle.<a name="line.367"></a>
+<span class="sourceLineNo">368</span> * (e.g. <js>"MyClass.myMethod.description = foo"</js> or <js>"myMethod.description = foo"</js>).<a name="line.368"></a>
+<span class="sourceLineNo">369</span> * <p><a name="line.369"></a>
+<span class="sourceLineNo">370</span> * This field value can contain variables (e.g. "$L{my.localized.variable}").<a name="line.370"></a>
+<span class="sourceLineNo">371</span> * <p><a name="line.371"></a>
+<span class="sourceLineNo">372</span> * Corresponds to the swagger field <code>/paths/{path}/{method}/description</code>.<a name="line.372"></a>
+<span class="sourceLineNo">373</span> */<a name="line.373"></a>
+<span class="sourceLineNo">374</span> String description() default "";<a name="line.374"></a>
+<span class="sourceLineNo">375</span><a name="line.375"></a>
+<span class="sourceLineNo">376</span> /**<a name="line.376"></a>
+<span class="sourceLineNo">377</span> * Optional external documentation information for the exposed API.<a name="line.377"></a>
+<span class="sourceLineNo">378</span> * <p><a name="line.378"></a>
+<span class="sourceLineNo">379</span> * Used to populate the Swagger external documentation field.<a name="line.379"></a>
+<span class="sourceLineNo">380</span> * <p><a name="line.380"></a>
+<span class="sourceLineNo">381</span> * A simplified JSON string with the following fields:<a name="line.381"></a>
+<span class="sourceLineNo">382</span> * <p class='bcode'><a name="line.382"></a>
+<span class="sourceLineNo">383</span> * {<a name="line.383"></a>
+<span class="sourceLineNo">384</span> * description: string,<a name="line.384"></a>
+<span class="sourceLineNo">385</span> * url: string<a name="line.385"></a>
+<span class="sourceLineNo">386</span> * }<a name="line.386"></a>
+<span class="sourceLineNo">387</span> * </p><a name="line.387"></a>
+<span class="sourceLineNo">388</span> * <p><a name="line.388"></a>
+<span class="sourceLineNo">389</span> * The default value pulls the description from the <code>(className.?)[javaMethodName].externalDocs</code> entry in the servlet resource bundle.<a name="line.389"></a>
+<span class="sourceLineNo">390</span> * (e.g. <js>"MyClass.myMethod.externalDocs = {url:'http://juneau.apache.org'}"</js> or <js>"myMethod.externalDocs = {url:'http://juneau.apache.org'}"</js>).<a name="line.390"></a>
+<span class="sourceLineNo">391</span> *<a name="line.391"></a>
+<span class="sourceLineNo">392</span> * <h5 class='section'>Example:</h5><a name="line.392"></a>
+<span class="sourceLineNo">393</span> * <p class='bcode'><a name="line.393"></a>
+<span class="sourceLineNo">394</span> * <ja>@RestMethod</ja>(externalDocs=<js>"{url:'http://juneau.apache.org'}"</js>)<a name="line.394"></a>
+<span class="sourceLineNo">395</span> * </p><a name="line.395"></a>
<span class="sourceLineNo">396</span> * <p><a name="line.396"></a>
-<span class="sourceLineNo">397</span> * Corresponds to the swagger field <code>/paths/{path}/{method}/deprecated</code>.<a name="line.397"></a>
-<span class="sourceLineNo">398</span> */<a name="line.398"></a>
-<span class="sourceLineNo">399</span> boolean deprecated() default false;<a name="line.399"></a>
-<span class="sourceLineNo">400</span><a name="line.400"></a>
-<span class="sourceLineNo">401</span> /**<a name="line.401"></a>
-<span class="sourceLineNo">402</span> * Optional parameter descriptions.<a name="line.402"></a>
-<span class="sourceLineNo">403</span> * <p><a name="line.403"></a>
-<span class="sourceLineNo">404</span> * This annotation is provided for documentation purposes and is used to populate the method <js>"parameters"</js> column<a name="line.404"></a>
-<span class="sourceLineNo">405</span> * on the Swagger page.<a name="line.405"></a>
-<span class="sourceLineNo">406</span> *<a name="line.406"></a>
-<span class="sourceLineNo">407</span> * <h5 class='section'>Example:</h5><a name="line.407"></a>
-<span class="sourceLineNo">408</span> * <p class='bcode'><a name="line.408"></a>
-<span class="sourceLineNo">409</span> * <ja>@RestMethod</ja>(<a name="line.409"></a>
-<span class="sourceLineNo">410</span> * name=<js>"POST"</js>, path=<js>"/{a}"</js>,<a name="line.410"></a>
-<span class="sourceLineNo">411</span> * description=<js>"This is my method."</js>,<a name="line.411"></a>
-<span class="sourceLineNo">412</span> * parameters={<a name="line.412"></a>
-<span class="sourceLineNo">413</span> * <ja>@Parameter</ja>(in=<js>"path"</js>, name=<js>"a"</js>, description=<js>"The 'a' attribute"</js>),<a name="line.413"></a>
-<span class="sourceLineNo">414</span> * <ja>@Parameter</ja>(in=<js>"query"</js>, name=<js>"b"</js>, description=<js>"The 'b' parameter"</js>, required=<jk>true</jk>),<a name="line.414"></a>
-<span class="sourceLineNo">415</span> * <ja>@Parameter</ja>(in=<js>"body"</js>, description=<js>"The HTTP content"</js>),<a name="line.415"></a>
-<span class="sourceLineNo">416</span> * <ja>@Parameter</ja>(in=<js>"header"</js>, name=<js>"D"</js>, description=<js>"The 'D' header"</js>),<a name="line.416"></a>
-<span class="sourceLineNo">417</span> * }<a name="line.417"></a>
-<span class="sourceLineNo">418</span> * )<a name="line.418"></a>
-<span class="sourceLineNo">419</span> * </p><a name="line.419"></a>
-<span class="sourceLineNo">420</span> * This is functionally equivalent to specifying the following keys in the resource bundle for the class, except in this case<a name="line.420"></a>
-<span class="sourceLineNo">421</span> * the strings are internationalized.<a name="line.421"></a>
-<span class="sourceLineNo">422</span> * <p class='bcode'><a name="line.422"></a>
-<span class="sourceLineNo">423</span> * <jk>MyClass.myMethod.description</jk> = <js>This is my method.</js><a name="line.423"></a>
-<span class="sourceLineNo">424</span> * <jk>MyClass.myMethod.req.path.a.description</jk> = <js>The 'a' attribute</js><a name="line.424"></a>
-<span class="sourceLineNo">425</span> * <jk>MyClass.myMethod.req.query.b.description</jk> = <js>The 'b' parameter</js><a name="line.425"></a>
-<span class="sourceLineNo">426</span> * <jk>MyClass.myMethod.req.body.description</jk> = <js>The HTTP content</js><a name="line.426"></a>
-<span class="sourceLineNo">427</span> * <jk>MyClass.myMethod.req.header.d.description</jk> = <js>The 'D' header</js><a name="line.427"></a>
-<span class="sourceLineNo">428</span> * <p><a name="line.428"></a>
-<span class="sourceLineNo">429</span> * As a general rule, use annotations when you don't care about internationalization (i.e. you only want to support English),<a name="line.429"></a>
-<span class="sourceLineNo">430</span> * and use resource bundles if you need to support localization.<a name="line.430"></a>
-<span class="sourceLineNo">431</span> * <p><a name="line.431"></a>
-<span class="sourceLineNo">432</span> * These annotations can contain variables (e.g. "$L{my.localized.variable}").<a name="line.432"></a>
-<span class="sourceLineNo">433</span> * <p><a name="line.433"></a>
-<span class="sourceLineNo">434</span> * Corresponds to the swagger field <code>/paths/{path}/{method}/parameters</code>.<a name="line.434"></a>
-<span class="sourceLineNo">435</span> */<a name="line.435"></a>
-<span class="sourceLineNo">436</span> Parameter[] parameters() default {};<a name="line.436"></a>
-<span class="sourceLineNo">437</span><a name="line.437"></a>
-<span class="sourceLineNo">438</span> /**<a name="line.438"></a>
-<span class="sourceLineNo">439</span> * Optional output description.<a name="line.439"></a>
-<span class="sourceLineNo">440</span> * <p><a name="line.440"></a>
-<span class="sourceLineNo">441</span> * This annotation is provided for documentation purposes and is used to populate the method <js>"responses"</js> column<a name="line.441"></a>
-<span class="sourceLineNo">442</span> * on the Swagger page.<a name="line.442"></a>
-<span class="sourceLineNo">443</span> *<a name="line.443"></a>
-<span class="sourceLineNo">444</span> * <h5 class='section'>Example:</h5><a name="line.444"></a>
-<span class="sourceLineNo">445</span> * <p class='bcode'><a name="line.445"></a>
-<span class="sourceLineNo">446</span> * <ja>@RestMethod</ja>(<a name="line.446"></a>
-<span class="sourceLineNo">447</span> * name=<js>"GET"</js>, path=<js>"/"</js>,<a name="line.447"></a>
-<span class="sourceLineNo">448</span> * responses={<a name="line.448"></a>
-<span class="sourceLineNo">449</span> * <ja>@Response</ja>(200),<a name="line.449"></a>
-<span class="sourceLineNo">450</span> * <ja>@Response</ja>(<a name="line.450"></a>
-<span class="sourceLineNo">451</span> * value=302,<a name="line.451"></a>
-<span class="sourceLineNo">452</span> * description=<js>"Thing wasn't found here"</js>,<a name="line.452"></a>
-<span class="sourceLineNo">453</span> * headers={<a name="line.453"></a>
-<span class="sourceLineNo">454</span> * <ja>@Parameter</ja>(name=<js>"Location"</js>, description=<js>"The place to find the thing"</js>)<a name="line.454"></a>
-<span class="sourceLineNo">455</span> * }<a name="line.455"></a>
-<span class="sourceLineNo">456</span> * )<a name="line.456"></a>
-<span class="sourceLineNo">457</span> * }<a name="line.457"></a>
-<span class="sourceLineNo">458</span> * )<a name="line.458"></a>
-<span class="sourceLineNo">459</span> * </p><a name="line.459"></a>
-<span class="sourceLineNo">460</span> * This is functionally equivalent to specifying the following keys in the resource bundle for the class, except in this case<a name="line.460"></a>
-<span class="sourceLineNo">461</span> * the strings are internationalized.<a name="line.461"></a>
-<span class="sourceLineNo">462</span> * <p class='bcode'><a name="line.462"></a>
-<span class="sourceLineNo">463</span> * <jk>MyClass.myMethod.res.200.description</jk> = <js>OK</js><a name="line.463"></a>
-<span class="sourceLineNo">464</span> * <jk>MyClass.myMethod.res.302.description</jk> = <js>Thing wasn't found here</js><a name="line.464"></a>
-<span class="sourceLineNo">465</span> * <jk>MyClass.myMethod.res.302.header.Location.description</jk> = <js>The place to find the thing</js><a name="line.465"></a>
-<span class="sourceLineNo">466</span> * <p><a name="line.466"></a>
-<span class="sourceLineNo">467</span> * As a general rule, use annotations when you don't care about internationalization (i.e. you only want to support English),<a name="line.467"></a>
-<span class="sourceLineNo">468</span> * and use resource bundles if you need to support localization.<a name="line.468"></a>
-<span class="sourceLineNo">469</span> * <p><a name="line.469"></a>
-<span class="sourceLineNo">470</span> * These annotations can contain variables (e.g. "$L{my.localized.variable}").<a name="line.470"></a>
-<span class="sourceLineNo">471</span> */<a name="line.471"></a>
-<span class="sourceLineNo">472</span> Response[] responses() default {};<a name="line.472"></a>
-<span class="sourceLineNo">473</span><a name="line.473"></a>
-<span class="sourceLineNo">474</span> /**<a name="line.474"></a>
-<span class="sourceLineNo">475</span> * Specifies whether this method can be called based on the client version.<a name="line.475"></a>
+<span class="sourceLineNo">397</span> * This field can contain variables (e.g. "$L{my.localized.variable}").<a name="line.397"></a>
+<span class="sourceLineNo">398</span> * <p><a name="line.398"></a>
+<span class="sourceLineNo">399</span> * Corresponds to the swagger field <code>/paths/{path}/{method}/externalDocs</code>.<a name="line.399"></a>
+<span class="sourceLineNo">400</span> */<a name="line.400"></a>
+<span class="sourceLineNo">401</span> String externalDocs() default "";<a name="line.401"></a>
+<span class="sourceLineNo">402</span><a name="line.402"></a>
+<span class="sourceLineNo">403</span> /**<a name="line.403"></a>
+<span class="sourceLineNo">404</span> * Optional tagging information for the exposed API.<a name="line.404"></a>
+<span class="sourceLineNo">405</span> * <p><a name="line.405"></a>
+<span class="sourceLineNo">406</span> * Used to populate the Swagger tags field.<a name="line.406"></a>
+<span class="sourceLineNo">407</span> * <p><a name="line.407"></a>
+<span class="sourceLineNo">408</span> * A comma-delimited list of tags for API documentation control.<a name="line.408"></a>
+<span class="sourceLineNo">409</span> * Tags can be used for logical grouping of operations by resources or any other qualifier.<a name="line.409"></a>
+<span class="sourceLineNo">410</span> * <p><a name="line.410"></a>
+<span class="sourceLineNo">411</span> * The default value pulls the description from the <code>(className.?)[javaMethodName].tags</code> entry in the servlet resource bundle.<a name="line.411"></a>
+<span class="sourceLineNo">412</span> * (e.g. <js>"MyClass.myMethod.tags = foo,bar"</js> or <js>"myMethod.tags = foo,bar"</js>).<a name="line.412"></a>
+<span class="sourceLineNo">413</span> *<a name="line.413"></a>
+<span class="sourceLineNo">414</span> * <h5 class='section'>Example:</h5><a name="line.414"></a>
+<span class="sourceLineNo">415</span> * <p class='bcode'><a name="line.415"></a>
+<span class="sourceLineNo">416</span> * <ja>@RestMethod</ja>(tags=<js>"foo,bar"</js>)<a name="line.416"></a>
+<span class="sourceLineNo">417</span> * </p><a name="line.417"></a>
+<span class="sourceLineNo">418</span> * <p><a name="line.418"></a>
+<span class="sourceLineNo">419</span> * This field can contain variables (e.g. "$L{my.localized.variable}").<a name="line.419"></a>
+<span class="sourceLineNo">420</span> * <p><a name="line.420"></a>
+<span class="sourceLineNo">421</span> * Corresponds to the swagger field <code>/paths/{path}/{method}/tags</code>.<a name="line.421"></a>
+<span class="sourceLineNo">422</span> */<a name="line.422"></a>
+<span class="sourceLineNo">423</span> String tags() default "";<a name="line.423"></a>
+<span class="sourceLineNo">424</span><a name="line.424"></a>
+<span class="sourceLineNo">425</span> /**<a name="line.425"></a>
+<span class="sourceLineNo">426</span> * Optional deprecated flag for the exposed API.<a name="line.426"></a>
+<span class="sourceLineNo">427</span> * <p><a name="line.427"></a>
+<span class="sourceLineNo">428</span> * Used to populate the Swagger deprecated field.<a name="line.428"></a>
+<span class="sourceLineNo">429</span> * <p><a name="line.429"></a>
+<span class="sourceLineNo">430</span> * The default value pulls the description from the <code>(className.?)[javaMethodName].deprecated</code> entry in the servlet resource bundle.<a name="line.430"></a>
+<span class="sourceLineNo">431</span> * (e.g. <js>"MyClass.myMethod.deprecated = true"</js> or <js>"myMethod.deprecated = foo,bar"</js>).<a name="line.431"></a>
+<span class="sourceLineNo">432</span> *<a name="line.432"></a>
+<span class="sourceLineNo">433</span> * <h5 class='section'>Example:</h5><a name="line.433"></a>
+<span class="sourceLineNo">434</span> * <p class='bcode'><a name="line.434"></a>
+<span class="sourceLineNo">435</span> * <ja>@RestMethod</ja>(deprecated=<jk>true</jk>)<a name="line.435"></a>
+<span class="sourceLineNo">436</span> * </p><a name="line.436"></a>
+<span class="sourceLineNo">437</span> * <p><a name="line.437"></a>
+<span class="sourceLineNo">438</span> * This field can contain variables (e.g. "$L{my.localized.variable}").<a name="line.438"></a>
+<span class="sourceLineNo">439</span> * <p><a name="line.439"></a>
+<span class="sourceLineNo">440</span> * Corresponds to the swagger field <code>/paths/{path}/{method}/deprecated</code>.<a name="line.440"></a>
+<span class="sourceLineNo">441</span> */<a name="line.441"></a>
+<span class="sourceLineNo">442</span> boolean deprecated() default false;<a name="line.442"></a>
+<span class="sourceLineNo">443</span><a name="line.443"></a>
+<span class="sourceLineNo">444</span> /**<a name="line.444"></a>
+<span class="sourceLineNo">445</span> * Optional parameter descriptions.<a name="line.445"></a>
+<span class="sourceLineNo">446</span> * <p><a name="line.446"></a>
+<span class="sourceLineNo">447</span> * This annotation is provided for documentation purposes and is used to populate the method <js>"parameters"</js> column<a name="line.447"></a>
+<span class="sourceLineNo">448</span> * on the Swagger page.<a name="line.448"></a>
+<span class="sourceLineNo">449</span> *<a name="line.449"></a>
+<span class="sourceLineNo">450</span> * <h5 class='section'>Example:</h5><a name="line.450"></a>
+<span class="sourceLineNo">451</span> * <p class='bcode'><a name="line.451"></a>
+<span class="sourceLineNo">452</span> * <ja>@RestMethod</ja>(<a name="line.452"></a>
+<span class="sourceLineNo">453</span> * name=<js>"POST"</js>, path=<js>"/{a}"</js>,<a name="line.453"></a>
+<span class="sourceLineNo">454</span> * description=<js>"This is my method."</js>,<a name="line.454"></a>
+<span class="sourceLineNo">455</span> * parameters={<a name="line.455"></a>
+<span class="sourceLineNo">456</span> * <ja>@Parameter</ja>(in=<js>"path"</js>, name=<js>"a"</js>, description=<js>"The 'a' attribute"</js>),<a name="line.456"></a>
+<span class="sourceLineNo">457</span> * <ja>@Parameter</ja>(in=<js>"query"</js>, name=<js>"b"</js>, description=<js>"The 'b' parameter"</js>, required=<jk>true</jk>),<a name="line.457"></a>
+<span class="sourceLineNo">458</span> * <ja>@Parameter</ja>(in=<js>"body"</js>, description=<js>"The HTTP content"</js>),<a name="line.458"></a>
+<span class="sourceLineNo">459</span> * <ja>@Parameter</ja>(in=<js>"header"</js>, name=<js>"D"</js>, description=<js>"The 'D' header"</js>),<a name="line.459"></a>
+<span class="sourceLineNo">460</span> * }<a name="line.460"></a>
+<span class="sourceLineNo">461</span> * )<a name="line.461"></a>
+<span class="sourceLineNo">462</span> * </p><a name="line.462"></a>
+<span class="sourceLineNo">463</span> * This is functionally equivalent to specifying the following keys in the resource bundle for the class, except in this case<a name="line.463"></a>
+<span class="sourceLineNo">464</span> * the strings are internationalized.<a name="line.464"></a>
+<span class="sourceLineNo">465</span> * <p class='bcode'><a name="line.465"></a>
+<span class="sourceLineNo">466</span> * <jk>MyClass.myMethod.description</jk> = <js>This is my method.</js><a name="line.466"></a>
+<span class="sourceLineNo">467</span> * <jk>MyClass.myMethod.req.path.a.description</jk> = <js>The 'a' attribute</js><a name="line.467"></a>
+<span class="sourceLineNo">468</span> * <jk>MyClass.myMethod.req.query.b.description</jk> = <js>The 'b' parameter</js><a name="line.468"></a>
+<span class="sourceLineNo">469</span> * <jk>MyClass.myMethod.req.body.description</jk> = <js>The HTTP content</js><a name="line.469"></a>
+<span class="sourceLineNo">470</span> * <jk>MyClass.myMethod.req.header.d.description</jk> = <js>The 'D' header</js><a name="line.470"></a>
+<span class="sourceLineNo">471</span> * <p><a name="line.471"></a>
+<span class="sourceLineNo">472</span> * As a general rule, use annotations when you don't care about internationalization (i.e. you only want to support English),<a name="line.472"></a>
+<span class="sourceLineNo">473</span> * and use resource bundles if you need to support localization.<a name="line.473"></a>
+<span class="sourceLineNo">474</span> * <p><a name="line.474"></a>
+<span class="sourceLineNo">475</span> * These annotations can contain variables (e.g. "$L{my.localized.variable}").<a name="line.475"></a>
<span class="sourceLineNo">476</span> * <p><a name="line.476"></a>
-<span class="sourceLineNo">477</span> * The client version is identified via the HTTP request header identified by {@link RestResource#clientVersionHeader()} which<a name="line.477"></a>
-<span class="sourceLineNo">478</span> * by default is <js>"X-Client-Version"</js>.<a name="line.478"></a>
-<span class="sourceLineNo">479</span> * <p><a name="line.479"></a>
-<span class="sourceLineNo">480</span> * This is a specialized kind of {@link RestMatcher} that allows you to invoke different Java methods for the same method/path based<a name="line.480"></a>
-<span class="sourceLineNo">481</span> * on the client version.<a name="line.481"></a>
-<span class="sourceLineNo">482</span> * <p><a name="line.482"></a>
-<span class="sourceLineNo">483</span> * The format of the client version range is similar to that of OSGi versions.<a name="line.483"></a>
-<span class="sourceLineNo">484</span> * <p><a name="line.484"></a>
-<span class="sourceLineNo">485</span> * In the following example, the Java methods are mapped to the same HTTP method and URL <js>"/foobar"</js>.<a name="line.485"></a>
-<span class="sourceLineNo">486</span> * <p class='bcode'><a name="line.486"></a>
-<span class="sourceLineNo">487</span> * <jc>// Call this method if X-Client-Version is at least 2.0.<a name="line.487"></a>
-<span class="sourceLineNo">488</span> * // Note that this also matches 2.0.1.</jc><a name="line.488"></a>
-<span class="sourceLineNo">489</span> * <ja>@RestMethod</ja>(name=<js>"GET"</js>, path=<js>"/foobar"</js>, clientVersion=<js>"2.0"</js>)<a name="line.489"></a>
-<span class="sourceLineNo">490</span> * <jk>public</jk> Object method1() {<a name="line.490"></a>
-<span class="sourceLineNo">491</span> * ...<a name="line.491"></a>
-<span class="sourceLineNo">492</span> * }<a name="line.492"></a>
-<span class="sourceLineNo">493</span> *<a name="line.493"></a>
-<span class="sourceLineNo">494</span> * <jc>// Call this method if X-Client-Version is at least 1.1, but less than 2.0.</jc><a name="line.494"></a>
-<span class="sourceLineNo">495</span> * <ja>@RestMethod</ja>(name=<js>"GET"</js>, path=<js>"/foobar"</js>, clientVersion=<js>"[1.1,2.0)"</js>)<a name="line.495"></a>
-<span class="sourceLineNo">496</span> * <jk>public</jk> Object method2() {<a name="line.496"></a>
-<span class="sourceLineNo">497</span> * ...<a name="line.497"></a>
-<span class="sourceLineNo">498</span> * }<a name="line.498"></a>
-<span class="sourceLineNo">499</span> *<a name="line.499"></a>
-<span class="sourceLineNo">500</span> * <jc>// Call this method if X-Client-Version is less than 1.1.</jc><a name="line.500"></a>
-<span class="sourceLineNo">501</span> * <ja>@RestMethod</ja>(name=<js>"GET"</js>, path=<js>"/foobar"</js>, clientVersion=<js>"[0,1.1)"</js>)<a name="line.501"></a>
-<span class="sourceLineNo">502</span> * <jk>public</jk> Object method3() {<a name="line.502"></a>
-<span class="sourceLineNo">503</span> * ...<a name="line.503"></a>
-<span class="sourceLineNo">504</span> * }<a name="line.504"></a>
-<span class="sourceLineNo">505</span> * </p><a name="line.505"></a>
-<span class="sourceLineNo">506</span> * <p><a name="line.506"></a>
-<span class="sourceLineNo">507</span> * It's common to combine the client version with transforms that will convert new POJOs into older POJOs for backwards compatability.<a name="line.507"></a>
-<span class="sourceLineNo">508</span> * <p class='bcode'><a name="line.508"></a>
-<span class="sourceLineNo">509</span> * <jc>// Call this method if X-Client-Version is at least 2.0.</jc><a name="line.509"></a>
-<span class="sourceLineNo">510</span> * <ja>@RestMethod</ja>(name=<js>"GET"</js>, path=<js>"/foobar"</js>, clientVersion=<js>"2.0"</js>)<a name="line.510"></a>
-<span class="sourceLineNo">511</span> * <jk>public</jk> NewPojo newMethod() {<a name="line.511"></a>
-<span class="sourceLineNo">512</span> * ...<a name="line.512"></a>
-<span class="sourceLineNo">513</span> * }<a name="line.513"></a>
-<span class="sourceLineNo">514</span> *<a name="line.514"></a>
-<span class="sourceLineNo">515</span> * <jc>// Call this method if X-Client-Version is at least 1.1, but less than 2.0.</jc><a name="line.515"></a>
-<span class="sourceLineNo">516</span> * <ja>@RestMethod</ja>(name=<js>"GET"</js>, path=<js>"/foobar"</js>, clientVersion=<js>"[1.1,2.0)"</js>, transforms={NewToOldPojoSwap.<jk>class</jk>})<a name="line.516"></a>
-<span class="sourceLineNo">517</span> * <jk>public</jk> NewPojo oldMethod() {<a name="line.517"></a>
-<span class="sourceLineNo">518</span> * <jk>return</jk> newMethod()<a name="line.518"></a>
-<span class="sourceLineNo">519</span> * }<a name="line.519"></a>
-<span class="sourceLineNo">520</span> * <p><a name="line.520"></a>
-<span class="sourceLineNo">521</span> * Note that in the previous example, we're returning the exact same POJO, but using a transform to convert it into an older form.<a name="line.521"></a>
-<span class="sourceLineNo">522</span> * The old method could also just return back a completely different object.<a name="line.522"></a>
-<span class="sourceLineNo">523</span> * The range can be any of the following:<a name="line.523"></a>
-<span class="sourceLineNo">524</span> * <ul><a name="line.524"></a>
-<span class="sourceLineNo">525</span> * <li><js>"[0,1.0)"</js> = Less than 1.0. 1.0 and 1.0.0 does not match.<a name="line.525"></a>
-<span class="sourceLineNo">526</span> * <li><js>"[0,1.0]"</js> = Less than or equal to 1.0. Note that 1.0.1 will match.<a name="line.526"></a>
-<span class="sourceLineNo">527</span> * <li><js>"1.0"</js> = At least 1.0. 1.0 and 2.0 will match.<a name="line.527"></a>
-<span class="sourceLineNo">528</span> * </ul><a name="line.528"></a>
-<span class="sourceLineNo">529</span> */<a name="line.529"></a>
-<span class="sourceLineNo">530</span> String clientVersion() default "";<a name="line.530"></a>
-<span class="sourceLineNo">531</span><a name="line.531"></a>
-<span class="sourceLineNo">532</span> /**<a name="line.532"></a>
-<span class="sourceLineNo">533</span> * Overrides the HTML page title defined on the servlet via the {@link RestResource#pageTitle() @RestResource.pageTitle()} annotation.<a name="line.533"></a>
-<span class="sourceLineNo">534</span> */<a name="line.534"></a>
-<span class="sourceLineNo">535</span> String pageTitle() default "";<a name="line.535"></a>
-<span class="sourceLineNo">536</span><a name="line.536"></a>
-<span class="sourceLineNo">537</span> /**<a name="line.537"></a>
-<span class="sourceLineNo">538</span> * Overrides the HTML page text defined on the servlet via the {@link RestResource#pageText() @RestResource.pageText()} annotation.<a name="line.538"></a>
-<span class="sourceLineNo">539</span> */<a name="line.539"></a>
-<span class="sourceLineNo">540</span> String pageText() default "";<a name="line.540"></a>
-<span class="sourceLineNo">541</span><a name="line.541"></a>
-<span class="sourceLineNo">542</span> /**<a name="line.542"></a>
-<span class="sourceLineNo">543</span> * Overrides the HTML page links defined on the servlet via the {@link RestResource#pageLinks() @RestResource.pageLinks()} annotation.<a name="line.543"></a>
-<span class="sourceLineNo">544</span> */<a name="line.544"></a>
-<span class="sourceLineNo">545</span> String pageLinks() default "";<a name="line.545"></a>
-<span class="sourceLineNo">546</span>}<a name="line.546"></a>
+<span class="sourceLineNo">477</span> * Corresponds to the swagger field <code>/paths/{path}/{method}/parameters</code>.<a name="line.477"></a>
+<span class="sourceLineNo">478</span> */<a name="line.478"></a>
+<span class="sourceLineNo">479</span> Parameter[] parameters() default {};<a name="line.479"></a>
+<span class="sourceLineNo">480</span><a name="line.480"></a>
+<span class="sourceLineNo">481</span> /**<a name="line.481"></a>
+<span class="sourceLineNo">482</span> * Optional output description.<a name="line.482"></a>
+<span class="sourceLineNo">483</span> * <p><a name="line.483"></a>
+<span class="sourceLineNo">484</span> * This annotation is provided for documentation purposes and is used to populate the method <js>"responses"</js> column<a name="line.484"></a>
+<span class="sourceLineNo">485</span> * on the Swagger page.<a name="line.485"></a>
+<span class="sourceLineNo">486</span> *<a name="line.486"></a>
+<span class="sourceLineNo">487</span> * <h5 class='section'>Example:</h5><a name="line.487"></a>
+<span class="sourceLineNo">488</span> * <p class='bcode'><a name="line.488"></a>
+<span class="sourceLineNo">489</span> * <ja>@RestMethod</ja>(<a name="line.489"></a>
+<span class="sourceLineNo">490</span> * name=<js>"GET"</js>, path=<js>"/"</js>,<a name="line.490"></a>
+<span class="sourceLineNo">491</span> * responses={<a name="line.491"></a>
+<span class="sourceLineNo">492</span> * <ja>@Response</ja>(200),<a name="line.492"></a>
+<span class="sourceLineNo">493</span> * <ja>@Response</ja>(<a name="line.493"></a>
+<span class="sourceLineNo">494</span> * value=302,<a name="line.494"></a>
+<span class="sourceLineNo">495</span> * description=<js>"Thing wasn't found here"</js>,<a name="line.495"></a>
+<span class="sourceLineNo">496</span> * headers={<a name="line.496"></a>
+<span class="sourceLineNo">497</span> * <ja>@Parameter</ja>(name=<js>"Location"</js>, description=<js>"The place to find the thing"</js>)<a name="line.497"></a>
+<span class="sourceLineNo">498</span> * }<a name="line.498"></a>
+<span class="sourceLineNo">499</span> * )<a name="line.499"></a>
+<span class="sourceLineNo">500</span> * }<a name="line.500"></a>
+<span class="sourceLineNo">501</span> * )<a name="line.501"></a>
+<span class="sourceLineNo">502</span> * </p><a name="line.502"></a>
+<span class="sourceLineNo">503</span> * This is functionally equivalent to specifying the following keys in the resource bundle for the class, except in this case<a name="line.503"></a>
+<span class="sourceLineNo">504</span> * the strings are internationalized.<a name="line.504"></a>
+<span class="sourceLineNo">505</span> * <p class='bcode'><a name="line.505"></a>
+<span class="sourceLineNo">506</span> * <jk>MyClass.myMethod.res.200.description</jk> = <js>OK</js><a name="line.506"></a>
+<span class="sourceLineNo">507</span> * <jk>MyClass.myMethod.res.302.description</jk> = <js>Thing wasn't found here</js><a name="line.507"></a>
+<span class="sourceLineNo">508</span> * <jk>MyClass.myMethod.res.302.header.Location.description</jk> = <js>The place to find the thing</js><a name="line.508"></a>
+<span class="sourceLineNo">509</span> * <p><a name="line.509"></a>
+<span class="sourceLineNo">510</span> * As a general rule, use annotations when you don't care about internationalization (i.e. you only want to support English),<a name="line.510"></a>
+<span class="sourceLineNo">511</span> * and use resource bundles if you need to support localization.<a name="line.511"></a>
+<span class="sourceLineNo">512</span> * <p><a name="line.512"></a>
+<span class="sourceLineNo">513</span> * These annotations can contain variables (e.g. "$L{my.localized.variable}").<a name="line.513"></a>
+<span class="sourceLineNo">514</span> */<a name="line.514"></a>
+<span class="sourceLineNo">515</span> Response[] responses() default {};<a name="line.515"></a>
+<span class="sourceLineNo">516</span><a name="line.516"></a>
+<span class="sourceLineNo">517</span> /**<a name="line.517"></a>
+<span class="sourceLineNo">518</span> * Specifies whether this method can be called based on the client version.<a name="line.518"></a>
+<span class="sourceLineNo">519</span> * <p><a name="line.519"></a>
+<span class="sourceLineNo">520</span> * The client version is identified via the HTTP request header identified by {@link RestResource#clientVersionHeader()} which<a name="line.520"></a>
+<span class="sourceLineNo">521</span> * by default is <js>"X-Client-Version"</js>.<a name="line.521"></a>
+<span class="sourceLineNo">522</span> * <p><a name="line.522"></a>
+<span class="sourceLineNo">523</span> * This is a specialized kind of {@link RestMatcher} that allows you to invoke different Java methods for the same method/path based<a name="line.523"></a>
+<span class="sourceLineNo">524</span> * on the client version.<a name="line.524"></a>
+<span class="sourceLineNo">525</span> * <p><a name="line.525"></a>
+<span class="sourceLineNo">526</span> * The format of the client version range is similar to that of OSGi versions.<a name="line.526"></a>
+<span class="sourceLineNo">527</span> * <p><a name="line.527"></a>
+<span class="sourceLineNo">528</span> * In the following example, the Java methods are mapped to the same HTTP method and URL <js>"/foobar"</js>.<a name="line.528"></a>
+<span class="sourceLineNo">529</span> * <p class='bcode'><a name="line.529"></a>
+<span class="sourceLineNo">530</span> * <jc>// Call this method if X-Client-Version is at least 2.0.<a name="line.530"></a>
+<span class="sourceLineNo">531</span> * // Note that this also matches 2.0.1.</jc><a name="line.531"></a>
+<span class="sourceLineNo">532</span> * <ja>@RestMethod</ja>(name=<js>"GET"</js>, path=<js>"/foobar"</js>, clientVersion=<js>"2.0"</js>)<a name="line.532"></a>
+<span class="sourceLineNo">533</span> * <jk>public</jk> Object method1() {<a name="line.533"></a>
+<span class="sourceLineNo">534</span> * ...<a name="line.534"></a>
+<span class="sourceLineNo">535</span> * }<a name="line.535"></a>
+<span class="sourceLineNo">536</span> *<a name="line.536"></a>
+<span class="sourceLineNo">537</span> * <jc>// Call this method if X-Client-Version is at least 1.1, but less than 2.0.</jc><a name="line.537"></a>
+<span class="sourceLineNo">538</span> * <ja>@RestMethod</ja>(name=<js>"GET"</js>, path=<js>"/foobar"</js>, clientVersion=<js>"[1.1,2.0)"</js>)<a name="line.538"></a>
+<span class="sourceLineNo">539</span> * <jk>public</jk> Object method2() {<a name="line.539"></a>
+<span class="sourceLineNo">540</span> * ...<a name="line.540"></a>
+<span class="sourceLineNo">541</span> * }<a name="line.541"></a>
+<span class="sourceLineNo">542</span> *<a name="line.542"></a>
+<span class="sourceLineNo">543</span> * <jc>// Call this method if X-Client-Version is less than 1.1.</jc><a name="line.543"></a>
+<span class="sourceLineNo">544</span> * <ja>@RestMethod</ja>(name=<js>"GET"</js>, path=<js>"/foobar"</js>, clientVersion=<js>"[0,1.1)"</js>)<a name="line.544"></a>
+<span class="sourceLineNo">545</span> * <jk>public</jk> Object method3() {<a name="line.545"></a>
+<span class="sourceLineNo">546</span> * ...<a name="line.546"></a>
+<span class="sourceLineNo">547</span> * }<a name="line.547"></a>
+<span class="sourceLineNo">548</span> * </p><a name="line.548"></a>
+<span class="sourceLineNo">549</span> * <p><a name="line.549"></a>
+<span class="sourceLineNo">550</span> * It's common to combine the client version with transforms that will convert new POJOs into older POJOs for backwards compatability.<a name="line.550"></a>
+<span class="sourceLineNo">551</span> * <p class='bcode'><a name="line.551"></a>
+<span class="sourceLineNo">552</span> * <jc>// Call this method if X-Client-Version is at least 2.0.</jc><a name="line.552"></a>
+<span class="sourceLineNo">553</span> * <ja>@RestMethod</ja>(name=<js>"GET"</js>, path=<js>"/foobar"</js>, clientVersion=<js>"2.0"</js>)<a name="line.553"></a>
+<span class="sourceLineNo">554</span> * <jk>public</jk> NewPojo newMethod() {<a name="line.554"></a>
+<span class="sourceLineNo">555</span> * ...<a name="line.555"></a>
+<span class="sourceLineNo">556</span> * }<a name="line.556"></a>
+<span class="sourceLineNo">557</span> *<a name="line.557"></a>
+<span class="sourceLineNo">558</span> * <jc>// Call this method if X-Client-Version is at least 1.1, but less than 2.0.</jc><a name="line.558"></a>
+<span class="sourceLineNo">559</span> * <ja>@RestMethod</ja>(name=<js>"GET"</js>, path=<js>"/foobar"</js>, clientVersion=<js>"[1.1,2.0)"</js>, transforms={NewToOldPojoSwap.<jk>class</jk>})<a name="line.559"></a>
+<span class="sourceLineNo">560</span> * <jk>public</jk> NewPojo oldMethod() {<a name="line.560"></a>
+<span class="sourceLineNo">561</span> * <jk>return</jk> newMethod()<a name="line.561"></a>
+<span class="sourceLineNo">562</span> * }<a name="line.562"></a>
+<span class="sourceLineNo">563</span> * <p><a name="line.563"></a>
+<span class="sourceLineNo">564</span> * Note that in the previous example, we're returning the exact same POJO, but using a transform to convert it into an older form.<a name="line.564"></a>
+<span class="sourceLineNo">565</span> * The old method could also just return back a completely different object.<a name="line.565"></a>
+<span class="sourceLineNo">566</span> * The range can be any of the following:<a name="line.566"></a>
+<span class="sourceLineNo">567</span> * <ul><a name="line.567"></a>
+<span class="sourceLineNo">568</span> * <li><js>"[0,1.0)"</js> = Less than 1.0. 1.0 and 1.0.0 does not match.<a name="line.568"></a>
+<span class="sourceLineNo">569</span> * <li><js>"[0,1.0]"</js> = Less than or equal to 1.0. Note that 1.0.1 will match.<a name="line.569"></a>
+<span class="sourceLineNo">570</span> * <li><js>"1.0"</js> = At least 1.0. 1.0 and 2.0 will match.<a name="line.570"></a>
+<span class="sourceLineNo">571</span> * </ul><a name="line.571"></a>
+<span class="sourceLineNo">572</span> */<a name="line.572"></a>
+<span class="sourceLineNo">573</span> String clientVersion() default "";<a name="line.573"></a>
+<span class="sourceLineNo">574</span><a name="line.574"></a>
+<span class="sourceLineNo">575</span> /**<a name="line.575"></a>
+<span class="sourceLineNo">576</span> * Overrides the HTML page title defined on the servlet via the {@link RestResource#pageTitle() @RestResource.pageTitle()} annotation.<a name="line.576"></a>
+<span class="sourceLineNo">577</span> */<a name="line.577"></a>
+<span class="sourceLineNo">578</span> String pageTitle() default "";<a name="line.578"></a>
+<span class="sourceLineNo">579</span><a name="line.579"></a>
+<span class="sourceLineNo">580</span> /**<a name="line.580"></a>
+<span class="sourceLineNo">581</span> * Overrides the HTML page text defined on the servlet via the {@link RestResource#pageText() @RestResource.pageText()} annotation.<a name="line.581"></a>
+<span class="sourceLineNo">582</span> */<a name="line.582"></a>
+<span class="sourceLineNo">583</span> String pageText() default "";<a name="line.583"></a>
+<span class="sourceLineNo">584</span><a name="line.584"></a>
+<span class="sourceLineNo">585</span> /**<a name="line.585"></a>
+<span class="sourceLineNo">586</span> * Overrides the HTML page links defined on the servlet via the {@link RestResource#pageLinks() @RestResource.pageLinks()} annotation.<a name="line.586"></a>
+<span class="sourceLineNo">587</span> */<a name="line.587"></a>
+<span class="sourceLineNo">588</span> String pageLinks() default "";<a name="line.588"></a>
+<span class="sourceLineNo">589</span>}<a name="line.589"></a>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/src-html/org/apache/juneau/rest/client/RestCall.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/rest/client/RestCall.html b/content/site/apidocs/src-html/org/apache/juneau/rest/client/RestCall.html
index d2595b4..becd8f8 100644
--- a/content/site/apidocs/src-html/org/apache/juneau/rest/client/RestCall.html
+++ b/content/site/apidocs/src-html/org/apache/juneau/rest/client/RestCall.html
@@ -747,7 +747,7 @@
<span class="sourceLineNo">739</span> * @return This object (for method chaining).<a name="line.739"></a>
<span class="sourceLineNo">740</span> */<a name="line.740"></a>
<span class="sourceLineNo">741</span> public RestCall maxForwards(Object value) {<a name="line.741"></a>
-<span class="sourceLineNo">742</span> return header("If-Unmodified-Since", value);<a name="line.742"></a>
+<span class="sourceLineNo">742</span> return header("Max-Forwards", value);<a name="line.742"></a>
<span class="sourceLineNo">743</span> }<a name="line.743"></a>
<span class="sourceLineNo">744</span><a name="line.744"></a>
<span class="sourceLineNo">745</span> /**<a name="line.745"></a>
@@ -759,7 +759,7 @@
<span class="sourceLineNo">751</span> * @return This object (for method chaining).<a name="line.751"></a>
<span class="sourceLineNo">752</span> */<a name="line.752"></a>
<span class="sourceLineNo">753</span> public RestCall origin(Object value) {<a name="line.753"></a>
-<span class="sourceLineNo">754</span> return header("If-Unmodified-Since", value);<a name="line.754"></a>
+<span class="sourceLineNo">754</span> return header("Origin", value);<a name="line.754"></a>
<span class="sourceLineNo">755</span> }<a name="line.755"></a>
<span class="sourceLineNo">756</span><a name="line.756"></a>
<span class="sourceLineNo">757</span> /**<a name="line.757"></a>
@@ -1829,7 +1829,18 @@
<span class="sourceLineNo">1821</span> interceptor(new RestCallLogger(level, log));<a name="line.1821"></a>
<span class="sourceLineNo">1822</span> return this;<a name="line.1822"></a>
<span class="sourceLineNo">1823</span> }<a name="line.1823"></a>
-<span class="sourceLineNo">1824</span>}<a name="line.1824"></a>
+<span class="sourceLineNo">1824</span><a name="line.1824"></a>
+<span class="sourceLineNo">1825</span> /**<a name="line.1825"></a>
+<span class="sourceLineNo">1826</span> * Sets <code>Debug: value</code> header on this request.<a name="line.1826"></a>
+<span class="sourceLineNo">1827</span> *<a name="line.1827"></a>
+<span class="sourceLineNo">1828</span> * @param value The debug value.<a name="line.1828"></a>
+<span class="sourceLineNo">1829</span> * @return This object (for method chaining).<a name="line.1829"></a>
+<span class="sourceLineNo">1830</span> */<a name="line.1830"></a>
+<span class="sourceLineNo">1831</span> public RestCall debug(boolean value) {<a name="line.1831"></a>
+<span class="sourceLineNo">1832</span> header("Debug", value);<a name="line.1832"></a>
+<span class="sourceLineNo">1833</span> return this;<a name="line.1833"></a>
+<span class="sourceLineNo">1834</span> }<a name="line.1834"></a>
+<span class="sourceLineNo">1835</span>}<a name="line.1835"></a>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/src-html/org/apache/juneau/rest/converters/Introspectable.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/rest/converters/Introspectable.html b/content/site/apidocs/src-html/org/apache/juneau/rest/converters/Introspectable.html
index 8d7896b..649a79d 100644
--- a/content/site/apidocs/src-html/org/apache/juneau/rest/converters/Introspectable.html
+++ b/content/site/apidocs/src-html/org/apache/juneau/rest/converters/Introspectable.html
@@ -48,8 +48,8 @@
<span class="sourceLineNo">040</span> @Override /* RestConverter */<a name="line.40"></a>
<span class="sourceLineNo">041</span> @SuppressWarnings({"unchecked", "rawtypes"})<a name="line.41"></a>
<span class="sourceLineNo">042</span> public Object convert(RestRequest req, Object o, ClassMeta cm) throws RestException {<a name="line.42"></a>
-<span class="sourceLineNo">043</span> String method = req.getQuery("invokeMethod");<a name="line.43"></a>
-<span class="sourceLineNo">044</span> String args = req.getQuery("invokeArgs");<a name="line.44"></a>
+<span class="sourceLineNo">043</span> String method = req.getQuery().getFirst("invokeMethod");<a name="line.43"></a>
+<span class="sourceLineNo">044</span> String args = req.getQuery().getFirst("invokeArgs");<a name="line.44"></a>
<span class="sourceLineNo">045</span> if (method == null)<a name="line.45"></a>
<span class="sourceLineNo">046</span> return o;<a name="line.46"></a>
<span class="sourceLineNo">047</span> try {<a name="line.47"></a>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/src-html/org/apache/juneau/rest/converters/Traversable.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/rest/converters/Traversable.html b/content/site/apidocs/src-html/org/apache/juneau/rest/converters/Traversable.html
index 699cfc9..a2aed2a 100644
--- a/content/site/apidocs/src-html/org/apache/juneau/rest/converters/Traversable.html
+++ b/content/site/apidocs/src-html/org/apache/juneau/rest/converters/Traversable.html
@@ -57,12 +57,12 @@
<span class="sourceLineNo">049</span> if (o == null)<a name="line.49"></a>
<span class="sourceLineNo">050</span> return null;<a name="line.50"></a>
<span class="sourceLineNo">051</span><a name="line.51"></a>
-<span class="sourceLineNo">052</span> if (req.getPathRemainder() != null) {<a name="line.52"></a>
+<span class="sourceLineNo">052</span> if (req.getPathMatch().getRemainder() != null) {<a name="line.52"></a>
<span class="sourceLineNo">053</span> try {<a name="line.53"></a>
<span class="sourceLineNo">054</span> if (cm.getPojoSwap() != null)<a name="line.54"></a>
<span class="sourceLineNo">055</span> o = cm.getPojoSwap().swap(req.getBeanSession(), o);<a name="line.55"></a>
<span class="sourceLineNo">056</span> PojoRest p = new PojoRest(o, req.getBody().getReaderParser());<a name="line.56"></a>
-<span class="sourceLineNo">057</span> o = p.get(req.getPathRemainder());<a name="line.57"></a>
+<span class="sourceLineNo">057</span> o = p.get(req.getPathMatch().getRemainder());<a name="line.57"></a>
<span class="sourceLineNo">058</span> } catch (SerializeException e) {<a name="line.58"></a>
<span class="sourceLineNo">059</span> throw new RestException(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, e);<a name="line.59"></a>
<span class="sourceLineNo">060</span> } catch (PojoRestException e) {<a name="line.60"></a>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/src-html/org/apache/juneau/rest/response/DefaultHandler.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/rest/response/DefaultHandler.html b/content/site/apidocs/src-html/org/apache/juneau/rest/response/DefaultHandler.html
index 6110983..4fa8f4c 100644
--- a/content/site/apidocs/src-html/org/apache/juneau/rest/response/DefaultHandler.html
+++ b/content/site/apidocs/src-html/org/apache/juneau/rest/response/DefaultHandler.html
@@ -45,7 +45,7 @@
<span class="sourceLineNo">037</span> @Override /* ResponseHandler */<a name="line.37"></a>
<span class="sourceLineNo">038</span> public boolean handle(RestRequest req, RestResponse res, Object output) throws IOException, RestException {<a name="line.38"></a>
<span class="sourceLineNo">039</span> SerializerGroup g = res.getSerializerGroup();<a name="line.39"></a>
-<span class="sourceLineNo">040</span> String accept = req.getHeader("Accept", "");<a name="line.40"></a>
+<span class="sourceLineNo">040</span> String accept = req.getHeaders().getFirst("Accept", "");<a name="line.40"></a>
<span class="sourceLineNo">041</span> SerializerMatch sm = g.getSerializerMatch(accept);<a name="line.41"></a>
<span class="sourceLineNo">042</span> if (sm != null) {<a name="line.42"></a>
<span class="sourceLineNo">043</span> Serializer s = sm.getSerializer();<a name="line.43"></a>
@@ -84,7 +84,7 @@
<span class="sourceLineNo">076</span> } else {<a name="line.76"></a>
<span class="sourceLineNo">077</span> throw new RestException(SC_NOT_ACCEPTABLE,<a name="line.77"></a>
<span class="sourceLineNo">078</span> "Unsupported media-type in request header ''Accept'': ''{0}''\n\tSupported media-types: {1}",<a name="line.78"></a>
-<span class="sourceLineNo">079</span> req.getHeader("Accept", ""), g.getSupportedMediaTypes()<a name="line.79"></a>
+<span class="sourceLineNo">079</span> req.getHeaders().getFirst("Accept", ""), g.getSupportedMediaTypes()<a name="line.79"></a>
<span class="sourceLineNo">080</span> );<a name="line.80"></a>
<span class="sourceLineNo">081</span> }<a name="line.81"></a>
<span class="sourceLineNo">082</span> return true;<a name="line.82"></a>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/src-html/org/apache/juneau/rest/vars/RequestVar.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/rest/vars/RequestVar.html b/content/site/apidocs/src-html/org/apache/juneau/rest/vars/RequestVar.html
index 576b3c4..5aca65e 100644
--- a/content/site/apidocs/src-html/org/apache/juneau/rest/vars/RequestVar.html
+++ b/content/site/apidocs/src-html/org/apache/juneau/rest/vars/RequestVar.html
@@ -78,11 +78,11 @@
<span class="sourceLineNo">070</span> String prefix = k.substring(0, k.indexOf('.'));<a name="line.70"></a>
<span class="sourceLineNo">071</span> String remainder = k.substring(k.indexOf('.')+1);<a name="line.71"></a>
<span class="sourceLineNo">072</span> if ("path".equals(prefix))<a name="line.72"></a>
-<span class="sourceLineNo">073</span> return req.getPathParameter(remainder);<a name="line.73"></a>
+<span class="sourceLineNo">073</span> return req.getPathMatch().get(remainder);<a name="line.73"></a>
<span class="sourceLineNo">074</span> if ("query".equals(prefix))<a name="line.74"></a>
-<span class="sourceLineNo">075</span> return req.getQuery(remainder);<a name="line.75"></a>
+<span class="sourceLineNo">075</span> return req.getQuery().getFirst(remainder);<a name="line.75"></a>
<span class="sourceLineNo">076</span> if ("formData".equals(prefix))<a name="line.76"></a>
-<span class="sourceLineNo">077</span> return req.getFormData(remainder);<a name="line.77"></a>
+<span class="sourceLineNo">077</span> return req.getFormData().getFirst(remainder);<a name="line.77"></a>
<span class="sourceLineNo">078</span> if ("header".equals(prefix))<a name="line.78"></a>
<span class="sourceLineNo">079</span> return req.getHeader(remainder);<a name="line.79"></a>
<span class="sourceLineNo">080</span> if ("attribute".equals(prefix))<a name="line.80"></a>
@@ -127,7 +127,7 @@
<span class="sourceLineNo">119</span> Object o = req.getProperties().get(key);<a name="line.119"></a>
<span class="sourceLineNo">120</span> if (o != null)<a name="line.120"></a>
<span class="sourceLineNo">121</span> return o.toString();<a name="line.121"></a>
-<span class="sourceLineNo">122</span> return req.getPathParameter(key);<a name="line.122"></a>
+<span class="sourceLineNo">122</span> return req.getPathMatch().get(key);<a name="line.122"></a>
<span class="sourceLineNo">123</span> }<a name="line.123"></a>
<span class="sourceLineNo">124</span> return null;<a name="line.124"></a>
<span class="sourceLineNo">125</span> }<a name="line.125"></a>
[03/15] incubator-juneau-website git commit: Update javadocs.
Posted by ja...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/src-html/org/apache/juneau/rest/RestRequest.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/rest/RestRequest.html b/content/site/apidocs/src-html/org/apache/juneau/rest/RestRequest.html
index 1c3df04..01718a4 100644
--- a/content/site/apidocs/src-html/org/apache/juneau/rest/RestRequest.html
+++ b/content/site/apidocs/src-html/org/apache/juneau/rest/RestRequest.html
@@ -75,19 +75,19 @@
<span class="sourceLineNo">067</span> private final RestContext context;<a name="line.67"></a>
<span class="sourceLineNo">068</span><a name="line.68"></a>
<span class="sourceLineNo">069</span> private final String method;<a name="line.69"></a>
-<span class="sourceLineNo">070</span> private String pathRemainder;<a name="line.70"></a>
-<span class="sourceLineNo">071</span> private RequestBody body;<a name="line.71"></a>
-<span class="sourceLineNo">072</span> private Method javaMethod;<a name="line.72"></a>
-<span class="sourceLineNo">073</span> private ObjectMap properties;<a name="line.73"></a>
-<span class="sourceLineNo">074</span> private SerializerGroup serializerGroup;<a name="line.74"></a>
-<span class="sourceLineNo">075</span> private ParserGroup parserGroup;<a name="line.75"></a>
-<span class="sourceLineNo">076</span> private final boolean debug;<a name="line.76"></a>
-<span class="sourceLineNo">077</span> private UrlEncodingParser urlEncodingParser; // The parser used to parse URL attributes and parameters (beanContext also used to parse headers)<a name="line.77"></a>
-<span class="sourceLineNo">078</span> private BeanSession beanSession;<a name="line.78"></a>
-<span class="sourceLineNo">079</span> private VarResolverSession varSession;<a name="line.79"></a>
-<span class="sourceLineNo">080</span> private final RequestQuery queryParams;<a name="line.80"></a>
-<span class="sourceLineNo">081</span> private RequestFormData formData;<a name="line.81"></a>
-<span class="sourceLineNo">082</span> private RequestPathParams pathParams;<a name="line.82"></a>
+<span class="sourceLineNo">070</span> private RequestBody body;<a name="line.70"></a>
+<span class="sourceLineNo">071</span> private Method javaMethod;<a name="line.71"></a>
+<span class="sourceLineNo">072</span> private ObjectMap properties;<a name="line.72"></a>
+<span class="sourceLineNo">073</span> private SerializerGroup serializerGroup;<a name="line.73"></a>
+<span class="sourceLineNo">074</span> private ParserGroup parserGroup;<a name="line.74"></a>
+<span class="sourceLineNo">075</span> private final boolean debug;<a name="line.75"></a>
+<span class="sourceLineNo">076</span> private UrlEncodingParser urlEncodingParser; // The parser used to parse URL attributes and parameters (beanContext also used to parse headers)<a name="line.76"></a>
+<span class="sourceLineNo">077</span> private BeanSession beanSession;<a name="line.77"></a>
+<span class="sourceLineNo">078</span> private VarResolverSession varSession;<a name="line.78"></a>
+<span class="sourceLineNo">079</span> private final RequestQuery queryParams;<a name="line.79"></a>
+<span class="sourceLineNo">080</span> private RequestFormData formData;<a name="line.80"></a>
+<span class="sourceLineNo">081</span> private Map<String,String> defFormData;<a name="line.81"></a>
+<span class="sourceLineNo">082</span> private RequestPathMatch pathParams;<a name="line.82"></a>
<span class="sourceLineNo">083</span> private boolean isPost;<a name="line.83"></a>
<span class="sourceLineNo">084</span> private String servletURI, relativeServletURI;<a name="line.84"></a>
<span class="sourceLineNo">085</span> private String charset, defaultCharset;<a name="line.85"></a>
@@ -119,7 +119,7 @@
<span class="sourceLineNo">111</span> // Can be overridden through a "method" GET attribute.<a name="line.111"></a>
<span class="sourceLineNo">112</span> String _method = super.getMethod();<a name="line.112"></a>
<span class="sourceLineNo">113</span><a name="line.113"></a>
-<span class="sourceLineNo">114</span> String m = getQuery("method");<a name="line.114"></a>
+<span class="sourceLineNo">114</span> String m = getQuery().getFirst("method");<a name="line.114"></a>
<span class="sourceLineNo">115</span> if (context.allowMethodParam(m))<a name="line.115"></a>
<span class="sourceLineNo">116</span> _method = m;<a name="line.116"></a>
<span class="sourceLineNo">117</span><a name="line.117"></a>
@@ -134,7 +134,7 @@
<span class="sourceLineNo">126</span> body = new RequestBody(this);<a name="line.126"></a>
<span class="sourceLineNo">127</span><a name="line.127"></a>
<span class="sourceLineNo">128</span> if (context.isAllowBodyParam()) {<a name="line.128"></a>
-<span class="sourceLineNo">129</span> String b = getQuery("body");<a name="line.129"></a>
+<span class="sourceLineNo">129</span> String b = getQuery().getFirst("body");<a name="line.129"></a>
<span class="sourceLineNo">130</span> if (b != null) {<a name="line.130"></a>
<span class="sourceLineNo">131</span> headers.put("Content-Type", UonSerializer.DEFAULT.getResponseContentType());<a name="line.131"></a>
<span class="sourceLineNo">132</span> body.load(b.getBytes(IOUtils.UTF8));<a name="line.132"></a>
@@ -144,9 +144,9 @@
<span class="sourceLineNo">136</span> if (context.isAllowHeaderParams())<a name="line.136"></a>
<span class="sourceLineNo">137</span> headers.setQueryParams(queryParams);<a name="line.137"></a>
<span class="sourceLineNo">138</span><a name="line.138"></a>
-<span class="sourceLineNo">139</span> debug = "true".equals(getQuery("debug", "false")) || "true".equals(getHeader("Debug", "false"));<a name="line.139"></a>
+<span class="sourceLineNo">139</span> debug = "true".equals(getQuery().getFirst("debug", "false")) || "true".equals(getHeaders().getFirst("Debug", "false"));<a name="line.139"></a>
<span class="sourceLineNo">140</span><a name="line.140"></a>
-<span class="sourceLineNo">141</span> this.pathParams = new RequestPathParams();<a name="line.141"></a>
+<span class="sourceLineNo">141</span> this.pathParams = new RequestPathMatch();<a name="line.141"></a>
<span class="sourceLineNo">142</span><a name="line.142"></a>
<span class="sourceLineNo">143</span> } catch (RestException e) {<a name="line.143"></a>
<span class="sourceLineNo">144</span> throw e;<a name="line.144"></a>
@@ -159,1009 +159,859 @@
<span class="sourceLineNo">151</span> * Called from RestServlet after a match has been made but before the guard or method invocation.<a name="line.151"></a>
<span class="sourceLineNo">152</span> */<a name="line.152"></a>
<span class="sourceLineNo">153</span> @SuppressWarnings("hiding")<a name="line.153"></a>
-<span class="sourceLineNo">154</span> final void init(Method javaMethod, String pathRemainder, ObjectMap properties, Map<String,String> mDefaultRequestHeaders, String defaultCharset, SerializerGroup mSerializers, ParserGroup mParsers, UrlEncodingParser mUrlEncodingParser, EncoderGroup encoders, String pageTitle, String pageText, String pageLinks) {<a name="line.154"></a>
-<span class="sourceLineNo">155</span> this.javaMethod = javaMethod;<a name="line.155"></a>
-<span class="sourceLineNo">156</span> this.pathRemainder = pathRemainder;<a name="line.156"></a>
-<span class="sourceLineNo">157</span> this.properties = properties;<a name="line.157"></a>
-<span class="sourceLineNo">158</span> this.urlEncodingParser = mUrlEncodingParser;<a name="line.158"></a>
-<span class="sourceLineNo">159</span> this.beanSession = urlEncodingParser.getBeanContext().createSession();<a name="line.159"></a>
-<span class="sourceLineNo">160</span> this.pathParams<a name="line.160"></a>
-<span class="sourceLineNo">161</span> .setParser(urlEncodingParser)<a name="line.161"></a>
-<span class="sourceLineNo">162</span> .setBeanSession(beanSession);<a name="line.162"></a>
-<span class="sourceLineNo">163</span> this.queryParams<a name="line.163"></a>
-<span class="sourceLineNo">164</span> .setParser(urlEncodingParser)<a name="line.164"></a>
-<span class="sourceLineNo">165</span> .setBeanSession(beanSession);<a name="line.165"></a>
-<span class="sourceLineNo">166</span> this.headers<a name="line.166"></a>
-<span class="sourceLineNo">167</span> .addDefault(mDefaultRequestHeaders)<a name="line.167"></a>
-<span class="sourceLineNo">168</span> .addDefault(context.getDefaultRequestHeaders())<a name="line.168"></a>
-<span class="sourceLineNo">169</span> .setParser(urlEncodingParser)<a name="line.169"></a>
-<span class="sourceLineNo">170</span> .setBeanSession(beanSession);<a name="line.170"></a>
-<span class="sourceLineNo">171</span> this.body<a name="line.171"></a>
-<span class="sourceLineNo">172</span> .setEncoders(encoders)<a name="line.172"></a>
-<span class="sourceLineNo">173</span> .setParsers(mParsers)<a name="line.173"></a>
-<span class="sourceLineNo">174</span> .setHeaders(headers)<a name="line.174"></a>
-<span class="sourceLineNo">175</span> .setBeanSession(beanSession)<a name="line.175"></a>
-<span class="sourceLineNo">176</span> .setUrlEncodingParser(mUrlEncodingParser);<a name="line.176"></a>
-<span class="sourceLineNo">177</span> this.serializerGroup = mSerializers;<a name="line.177"></a>
-<span class="sourceLineNo">178</span> this.parserGroup = mParsers;<a name="line.178"></a>
-<span class="sourceLineNo">179</span> this.defaultCharset = defaultCharset;<a name="line.179"></a>
-<span class="sourceLineNo">180</span> this.pageTitle = pageTitle;<a name="line.180"></a>
-<span class="sourceLineNo">181</span> this.pageText = pageText;<a name="line.181"></a>
-<span class="sourceLineNo">182</span> this.pageLinks = pageLinks;<a name="line.182"></a>
-<span class="sourceLineNo">183</span><a name="line.183"></a>
-<span class="sourceLineNo">184</span> if (debug) {<a name="line.184"></a>
-<span class="sourceLineNo">185</span> String msg = ""<a name="line.185"></a>
-<span class="sourceLineNo">186</span> + "\n=== HTTP Request (incoming) ===================================================="<a name="line.186"></a>
-<span class="sourceLineNo">187</span> + toString()<a name="line.187"></a>
-<span class="sourceLineNo">188</span> + "\n=== END ========================================================================";<a name="line.188"></a>
-<span class="sourceLineNo">189</span> context.getLogger().log(Level.WARNING, msg);<a name="line.189"></a>
-<span class="sourceLineNo">190</span> }<a name="line.190"></a>
-<span class="sourceLineNo">191</span> }<a name="line.191"></a>
-<span class="sourceLineNo">192</span><a name="line.192"></a>
-<span class="sourceLineNo">193</span> /**<a name="line.193"></a>
-<span class="sourceLineNo">194</span> * Returns a string of the form <js>"HTTP method-name full-url"</js><a name="line.194"></a>
-<span class="sourceLineNo">195</span> *<a name="line.195"></a>
-<span class="sourceLineNo">196</span> * @return A description of the request.<a name="line.196"></a>
-<span class="sourceLineNo">197</span> */<a name="line.197"></a>
-<span class="sourceLineNo">198</span> public String getDescription() {<a name="line.198"></a>
-<span class="sourceLineNo">199</span> String qs = getQueryString();<a name="line.199"></a>
-<span class="sourceLineNo">200</span> return "HTTP " + getMethod() + " " + getRequestURI() + (qs == null ? "" : "?" + qs);<a name="line.200"></a>
-<span class="sourceLineNo">201</span> }<a name="line.201"></a>
-<span class="sourceLineNo">202</span><a name="line.202"></a>
-<span class="sourceLineNo">203</span><a name="line.203"></a>
-<span class="sourceLineNo">204</span> //--------------------------------------------------------------------------------<a name="line.204"></a>
-<span class="sourceLineNo">205</span> // Properties<a name="line.205"></a>
-<span class="sourceLineNo">206</span> //--------------------------------------------------------------------------------<a name="line.206"></a>
+<span class="sourceLineNo">154</span> final void init(Method javaMethod, ObjectMap properties, Map<String,String> defHeader,<a name="line.154"></a>
+<span class="sourceLineNo">155</span> Map<String,String> defQuery, Map<String,String> defFormData, String defaultCharset,<a name="line.155"></a>
+<span class="sourceLineNo">156</span> SerializerGroup mSerializers, ParserGroup mParsers, UrlEncodingParser mUrlEncodingParser,<a name="line.156"></a>
+<span class="sourceLineNo">157</span> EncoderGroup encoders, String pageTitle, String pageText, String pageLinks) {<a name="line.157"></a>
+<span class="sourceLineNo">158</span> this.javaMethod = javaMethod;<a name="line.158"></a>
+<span class="sourceLineNo">159</span> this.properties = properties;<a name="line.159"></a>
+<span class="sourceLineNo">160</span> this.urlEncodingParser = mUrlEncodingParser;<a name="line.160"></a>
+<span class="sourceLineNo">161</span> this.beanSession = urlEncodingParser.getBeanContext().createSession();<a name="line.161"></a>
+<span class="sourceLineNo">162</span> this.pathParams<a name="line.162"></a>
+<span class="sourceLineNo">163</span> .setParser(urlEncodingParser)<a name="line.163"></a>
+<span class="sourceLineNo">164</span> .setBeanSession(beanSession);<a name="line.164"></a>
+<span class="sourceLineNo">165</span> this.queryParams<a name="line.165"></a>
+<span class="sourceLineNo">166</span> .addDefault(defQuery)<a name="line.166"></a>
+<span class="sourceLineNo">167</span> .setParser(urlEncodingParser)<a name="line.167"></a>
+<span class="sourceLineNo">168</span> .setBeanSession(beanSession);<a name="line.168"></a>
+<span class="sourceLineNo">169</span> this.headers<a name="line.169"></a>
+<span class="sourceLineNo">170</span> .addDefault(defHeader)<a name="line.170"></a>
+<span class="sourceLineNo">171</span> .addDefault(context.getDefaultRequestHeaders())<a name="line.171"></a>
+<span class="sourceLineNo">172</span> .setParser(urlEncodingParser)<a name="line.172"></a>
+<span class="sourceLineNo">173</span> .setBeanSession(beanSession);<a name="line.173"></a>
+<span class="sourceLineNo">174</span> this.body<a name="line.174"></a>
+<span class="sourceLineNo">175</span> .setEncoders(encoders)<a name="line.175"></a>
+<span class="sourceLineNo">176</span> .setParsers(mParsers)<a name="line.176"></a>
+<span class="sourceLineNo">177</span> .setHeaders(headers)<a name="line.177"></a>
+<span class="sourceLineNo">178</span> .setBeanSession(beanSession)<a name="line.178"></a>
+<span class="sourceLineNo">179</span> .setUrlEncodingParser(mUrlEncodingParser);<a name="line.179"></a>
+<span class="sourceLineNo">180</span> this.serializerGroup = mSerializers;<a name="line.180"></a>
+<span class="sourceLineNo">181</span> this.parserGroup = mParsers;<a name="line.181"></a>
+<span class="sourceLineNo">182</span> this.defaultCharset = defaultCharset;<a name="line.182"></a>
+<span class="sourceLineNo">183</span> this.pageTitle = pageTitle;<a name="line.183"></a>
+<span class="sourceLineNo">184</span> this.pageText = pageText;<a name="line.184"></a>
+<span class="sourceLineNo">185</span> this.pageLinks = pageLinks;<a name="line.185"></a>
+<span class="sourceLineNo">186</span> this.defFormData = defFormData;<a name="line.186"></a>
+<span class="sourceLineNo">187</span><a name="line.187"></a>
+<span class="sourceLineNo">188</span> if (debug) {<a name="line.188"></a>
+<span class="sourceLineNo">189</span> String msg = ""<a name="line.189"></a>
+<span class="sourceLineNo">190</span> + "\n=== HTTP Request (incoming) ===================================================="<a name="line.190"></a>
+<span class="sourceLineNo">191</span> + toString()<a name="line.191"></a>
+<span class="sourceLineNo">192</span> + "\n=== END ========================================================================";<a name="line.192"></a>
+<span class="sourceLineNo">193</span> context.getLogger().log(Level.WARNING, msg);<a name="line.193"></a>
+<span class="sourceLineNo">194</span> }<a name="line.194"></a>
+<span class="sourceLineNo">195</span> }<a name="line.195"></a>
+<span class="sourceLineNo">196</span><a name="line.196"></a>
+<span class="sourceLineNo">197</span> /**<a name="line.197"></a>
+<span class="sourceLineNo">198</span> * Returns a string of the form <js>"HTTP method-name full-url"</js><a name="line.198"></a>
+<span class="sourceLineNo">199</span> *<a name="line.199"></a>
+<span class="sourceLineNo">200</span> * @return A description of the request.<a name="line.200"></a>
+<span class="sourceLineNo">201</span> */<a name="line.201"></a>
+<span class="sourceLineNo">202</span> public String getDescription() {<a name="line.202"></a>
+<span class="sourceLineNo">203</span> String qs = getQueryString();<a name="line.203"></a>
+<span class="sourceLineNo">204</span> return "HTTP " + getMethod() + " " + getRequestURI() + (qs == null ? "" : "?" + qs);<a name="line.204"></a>
+<span class="sourceLineNo">205</span> }<a name="line.205"></a>
+<span class="sourceLineNo">206</span><a name="line.206"></a>
<span class="sourceLineNo">207</span><a name="line.207"></a>
-<span class="sourceLineNo">208</span> /**<a name="line.208"></a>
-<span class="sourceLineNo">209</span> * Servlet calls this method to initialize the properties.<a name="line.209"></a>
-<span class="sourceLineNo">210</span> */<a name="line.210"></a>
-<span class="sourceLineNo">211</span> RestRequest setProperties(ObjectMap properties) {<a name="line.211"></a>
-<span class="sourceLineNo">212</span> this.properties = properties;<a name="line.212"></a>
-<span class="sourceLineNo">213</span> return this;<a name="line.213"></a>
-<span class="sourceLineNo">214</span> }<a name="line.214"></a>
-<span class="sourceLineNo">215</span><a name="line.215"></a>
-<span class="sourceLineNo">216</span> /**<a name="line.216"></a>
-<span class="sourceLineNo">217</span> * Retrieve the properties active for this request.<a name="line.217"></a>
-<span class="sourceLineNo">218</span> * <p><a name="line.218"></a>
-<span class="sourceLineNo">219</span> * These properties can be modified by the request.<a name="line.219"></a>
-<span class="sourceLineNo">220</span> *<a name="line.220"></a>
-<span class="sourceLineNo">221</span> * @return The properties active for this request.<a name="line.221"></a>
-<span class="sourceLineNo">222</span> */<a name="line.222"></a>
-<span class="sourceLineNo">223</span> public ObjectMap getProperties() {<a name="line.223"></a>
-<span class="sourceLineNo">224</span> return this.properties;<a name="line.224"></a>
-<span class="sourceLineNo">225</span> }<a name="line.225"></a>
-<span class="sourceLineNo">226</span><a name="line.226"></a>
-<span class="sourceLineNo">227</span><a name="line.227"></a>
-<span class="sourceLineNo">228</span> //--------------------------------------------------------------------------------<a name="line.228"></a>
-<span class="sourceLineNo">229</span> // Headers<a name="line.229"></a>
-<span class="sourceLineNo">230</span> //--------------------------------------------------------------------------------<a name="line.230"></a>
+<span class="sourceLineNo">208</span> //--------------------------------------------------------------------------------<a name="line.208"></a>
+<span class="sourceLineNo">209</span> // Properties<a name="line.209"></a>
+<span class="sourceLineNo">210</span> //--------------------------------------------------------------------------------<a name="line.210"></a>
+<span class="sourceLineNo">211</span><a name="line.211"></a>
+<span class="sourceLineNo">212</span> /**<a name="line.212"></a>
+<span class="sourceLineNo">213</span> * Servlet calls this method to initialize the properties.<a name="line.213"></a>
+<span class="sourceLineNo">214</span> */<a name="line.214"></a>
+<span class="sourceLineNo">215</span> RestRequest setProperties(ObjectMap properties) {<a name="line.215"></a>
+<span class="sourceLineNo">216</span> this.properties = properties;<a name="line.216"></a>
+<span class="sourceLineNo">217</span> return this;<a name="line.217"></a>
+<span class="sourceLineNo">218</span> }<a name="line.218"></a>
+<span class="sourceLineNo">219</span><a name="line.219"></a>
+<span class="sourceLineNo">220</span> /**<a name="line.220"></a>
+<span class="sourceLineNo">221</span> * Retrieve the properties active for this request.<a name="line.221"></a>
+<span class="sourceLineNo">222</span> * <p><a name="line.222"></a>
+<span class="sourceLineNo">223</span> * These properties can be modified by the request.<a name="line.223"></a>
+<span class="sourceLineNo">224</span> *<a name="line.224"></a>
+<span class="sourceLineNo">225</span> * @return The properties active for this request.<a name="line.225"></a>
+<span class="sourceLineNo">226</span> */<a name="line.226"></a>
+<span class="sourceLineNo">227</span> public ObjectMap getProperties() {<a name="line.227"></a>
+<span class="sourceLineNo">228</span> return this.properties;<a name="line.228"></a>
+<span class="sourceLineNo">229</span> }<a name="line.229"></a>
+<span class="sourceLineNo">230</span><a name="line.230"></a>
<span class="sourceLineNo">231</span><a name="line.231"></a>
-<span class="sourceLineNo">232</span> /**<a name="line.232"></a>
-<span class="sourceLineNo">233</span> * Returns the headers on this request.<a name="line.233"></a>
-<span class="sourceLineNo">234</span> *<a name="line.234"></a>
-<span class="sourceLineNo">235</span> * @return The headers on this request. Never <jk>null</jk>.<a name="line.235"></a>
-<span class="sourceLineNo">236</span> */<a name="line.236"></a>
-<span class="sourceLineNo">237</span> public RequestHeaders getHeaders() {<a name="line.237"></a>
-<span class="sourceLineNo">238</span> return headers;<a name="line.238"></a>
-<span class="sourceLineNo">239</span> }<a name="line.239"></a>
-<span class="sourceLineNo">240</span><a name="line.240"></a>
-<span class="sourceLineNo">241</span> /**<a name="line.241"></a>
-<span class="sourceLineNo">242</span> * Convenience method for calling <code>getHeaders().put(name, value);</code><a name="line.242"></a>
-<span class="sourceLineNo">243</span> *<a name="line.243"></a>
-<span class="sourceLineNo">244</span> * @param name The header name.<a name="line.244"></a>
-<span class="sourceLineNo">245</span> * @param value The header value.<a name="line.245"></a>
-<span class="sourceLineNo">246</span> */<a name="line.246"></a>
-<span class="sourceLineNo">247</span> public void setHeader(String name, Object value) {<a name="line.247"></a>
-<span class="sourceLineNo">248</span> getHeaders().put(name, value);<a name="line.248"></a>
-<span class="sourceLineNo">249</span> }<a name="line.249"></a>
-<span class="sourceLineNo">250</span><a name="line.250"></a>
-<span class="sourceLineNo">251</span> /**<a name="line.251"></a>
-<span class="sourceLineNo">252</span> * Convenience method for calling <code>getHeaders().getFirst(name);</code><a name="line.252"></a>
-<span class="sourceLineNo">253</span> */<a name="line.253"></a>
-<span class="sourceLineNo">254</span> @Override /* ServletRequest */<a name="line.254"></a>
-<span class="sourceLineNo">255</span> public String getHeader(String name) {<a name="line.255"></a>
-<span class="sourceLineNo">256</span> return getHeaders().getFirst(name);<a name="line.256"></a>
-<span class="sourceLineNo">257</span> }<a name="line.257"></a>
-<span class="sourceLineNo">258</span><a name="line.258"></a>
-<span class="sourceLineNo">259</span> /**<a name="line.259"></a>
-<span class="sourceLineNo">260</span> * Convenience method for calling <code>getHeaders().getFirst(name, def);</code><a name="line.260"></a>
-<span class="sourceLineNo">261</span> *<a name="line.261"></a>
-<span class="sourceLineNo">262</span> * @param name The HTTP header name.<a name="line.262"></a>
-<span class="sourceLineNo">263</span> * @param def The default value to return if the header value isn't found.<a name="line.263"></a>
-<span class="sourceLineNo">264</span> * @return The header value, or the default value if the header isn't present.<a name="line.264"></a>
-<span class="sourceLineNo">265</span> */<a name="line.265"></a>
-<span class="sourceLineNo">266</span> public String getHeader(String name, String def) {<a name="line.266"></a>
-<span class="sourceLineNo">267</span> return getHeaders().getFirst(name, def);<a name="line.267"></a>
-<span class="sourceLineNo">268</span> }<a name="line.268"></a>
-<span class="sourceLineNo">269</span><a name="line.269"></a>
+<span class="sourceLineNo">232</span> //--------------------------------------------------------------------------------<a name="line.232"></a>
+<span class="sourceLineNo">233</span> // Headers<a name="line.233"></a>
+<span class="sourceLineNo">234</span> //--------------------------------------------------------------------------------<a name="line.234"></a>
+<span class="sourceLineNo">235</span><a name="line.235"></a>
+<span class="sourceLineNo">236</span> /**<a name="line.236"></a>
+<span class="sourceLineNo">237</span> * Returns the headers on this request.<a name="line.237"></a>
+<span class="sourceLineNo">238</span> *<a name="line.238"></a>
+<span class="sourceLineNo">239</span> * @return The headers on this request. Never <jk>null</jk>.<a name="line.239"></a>
+<span class="sourceLineNo">240</span> */<a name="line.240"></a>
+<span class="sourceLineNo">241</span> public RequestHeaders getHeaders() {<a name="line.241"></a>
+<span class="sourceLineNo">242</span> return headers;<a name="line.242"></a>
+<span class="sourceLineNo">243</span> }<a name="line.243"></a>
+<span class="sourceLineNo">244</span><a name="line.244"></a>
+<span class="sourceLineNo">245</span> @Override /* ServletRequest */<a name="line.245"></a>
+<span class="sourceLineNo">246</span> public String getHeader(String name) {<a name="line.246"></a>
+<span class="sourceLineNo">247</span> return getHeaders().getFirst(name);<a name="line.247"></a>
+<span class="sourceLineNo">248</span> }<a name="line.248"></a>
+<span class="sourceLineNo">249</span><a name="line.249"></a>
+<span class="sourceLineNo">250</span> @Override /* ServletRequest */<a name="line.250"></a>
+<span class="sourceLineNo">251</span> public Enumeration<String> getHeaders(String name) {<a name="line.251"></a>
+<span class="sourceLineNo">252</span> String[] v = headers.get(name);<a name="line.252"></a>
+<span class="sourceLineNo">253</span> if (v == null || v.length == 0)<a name="line.253"></a>
+<span class="sourceLineNo">254</span> return Collections.enumeration(Collections.EMPTY_LIST);<a name="line.254"></a>
+<span class="sourceLineNo">255</span> return Collections.enumeration(Arrays.asList(v));<a name="line.255"></a>
+<span class="sourceLineNo">256</span> }<a name="line.256"></a>
+<span class="sourceLineNo">257</span><a name="line.257"></a>
+<span class="sourceLineNo">258</span> /**<a name="line.258"></a>
+<span class="sourceLineNo">259</span> * Returns the media types that are valid for <code>Content-Type</code> headers on the request.<a name="line.259"></a>
+<span class="sourceLineNo">260</span> *<a name="line.260"></a>
+<span class="sourceLineNo">261</span> * @return The set of media types registered in the parser group of this request.<a name="line.261"></a>
+<span class="sourceLineNo">262</span> */<a name="line.262"></a>
+<span class="sourceLineNo">263</span> public List<MediaType> getSupportedMediaTypes() {<a name="line.263"></a>
+<span class="sourceLineNo">264</span> return parserGroup.getSupportedMediaTypes();<a name="line.264"></a>
+<span class="sourceLineNo">265</span> }<a name="line.265"></a>
+<span class="sourceLineNo">266</span><a name="line.266"></a>
+<span class="sourceLineNo">267</span> /**<a name="line.267"></a>
+<span class="sourceLineNo">268</span> * Sets the charset to expect on the request body.<a name="line.268"></a>
+<span class="sourceLineNo">269</span> */<a name="line.269"></a>
<span class="sourceLineNo">270</span> @Override /* ServletRequest */<a name="line.270"></a>
-<span class="sourceLineNo">271</span> public Enumeration<String> getHeaders(String name) {<a name="line.271"></a>
-<span class="sourceLineNo">272</span> String[] v = headers.get(name);<a name="line.272"></a>
-<span class="sourceLineNo">273</span> if (v == null || v.length == 0)<a name="line.273"></a>
-<span class="sourceLineNo">274</span> return Collections.enumeration(Collections.EMPTY_LIST);<a name="line.274"></a>
-<span class="sourceLineNo">275</span> return Collections.enumeration(Arrays.asList(v));<a name="line.275"></a>
-<span class="sourceLineNo">276</span> }<a name="line.276"></a>
-<span class="sourceLineNo">277</span><a name="line.277"></a>
-<span class="sourceLineNo">278</span> /**<a name="line.278"></a>
-<span class="sourceLineNo">279</span> * Returns the media types that are valid for <code>Content-Type</code> headers on the request.<a name="line.279"></a>
-<span class="sourceLineNo">280</span> *<a name="line.280"></a>
-<span class="sourceLineNo">281</span> * @return The set of media types registered in the parser group of this request.<a name="line.281"></a>
-<span class="sourceLineNo">282</span> */<a name="line.282"></a>
-<span class="sourceLineNo">283</span> public List<MediaType> getSupportedMediaTypes() {<a name="line.283"></a>
-<span class="sourceLineNo">284</span> return parserGroup.getSupportedMediaTypes();<a name="line.284"></a>
-<span class="sourceLineNo">285</span> }<a name="line.285"></a>
-<span class="sourceLineNo">286</span><a name="line.286"></a>
-<span class="sourceLineNo">287</span> /**<a name="line.287"></a>
-<span class="sourceLineNo">288</span> * Sets the charset to expect on the request body.<a name="line.288"></a>
-<span class="sourceLineNo">289</span> */<a name="line.289"></a>
-<span class="sourceLineNo">290</span> @Override /* ServletRequest */<a name="line.290"></a>
-<span class="sourceLineNo">291</span> public void setCharacterEncoding(String charset) {<a name="line.291"></a>
-<span class="sourceLineNo">292</span> this.charset = charset;<a name="line.292"></a>
-<span class="sourceLineNo">293</span> }<a name="line.293"></a>
-<span class="sourceLineNo">294</span><a name="line.294"></a>
-<span class="sourceLineNo">295</span> /**<a name="line.295"></a>
-<span class="sourceLineNo">296</span> * Returns the charset specified on the <code>Content-Type</code> header, or <js>"UTF-8"</js> if not specified.<a name="line.296"></a>
-<span class="sourceLineNo">297</span> */<a name="line.297"></a>
+<span class="sourceLineNo">271</span> public void setCharacterEncoding(String charset) {<a name="line.271"></a>
+<span class="sourceLineNo">272</span> this.charset = charset;<a name="line.272"></a>
+<span class="sourceLineNo">273</span> }<a name="line.273"></a>
+<span class="sourceLineNo">274</span><a name="line.274"></a>
+<span class="sourceLineNo">275</span> /**<a name="line.275"></a>
+<span class="sourceLineNo">276</span> * Returns the charset specified on the <code>Content-Type</code> header, or <js>"UTF-8"</js> if not specified.<a name="line.276"></a>
+<span class="sourceLineNo">277</span> */<a name="line.277"></a>
+<span class="sourceLineNo">278</span> @Override /* ServletRequest */<a name="line.278"></a>
+<span class="sourceLineNo">279</span> public String getCharacterEncoding() {<a name="line.279"></a>
+<span class="sourceLineNo">280</span> if (charset == null) {<a name="line.280"></a>
+<span class="sourceLineNo">281</span> // Determine charset<a name="line.281"></a>
+<span class="sourceLineNo">282</span> // NOTE: Don't use super.getCharacterEncoding() because the spec is implemented inconsistently.<a name="line.282"></a>
+<span class="sourceLineNo">283</span> // Jetty returns the default charset instead of null if the character is not specified on the request.<a name="line.283"></a>
+<span class="sourceLineNo">284</span> String h = getHeader("Content-Type");<a name="line.284"></a>
+<span class="sourceLineNo">285</span> if (h != null) {<a name="line.285"></a>
+<span class="sourceLineNo">286</span> int i = h.indexOf(";charset=");<a name="line.286"></a>
+<span class="sourceLineNo">287</span> if (i > 0)<a name="line.287"></a>
+<span class="sourceLineNo">288</span> charset = h.substring(i+9).trim();<a name="line.288"></a>
+<span class="sourceLineNo">289</span> }<a name="line.289"></a>
+<span class="sourceLineNo">290</span> if (charset == null)<a name="line.290"></a>
+<span class="sourceLineNo">291</span> charset = defaultCharset;<a name="line.291"></a>
+<span class="sourceLineNo">292</span> if (! Charset.isSupported(charset))<a name="line.292"></a>
+<span class="sourceLineNo">293</span> throw new RestException(SC_UNSUPPORTED_MEDIA_TYPE, "Unsupported charset in header ''Content-Type'': ''{0}''", h);<a name="line.293"></a>
+<span class="sourceLineNo">294</span> }<a name="line.294"></a>
+<span class="sourceLineNo">295</span> return charset;<a name="line.295"></a>
+<span class="sourceLineNo">296</span> }<a name="line.296"></a>
+<span class="sourceLineNo">297</span><a name="line.297"></a>
<span class="sourceLineNo">298</span> @Override /* ServletRequest */<a name="line.298"></a>
-<span class="sourceLineNo">299</span> public String getCharacterEncoding() {<a name="line.299"></a>
-<span class="sourceLineNo">300</span> if (charset == null) {<a name="line.300"></a>
-<span class="sourceLineNo">301</span> // Determine charset<a name="line.301"></a>
-<span class="sourceLineNo">302</span> // NOTE: Don't use super.getCharacterEncoding() because the spec is implemented inconsistently.<a name="line.302"></a>
-<span class="sourceLineNo">303</span> // Jetty returns the default charset instead of null if the character is not specified on the request.<a name="line.303"></a>
-<span class="sourceLineNo">304</span> String h = getHeader("Content-Type");<a name="line.304"></a>
-<span class="sourceLineNo">305</span> if (h != null) {<a name="line.305"></a>
-<span class="sourceLineNo">306</span> int i = h.indexOf(";charset=");<a name="line.306"></a>
-<span class="sourceLineNo">307</span> if (i > 0)<a name="line.307"></a>
-<span class="sourceLineNo">308</span> charset = h.substring(i+9).trim();<a name="line.308"></a>
-<span class="sourceLineNo">309</span> }<a name="line.309"></a>
-<span class="sourceLineNo">310</span> if (charset == null)<a name="line.310"></a>
-<span class="sourceLineNo">311</span> charset = defaultCharset;<a name="line.311"></a>
-<span class="sourceLineNo">312</span> if (! Charset.isSupported(charset))<a name="line.312"></a>
-<span class="sourceLineNo">313</span> throw new RestException(SC_UNSUPPORTED_MEDIA_TYPE, "Unsupported charset in header ''Content-Type'': ''{0}''", h);<a name="line.313"></a>
-<span class="sourceLineNo">314</span> }<a name="line.314"></a>
-<span class="sourceLineNo">315</span> return charset;<a name="line.315"></a>
-<span class="sourceLineNo">316</span> }<a name="line.316"></a>
-<span class="sourceLineNo">317</span><a name="line.317"></a>
-<span class="sourceLineNo">318</span> @Override /* ServletRequest */<a name="line.318"></a>
-<span class="sourceLineNo">319</span> public Locale getLocale() {<a name="line.319"></a>
-<span class="sourceLineNo">320</span> String h = headers.getFirst("Accept-Language");<a name="line.320"></a>
-<span class="sourceLineNo">321</span> if (h != null) {<a name="line.321"></a>
-<span class="sourceLineNo">322</span> MediaTypeRange[] mr = MediaTypeRange.parse(h);<a name="line.322"></a>
-<span class="sourceLineNo">323</span> if (mr.length > 0)<a name="line.323"></a>
-<span class="sourceLineNo">324</span> return toLocale(mr[0].getMediaType().getType());<a name="line.324"></a>
-<span class="sourceLineNo">325</span> }<a name="line.325"></a>
-<span class="sourceLineNo">326</span> return super.getLocale();<a name="line.326"></a>
-<span class="sourceLineNo">327</span> }<a name="line.327"></a>
+<span class="sourceLineNo">299</span> public Locale getLocale() {<a name="line.299"></a>
+<span class="sourceLineNo">300</span> String h = headers.getFirst("Accept-Language");<a name="line.300"></a>
+<span class="sourceLineNo">301</span> if (h != null) {<a name="line.301"></a>
+<span class="sourceLineNo">302</span> MediaTypeRange[] mr = MediaTypeRange.parse(h);<a name="line.302"></a>
+<span class="sourceLineNo">303</span> if (mr.length > 0)<a name="line.303"></a>
+<span class="sourceLineNo">304</span> return toLocale(mr[0].getMediaType().getType());<a name="line.304"></a>
+<span class="sourceLineNo">305</span> }<a name="line.305"></a>
+<span class="sourceLineNo">306</span> return super.getLocale();<a name="line.306"></a>
+<span class="sourceLineNo">307</span> }<a name="line.307"></a>
+<span class="sourceLineNo">308</span><a name="line.308"></a>
+<span class="sourceLineNo">309</span> @Override /* ServletRequest */<a name="line.309"></a>
+<span class="sourceLineNo">310</span> public Enumeration<Locale> getLocales() {<a name="line.310"></a>
+<span class="sourceLineNo">311</span> String h = headers.getFirst("Accept-Language");<a name="line.311"></a>
+<span class="sourceLineNo">312</span> if (h != null) {<a name="line.312"></a>
+<span class="sourceLineNo">313</span> MediaTypeRange[] mr = MediaTypeRange.parse(h);<a name="line.313"></a>
+<span class="sourceLineNo">314</span> if (mr.length > 0) {<a name="line.314"></a>
+<span class="sourceLineNo">315</span> List<Locale> l = new ArrayList<Locale>(mr.length);<a name="line.315"></a>
+<span class="sourceLineNo">316</span> for (MediaTypeRange r : mr)<a name="line.316"></a>
+<span class="sourceLineNo">317</span> l.add(toLocale(r.getMediaType().getType()));<a name="line.317"></a>
+<span class="sourceLineNo">318</span> return enumeration(l);<a name="line.318"></a>
+<span class="sourceLineNo">319</span> }<a name="line.319"></a>
+<span class="sourceLineNo">320</span> }<a name="line.320"></a>
+<span class="sourceLineNo">321</span> return super.getLocales();<a name="line.321"></a>
+<span class="sourceLineNo">322</span> }<a name="line.322"></a>
+<span class="sourceLineNo">323</span><a name="line.323"></a>
+<span class="sourceLineNo">324</span><a name="line.324"></a>
+<span class="sourceLineNo">325</span> //--------------------------------------------------------------------------------<a name="line.325"></a>
+<span class="sourceLineNo">326</span> // Query parameters<a name="line.326"></a>
+<span class="sourceLineNo">327</span> //--------------------------------------------------------------------------------<a name="line.327"></a>
<span class="sourceLineNo">328</span><a name="line.328"></a>
-<span class="sourceLineNo">329</span> @Override /* ServletRequest */<a name="line.329"></a>
-<span class="sourceLineNo">330</span> public Enumeration<Locale> getLocales() {<a name="line.330"></a>
-<span class="sourceLineNo">331</span> String h = headers.getFirst("Accept-Language");<a name="line.331"></a>
-<span class="sourceLineNo">332</span> if (h != null) {<a name="line.332"></a>
-<span class="sourceLineNo">333</span> MediaTypeRange[] mr = MediaTypeRange.parse(h);<a name="line.333"></a>
-<span class="sourceLineNo">334</span> if (mr.length > 0) {<a name="line.334"></a>
-<span class="sourceLineNo">335</span> List<Locale> l = new ArrayList<Locale>(mr.length);<a name="line.335"></a>
-<span class="sourceLineNo">336</span> for (MediaTypeRange r : mr)<a name="line.336"></a>
-<span class="sourceLineNo">337</span> l.add(toLocale(r.getMediaType().getType()));<a name="line.337"></a>
-<span class="sourceLineNo">338</span> return enumeration(l);<a name="line.338"></a>
-<span class="sourceLineNo">339</span> }<a name="line.339"></a>
-<span class="sourceLineNo">340</span> }<a name="line.340"></a>
-<span class="sourceLineNo">341</span> return super.getLocales();<a name="line.341"></a>
-<span class="sourceLineNo">342</span> }<a name="line.342"></a>
-<span class="sourceLineNo">343</span><a name="line.343"></a>
-<span class="sourceLineNo">344</span><a name="line.344"></a>
-<span class="sourceLineNo">345</span> //--------------------------------------------------------------------------------<a name="line.345"></a>
-<span class="sourceLineNo">346</span> // Query parameters<a name="line.346"></a>
-<span class="sourceLineNo">347</span> //--------------------------------------------------------------------------------<a name="line.347"></a>
-<span class="sourceLineNo">348</span><a name="line.348"></a>
-<span class="sourceLineNo">349</span> /**<a name="line.349"></a>
-<span class="sourceLineNo">350</span> * Equivalent to {@link #getParameterMap()}, but only looks for query parameters in the URL, not form posts.<a name="line.350"></a>
-<span class="sourceLineNo">351</span> * <p><a name="line.351"></a>
-<span class="sourceLineNo">352</span> * This method can be used to retrieve query parameters without triggering the underlying servlet API to load and parse the request body.<a name="line.352"></a>
-<span class="sourceLineNo">353</span> * <p><a name="line.353"></a>
-<span class="sourceLineNo">354</span> * This object is modifiable.<a name="line.354"></a>
-<span class="sourceLineNo">355</span> *<a name="line.355"></a>
-<span class="sourceLineNo">356</span> * @return The query parameters as a modifiable map.<a name="line.356"></a>
-<span class="sourceLineNo">357</span> */<a name="line.357"></a>
-<span class="sourceLineNo">358</span> public RequestQuery getQuery() {<a name="line.358"></a>
-<span class="sourceLineNo">359</span> return queryParams;<a name="line.359"></a>
-<span class="sourceLineNo">360</span> }<a name="line.360"></a>
-<span class="sourceLineNo">361</span><a name="line.361"></a>
-<span class="sourceLineNo">362</span> /**<a name="line.362"></a>
-<span class="sourceLineNo">363</span> * Convenience method for calling <code>getQueryParams().put(name, value);</code>.<a name="line.363"></a>
-<span class="sourceLineNo">364</span> *<a name="line.364"></a>
-<span class="sourceLineNo">365</span> * @param name The parameter name.<a name="line.365"></a>
-<span class="sourceLineNo">366</span> * @param value The parameter value.<a name="line.366"></a>
-<span class="sourceLineNo">367</span> */<a name="line.367"></a>
-<span class="sourceLineNo">368</span> public void setQuery(String name, Object value) {<a name="line.368"></a>
-<span class="sourceLineNo">369</span> queryParams.put(name, value);<a name="line.369"></a>
-<span class="sourceLineNo">370</span> }<a name="line.370"></a>
-<span class="sourceLineNo">371</span><a name="line.371"></a>
-<span class="sourceLineNo">372</span> /**<a name="line.372"></a>
-<span class="sourceLineNo">373</span> * Convenience method for calling <code>getQueryParams().getFirst(name);</code><a name="line.373"></a>
-<span class="sourceLineNo">374</span> *<a name="line.374"></a>
-<span class="sourceLineNo">375</span> * @param name The URL parameter name.<a name="line.375"></a>
-<span class="sourceLineNo">376</span> * @return The parameter value, or <jk>null</jk> if parameter not specified or has no value (e.g. <js>"&amp;foo"</js>.<a name="line.376"></a>
-<span class="sourceLineNo">377</span> */<a name="line.377"></a>
-<span class="sourceLineNo">378</span> public String getQuery(String name) {<a name="line.378"></a>
-<span class="sourceLineNo">379</span> return getQuery().getFirst(name);<a name="line.379"></a>
+<span class="sourceLineNo">329</span> /**<a name="line.329"></a>
+<span class="sourceLineNo">330</span> * Equivalent to {@link #getParameterMap()}, but only looks for query parameters in the URL, not form posts.<a name="line.330"></a>
+<span class="sourceLineNo">331</span> * <p><a name="line.331"></a>
+<span class="sourceLineNo">332</span> * This method can be used to retrieve query parameters without triggering the underlying servlet API to load and parse the request body.<a name="line.332"></a>
+<span class="sourceLineNo">333</span> * <p><a name="line.333"></a>
+<span class="sourceLineNo">334</span> * This object is modifiable.<a name="line.334"></a>
+<span class="sourceLineNo">335</span> *<a name="line.335"></a>
+<span class="sourceLineNo">336</span> * @return The query parameters as a modifiable map.<a name="line.336"></a>
+<span class="sourceLineNo">337</span> */<a name="line.337"></a>
+<span class="sourceLineNo">338</span> public RequestQuery getQuery() {<a name="line.338"></a>
+<span class="sourceLineNo">339</span> return queryParams;<a name="line.339"></a>
+<span class="sourceLineNo">340</span> }<a name="line.340"></a>
+<span class="sourceLineNo">341</span><a name="line.341"></a>
+<span class="sourceLineNo">342</span> /**<a name="line.342"></a>
+<span class="sourceLineNo">343</span> * Shortcut for calling <code>getQuery().getFirst(name)</code>.<a name="line.343"></a>
+<span class="sourceLineNo">344</span> * @param name The query parameter name.<a name="line.344"></a>
+<span class="sourceLineNo">345</span> * @return The query parameter value, or <jk>null<jk> if not found.<a name="line.345"></a>
+<span class="sourceLineNo">346</span> */<a name="line.346"></a>
+<span class="sourceLineNo">347</span> public String getQuery(String name) {<a name="line.347"></a>
+<span class="sourceLineNo">348</span> return getQuery().getFirst(name);<a name="line.348"></a>
+<span class="sourceLineNo">349</span> }<a name="line.349"></a>
+<span class="sourceLineNo">350</span><a name="line.350"></a>
+<span class="sourceLineNo">351</span><a name="line.351"></a>
+<span class="sourceLineNo">352</span> //--------------------------------------------------------------------------------<a name="line.352"></a>
+<span class="sourceLineNo">353</span> // Form data parameters<a name="line.353"></a>
+<span class="sourceLineNo">354</span> //--------------------------------------------------------------------------------<a name="line.354"></a>
+<span class="sourceLineNo">355</span><a name="line.355"></a>
+<span class="sourceLineNo">356</span> /**<a name="line.356"></a>
+<span class="sourceLineNo">357</span> * Retrieves the URL-encoded form data from the request if the body has already been cached locally.<a name="line.357"></a>
+<span class="sourceLineNo">358</span> *<a name="line.358"></a>
+<span class="sourceLineNo">359</span> * @return The URL-encoded form data from the request.<a name="line.359"></a>
+<span class="sourceLineNo">360</span> */<a name="line.360"></a>
+<span class="sourceLineNo">361</span> public RequestFormData getFormData() {<a name="line.361"></a>
+<span class="sourceLineNo">362</span> try {<a name="line.362"></a>
+<span class="sourceLineNo">363</span> if (formData == null) {<a name="line.363"></a>
+<span class="sourceLineNo">364</span> formData = new RequestFormData();<a name="line.364"></a>
+<span class="sourceLineNo">365</span> formData.setParser(urlEncodingParser).setBeanSession(beanSession);<a name="line.365"></a>
+<span class="sourceLineNo">366</span> if (! body.isLoaded()) {<a name="line.366"></a>
+<span class="sourceLineNo">367</span> formData.putAll(getParameterMap());<a name="line.367"></a>
+<span class="sourceLineNo">368</span> } else {<a name="line.368"></a>
+<span class="sourceLineNo">369</span> Map<String,String> m = urlEncodingParser.parse(body.getReader(), Map.class, String.class, String.class);<a name="line.369"></a>
+<span class="sourceLineNo">370</span> for (Map.Entry<String,String> e : m.entrySet()) {<a name="line.370"></a>
+<span class="sourceLineNo">371</span> formData.put(e.getKey(), e.getValue());<a name="line.371"></a>
+<span class="sourceLineNo">372</span> }<a name="line.372"></a>
+<span class="sourceLineNo">373</span> }<a name="line.373"></a>
+<span class="sourceLineNo">374</span> }<a name="line.374"></a>
+<span class="sourceLineNo">375</span> formData.addDefault(defFormData);<a name="line.375"></a>
+<span class="sourceLineNo">376</span> return formData;<a name="line.376"></a>
+<span class="sourceLineNo">377</span> } catch (Exception e) {<a name="line.377"></a>
+<span class="sourceLineNo">378</span> throw new RestException(SC_INTERNAL_SERVER_ERROR, e);<a name="line.378"></a>
+<span class="sourceLineNo">379</span> }<a name="line.379"></a>
<span class="sourceLineNo">380</span> }<a name="line.380"></a>
<span class="sourceLineNo">381</span><a name="line.381"></a>
<span class="sourceLineNo">382</span> /**<a name="line.382"></a>
-<span class="sourceLineNo">383</span> * Convenience method for calling <code>getQueryParams().getFirst(name, def);</code><a name="line.383"></a>
-<span class="sourceLineNo">384</span> *<a name="line.384"></a>
-<span class="sourceLineNo">385</span> * @param name The URL parameter name.<a name="line.385"></a>
-<span class="sourceLineNo">386</span> * @param def The default value.<a name="line.386"></a>
-<span class="sourceLineNo">387</span> * @return The parameter value, or the default value if parameter not specified or has no value (e.g. <js>"&amp;foo"</js>.<a name="line.387"></a>
-<span class="sourceLineNo">388</span> */<a name="line.388"></a>
-<span class="sourceLineNo">389</span> public String getQuery(String name, String def) {<a name="line.389"></a>
-<span class="sourceLineNo">390</span> return getQuery().getFirst(name, def);<a name="line.390"></a>
-<span class="sourceLineNo">391</span> }<a name="line.391"></a>
-<span class="sourceLineNo">392</span><a name="line.392"></a>
-<span class="sourceLineNo">393</span><a name="line.393"></a>
+<span class="sourceLineNo">383</span> * Shortcut for calling <code>getFormData().getFirst(name)</code>.<a name="line.383"></a>
+<span class="sourceLineNo">384</span> * @param name The form data parameter name.<a name="line.384"></a>
+<span class="sourceLineNo">385</span> * @return The form data parameter value, or <jk>null<jk> if not found.<a name="line.385"></a>
+<span class="sourceLineNo">386</span> */<a name="line.386"></a>
+<span class="sourceLineNo">387</span> public String getFormData(String name) {<a name="line.387"></a>
+<span class="sourceLineNo">388</span> return getFormData().getFirst(name);<a name="line.388"></a>
+<span class="sourceLineNo">389</span> }<a name="line.389"></a>
+<span class="sourceLineNo">390</span><a name="line.390"></a>
+<span class="sourceLineNo">391</span><a name="line.391"></a>
+<span class="sourceLineNo">392</span> //--------------------------------------------------------------------------------<a name="line.392"></a>
+<span class="sourceLineNo">393</span> // Path parameters<a name="line.393"></a>
<span class="sourceLineNo">394</span> //--------------------------------------------------------------------------------<a name="line.394"></a>
-<span class="sourceLineNo">395</span> // Form data parameters<a name="line.395"></a>
-<span class="sourceLineNo">396</span> //--------------------------------------------------------------------------------<a name="line.396"></a>
-<span class="sourceLineNo">397</span><a name="line.397"></a>
-<span class="sourceLineNo">398</span> /**<a name="line.398"></a>
-<span class="sourceLineNo">399</span> * Retrieves the URL-encoded form data from the request if the body has already been cached locally.<a name="line.399"></a>
-<span class="sourceLineNo">400</span> *<a name="line.400"></a>
-<span class="sourceLineNo">401</span> * @return The URL-encoded form data from the request.<a name="line.401"></a>
-<span class="sourceLineNo">402</span> */<a name="line.402"></a>
-<span class="sourceLineNo">403</span> public RequestFormData getFormData() {<a name="line.403"></a>
-<span class="sourceLineNo">404</span> try {<a name="line.404"></a>
-<span class="sourceLineNo">405</span> if (formData == null) {<a name="line.405"></a>
-<span class="sourceLineNo">406</span> formData = new RequestFormData();<a name="line.406"></a>
-<span class="sourceLineNo">407</span> formData.setParser(urlEncodingParser).setBeanSession(beanSession);<a name="line.407"></a>
-<span class="sourceLineNo">408</span> if (! body.isLoaded()) {<a name="line.408"></a>
-<span class="sourceLineNo">409</span> formData.putAll(getParameterMap());<a name="line.409"></a>
-<span class="sourceLineNo">410</span> } else {<a name="line.410"></a>
-<span class="sourceLineNo">411</span> Map<String,String> m = urlEncodingParser.parse(body.getReader(), Map.class, String.class, String.class);<a name="line.411"></a>
-<span class="sourceLineNo">412</span> for (Map.Entry<String,String> e : m.entrySet()) {<a name="line.412"></a>
-<span class="sourceLineNo">413</span> formData.put(e.getKey(), e.getValue());<a name="line.413"></a>
-<span class="sourceLineNo">414</span> }<a name="line.414"></a>
-<span class="sourceLineNo">415</span> }<a name="line.415"></a>
-<span class="sourceLineNo">416</span> }<a name="line.416"></a>
-<span class="sourceLineNo">417</span> return formData;<a name="line.417"></a>
-<span class="sourceLineNo">418</span> } catch (Exception e) {<a name="line.418"></a>
-<span class="sourceLineNo">419</span> throw new RestException(SC_INTERNAL_SERVER_ERROR, e);<a name="line.419"></a>
-<span class="sourceLineNo">420</span> }<a name="line.420"></a>
-<span class="sourceLineNo">421</span> }<a name="line.421"></a>
-<span class="sourceLineNo">422</span><a name="line.422"></a>
-<span class="sourceLineNo">423</span> /**<a name="line.423"></a>
-<span class="sourceLineNo">424</span> * Convenience method for calling <code>getFormData().put(name, value);</code>.<a name="line.424"></a>
-<span class="sourceLineNo">425</span> *<a name="line.425"></a>
-<span class="sourceLineNo">426</span> * @param name The parameter name.<a name="line.426"></a>
-<span class="sourceLineNo">427</span> * @param value The parameter value.<a name="line.427"></a>
-<span class="sourceLineNo">428</span> */<a name="line.428"></a>
-<span class="sourceLineNo">429</span> public void setFormData(String name, Object value) {<a name="line.429"></a>
-<span class="sourceLineNo">430</span> getFormData().put(name, value);<a name="line.430"></a>
-<span class="sourceLineNo">431</span> }<a name="line.431"></a>
-<span class="sourceLineNo">432</span><a name="line.432"></a>
-<span class="sourceLineNo">433</span> /**<a name="line.433"></a>
-<span class="sourceLineNo">434</span> * Convenience method for calling <code>getFormData().getFirst(name);</code>.<a name="line.434"></a>
+<span class="sourceLineNo">395</span><a name="line.395"></a>
+<span class="sourceLineNo">396</span> /**<a name="line.396"></a>
+<span class="sourceLineNo">397</span> * Retrieves the URL-encoded form data from the request if the body has already been cached locally.<a name="line.397"></a>
+<span class="sourceLineNo">398</span> *<a name="line.398"></a>
+<span class="sourceLineNo">399</span> * @return The URL-encoded form data from the request.<a name="line.399"></a>
+<span class="sourceLineNo">400</span> */<a name="line.400"></a>
+<span class="sourceLineNo">401</span> public RequestPathMatch getPathMatch() {<a name="line.401"></a>
+<span class="sourceLineNo">402</span> return pathParams;<a name="line.402"></a>
+<span class="sourceLineNo">403</span> }<a name="line.403"></a>
+<span class="sourceLineNo">404</span><a name="line.404"></a>
+<span class="sourceLineNo">405</span><a name="line.405"></a>
+<span class="sourceLineNo">406</span> //--------------------------------------------------------------------------------<a name="line.406"></a>
+<span class="sourceLineNo">407</span> // Body methods<a name="line.407"></a>
+<span class="sourceLineNo">408</span> //--------------------------------------------------------------------------------<a name="line.408"></a>
+<span class="sourceLineNo">409</span><a name="line.409"></a>
+<span class="sourceLineNo">410</span> /**<a name="line.410"></a>
+<span class="sourceLineNo">411</span> * Returns the body of this HTTP request.<a name="line.411"></a>
+<span class="sourceLineNo">412</span> *<a name="line.412"></a>
+<span class="sourceLineNo">413</span> * @return The body of this HTTP request.<a name="line.413"></a>
+<span class="sourceLineNo">414</span> */<a name="line.414"></a>
+<span class="sourceLineNo">415</span> public RequestBody getBody() {<a name="line.415"></a>
+<span class="sourceLineNo">416</span> return body;<a name="line.416"></a>
+<span class="sourceLineNo">417</span> }<a name="line.417"></a>
+<span class="sourceLineNo">418</span><a name="line.418"></a>
+<span class="sourceLineNo">419</span> /**<a name="line.419"></a>
+<span class="sourceLineNo">420</span> * Returns the HTTP body content as a {@link Reader}.<a name="line.420"></a>
+<span class="sourceLineNo">421</span> * <p><a name="line.421"></a>
+<span class="sourceLineNo">422</span> * If {@code allowHeaderParams} init parameter is true, then first looks for {@code &body=xxx} in the URL query string.<a name="line.422"></a>
+<span class="sourceLineNo">423</span> * <p><a name="line.423"></a>
+<span class="sourceLineNo">424</span> * Automatically handles GZipped input streams.<a name="line.424"></a>
+<span class="sourceLineNo">425</span> */<a name="line.425"></a>
+<span class="sourceLineNo">426</span> @Override /* ServletRequest */<a name="line.426"></a>
+<span class="sourceLineNo">427</span> public BufferedReader getReader() throws IOException {<a name="line.427"></a>
+<span class="sourceLineNo">428</span> return getBody().getReader();<a name="line.428"></a>
+<span class="sourceLineNo">429</span> }<a name="line.429"></a>
+<span class="sourceLineNo">430</span><a name="line.430"></a>
+<span class="sourceLineNo">431</span> /**<a name="line.431"></a>
+<span class="sourceLineNo">432</span> * Returns the HTTP body content as an {@link InputStream}.<a name="line.432"></a>
+<span class="sourceLineNo">433</span> * <p><a name="line.433"></a>
+<span class="sourceLineNo">434</span> * Automatically handles GZipped input streams.<a name="line.434"></a>
<span class="sourceLineNo">435</span> *<a name="line.435"></a>
-<span class="sourceLineNo">436</span> * @param name The form data parameter name.<a name="line.436"></a>
-<span class="sourceLineNo">437</span> * @return The parameter value, or <jk>null</jk> if parameter does not exist.<a name="line.437"></a>
-<span class="sourceLineNo">438</span> */<a name="line.438"></a>
-<span class="sourceLineNo">439</span> public String getFormData(String name) {<a name="line.439"></a>
-<span class="sourceLineNo">440</span> return getFormData().getFirst(name);<a name="line.440"></a>
-<span class="sourceLineNo">441</span> }<a name="line.441"></a>
-<span class="sourceLineNo">442</span><a name="line.442"></a>
-<span class="sourceLineNo">443</span> /**<a name="line.443"></a>
-<span class="sourceLineNo">444</span> * Convenience method for calling <code>getFormData().getFirst(name, def);</code>.<a name="line.444"></a>
-<span class="sourceLineNo">445</span> *<a name="line.445"></a>
-<span class="sourceLineNo">446</span> * @param name The form data parameter name.<a name="line.446"></a>
-<span class="sourceLineNo">447</span> * @param def The default value.<a name="line.447"></a>
-<span class="sourceLineNo">448</span> * @return The parameter value, or the default value if <jk>null</jk> or empty.<a name="line.448"></a>
-<span class="sourceLineNo">449</span> */<a name="line.449"></a>
-<span class="sourceLineNo">450</span> public String getFormData(String name, String def) {<a name="line.450"></a>
-<span class="sourceLineNo">451</span> return getFormData().getFirst(name, def);<a name="line.451"></a>
-<span class="sourceLineNo">452</span> }<a name="line.452"></a>
+<span class="sourceLineNo">436</span> * @return The negotiated input stream.<a name="line.436"></a>
+<span class="sourceLineNo">437</span> * @throws IOException If any error occurred while trying to get the input stream or wrap it<a name="line.437"></a>
+<span class="sourceLineNo">438</span> * in the GZIP wrapper.<a name="line.438"></a>
+<span class="sourceLineNo">439</span> */<a name="line.439"></a>
+<span class="sourceLineNo">440</span> @Override /* ServletRequest */<a name="line.440"></a>
+<span class="sourceLineNo">441</span> public ServletInputStream getInputStream() throws IOException {<a name="line.441"></a>
+<span class="sourceLineNo">442</span> return getBody().getInputStream();<a name="line.442"></a>
+<span class="sourceLineNo">443</span> }<a name="line.443"></a>
+<span class="sourceLineNo">444</span><a name="line.444"></a>
+<span class="sourceLineNo">445</span> ServletInputStream getRawInputStream() throws IOException {<a name="line.445"></a>
+<span class="sourceLineNo">446</span> return super.getInputStream();<a name="line.446"></a>
+<span class="sourceLineNo">447</span> }<a name="line.447"></a>
+<span class="sourceLineNo">448</span><a name="line.448"></a>
+<span class="sourceLineNo">449</span><a name="line.449"></a>
+<span class="sourceLineNo">450</span> //--------------------------------------------------------------------------------<a name="line.450"></a>
+<span class="sourceLineNo">451</span> // URI-related methods<a name="line.451"></a>
+<span class="sourceLineNo">452</span> //--------------------------------------------------------------------------------<a name="line.452"></a>
<span class="sourceLineNo">453</span><a name="line.453"></a>
-<span class="sourceLineNo">454</span><a name="line.454"></a>
-<span class="sourceLineNo">455</span> //--------------------------------------------------------------------------------<a name="line.455"></a>
-<span class="sourceLineNo">456</span> // Path parameters<a name="line.456"></a>
-<span class="sourceLineNo">457</span> //--------------------------------------------------------------------------------<a name="line.457"></a>
-<span class="sourceLineNo">458</span><a name="line.458"></a>
-<span class="sourceLineNo">459</span> /**<a name="line.459"></a>
-<span class="sourceLineNo">460</span> * Retrieves the URL-encoded form data from the request if the body has already been cached locally.<a name="line.460"></a>
-<span class="sourceLineNo">461</span> *<a name="line.461"></a>
-<span class="sourceLineNo">462</span> * @return The URL-encoded form data from the request.<a name="line.462"></a>
-<span class="sourceLineNo">463</span> */<a name="line.463"></a>
-<span class="sourceLineNo">464</span> public RequestPathParams getPathParams() {<a name="line.464"></a>
-<span class="sourceLineNo">465</span> return pathParams;<a name="line.465"></a>
-<span class="sourceLineNo">466</span> }<a name="line.466"></a>
-<span class="sourceLineNo">467</span><a name="line.467"></a>
-<span class="sourceLineNo">468</span> /**<a name="line.468"></a>
-<span class="sourceLineNo">469</span> * Convenience method for calling <code>getPathParams().put(name, value);</code>.<a name="line.469"></a>
-<span class="sourceLineNo">470</span> *<a name="line.470"></a>
-<span class="sourceLineNo">471</span> * @param name The parameter name.<a name="line.471"></a>
-<span class="sourceLineNo">472</span> * @param value The parameter value.<a name="line.472"></a>
-<span class="sourceLineNo">473</span> */<a name="line.473"></a>
-<span class="sourceLineNo">474</span> public void setPathParameter(String name, String value) {<a name="line.474"></a>
-<span class="sourceLineNo">475</span> pathParams.put(name, StringUtils.toString(value));<a name="line.475"></a>
-<span class="sourceLineNo">476</span> }<a name="line.476"></a>
-<span class="sourceLineNo">477</span><a name="line.477"></a>
-<span class="sourceLineNo">478</span> /**<a name="line.478"></a>
-<span class="sourceLineNo">479</span> * Convenience method for calling <code>getPathParams().get(name);</code>.<a name="line.479"></a>
-<span class="sourceLineNo">480</span> *<a name="line.480"></a>
-<span class="sourceLineNo">481</span> * @param name The parameter name.<a name="line.481"></a>
-<span class="sourceLineNo">482</span> * @return The parameter value, or <jk>null</jk> if path parameter not specified.<a name="line.482"></a>
-<span class="sourceLineNo">483</span> */<a name="line.483"></a>
-<span class="sourceLineNo">484</span> public String getPathParameter(String name) {<a name="line.484"></a>
-<span class="sourceLineNo">485</span> return pathParams.get(name);<a name="line.485"></a>
-<span class="sourceLineNo">486</span> }<a name="line.486"></a>
-<span class="sourceLineNo">487</span><a name="line.487"></a>
-<span class="sourceLineNo">488</span><a name="line.488"></a>
-<span class="sourceLineNo">489</span> //--------------------------------------------------------------------------------<a name="line.489"></a>
-<span class="sourceLineNo">490</span> // Body methods<a name="line.490"></a>
-<span class="sourceLineNo">491</span> //--------------------------------------------------------------------------------<a name="line.491"></a>
-<span class="sourceLineNo">492</span><a name="line.492"></a>
-<span class="sourceLineNo">493</span> /**<a name="line.493"></a>
-<span class="sourceLineNo">494</span> * Returns the body of this HTTP request.<a name="line.494"></a>
-<span class="sourceLineNo">495</span> *<a name="line.495"></a>
-<span class="sourceLineNo">496</span> * @return The body of this HTTP request.<a name="line.496"></a>
-<span class="sourceLineNo">497</span> */<a name="line.497"></a>
-<span class="sourceLineNo">498</span> public RequestBody getBody() {<a name="line.498"></a>
-<span class="sourceLineNo">499</span> return body;<a name="line.499"></a>
-<span class="sourceLineNo">500</span> }<a name="line.500"></a>
-<span class="sourceLineNo">501</span><a name="line.501"></a>
-<span class="sourceLineNo">502</span> /**<a name="line.502"></a>
-<span class="sourceLineNo">503</span> * Returns the HTTP body content as a {@link Reader}.<a name="line.503"></a>
-<span class="sourceLineNo">504</span> * <p><a name="line.504"></a>
-<span class="sourceLineNo">505</span> * If {@code allowHeaderParams} init parameter is true, then first looks for {@code &body=xxx} in the URL query string.<a name="line.505"></a>
-<span class="sourceLineNo">506</span> * <p><a name="line.506"></a>
-<span class="sourceLineNo">507</span> * Automatically handles GZipped input streams.<a name="line.507"></a>
-<span class="sourceLineNo">508</span> */<a name="line.508"></a>
-<span class="sourceLineNo">509</span> @Override /* ServletRequest */<a name="line.509"></a>
-<span class="sourceLineNo">510</span> public BufferedReader getReader() throws IOException {<a name="line.510"></a>
-<span class="sourceLineNo">511</span> return getBody().getReader();<a name="line.511"></a>
-<span class="sourceLineNo">512</span> }<a name="line.512"></a>
-<span class="sourceLineNo">513</span><a name="line.513"></a>
-<span class="sourceLineNo">514</span> /**<a name="line.514"></a>
-<span class="sourceLineNo">515</span> * Returns the HTTP body content as an {@link InputStream}.<a name="line.515"></a>
-<span class="sourceLineNo">516</span> * <p><a name="line.516"></a>
-<span class="sourceLineNo">517</span> * Automatically handles GZipped input streams.<a name="line.517"></a>
-<span class="sourceLineNo">518</span> *<a name="line.518"></a>
-<span class="sourceLineNo">519</span> * @return The negotiated input stream.<a name="line.519"></a>
-<span class="sourceLineNo">520</span> * @throws IOException If any error occurred while trying to get the input stream or wrap it<a name="line.520"></a>
-<span class="sourceLineNo">521</span> * in the GZIP wrapper.<a name="line.521"></a>
-<span class="sourceLineNo">522</span> */<a name="line.522"></a>
-<span class="sourceLineNo">523</span> @Override /* ServletRequest */<a name="line.523"></a>
-<span class="sourceLineNo">524</span> public ServletInputStream getInputStream() throws IOException {<a name="line.524"></a>
-<span class="sourceLineNo">525</span> return getBody().getInputStream();<a name="line.525"></a>
-<span class="sourceLineNo">526</span> }<a name="line.526"></a>
-<span class="sourceLineNo">527</span><a name="line.527"></a>
-<span class="sourceLineNo">528</span> ServletInputStream getRawInputStream() throws IOException {<a name="line.528"></a>
-<span class="sourceLineNo">529</span> return super.getInputStream();<a name="line.529"></a>
-<span class="sourceLineNo">530</span> }<a name="line.530"></a>
-<span class="sourceLineNo">531</span><a name="line.531"></a>
-<span class="sourceLineNo">532</span><a name="line.532"></a>
-<span class="sourceLineNo">533</span> //--------------------------------------------------------------------------------<a name="line.533"></a>
-<span class="sourceLineNo">534</span> // URI-related methods<a name="line.534"></a>
-<span class="sourceLineNo">535</span> //--------------------------------------------------------------------------------<a name="line.535"></a>
-<span class="sourceLineNo">536</span><a name="line.536"></a>
-<span class="sourceLineNo">537</span> /**<a name="line.537"></a>
-<span class="sourceLineNo">538</span> * Same as {@link HttpServletRequest#getPathInfo()} except returns the path undecoded.<a name="line.538"></a>
-<span class="sourceLineNo">539</span> *<a name="line.539"></a>
-<span class="sourceLineNo">540</span> * @return The undecoded portion of the URL after the resource URL path pattern match.<a name="line.540"></a>
-<span class="sourceLineNo">541</span> */<a name="line.541"></a>
-<span class="sourceLineNo">542</span> public String getPathInfoUndecoded() {<a name="line.542"></a>
-<span class="sourceLineNo">543</span> return RestUtils.getPathInfoUndecoded(this);<a name="line.543"></a>
-<span class="sourceLineNo">544</span> }<a name="line.544"></a>
-<span class="sourceLineNo">545</span><a name="line.545"></a>
-<span class="sourceLineNo">546</span> /**<a name="line.546"></a>
-<span class="sourceLineNo">547</span> * Returns the value {@link #getPathInfo()} split on the <js>'/'</js> character.<a name="line.547"></a>
-<span class="sourceLineNo">548</span> * <p><a name="line.548"></a>
-<span class="sourceLineNo">549</span> * If path info is <jk>null</jk>, returns an empty list.<a name="line.549"></a>
-<span class="sourceLineNo">550</span> * <p><a name="line.550"></a>
-<span class="sourceLineNo">551</span> * URL-encoded characters in segments are automatically decoded by this method.<a name="line.551"></a>
-<span class="sourceLineNo">552</span> *<a name="line.552"></a>
-<span class="sourceLineNo">553</span> * @return The decoded segments, or an empty list if path info is <jk>null</jk>.<a name="line.553"></a>
-<span class="sourceLineNo">554</span> */<a name="line.554"></a>
-<span class="sourceLineNo">555</span> public String[] getPathInfoParts() {<a name="line.555"></a>
-<span class="sourceLineNo">556</span> String s = getPathInfoUndecoded();<a name="line.556"></a>
-<span class="sourceLineNo">557</span> if (s == null || s.isEmpty() || s.equals("/"))<a name="line.557"></a>
-<span class="sourceLineNo">558</span> return new String[0];<a name="line.558"></a>
-<span class="sourceLineNo">559</span> s = s.substring(1);<a name="line.559"></a>
-<span class="sourceLineNo">560</span> if (s.endsWith("/"))<a name="line.560"></a>
-<span class="sourceLineNo">561</span> s = s.substring(0, s.length()-1);<a name="line.561"></a>
-<span class="sourceLineNo">562</span> boolean needsDecode = (s.indexOf('%') != -1 || s.indexOf('+') != -1);<a name="line.562"></a>
-<span class="sourceLineNo">563</span> String[] l = s.split("/", Integer.MAX_VALUE);<a name="line.563"></a>
-<span class="sourceLineNo">564</span> try {<a name="line.564"></a>
-<span class="sourceLineNo">565</span> if (needsDecode)<a name="line.565"></a>
-<span class="sourceLineNo">566</span> for (int i = 0; i < l.length; i++)<a name="line.566"></a>
-<span class="sourceLineNo">567</span> l[i] = URLDecoder.decode(l[i], "UTF-8");<a name="line.567"></a>
-<span class="sourceLineNo">568</span> } catch (UnsupportedEncodingException e) {<a name="line.568"></a>
-<span class="sourceLineNo">569</span> e.printStackTrace(); // Won't happen.<a name="line.569"></a>
-<span class="sourceLineNo">570</span> }<a name="line.570"></a>
-<span class="sourceLineNo">571</span> return l;<a name="line.571"></a>
-<span class="sourceLineNo">572</span> }<a name="line.572"></a>
-<span class="sourceLineNo">573</span><a name="line.573"></a>
-<span class="sourceLineNo">574</span> /**<a name="line.574"></a>
-<span class="sourceLineNo">575</span> * Returns a resolved URL.<a name="line.575"></a>
-<span class="sourceLineNo">576</span> * <p><a name="line.576"></a>
-<span class="sourceLineNo">577</span> * <ul class='spaced-list'><a name="line.577"></a>
-<span class="sourceLineNo">578</span> * <li>Fully-qualified absolute URLs (e.g. <js>"http://..."</js>, <js>"https://"</js>) are simply converted to a URL.<a name="line.578"></a>
-<span class="sourceLineNo">579</span> * <li>Absolute URLs (e.g. <js>"/foo/..."</js>) are interpreted as relative to the server hostname.<a name="line.579"></a>
-<span class="sourceLineNo">580</span> * <li>Relative URLs (e.g. <js>"foo/..."</js>) are interpreted as relative to this servlet path.<a name="line.580"></a>
-<span class="sourceLineNo">581</span> * </ul><a name="line.581"></a>
+<span class="sourceLineNo">454</span> /**<a name="line.454"></a>
+<span class="sourceLineNo">455</span> * Same as {@link HttpServletRequest#getPathInfo()} except returns the path undecoded.<a name="line.455"></a>
+<span class="sourceLineNo">456</span> *<a name="line.456"></a>
+<span class="sourceLineNo">457</span> * @return The undecoded portion of the URL after the resource URL path pattern match.<a name="line.457"></a>
+<span class="sourceLineNo">458</span> */<a name="line.458"></a>
+<span class="sourceLineNo">459</span> public String getPathInfoUndecoded() {<a name="line.459"></a>
+<span class="sourceLineNo">460</span> return RestUtils.getPathInfoUndecoded(this);<a name="line.460"></a>
+<span class="sourceLineNo">461</span> }<a name="line.461"></a>
+<span class="sourceLineNo">462</span><a name="line.462"></a>
+<span class="sourceLineNo">463</span> /**<a name="line.463"></a>
+<span class="sourceLineNo">464</span> * Returns the value {@link #getPathInfo()} split on the <js>'/'</js> character.<a name="line.464"></a>
+<span class="sourceLineNo">465</span> * <p><a name="line.465"></a>
+<span class="sourceLineNo">466</span> * If path info is <jk>null</jk>, returns an empty list.<a name="line.466"></a>
+<span class="sourceLineNo">467</span> * <p><a name="line.467"></a>
+<span class="sourceLineNo">468</span> * URL-encoded characters in segments are automatically decoded by this method.<a name="line.468"></a>
+<span class="sourceLineNo">469</span> *<a name="line.469"></a>
+<span class="sourceLineNo">470</span> * @return The decoded segments, or an empty list if path info is <jk>null</jk>.<a name="line.470"></a>
+<span class="sourceLineNo">471</span> */<a name="line.471"></a>
+<span class="sourceLineNo">472</span> public String[] getPathInfoParts() {<a name="line.472"></a>
+<span class="sourceLineNo">473</span> String s = getPathInfoUndecoded();<a name="line.473"></a>
+<span class="sourceLineNo">474</span> if (s == null || s.isEmpty() || s.equals("/"))<a name="line.474"></a>
+<span class="sourceLineNo">475</span> return new String[0];<a name="line.475"></a>
+<span class="sourceLineNo">476</span> s = s.substring(1);<a name="line.476"></a>
+<span class="sourceLineNo">477</span> if (s.endsWith("/"))<a name="line.477"></a>
+<span class="sourceLineNo">478</span> s = s.substring(0, s.length()-1);<a name="line.478"></a>
+<span class="sourceLineNo">479</span> boolean needsDecode = (s.indexOf('%') != -1 || s.indexOf('+') != -1);<a name="line.479"></a>
+<span class="sourceLineNo">480</span> String[] l = s.split("/", Integer.MAX_VALUE);<a name="line.480"></a>
+<span class="sourceLineNo">481</span> try {<a name="line.481"></a>
+<span class="sourceLineNo">482</span> if (needsDecode)<a name="line.482"></a>
+<span class="sourceLineNo">483</span> for (int i = 0; i < l.length; i++)<a name="line.483"></a>
+<span class="sourceLineNo">484</span> l[i] = URLDecoder.decode(l[i], "UTF-8");<a name="line.484"></a>
+<span class="sourceLineNo">485</span> } catch (UnsupportedEncodingException e) {<a name="line.485"></a>
+<span class="sourceLineNo">486</span> e.printStackTrace(); // Won't happen.<a name="line.486"></a>
+<span class="sourceLineNo">487</span> }<a name="line.487"></a>
+<span class="sourceLineNo">488</span> return l;<a name="line.488"></a>
+<span class="sourceLineNo">489</span> }<a name="line.489"></a>
+<span class="sourceLineNo">490</span><a name="line.490"></a>
+<span class="sourceLineNo">491</span> /**<a name="line.491"></a>
+<span class="sourceLineNo">492</span> * Returns a resolved URL.<a name="line.492"></a>
+<span class="sourceLineNo">493</span> * <p><a name="line.493"></a>
+<span class="sourceLineNo">494</span> * <ul class='spaced-list'><a name="line.494"></a>
+<span class="sourceLineNo">495</span> * <li>Fully-qualified absolute URLs (e.g. <js>"http://..."</js>, <js>"https://"</js>) are simply converted to a URL.<a name="line.495"></a>
+<span class="sourceLineNo">496</span> * <li>Absolute URLs (e.g. <js>"/foo/..."</js>) are interpreted as relative to the server hostname.<a name="line.496"></a>
+<span class="sourceLineNo">497</span> * <li>Relative URLs (e.g. <js>"foo/..."</js>) are interpreted as relative to this servlet path.<a name="line.497"></a>
+<span class="sourceLineNo">498</span> * </ul><a name="line.498"></a>
+<span class="sourceLineNo">499</span> *<a name="line.499"></a>
+<span class="sourceLineNo">500</span> * @param path The URL path to resolve.<a name="line.500"></a>
+<span class="sourceLineNo">501</span> * @return The resolved URL.<a name="line.501"></a>
+<span class="sourceLineNo">502</span> * @throws MalformedURLException If path is not a valid URL component.<a name="line.502"></a>
+<span class="sourceLineNo">503</span> */<a name="line.503"></a>
+<span class="sourceLineNo">504</span> public URL getURL(String path) throws MalformedURLException {<a name="line.504"></a>
+<span class="sourceLineNo">505</span> if (path.startsWith("http://") || path.startsWith("https://"))<a name="line.505"></a>
+<span class="sourceLineNo">506</span> return new URL(path);<a name="line.506"></a>
+<span class="sourceLineNo">507</span> if (startsWith(path, '/'))<a name="line.507"></a>
+<span class="sourceLineNo">508</span> return new URL(getScheme(), getLocalName(), getLocalPort(), path);<a name="line.508"></a>
+<span class="sourceLineNo">509</span> return new URL(getScheme(), getLocalName(), getLocalPort(), getContextPath() + getServletPath() + (isEmpty(path) ? "" : ('/' + path)));<a name="line.509"></a>
+<span class="sourceLineNo">510</span> }<a name="line.510"></a>
+<span class="sourceLineNo">511</span><a name="line.511"></a>
+<span class="sourceLineNo">512</span> /**<a name="line.512"></a>
+<span class="sourceLineNo">513</span> * Returns the URI of the parent of this servlet.<a name="line.513"></a>
+<span class="sourceLineNo">514</span> *<a name="line.514"></a>
+<span class="sourceLineNo">515</span> * @return The URI of the parent of this servlet.<a name="line.515"></a>
+<span class="sourceLineNo">516</span> */<a name="line.516"></a>
+<span class="sourceLineNo">517</span> public String getServletParentURI() {<a name="line.517"></a>
+<span class="sourceLineNo">518</span> String s = getServletURI();<a name="line.518"></a>
+<span class="sourceLineNo">519</span> return s.substring(0, s.lastIndexOf('/'));<a name="line.519"></a>
+<span class="sourceLineNo">520</span> }<a name="line.520"></a>
+<span class="sourceLineNo">521</span><a name="line.521"></a>
+<span class="sourceLineNo">522</span> /**<a name="line.522"></a>
+<span class="sourceLineNo">523</span> * Returns the URI of the parent resource.<a name="line.523"></a>
+<span class="sourceLineNo">524</span> * <p><a name="line.524"></a>
+<span class="sourceLineNo">525</span> * Trailing slashes in the path are ignored by this method.<a name="line.525"></a>
+<span class="sourceLineNo">526</span> * <p><a name="line.526"></a>
+<span class="sourceLineNo">527</span> * The behavior is shown below:<a name="line.527"></a>
+<span class="sourceLineNo">528</span> * <table class='styled'><a name="line.528"></a>
+<span class="sourceLineNo">529</span> * <tr><a name="line.529"></a>
+<span class="sourceLineNo">530</span> * <th>getRequestURI</th><a name="line.530"></a>
+<span class="sourceLineNo">531</span> * <th>getRequestParentURI</th><a name="line.531"></a>
+<span class="sourceLineNo">532</span> * </tr><a name="line.532"></a>
+<span class="sourceLineNo">533</span> * <tr><a name="line.533"></a>
+<span class="sourceLineNo">534</span> * <td><code>/foo/bar</code></td><a name="line.534"></a>
+<span class="sourceLineNo">535</span> * <td><code>/foo</code></td><a name="line.535"></a>
+<span class="sourceLineNo">536</span> * </tr><a name="line.536"></a>
+<span class="sourceLineNo">537</span> * <tr><a name="line.537"></a>
+<span class="sourceLineNo">538</span> * <td><code>/foo/bar?baz=bing</code></td><a name="line.538"></a>
+<span class="sourceLineNo">539</span> * <td><code>/foo</code></td><a name="line.539"></a>
+<span class="sourceLineNo">540</span> * </tr><a name="line.540"></a>
+<span class="sourceLineNo">541</span> * <tr><a name="line.541"></a>
+<span class="sourceLineNo">542</span> * <td><code>/foo/bar/</code></td><a name="line.542"></a>
+<span class="sourceLineNo">543</span> * <td><code>/foo</code></td><a name="line.543"></a>
+<span class="sourceLineNo">544</span> * </tr><a name="line.544"></a>
+<span class="sourceLineNo">545</span> * <tr><a name="line.545"></a>
+<span class="sourceLineNo">546</span> * <td><code>/foo/bar//</code></td><a name="line.546"></a>
+<span class="sourceLineNo">547</span> * <td><code>/foo</code></td><a name="line.547"></a>
+<span class="sourceLineNo">548</span> * </tr><a name="line.548"></a>
+<span class="sourceLineNo">549</span> * <tr><a name="line.549"></a>
+<span class="sourceLineNo">550</span> * <td><code>/foo//bar//</code></td><a name="line.550"></a>
+<span class="sourceLineNo">551</span> * <td><code>/foo/</code></td><a name="line.551"></a>
+<span class="sourceLineNo">552</span> * </tr><a name="line.552"></a>
+<span class="sourceLineNo">553</span> * <tr><a name="line.553"></a>
+<span class="sourceLineNo">554</span> * <td><code>/foo</code></td><a name="line.554"></a>
+<span class="sourceLineNo">555</span> * <td>/</td><a name="line.555"></a>
+<span class="sourceLineNo">556</span> * </tr><a name="line.556"></a>
+<span class="sourceLineNo">557</span> * </table><a name="line.557"></a>
+<span class="sourceLineNo">558</span> *<a name="line.558"></a>
+<span class="sourceLineNo">559</span> * @return The request parent URI.<a name="line.559"></a>
+<span class="sourceLineNo">560</span> */<a name="line.560"></a>
+<span class="sourceLineNo">561</span> public String getRequestParentURI() {<a name="line.561"></a>
+<span class="sourceLineNo">562</span> String uri = getRequestURI();<a name="line.562"></a>
+<span class="sourceLineNo">563</span> while (endsWith(uri, '/'))<a name="line.563"></a>
+<span class="sourceLineNo">564</span> uri = uri.substring(0, uri.length()-1);<a name="line.564"></a>
+<span class="sourceLineNo">565</span> int i = uri.lastIndexOf('/');<a name="line.565"></a>
+<span class="sourceLineNo">566</span> if (i <= 0)<a name="line.566"></a>
+<span class="sourceLineNo">567</span> return "/";<a name="line.567"></a>
+<span class="sourceLineNo">568</span> return uri.substring(0, i);<a name="line.568"></a>
+<span class="sourceLineNo">569</span> }<a name="line.569"></a>
+<span class="sourceLineNo">570</span><a name="line.570"></a>
+<span class="sourceLineNo">571</span> /**<a name="line.571"></a>
+<span class="sourceLineNo">572</span> * Same as {@link #getRequestURI()} but trims trailing slashes from the result.<a name="line.572"></a>
+<span class="sourceLineNo">573</span> *<a name="line.573"></a>
+<span class="sourceLineNo">574</span> * @return The trimmed request URI.<a name="line.574"></a>
+<span class="sourceLineNo">575</span> */<a name="line.575"></a>
+<span class="sourceLineNo">576</span> public String getTrimmedRequestURI() {<a name="line.576"></a>
+<span class="sourceLineNo">577</span> return trimTrailingSlashes(getRequestURI());<a name="line.577"></a>
+<span class="sourceLineNo">578</span> }<a name="line.578"></a>
+<span class="sourceLineNo">579</span><a name="line.579"></a>
+<span class="sourceLineNo">580</span> /**<a name="line.580"></a>
+<span class="sourceLineNo">581</span> * Same as {@link #getRequestURL()} but trims trailing slashes from the result.<a name="line.581"></a>
<span class="sourceLineNo">582</span> *<a name="line.582"></a>
-<span class="sourceLineNo">583</span> * @param path The URL path to resolve.<a name="line.583"></a>
-<span class="sourceLineNo">584</span> * @return The resolved URL.<a name="line.584"></a>
-<span class="sourceLineNo">585</span> * @throws MalformedURLException If path is not a valid URL component.<a name="line.585"></a>
-<span class="sourceLineNo">586</span> */<a name="line.586"></a>
-<span class="sourceLineNo">587</span> public URL getURL(String path) throws MalformedURLException {<a name="line.587"></a>
-<span class="sourceLineNo">588</span> if (path.startsWith("http://") || path.startsWith("https://"))<a name="line.588"></a>
-<span
<TRUNCATED>
[07/15] incubator-juneau-website git commit: Update javadocs.
Posted by ja...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/src-html/org/apache/juneau/http/SimpleRange.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/http/SimpleRange.html b/content/site/apidocs/src-html/org/apache/juneau/http/SimpleRange.html
deleted file mode 100644
index e373356..0000000
--- a/content/site/apidocs/src-html/org/apache/juneau/http/SimpleRange.html
+++ /dev/null
@@ -1,348 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html lang="en">
-<head>
-<title>Source code</title>
-<link rel="stylesheet" type="text/css" href="../../../../../javadoc.css" title="Style">
-</head>
-<body>
-<div class="sourceContainer">
-<pre><span class="sourceLineNo">001</span>// ***************************************************************************************************************************<a name="line.1"></a>
-<span class="sourceLineNo">002</span>// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file *<a name="line.2"></a>
-<span class="sourceLineNo">003</span>// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file *<a name="line.3"></a>
-<span class="sourceLineNo">004</span>// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance *<a name="line.4"></a>
-<span class="sourceLineNo">005</span>// * with the License. You may obtain a copy of the License at *<a name="line.5"></a>
-<span class="sourceLineNo">006</span>// * *<a name="line.6"></a>
-<span class="sourceLineNo">007</span>// * http://www.apache.org/licenses/LICENSE-2.0 *<a name="line.7"></a>
-<span class="sourceLineNo">008</span>// * *<a name="line.8"></a>
-<span class="sourceLineNo">009</span>// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an *<a name="line.9"></a>
-<span class="sourceLineNo">010</span>// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the *<a name="line.10"></a>
-<span class="sourceLineNo">011</span>// * specific language governing permissions and limitations under the License. *<a name="line.11"></a>
-<span class="sourceLineNo">012</span>// ***************************************************************************************************************************<a name="line.12"></a>
-<span class="sourceLineNo">013</span>package org.apache.juneau.http;<a name="line.13"></a>
-<span class="sourceLineNo">014</span><a name="line.14"></a>
-<span class="sourceLineNo">015</span>import java.util.*;<a name="line.15"></a>
-<span class="sourceLineNo">016</span>import java.util.Map.*;<a name="line.16"></a>
-<span class="sourceLineNo">017</span><a name="line.17"></a>
-<span class="sourceLineNo">018</span>import org.apache.juneau.annotation.*;<a name="line.18"></a>
-<span class="sourceLineNo">019</span>import org.apache.juneau.internal.*;<a name="line.19"></a>
-<span class="sourceLineNo">020</span><a name="line.20"></a>
-<span class="sourceLineNo">021</span>/**<a name="line.21"></a>
-<span class="sourceLineNo">022</span> * Represents a single value in a comma-delimited header value that optionally contains a quality<a name="line.22"></a>
-<span class="sourceLineNo">023</span> * metric for comparison and extension parameters.<a name="line.23"></a>
-<span class="sourceLineNo">024</span> * <p><a name="line.24"></a>
-<span class="sourceLineNo">025</span> * Similar in concept to {@link MediaTypeRange} except instead of media types (e.g. <js>"text/json"</js>),<a name="line.25"></a>
-<span class="sourceLineNo">026</span> * it's a simple type (e.g. <js>"iso-8601"</js>).<a name="line.26"></a>
-<span class="sourceLineNo">027</span> * <p><a name="line.27"></a>
-<span class="sourceLineNo">028</span> * An example of a type range is a value in an <code>Accept-Encoding</code> header.<a name="line.28"></a>
-<span class="sourceLineNo">029</span> */<a name="line.29"></a>
-<span class="sourceLineNo">030</span>@BeanIgnore<a name="line.30"></a>
-<span class="sourceLineNo">031</span>public final class SimpleRange implements Comparable<SimpleRange> {<a name="line.31"></a>
-<span class="sourceLineNo">032</span><a name="line.32"></a>
-<span class="sourceLineNo">033</span> private static final SimpleRange[] DEFAULT = new SimpleRange[]{new SimpleRange("*")};<a name="line.33"></a>
-<span class="sourceLineNo">034</span><a name="line.34"></a>
-<span class="sourceLineNo">035</span> private final String type;<a name="line.35"></a>
-<span class="sourceLineNo">036</span> private final Float qValue;<a name="line.36"></a>
-<span class="sourceLineNo">037</span> private final Map<String,Set<String>> extensions;<a name="line.37"></a>
-<span class="sourceLineNo">038</span><a name="line.38"></a>
-<span class="sourceLineNo">039</span> /**<a name="line.39"></a>
-<span class="sourceLineNo">040</span> * Parses a header such as an <code>Accept-Encoding</code> header value into an array of type ranges.<a name="line.40"></a>
-<span class="sourceLineNo">041</span> * <p><a name="line.41"></a>
-<span class="sourceLineNo">042</span> * The syntax expected to be found in the referenced <code>value</code> complies with the syntax described in RFC2616, Section 14.1, as described below:<a name="line.42"></a>
-<span class="sourceLineNo">043</span> * <p class='bcode'><a name="line.43"></a>
-<span class="sourceLineNo">044</span> * Accept-Encoding = "Accept-Encoding" ":"<a name="line.44"></a>
-<span class="sourceLineNo">045</span> * 1#( codings [ ";" "q" "=" qvalue ] )<a name="line.45"></a>
-<span class="sourceLineNo">046</span> * codings = ( content-coding | "*" )<a name="line.46"></a>
-<span class="sourceLineNo">047</span> * </p><a name="line.47"></a>
-<span class="sourceLineNo">048</span> * <p><a name="line.48"></a>
-<span class="sourceLineNo">049</span> * Examples of its use are:<a name="line.49"></a>
-<span class="sourceLineNo">050</span> * <p class='bcode'><a name="line.50"></a>
-<span class="sourceLineNo">051</span> * Accept-Encoding: compress, gzip<a name="line.51"></a>
-<span class="sourceLineNo">052</span> * Accept-Encoding:<a name="line.52"></a>
-<span class="sourceLineNo">053</span> * Accept-Encoding: *<a name="line.53"></a>
-<span class="sourceLineNo">054</span> * Accept-Encoding: compress;q=0.5, gzip;q=1.0<a name="line.54"></a>
-<span class="sourceLineNo">055</span> * Accept-Encoding: gzip;q=1.0, identity; q=0.5, *;q=0<a name="line.55"></a>
-<span class="sourceLineNo">056</span> * </p><a name="line.56"></a>
-<span class="sourceLineNo">057</span> *<a name="line.57"></a>
-<span class="sourceLineNo">058</span> * @param value The value to parse. If <jk>null</jk> or empty, returns a single <code>TypeRange</code> is returned that represents all types.<a name="line.58"></a>
-<span class="sourceLineNo">059</span> * @return The type ranges described by the string.<a name="line.59"></a>
-<span class="sourceLineNo">060</span> * <br>The ranges are sorted such that the most acceptable type is available at ordinal position <js>'0'</js>, and the least acceptable at position n-1.<a name="line.60"></a>
-<span class="sourceLineNo">061</span> */<a name="line.61"></a>
-<span class="sourceLineNo">062</span> public static SimpleRange[] parse(String value) {<a name="line.62"></a>
-<span class="sourceLineNo">063</span><a name="line.63"></a>
-<span class="sourceLineNo">064</span> if (value == null || value.length() == 0)<a name="line.64"></a>
-<span class="sourceLineNo">065</span> return DEFAULT;<a name="line.65"></a>
-<span class="sourceLineNo">066</span><a name="line.66"></a>
-<span class="sourceLineNo">067</span> if (value.indexOf(',') == -1)<a name="line.67"></a>
-<span class="sourceLineNo">068</span> return new SimpleRange[]{new SimpleRange(value)};<a name="line.68"></a>
-<span class="sourceLineNo">069</span><a name="line.69"></a>
-<span class="sourceLineNo">070</span> Set<SimpleRange> ranges = new TreeSet<SimpleRange>();<a name="line.70"></a>
-<span class="sourceLineNo">071</span><a name="line.71"></a>
-<span class="sourceLineNo">072</span> for (String r : StringUtils.split(value, ',')) {<a name="line.72"></a>
-<span class="sourceLineNo">073</span> r = r.trim();<a name="line.73"></a>
-<span class="sourceLineNo">074</span><a name="line.74"></a>
-<span class="sourceLineNo">075</span> if (r.isEmpty())<a name="line.75"></a>
-<span class="sourceLineNo">076</span> continue;<a name="line.76"></a>
-<span class="sourceLineNo">077</span><a name="line.77"></a>
-<span class="sourceLineNo">078</span> ranges.add(new SimpleRange(r));<a name="line.78"></a>
-<span class="sourceLineNo">079</span> }<a name="line.79"></a>
-<span class="sourceLineNo">080</span><a name="line.80"></a>
-<span class="sourceLineNo">081</span> return ranges.toArray(new SimpleRange[ranges.size()]);<a name="line.81"></a>
-<span class="sourceLineNo">082</span> }<a name="line.82"></a>
-<span class="sourceLineNo">083</span><a name="line.83"></a>
-<span class="sourceLineNo">084</span> @SuppressWarnings("unchecked")<a name="line.84"></a>
-<span class="sourceLineNo">085</span> private SimpleRange(String token) {<a name="line.85"></a>
-<span class="sourceLineNo">086</span> Builder b = new Builder(token);<a name="line.86"></a>
-<span class="sourceLineNo">087</span> this.type = b.type;<a name="line.87"></a>
-<span class="sourceLineNo">088</span> this.qValue = b.qValue;<a name="line.88"></a>
-<span class="sourceLineNo">089</span> this.extensions = (b.extensions == null ? Collections.EMPTY_MAP : Collections.unmodifiableMap(b.extensions));<a name="line.89"></a>
-<span class="sourceLineNo">090</span> }<a name="line.90"></a>
-<span class="sourceLineNo">091</span><a name="line.91"></a>
-<span class="sourceLineNo">092</span> private static class Builder {<a name="line.92"></a>
-<span class="sourceLineNo">093</span> private String type;<a name="line.93"></a>
-<span class="sourceLineNo">094</span> private Float qValue = 1f;<a name="line.94"></a>
-<span class="sourceLineNo">095</span> private Map<String,Set<String>> extensions;<a name="line.95"></a>
-<span class="sourceLineNo">096</span><a name="line.96"></a>
-<span class="sourceLineNo">097</span> private Builder(String token) {<a name="line.97"></a>
-<span class="sourceLineNo">098</span><a name="line.98"></a>
-<span class="sourceLineNo">099</span> token = token.trim();<a name="line.99"></a>
-<span class="sourceLineNo">100</span><a name="line.100"></a>
-<span class="sourceLineNo">101</span> int i = token.indexOf(";q=");<a name="line.101"></a>
-<span class="sourceLineNo">102</span><a name="line.102"></a>
-<span class="sourceLineNo">103</span> if (i == -1) {<a name="line.103"></a>
-<span class="sourceLineNo">104</span> type = token;<a name="line.104"></a>
-<span class="sourceLineNo">105</span> return;<a name="line.105"></a>
-<span class="sourceLineNo">106</span> }<a name="line.106"></a>
-<span class="sourceLineNo">107</span><a name="line.107"></a>
-<span class="sourceLineNo">108</span> type = token.substring(0, i);<a name="line.108"></a>
-<span class="sourceLineNo">109</span><a name="line.109"></a>
-<span class="sourceLineNo">110</span> String[] tokens = token.substring(i+1).split(";");<a name="line.110"></a>
-<span class="sourceLineNo">111</span><a name="line.111"></a>
-<span class="sourceLineNo">112</span> // Only the type of the range is specified<a name="line.112"></a>
-<span class="sourceLineNo">113</span> if (tokens.length > 0) {<a name="line.113"></a>
-<span class="sourceLineNo">114</span> boolean isInExtensions = false;<a name="line.114"></a>
-<span class="sourceLineNo">115</span> for (int j = 0; j < tokens.length; j++) {<a name="line.115"></a>
-<span class="sourceLineNo">116</span> String[] parm = tokens[j].split("=");<a name="line.116"></a>
-<span class="sourceLineNo">117</span> if (parm.length == 2) {<a name="line.117"></a>
-<span class="sourceLineNo">118</span> String k = parm[0], v = parm[1];<a name="line.118"></a>
-<span class="sourceLineNo">119</span> if (isInExtensions) {<a name="line.119"></a>
-<span class="sourceLineNo">120</span> if (extensions == null)<a name="line.120"></a>
-<span class="sourceLineNo">121</span> extensions = new TreeMap<String,Set<String>>();<a name="line.121"></a>
-<span class="sourceLineNo">122</span> if (! extensions.containsKey(k))<a name="line.122"></a>
-<span class="sourceLineNo">123</span> extensions.put(k, new TreeSet<String>());<a name="line.123"></a>
-<span class="sourceLineNo">124</span> extensions.get(k).add(v);<a name="line.124"></a>
-<span class="sourceLineNo">125</span> } else if (k.equals("q")) {<a name="line.125"></a>
-<span class="sourceLineNo">126</span> qValue = new Float(v);<a name="line.126"></a>
-<span class="sourceLineNo">127</span> isInExtensions = true;<a name="line.127"></a>
-<span class="sourceLineNo">128</span> }<a name="line.128"></a>
-<span class="sourceLineNo">129</span> }<a name="line.129"></a>
-<span class="sourceLineNo">130</span> }<a name="line.130"></a>
-<span class="sourceLineNo">131</span> }<a name="line.131"></a>
-<span class="sourceLineNo">132</span> }<a name="line.132"></a>
-<span class="sourceLineNo">133</span> }<a name="line.133"></a>
-<span class="sourceLineNo">134</span><a name="line.134"></a>
-<span class="sourceLineNo">135</span> /**<a name="line.135"></a>
-<span class="sourceLineNo">136</span> * Returns the type enclosed by this type range.<a name="line.136"></a>
-<span class="sourceLineNo">137</span> *<a name="line.137"></a>
-<span class="sourceLineNo">138</span> * <h5 class='section'>Examples:</h5><a name="line.138"></a>
-<span class="sourceLineNo">139</span> * <ul><a name="line.139"></a>
-<span class="sourceLineNo">140</span> * <li><js>"compress"</js><a name="line.140"></a>
-<span class="sourceLineNo">141</span> * <li><js>"gzip"</js><a name="line.141"></a>
-<span class="sourceLineNo">142</span> * <li><js>"*"</js><a name="line.142"></a>
-<span class="sourceLineNo">143</span> * </ul><a name="line.143"></a>
-<span class="sourceLineNo">144</span> *<a name="line.144"></a>
-<span class="sourceLineNo">145</span> * @return The type of this type range, lowercased, never <jk>null</jk>.<a name="line.145"></a>
-<span class="sourceLineNo">146</span> */<a name="line.146"></a>
-<span class="sourceLineNo">147</span> public String getType() {<a name="line.147"></a>
-<span class="sourceLineNo">148</span> return type;<a name="line.148"></a>
-<span class="sourceLineNo">149</span> }<a name="line.149"></a>
-<span class="sourceLineNo">150</span><a name="line.150"></a>
-<span class="sourceLineNo">151</span> /**<a name="line.151"></a>
-<span class="sourceLineNo">152</span> * Returns the <js>'q'</js> (quality) value for this type, as described in Section 3.9 of RFC2616.<a name="line.152"></a>
-<span class="sourceLineNo">153</span> * <p><a name="line.153"></a>
-<span class="sourceLineNo">154</span> * The quality value is a float between <code>0.0</code> (unacceptable) and <code>1.0</code> (most acceptable).<a name="line.154"></a>
-<span class="sourceLineNo">155</span> * <p><a name="line.155"></a>
-<span class="sourceLineNo">156</span> * If 'q' value doesn't make sense for the context (e.g. this range was extracted from a <js>"content-*"</js> header, as opposed to <js>"accept-*"</js><a name="line.156"></a>
-<span class="sourceLineNo">157</span> * header, its value will always be <js>"1"</js>.<a name="line.157"></a>
-<span class="sourceLineNo">158</span> *<a name="line.158"></a>
-<span class="sourceLineNo">159</span> * @return The 'q' value for this type, never <jk>null</jk>.<a name="line.159"></a>
-<span class="sourceLineNo">160</span> */<a name="line.160"></a>
-<span class="sourceLineNo">161</span> public Float getQValue() {<a name="line.161"></a>
-<span class="sourceLineNo">162</span> return qValue;<a name="line.162"></a>
-<span class="sourceLineNo">163</span> }<a name="line.163"></a>
-<span class="sourceLineNo">164</span><a name="line.164"></a>
-<span class="sourceLineNo">165</span> /**<a name="line.165"></a>
-<span class="sourceLineNo">166</span> * Returns the optional set of custom extensions defined for this type.<a name="line.166"></a>
-<span class="sourceLineNo">167</span> * <p><a name="line.167"></a>
-<span class="sourceLineNo">168</span> * Values are lowercase and never <jk>null</jk>.<a name="line.168"></a>
-<span class="sourceLineNo">169</span> *<a name="line.169"></a>
-<span class="sourceLineNo">170</span> * @return The optional list of extensions, never <jk>null</jk>.<a name="line.170"></a>
-<span class="sourceLineNo">171</span> */<a name="line.171"></a>
-<span class="sourceLineNo">172</span> public Map<String,Set<String>> getExtensions() {<a name="line.172"></a>
-<span class="sourceLineNo">173</span> return extensions;<a name="line.173"></a>
-<span class="sourceLineNo">174</span> }<a name="line.174"></a>
-<span class="sourceLineNo">175</span><a name="line.175"></a>
-<span class="sourceLineNo">176</span> /**<a name="line.176"></a>
-<span class="sourceLineNo">177</span> * Provides a string representation of this media range, suitable for use as an <code>Accept</code> header value.<a name="line.177"></a>
-<span class="sourceLineNo">178</span> * <p><a name="line.178"></a>
-<span class="sourceLineNo">179</span> * The literal text generated will be all lowercase.<a name="line.179"></a>
-<span class="sourceLineNo">180</span> *<a name="line.180"></a>
-<span class="sourceLineNo">181</span> * @return A media range suitable for use as an Accept header value, never <code>null</code>.<a name="line.181"></a>
-<span class="sourceLineNo">182</span> */<a name="line.182"></a>
-<span class="sourceLineNo">183</span> @Override /* Object */<a name="line.183"></a>
-<span class="sourceLineNo">184</span> public String toString() {<a name="line.184"></a>
-<span class="sourceLineNo">185</span> StringBuffer sb = new StringBuffer().append(type);<a name="line.185"></a>
-<span class="sourceLineNo">186</span><a name="line.186"></a>
-<span class="sourceLineNo">187</span> // '1' is equivalent to specifying no qValue. If there's no extensions, then we won't include a qValue.<a name="line.187"></a>
-<span class="sourceLineNo">188</span> if (qValue.floatValue() == 1.0) {<a name="line.188"></a>
-<span class="sourceLineNo">189</span> if (! extensions.isEmpty()) {<a name="line.189"></a>
-<span class="sourceLineNo">190</span> sb.append(";q=").append(qValue);<a name="line.190"></a>
-<span class="sourceLineNo">191</span> for (Entry<String,Set<String>> e : extensions.entrySet()) {<a name="line.191"></a>
-<span class="sourceLineNo">192</span> String k = e.getKey();<a name="line.192"></a>
-<span class="sourceLineNo">193</span> for (String v : e.getValue())<a name="line.193"></a>
-<span class="sourceLineNo">194</span> sb.append(';').append(k).append('=').append(v);<a name="line.194"></a>
-<span class="sourceLineNo">195</span> }<a name="line.195"></a>
-<span class="sourceLineNo">196</span> }<a name="line.196"></a>
-<span class="sourceLineNo">197</span> } else {<a name="line.197"></a>
-<span class="sourceLineNo">198</span> sb.append(";q=").append(qValue);<a name="line.198"></a>
-<span class="sourceLineNo">199</span> for (Entry<String,Set<String>> e : extensions.entrySet()) {<a name="line.199"></a>
-<span class="sourceLineNo">200</span> String k = e.getKey();<a name="line.200"></a>
-<span class="sourceLineNo">201</span> for (String v : e.getValue())<a name="line.201"></a>
-<span class="sourceLineNo">202</span> sb.append(';').append(k).append('=').append(v);<a name="line.202"></a>
-<span class="sourceLineNo">203</span> }<a name="line.203"></a>
-<span class="sourceLineNo">204</span> }<a name="line.204"></a>
-<span class="sourceLineNo">205</span> return sb.toString();<a name="line.205"></a>
-<span class="sourceLineNo">206</span> }<a name="line.206"></a>
-<span class="sourceLineNo">207</span><a name="line.207"></a>
-<span class="sourceLineNo">208</span> /**<a name="line.208"></a>
-<span class="sourceLineNo">209</span> * Returns <jk>true</jk> if the specified object is also a <code>MediaType</code>, and has the same qValue, type, parameters, and extensions.<a name="line.209"></a>
-<span class="sourceLineNo">210</span> *<a name="line.210"></a>
-<span class="sourceLineNo">211</span> * @return <jk>true</jk> if object is equivalent.<a name="line.211"></a>
-<span class="sourceLineNo">212</span> */<a name="line.212"></a>
-<span class="sourceLineNo">213</span> @Override /* Object */<a name="line.213"></a>
-<span class="sourceLineNo">214</span> public boolean equals(Object o) {<a name="line.214"></a>
-<span class="sourceLineNo">215</span><a name="line.215"></a>
-<span class="sourceLineNo">216</span> if (o == null || !(o instanceof SimpleRange))<a name="line.216"></a>
-<span class="sourceLineNo">217</span> return false;<a name="line.217"></a>
-<span class="sourceLineNo">218</span><a name="line.218"></a>
-<span class="sourceLineNo">219</span> if (this == o)<a name="line.219"></a>
-<span class="sourceLineNo">220</span> return true;<a name="line.220"></a>
-<span class="sourceLineNo">221</span><a name="line.221"></a>
-<span class="sourceLineNo">222</span> SimpleRange o2 = (SimpleRange) o;<a name="line.222"></a>
-<span class="sourceLineNo">223</span> return qValue.equals(o2.qValue)<a name="line.223"></a>
-<span class="sourceLineNo">224</span> && type.equals(o2.type)<a name="line.224"></a>
-<span class="sourceLineNo">225</span> && extensions.equals(o2.extensions);<a name="line.225"></a>
-<span class="sourceLineNo">226</span> }<a name="line.226"></a>
-<span class="sourceLineNo">227</span><a name="line.227"></a>
-<span class="sourceLineNo">228</span> /**<a name="line.228"></a>
-<span class="sourceLineNo">229</span> * Returns a hash based on this instance's <code>media-type</code>.<a name="line.229"></a>
-<span class="sourceLineNo">230</span> *<a name="line.230"></a>
-<span class="sourceLineNo">231</span> * @return A hash based on this instance's <code>media-type</code>.<a name="line.231"></a>
-<span class="sourceLineNo">232</span> */<a name="line.232"></a>
-<span class="sourceLineNo">233</span> @Override /* Object */<a name="line.233"></a>
-<span class="sourceLineNo">234</span> public int hashCode() {<a name="line.234"></a>
-<span class="sourceLineNo">235</span> return type.hashCode();<a name="line.235"></a>
-<span class="sourceLineNo">236</span> }<a name="line.236"></a>
-<span class="sourceLineNo">237</span><a name="line.237"></a>
-<span class="sourceLineNo">238</span> /**<a name="line.238"></a>
-<span class="sourceLineNo">239</span> * Compares two MediaRanges for equality.<a name="line.239"></a>
-<span class="sourceLineNo">240</span> * <p><a name="line.240"></a>
-<span class="sourceLineNo">241</span> * The values are first compared according to <code>qValue</code> values.<a name="line.241"></a>
-<span class="sourceLineNo">242</span> * Should those values be equal, the <code>type</code> is then lexicographically compared (case-insensitive) in ascending order,<a name="line.242"></a>
-<span class="sourceLineNo">243</span> * with the <js>"*"</js> type demoted last in that order.<a name="line.243"></a>
-<span class="sourceLineNo">244</span> * <code>TypeRanges</code> with the same types but with extensions are promoted over those same types with no extensions.<a name="line.244"></a>
-<span class="sourceLineNo">245</span> *<a name="line.245"></a>
-<span class="sourceLineNo">246</span> * @param o The range to compare to. Never <jk>null</jk>.<a name="line.246"></a>
-<span class="sourceLineNo">247</span> */<a name="line.247"></a>
-<span class="sourceLineNo">248</span> @Override /* Comparable */<a name="line.248"></a>
-<span class="sourceLineNo">249</span> public int compareTo(SimpleRange o) {<a name="line.249"></a>
-<span class="sourceLineNo">250</span><a name="line.250"></a>
-<span class="sourceLineNo">251</span> // Compare q-values.<a name="line.251"></a>
-<span class="sourceLineNo">252</span> int qCompare = Float.compare(o.qValue, qValue);<a name="line.252"></a>
-<span class="sourceLineNo">253</span> if (qCompare != 0)<a name="line.253"></a>
-<span class="sourceLineNo">254</span> return qCompare;<a name="line.254"></a>
-<span class="sourceLineNo">255</span><a name="line.255"></a>
-<span class="sourceLineNo">256</span> // Compare media-types.<a name="line.256"></a>
-<span class="sourceLineNo">257</span> // Note that '*' comes alphabetically before letters, so just do a reverse-alphabetical comparison.<a name="line.257"></a>
-<span class="sourceLineNo">258</span> int i = o.type.toString().compareTo(type.toString());<a name="line.258"></a>
-<span class="sourceLineNo">259</span> return i;<a name="line.259"></a>
-<span class="sourceLineNo">260</span> }<a name="line.260"></a>
-<span class="sourceLineNo">261</span><a name="line.261"></a>
-<span class="sourceLineNo">262</span> /**<a name="line.262"></a>
-<span class="sourceLineNo">263</span> * Checks if the specified type matches this range.<a name="line.263"></a>
-<span class="sourceLineNo">264</span> * <p><a name="line.264"></a>
-<span class="sourceLineNo">265</span> * The type will match this range if the range type string is the same or <js>"*"</js>.<a name="line.265"></a>
-<span class="sourceLineNo">266</span> *<a name="line.266"></a>
-<span class="sourceLineNo">267</span> * @param type The type to match against this range.<a name="line.267"></a>
-<span class="sourceLineNo">268</span> * @return <jk>true</jk> if the specified type matches this range.<a name="line.268"></a>
-<span class="sourceLineNo">269</span> */<a name="line.269"></a>
-<span class="sourceLineNo">270</span> @SuppressWarnings("hiding")<a name="line.270"></a>
-<span class="sourceLineNo">271</span> public boolean matches(String type) {<a name="line.271"></a>
-<span class="sourceLineNo">272</span> if (qValue == 0)<a name="line.272"></a>
-<span class="sourceLineNo">273</span> return false;<a name="line.273"></a>
-<span class="sourceLineNo">274</span> return this.type.equals(type) || this.type.equals("*");<a name="line.274"></a>
-<span class="sourceLineNo">275</span> }<a name="line.275"></a>
-<span class="sourceLineNo">276</span>}<a name="line.276"></a>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-</pre>
-</div>
-</body>
-</html>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/src-html/org/apache/juneau/http/TypeRange.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/http/TypeRange.html b/content/site/apidocs/src-html/org/apache/juneau/http/TypeRange.html
deleted file mode 100644
index 44b8656..0000000
--- a/content/site/apidocs/src-html/org/apache/juneau/http/TypeRange.html
+++ /dev/null
@@ -1,348 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html lang="en">
-<head>
-<title>Source code</title>
-<link rel="stylesheet" type="text/css" href="../../../../../javadoc.css" title="Style">
-</head>
-<body>
-<div class="sourceContainer">
-<pre><span class="sourceLineNo">001</span>// ***************************************************************************************************************************<a name="line.1"></a>
-<span class="sourceLineNo">002</span>// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file *<a name="line.2"></a>
-<span class="sourceLineNo">003</span>// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file *<a name="line.3"></a>
-<span class="sourceLineNo">004</span>// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance *<a name="line.4"></a>
-<span class="sourceLineNo">005</span>// * with the License. You may obtain a copy of the License at *<a name="line.5"></a>
-<span class="sourceLineNo">006</span>// * *<a name="line.6"></a>
-<span class="sourceLineNo">007</span>// * http://www.apache.org/licenses/LICENSE-2.0 *<a name="line.7"></a>
-<span class="sourceLineNo">008</span>// * *<a name="line.8"></a>
-<span class="sourceLineNo">009</span>// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an *<a name="line.9"></a>
-<span class="sourceLineNo">010</span>// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the *<a name="line.10"></a>
-<span class="sourceLineNo">011</span>// * specific language governing permissions and limitations under the License. *<a name="line.11"></a>
-<span class="sourceLineNo">012</span>// ***************************************************************************************************************************<a name="line.12"></a>
-<span class="sourceLineNo">013</span>package org.apache.juneau.http;<a name="line.13"></a>
-<span class="sourceLineNo">014</span><a name="line.14"></a>
-<span class="sourceLineNo">015</span>import java.util.*;<a name="line.15"></a>
-<span class="sourceLineNo">016</span>import java.util.Map.*;<a name="line.16"></a>
-<span class="sourceLineNo">017</span><a name="line.17"></a>
-<span class="sourceLineNo">018</span>import org.apache.juneau.annotation.*;<a name="line.18"></a>
-<span class="sourceLineNo">019</span>import org.apache.juneau.internal.*;<a name="line.19"></a>
-<span class="sourceLineNo">020</span><a name="line.20"></a>
-<span class="sourceLineNo">021</span>/**<a name="line.21"></a>
-<span class="sourceLineNo">022</span> * Represents a single value in a comma-delimited header value that optionally contains a quality<a name="line.22"></a>
-<span class="sourceLineNo">023</span> * metric for comparison and extension parameters.<a name="line.23"></a>
-<span class="sourceLineNo">024</span> * <p><a name="line.24"></a>
-<span class="sourceLineNo">025</span> * Similar in concept to {@link MediaTypeRange} except instead of media types (e.g. <js>"text/json"</js>),<a name="line.25"></a>
-<span class="sourceLineNo">026</span> * it's a simple type (e.g. <js>"iso-8601"</js>).<a name="line.26"></a>
-<span class="sourceLineNo">027</span> * <p><a name="line.27"></a>
-<span class="sourceLineNo">028</span> * An example of a type range is a value in an <code>Accept-Encoding</code> header.<a name="line.28"></a>
-<span class="sourceLineNo">029</span> */<a name="line.29"></a>
-<span class="sourceLineNo">030</span>@BeanIgnore<a name="line.30"></a>
-<span class="sourceLineNo">031</span>public final class TypeRange implements Comparable<TypeRange> {<a name="line.31"></a>
-<span class="sourceLineNo">032</span><a name="line.32"></a>
-<span class="sourceLineNo">033</span> private static final TypeRange[] DEFAULT = new TypeRange[]{new TypeRange("*")};<a name="line.33"></a>
-<span class="sourceLineNo">034</span><a name="line.34"></a>
-<span class="sourceLineNo">035</span> private final String type;<a name="line.35"></a>
-<span class="sourceLineNo">036</span> private final Float qValue;<a name="line.36"></a>
-<span class="sourceLineNo">037</span> private final Map<String,Set<String>> extensions;<a name="line.37"></a>
-<span class="sourceLineNo">038</span><a name="line.38"></a>
-<span class="sourceLineNo">039</span> /**<a name="line.39"></a>
-<span class="sourceLineNo">040</span> * Parses a header such as an <code>Accept-Encoding</code> header value into an array of type ranges.<a name="line.40"></a>
-<span class="sourceLineNo">041</span> * <p><a name="line.41"></a>
-<span class="sourceLineNo">042</span> * The syntax expected to be found in the referenced <code>value</code> complies with the syntax described in RFC2616, Section 14.1, as described below:<a name="line.42"></a>
-<span class="sourceLineNo">043</span> * <p class='bcode'><a name="line.43"></a>
-<span class="sourceLineNo">044</span> * Accept-Encoding = "Accept-Encoding" ":"<a name="line.44"></a>
-<span class="sourceLineNo">045</span> * 1#( codings [ ";" "q" "=" qvalue ] )<a name="line.45"></a>
-<span class="sourceLineNo">046</span> * codings = ( content-coding | "*" )<a name="line.46"></a>
-<span class="sourceLineNo">047</span> * </p><a name="line.47"></a>
-<span class="sourceLineNo">048</span> * <p><a name="line.48"></a>
-<span class="sourceLineNo">049</span> * Examples of its use are:<a name="line.49"></a>
-<span class="sourceLineNo">050</span> * <p class='bcode'><a name="line.50"></a>
-<span class="sourceLineNo">051</span> * Accept-Encoding: compress, gzip<a name="line.51"></a>
-<span class="sourceLineNo">052</span> * Accept-Encoding:<a name="line.52"></a>
-<span class="sourceLineNo">053</span> * Accept-Encoding: *<a name="line.53"></a>
-<span class="sourceLineNo">054</span> * Accept-Encoding: compress;q=0.5, gzip;q=1.0<a name="line.54"></a>
-<span class="sourceLineNo">055</span> * Accept-Encoding: gzip;q=1.0, identity; q=0.5, *;q=0<a name="line.55"></a>
-<span class="sourceLineNo">056</span> * </p><a name="line.56"></a>
-<span class="sourceLineNo">057</span> *<a name="line.57"></a>
-<span class="sourceLineNo">058</span> * @param value The value to parse. If <jk>null</jk> or empty, returns a single <code>TypeRange</code> is returned that represents all types.<a name="line.58"></a>
-<span class="sourceLineNo">059</span> * @return The type ranges described by the string.<a name="line.59"></a>
-<span class="sourceLineNo">060</span> * <br>The ranges are sorted such that the most acceptable type is available at ordinal position <js>'0'</js>, and the least acceptable at position n-1.<a name="line.60"></a>
-<span class="sourceLineNo">061</span> */<a name="line.61"></a>
-<span class="sourceLineNo">062</span> public static TypeRange[] parse(String value) {<a name="line.62"></a>
-<span class="sourceLineNo">063</span><a name="line.63"></a>
-<span class="sourceLineNo">064</span> if (value == null || value.length() == 0)<a name="line.64"></a>
-<span class="sourceLineNo">065</span> return DEFAULT;<a name="line.65"></a>
-<span class="sourceLineNo">066</span><a name="line.66"></a>
-<span class="sourceLineNo">067</span> if (value.indexOf(',') == -1)<a name="line.67"></a>
-<span class="sourceLineNo">068</span> return new TypeRange[]{new TypeRange(value)};<a name="line.68"></a>
-<span class="sourceLineNo">069</span><a name="line.69"></a>
-<span class="sourceLineNo">070</span> Set<TypeRange> ranges = new TreeSet<TypeRange>();<a name="line.70"></a>
-<span class="sourceLineNo">071</span><a name="line.71"></a>
-<span class="sourceLineNo">072</span> for (String r : StringUtils.split(value, ',')) {<a name="line.72"></a>
-<span class="sourceLineNo">073</span> r = r.trim();<a name="line.73"></a>
-<span class="sourceLineNo">074</span><a name="line.74"></a>
-<span class="sourceLineNo">075</span> if (r.isEmpty())<a name="line.75"></a>
-<span class="sourceLineNo">076</span> continue;<a name="line.76"></a>
-<span class="sourceLineNo">077</span><a name="line.77"></a>
-<span class="sourceLineNo">078</span> ranges.add(new TypeRange(r));<a name="line.78"></a>
-<span class="sourceLineNo">079</span> }<a name="line.79"></a>
-<span class="sourceLineNo">080</span><a name="line.80"></a>
-<span class="sourceLineNo">081</span> return ranges.toArray(new TypeRange[ranges.size()]);<a name="line.81"></a>
-<span class="sourceLineNo">082</span> }<a name="line.82"></a>
-<span class="sourceLineNo">083</span><a name="line.83"></a>
-<span class="sourceLineNo">084</span> @SuppressWarnings("unchecked")<a name="line.84"></a>
-<span class="sourceLineNo">085</span> private TypeRange(String token) {<a name="line.85"></a>
-<span class="sourceLineNo">086</span> Builder b = new Builder(token);<a name="line.86"></a>
-<span class="sourceLineNo">087</span> this.type = b.type;<a name="line.87"></a>
-<span class="sourceLineNo">088</span> this.qValue = b.qValue;<a name="line.88"></a>
-<span class="sourceLineNo">089</span> this.extensions = (b.extensions == null ? Collections.EMPTY_MAP : Collections.unmodifiableMap(b.extensions));<a name="line.89"></a>
-<span class="sourceLineNo">090</span> }<a name="line.90"></a>
-<span class="sourceLineNo">091</span><a name="line.91"></a>
-<span class="sourceLineNo">092</span> private static class Builder {<a name="line.92"></a>
-<span class="sourceLineNo">093</span> private String type;<a name="line.93"></a>
-<span class="sourceLineNo">094</span> private Float qValue = 1f;<a name="line.94"></a>
-<span class="sourceLineNo">095</span> private Map<String,Set<String>> extensions;<a name="line.95"></a>
-<span class="sourceLineNo">096</span><a name="line.96"></a>
-<span class="sourceLineNo">097</span> private Builder(String token) {<a name="line.97"></a>
-<span class="sourceLineNo">098</span><a name="line.98"></a>
-<span class="sourceLineNo">099</span> token = token.trim();<a name="line.99"></a>
-<span class="sourceLineNo">100</span><a name="line.100"></a>
-<span class="sourceLineNo">101</span> int i = token.indexOf(";q=");<a name="line.101"></a>
-<span class="sourceLineNo">102</span><a name="line.102"></a>
-<span class="sourceLineNo">103</span> if (i == -1) {<a name="line.103"></a>
-<span class="sourceLineNo">104</span> type = token;<a name="line.104"></a>
-<span class="sourceLineNo">105</span> return;<a name="line.105"></a>
-<span class="sourceLineNo">106</span> }<a name="line.106"></a>
-<span class="sourceLineNo">107</span><a name="line.107"></a>
-<span class="sourceLineNo">108</span> type = token.substring(0, i);<a name="line.108"></a>
-<span class="sourceLineNo">109</span><a name="line.109"></a>
-<span class="sourceLineNo">110</span> String[] tokens = token.substring(i+1).split(";");<a name="line.110"></a>
-<span class="sourceLineNo">111</span><a name="line.111"></a>
-<span class="sourceLineNo">112</span> // Only the type of the range is specified<a name="line.112"></a>
-<span class="sourceLineNo">113</span> if (tokens.length > 0) {<a name="line.113"></a>
-<span class="sourceLineNo">114</span> boolean isInExtensions = false;<a name="line.114"></a>
-<span class="sourceLineNo">115</span> for (int j = 0; j < tokens.length; j++) {<a name="line.115"></a>
-<span class="sourceLineNo">116</span> String[] parm = tokens[j].split("=");<a name="line.116"></a>
-<span class="sourceLineNo">117</span> if (parm.length == 2) {<a name="line.117"></a>
-<span class="sourceLineNo">118</span> String k = parm[0], v = parm[1];<a name="line.118"></a>
-<span class="sourceLineNo">119</span> if (isInExtensions) {<a name="line.119"></a>
-<span class="sourceLineNo">120</span> if (extensions == null)<a name="line.120"></a>
-<span class="sourceLineNo">121</span> extensions = new TreeMap<String,Set<String>>();<a name="line.121"></a>
-<span class="sourceLineNo">122</span> if (! extensions.containsKey(k))<a name="line.122"></a>
-<span class="sourceLineNo">123</span> extensions.put(k, new TreeSet<String>());<a name="line.123"></a>
-<span class="sourceLineNo">124</span> extensions.get(k).add(v);<a name="line.124"></a>
-<span class="sourceLineNo">125</span> } else if (k.equals("q")) {<a name="line.125"></a>
-<span class="sourceLineNo">126</span> qValue = new Float(v);<a name="line.126"></a>
-<span class="sourceLineNo">127</span> isInExtensions = true;<a name="line.127"></a>
-<span class="sourceLineNo">128</span> }<a name="line.128"></a>
-<span class="sourceLineNo">129</span> }<a name="line.129"></a>
-<span class="sourceLineNo">130</span> }<a name="line.130"></a>
-<span class="sourceLineNo">131</span> }<a name="line.131"></a>
-<span class="sourceLineNo">132</span> }<a name="line.132"></a>
-<span class="sourceLineNo">133</span> }<a name="line.133"></a>
-<span class="sourceLineNo">134</span><a name="line.134"></a>
-<span class="sourceLineNo">135</span> /**<a name="line.135"></a>
-<span class="sourceLineNo">136</span> * Returns the type enclosed by this type range.<a name="line.136"></a>
-<span class="sourceLineNo">137</span> *<a name="line.137"></a>
-<span class="sourceLineNo">138</span> * <h5 class='section'>Examples:</h5><a name="line.138"></a>
-<span class="sourceLineNo">139</span> * <ul><a name="line.139"></a>
-<span class="sourceLineNo">140</span> * <li><js>"compress"</js><a name="line.140"></a>
-<span class="sourceLineNo">141</span> * <li><js>"gzip"</js><a name="line.141"></a>
-<span class="sourceLineNo">142</span> * <li><js>"*"</js><a name="line.142"></a>
-<span class="sourceLineNo">143</span> * </ul><a name="line.143"></a>
-<span class="sourceLineNo">144</span> *<a name="line.144"></a>
-<span class="sourceLineNo">145</span> * @return The type of this type range, lowercased, never <jk>null</jk>.<a name="line.145"></a>
-<span class="sourceLineNo">146</span> */<a name="line.146"></a>
-<span class="sourceLineNo">147</span> public String getType() {<a name="line.147"></a>
-<span class="sourceLineNo">148</span> return type;<a name="line.148"></a>
-<span class="sourceLineNo">149</span> }<a name="line.149"></a>
-<span class="sourceLineNo">150</span><a name="line.150"></a>
-<span class="sourceLineNo">151</span> /**<a name="line.151"></a>
-<span class="sourceLineNo">152</span> * Returns the <js>'q'</js> (quality) value for this type, as described in Section 3.9 of RFC2616.<a name="line.152"></a>
-<span class="sourceLineNo">153</span> * <p><a name="line.153"></a>
-<span class="sourceLineNo">154</span> * The quality value is a float between <code>0.0</code> (unacceptable) and <code>1.0</code> (most acceptable).<a name="line.154"></a>
-<span class="sourceLineNo">155</span> * <p><a name="line.155"></a>
-<span class="sourceLineNo">156</span> * If 'q' value doesn't make sense for the context (e.g. this range was extracted from a <js>"content-*"</js> header, as opposed to <js>"accept-*"</js><a name="line.156"></a>
-<span class="sourceLineNo">157</span> * header, its value will always be <js>"1"</js>.<a name="line.157"></a>
-<span class="sourceLineNo">158</span> *<a name="line.158"></a>
-<span class="sourceLineNo">159</span> * @return The 'q' value for this type, never <jk>null</jk>.<a name="line.159"></a>
-<span class="sourceLineNo">160</span> */<a name="line.160"></a>
-<span class="sourceLineNo">161</span> public Float getQValue() {<a name="line.161"></a>
-<span class="sourceLineNo">162</span> return qValue;<a name="line.162"></a>
-<span class="sourceLineNo">163</span> }<a name="line.163"></a>
-<span class="sourceLineNo">164</span><a name="line.164"></a>
-<span class="sourceLineNo">165</span> /**<a name="line.165"></a>
-<span class="sourceLineNo">166</span> * Returns the optional set of custom extensions defined for this type.<a name="line.166"></a>
-<span class="sourceLineNo">167</span> * <p><a name="line.167"></a>
-<span class="sourceLineNo">168</span> * Values are lowercase and never <jk>null</jk>.<a name="line.168"></a>
-<span class="sourceLineNo">169</span> *<a name="line.169"></a>
-<span class="sourceLineNo">170</span> * @return The optional list of extensions, never <jk>null</jk>.<a name="line.170"></a>
-<span class="sourceLineNo">171</span> */<a name="line.171"></a>
-<span class="sourceLineNo">172</span> public Map<String,Set<String>> getExtensions() {<a name="line.172"></a>
-<span class="sourceLineNo">173</span> return extensions;<a name="line.173"></a>
-<span class="sourceLineNo">174</span> }<a name="line.174"></a>
-<span class="sourceLineNo">175</span><a name="line.175"></a>
-<span class="sourceLineNo">176</span> /**<a name="line.176"></a>
-<span class="sourceLineNo">177</span> * Provides a string representation of this media range, suitable for use as an <code>Accept</code> header value.<a name="line.177"></a>
-<span class="sourceLineNo">178</span> * <p><a name="line.178"></a>
-<span class="sourceLineNo">179</span> * The literal text generated will be all lowercase.<a name="line.179"></a>
-<span class="sourceLineNo">180</span> *<a name="line.180"></a>
-<span class="sourceLineNo">181</span> * @return A media range suitable for use as an Accept header value, never <code>null</code>.<a name="line.181"></a>
-<span class="sourceLineNo">182</span> */<a name="line.182"></a>
-<span class="sourceLineNo">183</span> @Override /* Object */<a name="line.183"></a>
-<span class="sourceLineNo">184</span> public String toString() {<a name="line.184"></a>
-<span class="sourceLineNo">185</span> StringBuffer sb = new StringBuffer().append(type);<a name="line.185"></a>
-<span class="sourceLineNo">186</span><a name="line.186"></a>
-<span class="sourceLineNo">187</span> // '1' is equivalent to specifying no qValue. If there's no extensions, then we won't include a qValue.<a name="line.187"></a>
-<span class="sourceLineNo">188</span> if (qValue.floatValue() == 1.0) {<a name="line.188"></a>
-<span class="sourceLineNo">189</span> if (! extensions.isEmpty()) {<a name="line.189"></a>
-<span class="sourceLineNo">190</span> sb.append(";q=").append(qValue);<a name="line.190"></a>
-<span class="sourceLineNo">191</span> for (Entry<String,Set<String>> e : extensions.entrySet()) {<a name="line.191"></a>
-<span class="sourceLineNo">192</span> String k = e.getKey();<a name="line.192"></a>
-<span class="sourceLineNo">193</span> for (String v : e.getValue())<a name="line.193"></a>
-<span class="sourceLineNo">194</span> sb.append(';').append(k).append('=').append(v);<a name="line.194"></a>
-<span class="sourceLineNo">195</span> }<a name="line.195"></a>
-<span class="sourceLineNo">196</span> }<a name="line.196"></a>
-<span class="sourceLineNo">197</span> } else {<a name="line.197"></a>
-<span class="sourceLineNo">198</span> sb.append(";q=").append(qValue);<a name="line.198"></a>
-<span class="sourceLineNo">199</span> for (Entry<String,Set<String>> e : extensions.entrySet()) {<a name="line.199"></a>
-<span class="sourceLineNo">200</span> String k = e.getKey();<a name="line.200"></a>
-<span class="sourceLineNo">201</span> for (String v : e.getValue())<a name="line.201"></a>
-<span class="sourceLineNo">202</span> sb.append(';').append(k).append('=').append(v);<a name="line.202"></a>
-<span class="sourceLineNo">203</span> }<a name="line.203"></a>
-<span class="sourceLineNo">204</span> }<a name="line.204"></a>
-<span class="sourceLineNo">205</span> return sb.toString();<a name="line.205"></a>
-<span class="sourceLineNo">206</span> }<a name="line.206"></a>
-<span class="sourceLineNo">207</span><a name="line.207"></a>
-<span class="sourceLineNo">208</span> /**<a name="line.208"></a>
-<span class="sourceLineNo">209</span> * Returns <jk>true</jk> if the specified object is also a <code>MediaType</code>, and has the same qValue, type, parameters, and extensions.<a name="line.209"></a>
-<span class="sourceLineNo">210</span> *<a name="line.210"></a>
-<span class="sourceLineNo">211</span> * @return <jk>true</jk> if object is equivalent.<a name="line.211"></a>
-<span class="sourceLineNo">212</span> */<a name="line.212"></a>
-<span class="sourceLineNo">213</span> @Override /* Object */<a name="line.213"></a>
-<span class="sourceLineNo">214</span> public boolean equals(Object o) {<a name="line.214"></a>
-<span class="sourceLineNo">215</span><a name="line.215"></a>
-<span class="sourceLineNo">216</span> if (o == null || !(o instanceof TypeRange))<a name="line.216"></a>
-<span class="sourceLineNo">217</span> return false;<a name="line.217"></a>
-<span class="sourceLineNo">218</span><a name="line.218"></a>
-<span class="sourceLineNo">219</span> if (this == o)<a name="line.219"></a>
-<span class="sourceLineNo">220</span> return true;<a name="line.220"></a>
-<span class="sourceLineNo">221</span><a name="line.221"></a>
-<span class="sourceLineNo">222</span> TypeRange o2 = (TypeRange) o;<a name="line.222"></a>
-<span class="sourceLineNo">223</span> return qValue.equals(o2.qValue)<a name="line.223"></a>
-<span class="sourceLineNo">224</span> && type.equals(o2.type)<a name="line.224"></a>
-<span class="sourceLineNo">225</span> && extensions.equals(o2.extensions);<a name="line.225"></a>
-<span class="sourceLineNo">226</span> }<a name="line.226"></a>
-<span class="sourceLineNo">227</span><a name="line.227"></a>
-<span class="sourceLineNo">228</span> /**<a name="line.228"></a>
-<span class="sourceLineNo">229</span> * Returns a hash based on this instance's <code>media-type</code>.<a name="line.229"></a>
-<span class="sourceLineNo">230</span> *<a name="line.230"></a>
-<span class="sourceLineNo">231</span> * @return A hash based on this instance's <code>media-type</code>.<a name="line.231"></a>
-<span class="sourceLineNo">232</span> */<a name="line.232"></a>
-<span class="sourceLineNo">233</span> @Override /* Object */<a name="line.233"></a>
-<span class="sourceLineNo">234</span> public int hashCode() {<a name="line.234"></a>
-<span class="sourceLineNo">235</span> return type.hashCode();<a name="line.235"></a>
-<span class="sourceLineNo">236</span> }<a name="line.236"></a>
-<span class="sourceLineNo">237</span><a name="line.237"></a>
-<span class="sourceLineNo">238</span> /**<a name="line.238"></a>
-<span class="sourceLineNo">239</span> * Compares two MediaRanges for equality.<a name="line.239"></a>
-<span class="sourceLineNo">240</span> * <p><a name="line.240"></a>
-<span class="sourceLineNo">241</span> * The values are first compared according to <code>qValue</code> values.<a name="line.241"></a>
-<span class="sourceLineNo">242</span> * Should those values be equal, the <code>type</code> is then lexicographically compared (case-insensitive) in ascending order,<a name="line.242"></a>
-<span class="sourceLineNo">243</span> * with the <js>"*"</js> type demoted last in that order.<a name="line.243"></a>
-<span class="sourceLineNo">244</span> * <code>TypeRanges</code> with the same types but with extensions are promoted over those same types with no extensions.<a name="line.244"></a>
-<span class="sourceLineNo">245</span> *<a name="line.245"></a>
-<span class="sourceLineNo">246</span> * @param o The range to compare to. Never <jk>null</jk>.<a name="line.246"></a>
-<span class="sourceLineNo">247</span> */<a name="line.247"></a>
-<span class="sourceLineNo">248</span> @Override /* Comparable */<a name="line.248"></a>
-<span class="sourceLineNo">249</span> public int compareTo(TypeRange o) {<a name="line.249"></a>
-<span class="sourceLineNo">250</span><a name="line.250"></a>
-<span class="sourceLineNo">251</span> // Compare q-values.<a name="line.251"></a>
-<span class="sourceLineNo">252</span> int qCompare = Float.compare(o.qValue, qValue);<a name="line.252"></a>
-<span class="sourceLineNo">253</span> if (qCompare != 0)<a name="line.253"></a>
-<span class="sourceLineNo">254</span> return qCompare;<a name="line.254"></a>
-<span class="sourceLineNo">255</span><a name="line.255"></a>
-<span class="sourceLineNo">256</span> // Compare media-types.<a name="line.256"></a>
-<span class="sourceLineNo">257</span> // Note that '*' comes alphabetically before letters, so just do a reverse-alphabetical comparison.<a name="line.257"></a>
-<span class="sourceLineNo">258</span> int i = o.type.toString().compareTo(type.toString());<a name="line.258"></a>
-<span class="sourceLineNo">259</span> return i;<a name="line.259"></a>
-<span class="sourceLineNo">260</span> }<a name="line.260"></a>
-<span class="sourceLineNo">261</span><a name="line.261"></a>
-<span class="sourceLineNo">262</span> /**<a name="line.262"></a>
-<span class="sourceLineNo">263</span> * Checks if the specified type matches this range.<a name="line.263"></a>
-<span class="sourceLineNo">264</span> * <p><a name="line.264"></a>
-<span class="sourceLineNo">265</span> * The type will match this range if the range type string is the same or <js>"*"</js>.<a name="line.265"></a>
-<span class="sourceLineNo">266</span> *<a name="line.266"></a>
-<span class="sourceLineNo">267</span> * @param type The type to match against this range.<a name="line.267"></a>
-<span class="sourceLineNo">268</span> * @return <jk>true</jk> if the specified type matches this range.<a name="line.268"></a>
-<span class="sourceLineNo">269</span> */<a name="line.269"></a>
-<span class="sourceLineNo">270</span> @SuppressWarnings("hiding")<a name="line.270"></a>
-<span class="sourceLineNo">271</span> public boolean matches(String type) {<a name="line.271"></a>
-<span class="sourceLineNo">272</span> if (qValue == 0)<a name="line.272"></a>
-<span class="sourceLineNo">273</span> return false;<a name="line.273"></a>
-<span class="sourceLineNo">274</span> return this.type.equals(type) || this.type.equals("*");<a name="line.274"></a>
-<span class="sourceLineNo">275</span> }<a name="line.275"></a>
-<span class="sourceLineNo">276</span>}<a name="line.276"></a>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-</pre>
-</div>
-</body>
-</html>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/src-html/org/apache/juneau/rest/RequestBody.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/rest/RequestBody.html b/content/site/apidocs/src-html/org/apache/juneau/rest/RequestBody.html
index db00cdc..a2b10b5 100644
--- a/content/site/apidocs/src-html/org/apache/juneau/rest/RequestBody.html
+++ b/content/site/apidocs/src-html/org/apache/juneau/rest/RequestBody.html
@@ -93,10 +93,10 @@
<span class="sourceLineNo">085</span> /**<a name="line.85"></a>
<span class="sourceLineNo">086</span> * Reads the input from the HTTP request as JSON, XML, or HTML and converts the input to a POJO.<a name="line.86"></a>
<span class="sourceLineNo">087</span> * <p><a name="line.87"></a>
-<span class="sourceLineNo">088</span> * If {@code allowHeaderParams} init parameter is <jk>true</jk>, then first looks for {@code &body=xxx} in the URL <a name="line.88"></a>
+<span class="sourceLineNo">088</span> * If {@code allowHeaderParams} init parameter is <jk>true</jk>, then first looks for {@code &body=xxx} in the URL<a name="line.88"></a>
<span class="sourceLineNo">089</span> * query string.<a name="line.89"></a>
<span class="sourceLineNo">090</span> * <p><a name="line.90"></a>
-<span class="sourceLineNo">091</span> * If type is <jk>null</jk> or <code>Object.<jk>class</jk></code>, then the actual type will be determined <a name="line.91"></a>
+<span class="sourceLineNo">091</span> * If type is <jk>null</jk> or <code>Object.<jk>class</jk></code>, then the actual type will be determined<a name="line.91"></a>
<span class="sourceLineNo">092</span> * automatically based on the following input:<a name="line.92"></a>
<span class="sourceLineNo">093</span> * <table class='styled'><a name="line.93"></a>
<span class="sourceLineNo">094</span> * <tr><th>Type</th><th>JSON input</th><th>XML input</th><th>Return type</th></tr><a name="line.94"></a>
@@ -138,32 +138,32 @@
<span class="sourceLineNo">130</span> * </tr><a name="line.130"></a>
<span class="sourceLineNo">131</span> * </table><a name="line.131"></a>
<span class="sourceLineNo">132</span> * <p><a name="line.132"></a>
-<span class="sourceLineNo">133</span> * Refer to <a class="doclink" href="../../../../overview-summary.html#Core.PojoCategories">POJO Categories</a> for <a name="line.133"></a>
+<span class="sourceLineNo">133</span> * Refer to <a class="doclink" href="../../../../overview-summary.html#Core.PojoCategories">POJO Categories</a> for<a name="line.133"></a>
<span class="sourceLineNo">134</span> * a complete definition of supported POJOs.<a name="line.134"></a>
<span class="sourceLineNo">135</span> * <p><a name="line.135"></a>
<span class="sourceLineNo">136</span> * <h5 class='section'>Examples:</h5><a name="line.136"></a>
<span class="sourceLineNo">137</span> * <p class='bcode'><a name="line.137"></a>
<span class="sourceLineNo">138</span> * <jc>// Parse into an integer.</jc><a name="line.138"></a>
-<span class="sourceLineNo">139</span> * <jk>int</jk> body = req.getBody(<jk>int</jk>.<jk>class</jk>);<a name="line.139"></a>
+<span class="sourceLineNo">139</span> * <jk>int</jk> body = req.getBody().asType(<jk>int</jk>.<jk>class</jk>);<a name="line.139"></a>
<span class="sourceLineNo">140</span> *<a name="line.140"></a>
<span class="sourceLineNo">141</span> * <jc>// Parse into an int array.</jc><a name="line.141"></a>
-<span class="sourceLineNo">142</span> * <jk>int</jk>[] body = req.getBody(<jk>int</jk>[].<jk>class</jk>);<a name="line.142"></a>
+<span class="sourceLineNo">142</span> * <jk>int</jk>[] body = req.getBody().asType(<jk>int</jk>[].<jk>class</jk>);<a name="line.142"></a>
<span class="sourceLineNo">143</span><a name="line.143"></a>
<span class="sourceLineNo">144</span> * <jc>// Parse into a bean.</jc><a name="line.144"></a>
-<span class="sourceLineNo">145</span> * MyBean body = req.getBody(MyBean.<jk>class</jk>);<a name="line.145"></a>
+<span class="sourceLineNo">145</span> * MyBean body = req.getBody().asType(MyBean.<jk>class</jk>);<a name="line.145"></a>
<span class="sourceLineNo">146</span> *<a name="line.146"></a>
<span class="sourceLineNo">147</span> * <jc>// Parse into a linked-list of objects.</jc><a name="line.147"></a>
-<span class="sourceLineNo">148</span> * List body = req.getBody(LinkedList.<jk>class</jk>);<a name="line.148"></a>
+<span class="sourceLineNo">148</span> * List body = req.getBody().asType(LinkedList.<jk>class</jk>);<a name="line.148"></a>
<span class="sourceLineNo">149</span> *<a name="line.149"></a>
<span class="sourceLineNo">150</span> * <jc>// Parse into a map of object keys/values.</jc><a name="line.150"></a>
-<span class="sourceLineNo">151</span> * Map body = req.getBody(TreeMap.<jk>class</jk>);<a name="line.151"></a>
+<span class="sourceLineNo">151</span> * Map body = req.getBody().asType(TreeMap.<jk>class</jk>);<a name="line.151"></a>
<span class="sourceLineNo">152</span> * </p><a name="line.152"></a>
<span class="sourceLineNo">153</span> *<a name="line.153"></a>
<span class="sourceLineNo">154</span> * @param type The class type to instantiate.<a name="line.154"></a>
<span class="sourceLineNo">155</span> * @param <T> The class type to instantiate.<a name="line.155"></a>
<span class="sourceLineNo">156</span> * @return The input parsed to a POJO.<a name="line.156"></a>
<span class="sourceLineNo">157</span> * @throws IOException If a problem occurred trying to read from the reader.<a name="line.157"></a>
-<span class="sourceLineNo">158</span> * @throws ParseException If the input contains a syntax error or is malformed for the requested {@code Accept} <a name="line.158"></a>
+<span class="sourceLineNo">158</span> * @throws ParseException If the input contains a syntax error or is malformed for the requested {@code Accept}<a name="line.158"></a>
<span class="sourceLineNo">159</span> * header or is not valid for the specified type.<a name="line.159"></a>
<span class="sourceLineNo">160</span> */<a name="line.160"></a>
<span class="sourceLineNo">161</span> public <T> T asType(Class<T> type) throws IOException, ParseException {<a name="line.161"></a>
@@ -176,23 +176,23 @@
<span class="sourceLineNo">168</span> * <h5 class='section'>Examples:</h5><a name="line.168"></a>
<span class="sourceLineNo">169</span> * <p class='bcode'><a name="line.169"></a>
<span class="sourceLineNo">170</span> * <jc>// Parse into a linked-list of strings.</jc><a name="line.170"></a>
-<span class="sourceLineNo">171</span> * List&lt;String&gt; body = req.getBody(LinkedList.<jk>class</jk>, String.<jk>class</jk>);<a name="line.171"></a>
+<span class="sourceLineNo">171</span> * List&lt;String&gt; body = req.getBody().asType(LinkedList.<jk>class</jk>, String.<jk>class</jk>);<a name="line.171"></a>
<span class="sourceLineNo">172</span> *<a name="line.172"></a>
<span class="sourceLineNo">173</span> * <jc>// Parse into a linked-list of linked-lists of strings.</jc><a name="line.173"></a>
-<span class="sourceLineNo">174</span> * List&lt;List&lt;String&gt;&gt; body = req.getBody(LinkedList.<jk>class</jk>, LinkedList.<jk>class</jk>, String.<jk>class</jk>);<a name="line.174"></a>
+<span class="sourceLineNo">174</span> * List&lt;List&lt;String&gt;&gt; body = req.getBody().asType(LinkedList.<jk>class</jk>, LinkedList.<jk>class</jk>, String.<jk>class</jk>);<a name="line.174"></a>
<span class="sourceLineNo">175</span> *<a name="line.175"></a>
<span class="sourceLineNo">176</span> * <jc>// Parse into a map of string keys/values.</jc><a name="line.176"></a>
-<span class="sourceLineNo">177</span> * Map&lt;String,String&gt; body = req.getBody(TreeMap.<jk>class</jk>, String.<jk>class</jk>, String.<jk>class</jk>);<a name="line.177"></a>
+<span class="sourceLineNo">177</span> * Map&lt;String,String&gt; body = req.getBody().asType(TreeMap.<jk>class</jk>, String.<jk>class</jk>, String.<jk>class</jk>);<a name="line.177"></a>
<span class="sourceLineNo">178</span> *<a name="line.178"></a>
<span class="sourceLineNo">179</span> * <jc>// Parse into a map containing string keys and values of lists containing beans.</jc><a name="line.179"></a>
-<span class="sourceLineNo">180</span> * Map&lt;String,List&lt;MyBean&gt;&gt; body = req.getBody(TreeMap.<jk>class</jk>, String.<jk>class</jk>, List.<jk>class</jk>, MyBean.<jk>class</jk>);<a name="line.180"></a>
+<span class="sourceLineNo">180</span> * Map&lt;String,List&lt;MyBean&gt;&gt; body = req.getBody().asType(TreeMap.<jk>class</jk>, String.<jk>class</jk>, List.<jk>class</jk>, MyBean.<jk>class</jk>);<a name="line.180"></a>
<span class="sourceLineNo">181</span> * </p><a name="line.181"></a>
<span class="sourceLineNo">182</span> *<a name="line.182"></a>
<span class="sourceLineNo">183</span> * @param type The type of object to create.<a name="line.183"></a>
-<span class="sourceLineNo">184</span> * <br>Can be any of the following: {@link ClassMeta}, {@link Class}, {@link ParameterizedType}, <a name="line.184"></a>
+<span class="sourceLineNo">184</span> * <br>Can be any of the following: {@link ClassMeta}, {@link Class}, {@link ParameterizedType},<a name="line.184"></a>
<span class="sourceLineNo">185</span> * {@link GenericArrayType}<a name="line.185"></a>
<span class="sourceLineNo">186</span> * @param args The type arguments of the class if it's a collection or map.<a name="line.186"></a>
-<span class="sourceLineNo">187</span> * <br>Can be any of the following: {@link ClassMeta}, {@link Class}, {@link ParameterizedType}, <a name="line.187"></a>
+<span class="sourceLineNo">187</span> * <br>Can be any of the following: {@link ClassMeta}, {@link Class}, {@link ParameterizedType},<a name="line.187"></a>
<span class="sourceLineNo">188</span> * {@link GenericArrayType}<a name="line.188"></a>
<span class="sourceLineNo">189</span> * <br>Ignored if the main type is not a map or collection.<a name="line.189"></a>
<span class="sourceLineNo">190</span> * @param <T> The class type to instantiate.<a name="line.190"></a>
@@ -205,7 +205,7 @@
<span class="sourceLineNo">197</span> /**<a name="line.197"></a>
<span class="sourceLineNo">198</span> * Returns the HTTP body content as a plain string.<a name="line.198"></a>
<span class="sourceLineNo">199</span> * <p><a name="line.199"></a>
-<span class="sourceLineNo">200</span> * If {@code allowHeaderParams} init parameter is true, then first looks for {@code &body=xxx} in the URL query <a name="line.200"></a>
+<span class="sourceLineNo">200</span> * If {@code allowHeaderParams} init parameter is true, then first looks for {@code &body=xxx} in the URL query<a name="line.200"></a>
<span class="sourceLineNo">201</span> * string.<a name="line.201"></a>
<span class="sourceLineNo">202</span> *<a name="line.202"></a>
<span class="sourceLineNo">203</span> * @return The incoming input from the connection as a plain string.<a name="line.203"></a>
@@ -232,7 +232,7 @@
<span class="sourceLineNo">224</span> /**<a name="line.224"></a>
<span class="sourceLineNo">225</span> * Returns the HTTP body content as a {@link Reader}.<a name="line.225"></a>
<span class="sourceLineNo">226</span> * <p><a name="line.226"></a>
-<span class="sourceLineNo">227</span> * If {@code allowHeaderParams} init parameter is true, then first looks for {@code &body=xxx} in the URL query <a name="line.227"></a>
+<span class="sourceLineNo">227</span> * If {@code allowHeaderParams} init parameter is true, then first looks for {@code &body=xxx} in the URL query<a name="line.227"></a>
<span class="sourceLineNo">228</span> * string.<a name="line.228"></a>
<span class="sourceLineNo">229</span> * <p><a name="line.229"></a>
<span class="sourceLineNo">230</span> * Automatically handles GZipped input streams.<a name="line.230"></a>
[05/15] incubator-juneau-website git commit: Update javadocs.
Posted by ja...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/src-html/org/apache/juneau/rest/RequestPathParams.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/rest/RequestPathParams.html b/content/site/apidocs/src-html/org/apache/juneau/rest/RequestPathParams.html
deleted file mode 100644
index 66dd1b8..0000000
--- a/content/site/apidocs/src-html/org/apache/juneau/rest/RequestPathParams.html
+++ /dev/null
@@ -1,209 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html lang="en">
-<head>
-<title>Source code</title>
-<link rel="stylesheet" type="text/css" href="../../../../../javadoc.css" title="Style">
-</head>
-<body>
-<div class="sourceContainer">
-<pre><span class="sourceLineNo">001</span>// ***************************************************************************************************************************<a name="line.1"></a>
-<span class="sourceLineNo">002</span>// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file *<a name="line.2"></a>
-<span class="sourceLineNo">003</span>// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file *<a name="line.3"></a>
-<span class="sourceLineNo">004</span>// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance *<a name="line.4"></a>
-<span class="sourceLineNo">005</span>// * with the License. You may obtain a copy of the License at *<a name="line.5"></a>
-<span class="sourceLineNo">006</span>// * *<a name="line.6"></a>
-<span class="sourceLineNo">007</span>// * http://www.apache.org/licenses/LICENSE-2.0 *<a name="line.7"></a>
-<span class="sourceLineNo">008</span>// * *<a name="line.8"></a>
-<span class="sourceLineNo">009</span>// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an *<a name="line.9"></a>
-<span class="sourceLineNo">010</span>// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the *<a name="line.10"></a>
-<span class="sourceLineNo">011</span>// * specific language governing permissions and limitations under the License. *<a name="line.11"></a>
-<span class="sourceLineNo">012</span>// ***************************************************************************************************************************<a name="line.12"></a>
-<span class="sourceLineNo">013</span>package org.apache.juneau.rest;<a name="line.13"></a>
-<span class="sourceLineNo">014</span><a name="line.14"></a>
-<span class="sourceLineNo">015</span>import java.lang.reflect.*;<a name="line.15"></a>
-<span class="sourceLineNo">016</span>import java.util.*;<a name="line.16"></a>
-<span class="sourceLineNo">017</span><a name="line.17"></a>
-<span class="sourceLineNo">018</span>import org.apache.juneau.*;<a name="line.18"></a>
-<span class="sourceLineNo">019</span>import org.apache.juneau.parser.*;<a name="line.19"></a>
-<span class="sourceLineNo">020</span>import org.apache.juneau.urlencoding.*;<a name="line.20"></a>
-<span class="sourceLineNo">021</span><a name="line.21"></a>
-<span class="sourceLineNo">022</span>/**<a name="line.22"></a>
-<span class="sourceLineNo">023</span> * Represents the path parameters on an HTTP request.<a name="line.23"></a>
-<span class="sourceLineNo">024</span> */<a name="line.24"></a>
-<span class="sourceLineNo">025</span>@SuppressWarnings("unchecked")<a name="line.25"></a>
-<span class="sourceLineNo">026</span>public class RequestPathParams extends TreeMap<String,String> {<a name="line.26"></a>
-<span class="sourceLineNo">027</span> private static final long serialVersionUID = 1L;<a name="line.27"></a>
-<span class="sourceLineNo">028</span><a name="line.28"></a>
-<span class="sourceLineNo">029</span> private UrlEncodingParser parser;<a name="line.29"></a>
-<span class="sourceLineNo">030</span> private BeanSession beanSession;<a name="line.30"></a>
-<span class="sourceLineNo">031</span><a name="line.31"></a>
-<span class="sourceLineNo">032</span> RequestPathParams() {<a name="line.32"></a>
-<span class="sourceLineNo">033</span> super(String.CASE_INSENSITIVE_ORDER);<a name="line.33"></a>
-<span class="sourceLineNo">034</span> }<a name="line.34"></a>
-<span class="sourceLineNo">035</span><a name="line.35"></a>
-<span class="sourceLineNo">036</span> RequestPathParams setParser(UrlEncodingParser parser) {<a name="line.36"></a>
-<span class="sourceLineNo">037</span> this.parser = parser;<a name="line.37"></a>
-<span class="sourceLineNo">038</span> return this;<a name="line.38"></a>
-<span class="sourceLineNo">039</span> }<a name="line.39"></a>
-<span class="sourceLineNo">040</span><a name="line.40"></a>
-<span class="sourceLineNo">041</span> RequestPathParams setBeanSession(BeanSession beanSession) {<a name="line.41"></a>
-<span class="sourceLineNo">042</span> this.beanSession = beanSession;<a name="line.42"></a>
-<span class="sourceLineNo">043</span> return this;<a name="line.43"></a>
-<span class="sourceLineNo">044</span> }<a name="line.44"></a>
-<span class="sourceLineNo">045</span><a name="line.45"></a>
-<span class="sourceLineNo">046</span> /**<a name="line.46"></a>
-<span class="sourceLineNo">047</span> * Sets a request query parameter value.<a name="line.47"></a>
-<span class="sourceLineNo">048</span> *<a name="line.48"></a>
-<span class="sourceLineNo">049</span> * @param name The parameter name.<a name="line.49"></a>
-<span class="sourceLineNo">050</span> * @param value The parameter value.<a name="line.50"></a>
-<span class="sourceLineNo">051</span> */<a name="line.51"></a>
-<span class="sourceLineNo">052</span> public void put(String name, Object value) {<a name="line.52"></a>
-<span class="sourceLineNo">053</span> put(name, value);<a name="line.53"></a>
-<span class="sourceLineNo">054</span> }<a name="line.54"></a>
-<span class="sourceLineNo">055</span><a name="line.55"></a>
-<span class="sourceLineNo">056</span> /**<a name="line.56"></a>
-<span class="sourceLineNo">057</span> * Returns the specified path parameter converted to a POJO.<a name="line.57"></a>
-<span class="sourceLineNo">058</span> * <p><a name="line.58"></a>
-<span class="sourceLineNo">059</span> * The type can be any POJO type convertable from a <code>String</code> (See <a class="doclink" <a name="line.59"></a>
-<span class="sourceLineNo">060</span> * href="package-summary.html#PojosConvertableFromString">POJOs Convertable From Strings</a>).<a name="line.60"></a>
-<span class="sourceLineNo">061</span> * <p><a name="line.61"></a>
-<span class="sourceLineNo">062</span> * <h5 class='section'>Examples:</h5><a name="line.62"></a>
-<span class="sourceLineNo">063</span> * <p class='bcode'><a name="line.63"></a>
-<span class="sourceLineNo">064</span> * <jc>// Parse into an integer.</jc><a name="line.64"></a>
-<span class="sourceLineNo">065</span> * <jk>int</jk> myparam = req.getPathParameter(<js>"myparam"</js>, <jk>int</jk>.<jk>class</jk>);<a name="line.65"></a>
-<span class="sourceLineNo">066</span> *<a name="line.66"></a>
-<span class="sourceLineNo">067</span> * <jc>// Parse into an int array.</jc><a name="line.67"></a>
-<span class="sourceLineNo">068</span> * <jk>int</jk>[] myparam = req.getPathParameter(<js>"myparam"</js>, <jk>int</jk>[].<jk>class</jk>);<a name="line.68"></a>
-<span class="sourceLineNo">069</span><a name="line.69"></a>
-<span class="sourceLineNo">070</span> * <jc>// Parse into a bean.</jc><a name="line.70"></a>
-<span class="sourceLineNo">071</span> * MyBean myparam = req.getPathParameter(<js>"myparam"</js>, MyBean.<jk>class</jk>);<a name="line.71"></a>
-<span class="sourceLineNo">072</span> *<a name="line.72"></a>
-<span class="sourceLineNo">073</span> * <jc>// Parse into a linked-list of objects.</jc><a name="line.73"></a>
-<span class="sourceLineNo">074</span> * List myparam = req.getPathParameter(<js>"myparam"</js>, LinkedList.<jk>class</jk>);<a name="line.74"></a>
-<span class="sourceLineNo">075</span> *<a name="line.75"></a>
-<span class="sourceLineNo">076</span> * <jc>// Parse into a map of object keys/values.</jc><a name="line.76"></a>
-<span class="sourceLineNo">077</span> * Map myparam = req.getPathParameter(<js>"myparam"</js>, TreeMap.<jk>class</jk>);<a name="line.77"></a>
-<span class="sourceLineNo">078</span> * </p><a name="line.78"></a>
-<span class="sourceLineNo">079</span> *<a name="line.79"></a>
-<span class="sourceLineNo">080</span> * @param name The attribute name.<a name="line.80"></a>
-<span class="sourceLineNo">081</span> * @param type The class type to convert the attribute value to.<a name="line.81"></a>
-<span class="sourceLineNo">082</span> * @param <T> The class type to convert the attribute value to.<a name="line.82"></a>
-<span class="sourceLineNo">083</span> * @return The attribute value converted to the specified class type.<a name="line.83"></a>
-<span class="sourceLineNo">084</span> * @throws ParseException<a name="line.84"></a>
-<span class="sourceLineNo">085</span> */<a name="line.85"></a>
-<span class="sourceLineNo">086</span> public <T> T get(String name, Class<T> type) throws ParseException {<a name="line.86"></a>
-<span class="sourceLineNo">087</span> return parse(name, beanSession.getClassMeta(type));<a name="line.87"></a>
-<span class="sourceLineNo">088</span> }<a name="line.88"></a>
-<span class="sourceLineNo">089</span><a name="line.89"></a>
-<span class="sourceLineNo">090</span> /**<a name="line.90"></a>
-<span class="sourceLineNo">091</span> * Returns the specified path parameter converted to a POJO.<a name="line.91"></a>
-<span class="sourceLineNo">092</span> * <p><a name="line.92"></a>
-<span class="sourceLineNo">093</span> * The type can be any POJO type convertable from a <code>String</code> (See <a class="doclink" href="package-summary.html#PojosConvertableFromString">POJOs Convertable From Strings</a>).<a name="line.93"></a>
-<span class="sourceLineNo">094</span> * <p><a name="line.94"></a>
-<span class="sourceLineNo">095</span> * Use this method if you want to parse into a parameterized <code>Map</code>/<code>Collection</code> object.<a name="line.95"></a>
-<span class="sourceLineNo">096</span> * <p><a name="line.96"></a>
-<span class="sourceLineNo">097</span> * <h5 class='section'>Examples:</h5><a name="line.97"></a>
-<span class="sourceLineNo">098</span> * <p class='bcode'><a name="line.98"></a>
-<span class="sourceLineNo">099</span> * <jc>// Parse into a linked-list of strings.</jc><a name="line.99"></a>
-<span class="sourceLineNo">100</span> * List&lt;String&gt; myparam = req.getPathParameter(<js>"myparam"</js>, LinkedList.<jk>class</jk>, String.<jk>class</jk>);<a name="line.100"></a>
-<span class="sourceLineNo">101</span> *<a name="line.101"></a>
-<span class="sourceLineNo">102</span> * <jc>// Parse into a linked-list of linked-lists of strings.</jc><a name="line.102"></a>
-<span class="sourceLineNo">103</span> * List&lt;List&lt;String&gt;&gt; myparam = req.getPathParameter(<js>"myparam"</js>, LinkedList.<jk>class</jk>, LinkedList.<jk>class</jk>, String.<jk>class</jk>);<a name="line.103"></a>
-<span class="sourceLineNo">104</span> *<a name="line.104"></a>
-<span class="sourceLineNo">105</span> * <jc>// Parse into a map of string keys/values.</jc><a name="line.105"></a>
-<span class="sourceLineNo">106</span> * Map&lt;String,String&gt; myparam = req.getPathParameter(<js>"myparam"</js>, TreeMap.<jk>class</jk>, String.<jk>class</jk>, String.<jk>class</jk>);<a name="line.106"></a>
-<span class="sourceLineNo">107</span> *<a name="line.107"></a>
-<span class="sourceLineNo">108</span> * <jc>// Parse into a map containing string keys and values of lists containing beans.</jc><a name="line.108"></a>
-<span class="sourceLineNo">109</span> * Map&lt;String,List&lt;MyBean&gt;&gt; myparam = req.getPathParameter(<js>"myparam"</js>, TreeMap.<jk>class</jk>, String.<jk>class</jk>, List.<jk>class</jk>, MyBean.<jk>class</jk>);<a name="line.109"></a>
-<span class="sourceLineNo">110</span> * </p><a name="line.110"></a>
-<span class="sourceLineNo">111</span> *<a name="line.111"></a>
-<span class="sourceLineNo">112</span> * @param name The attribute name.<a name="line.112"></a>
-<span class="sourceLineNo">113</span> * @param type The type of object to create.<a name="line.113"></a>
-<span class="sourceLineNo">114</span> * <br>Can be any of the following: {@link ClassMeta}, {@link Class}, {@link ParameterizedType}, {@link GenericArrayType}<a name="line.114"></a>
-<span class="sourceLineNo">115</span> * @param args The type arguments of the class if it's a collection or map.<a name="line.115"></a>
-<span class="sourceLineNo">116</span> * <br>Can be any of the following: {@link ClassMeta}, {@link Class}, {@link ParameterizedType}, {@link GenericArrayType}<a name="line.116"></a>
-<span class="sourceLineNo">117</span> * <br>Ignored if the main type is not a map or collection.<a name="line.117"></a>
-<span class="sourceLineNo">118</span> * @param <T> The class type to convert the attribute value to.<a name="line.118"></a>
-<span class="sourceLineNo">119</span> * @return The attribute value converted to the specified class type.<a name="line.119"></a>
-<span class="sourceLineNo">120</span> * @throws ParseException<a name="line.120"></a>
-<span class="sourceLineNo">121</span> */<a name="line.121"></a>
-<span class="sourceLineNo">122</span> public <T> T get(String name, Type type, Type...args) throws ParseException {<a name="line.122"></a>
-<span class="sourceLineNo">123</span> return (T)parse(name, beanSession.getClassMeta(type, args));<a name="line.123"></a>
-<span class="sourceLineNo">124</span> }<a name="line.124"></a>
-<span class="sourceLineNo">125</span><a name="line.125"></a>
-<span class="sourceLineNo">126</span> /* Workhorse method */<a name="line.126"></a>
-<span class="sourceLineNo">127</span> <T> T parse(String name, ClassMeta<T> cm) throws ParseException {<a name="line.127"></a>
-<span class="sourceLineNo">128</span> Object attr = get(name);<a name="line.128"></a>
-<span class="sourceLineNo">129</span> T t = null;<a name="line.129"></a>
-<span class="sourceLineNo">130</span> if (attr != null)<a name="line.130"></a>
-<span class="sourceLineNo">131</span> t = parser.parsePart(attr.toString(), cm);<a name="line.131"></a>
-<span class="sourceLineNo">132</span> if (t == null && cm.isPrimitive())<a name="line.132"></a>
-<span class="sourceLineNo">133</span> return cm.getPrimitiveDefault();<a name="line.133"></a>
-<span class="sourceLineNo">134</span> return t;<a name="line.134"></a>
-<span class="sourceLineNo">135</span> }<a name="line.135"></a>
-<span class="sourceLineNo">136</span><a name="line.136"></a>
-<span class="sourceLineNo">137</span>}<a name="line.137"></a>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-</pre>
-</div>
-</body>
-</html>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/src-html/org/apache/juneau/rest/RequestQuery.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/rest/RequestQuery.html b/content/site/apidocs/src-html/org/apache/juneau/rest/RequestQuery.html
index a2f20bf..ab8f6bd 100644
--- a/content/site/apidocs/src-html/org/apache/juneau/rest/RequestQuery.html
+++ b/content/site/apidocs/src-html/org/apache/juneau/rest/RequestQuery.html
@@ -51,248 +51,268 @@
<span class="sourceLineNo">043</span> }<a name="line.43"></a>
<span class="sourceLineNo">044</span><a name="line.44"></a>
<span class="sourceLineNo">045</span> /**<a name="line.45"></a>
-<span class="sourceLineNo">046</span> * Sets a request query parameter value.<a name="line.46"></a>
-<span class="sourceLineNo">047</span> *<a name="line.47"></a>
-<span class="sourceLineNo">048</span> * @param name The parameter name.<a name="line.48"></a>
-<span class="sourceLineNo">049</span> * @param value The parameter value.<a name="line.49"></a>
-<span class="sourceLineNo">050</span> */<a name="line.50"></a>
-<span class="sourceLineNo">051</span> public void put(String name, Object value) {<a name="line.51"></a>
-<span class="sourceLineNo">052</span> put(name, new String[]{StringUtils.toString(value)});<a name="line.52"></a>
-<span class="sourceLineNo">053</span> }<a name="line.53"></a>
-<span class="sourceLineNo">054</span><a name="line.54"></a>
-<span class="sourceLineNo">055</span> /**<a name="line.55"></a>
-<span class="sourceLineNo">056</span> * Returns a query parameter value.<a name="line.56"></a>
-<span class="sourceLineNo">057</span> * <p><a name="line.57"></a>
-<span class="sourceLineNo">058</span> * Same as {@link HttpServletRequest#getParameter(String)} except only looks in the URL string, not parameters from URL-Encoded FORM posts.<a name="line.58"></a>
-<span class="sourceLineNo">059</span> * <p><a name="line.59"></a>
-<span class="sourceLineNo">060</span> * This method can be used to retrieve a parameter without triggering the underlying servlet API to load and parse the request body.<a name="line.60"></a>
-<span class="sourceLineNo">061</span> *<a name="line.61"></a>
-<span class="sourceLineNo">062</span> * @param name The URL parameter name.<a name="line.62"></a>
-<span class="sourceLineNo">063</span> * @return The parameter value, or <jk>null</jk> if parameter not specified or has no value (e.g. <js>"&amp;foo"</js>.<a name="line.63"></a>
-<span class="sourceLineNo">064</span> */<a name="line.64"></a>
-<span class="sourceLineNo">065</span> public String getFirst(String name) {<a name="line.65"></a>
-<span class="sourceLineNo">066</span> String[] v = get(name);<a name="line.66"></a>
-<span class="sourceLineNo">067</span> if (v == null || v.length == 0)<a name="line.67"></a>
-<span class="sourceLineNo">068</span> return null;<a name="line.68"></a>
-<span class="sourceLineNo">069</span> if (v.length == 1 && v[0] != null && v[0].isEmpty()) {<a name="line.69"></a>
-<span class="sourceLineNo">070</span> // Fix for behavior difference between Tomcat and WAS.<a name="line.70"></a>
-<span class="sourceLineNo">071</span> // getParameter("foo") on "&foo" in Tomcat returns "".<a name="line.71"></a>
-<span class="sourceLineNo">072</span> // getParameter("foo") on "&foo" in WAS returns null.<a name="line.72"></a>
-<span class="sourceLineNo">073</span> if (containsKey(name))<a name="line.73"></a>
-<span class="sourceLineNo">074</span> return null;<a name="line.74"></a>
-<span class="sourceLineNo">075</span> }<a name="line.75"></a>
-<span class="sourceLineNo">076</span> return v[0];<a name="line.76"></a>
-<span class="sourceLineNo">077</span> }<a name="line.77"></a>
-<span class="sourceLineNo">078</span><a name="line.78"></a>
-<span class="sourceLineNo">079</span> /**<a name="line.79"></a>
-<span class="sourceLineNo">080</span> * Same as {@link #getFirst(String)} but returns the specified default value if the query parameter was not specified.<a name="line.80"></a>
+<span class="sourceLineNo">046</span> * Adds default entries to these query parameters.<a name="line.46"></a>
+<span class="sourceLineNo">047</span> * <p><a name="line.47"></a>
+<span class="sourceLineNo">048</span> * This includes the default queries defined on the servlet and method levels.<a name="line.48"></a>
+<span class="sourceLineNo">049</span> *<a name="line.49"></a>
+<span class="sourceLineNo">050</span> * @param defaultEntries The default entries. Can be <jk>null</jk>.<a name="line.50"></a>
+<span class="sourceLineNo">051</span> * @return This object (for method chaining).<a name="line.51"></a>
+<span class="sourceLineNo">052</span> */<a name="line.52"></a>
+<span class="sourceLineNo">053</span> public RequestQuery addDefault(Map<String,String> defaultEntries) {<a name="line.53"></a>
+<span class="sourceLineNo">054</span> if (defaultEntries != null) {<a name="line.54"></a>
+<span class="sourceLineNo">055</span> for (Map.Entry<String,String> e : defaultEntries.entrySet()) {<a name="line.55"></a>
+<span class="sourceLineNo">056</span> String key = e.getKey(), value = e.getValue();<a name="line.56"></a>
+<span class="sourceLineNo">057</span> String[] v = get(key);<a name="line.57"></a>
+<span class="sourceLineNo">058</span> if (v == null)<a name="line.58"></a>
+<span class="sourceLineNo">059</span> put(key, new String[]{value});<a name="line.59"></a>
+<span class="sourceLineNo">060</span> }<a name="line.60"></a>
+<span class="sourceLineNo">061</span> }<a name="line.61"></a>
+<span class="sourceLineNo">062</span> return this;<a name="line.62"></a>
+<span class="sourceLineNo">063</span> }<a name="line.63"></a>
+<span class="sourceLineNo">064</span><a name="line.64"></a>
+<span class="sourceLineNo">065</span> /**<a name="line.65"></a>
+<span class="sourceLineNo">066</span> * Sets a request query parameter value.<a name="line.66"></a>
+<span class="sourceLineNo">067</span> *<a name="line.67"></a>
+<span class="sourceLineNo">068</span> * @param name The parameter name.<a name="line.68"></a>
+<span class="sourceLineNo">069</span> * @param value The parameter value.<a name="line.69"></a>
+<span class="sourceLineNo">070</span> */<a name="line.70"></a>
+<span class="sourceLineNo">071</span> public void put(String name, Object value) {<a name="line.71"></a>
+<span class="sourceLineNo">072</span> put(name, new String[]{StringUtils.toString(value)});<a name="line.72"></a>
+<span class="sourceLineNo">073</span> }<a name="line.73"></a>
+<span class="sourceLineNo">074</span><a name="line.74"></a>
+<span class="sourceLineNo">075</span> /**<a name="line.75"></a>
+<span class="sourceLineNo">076</span> * Returns a query parameter value.<a name="line.76"></a>
+<span class="sourceLineNo">077</span> * <p><a name="line.77"></a>
+<span class="sourceLineNo">078</span> * Same as {@link HttpServletRequest#getParameter(String)} except only looks in the URL string, not parameters from URL-Encoded FORM posts.<a name="line.78"></a>
+<span class="sourceLineNo">079</span> * <p><a name="line.79"></a>
+<span class="sourceLineNo">080</span> * This method can be used to retrieve a parameter without triggering the underlying servlet API to load and parse the request body.<a name="line.80"></a>
<span class="sourceLineNo">081</span> *<a name="line.81"></a>
<span class="sourceLineNo">082</span> * @param name The URL parameter name.<a name="line.82"></a>
-<span class="sourceLineNo">083</span> * @param def The default value.<a name="line.83"></a>
-<span class="sourceLineNo">084</span> * @return The parameter value, or the default value if parameter not specified or has no value (e.g. <js>"&amp;foo"</js>.<a name="line.84"></a>
-<span class="sourceLineNo">085</span> */<a name="line.85"></a>
-<span class="sourceLineNo">086</span> public String getFirst(String name, String def) {<a name="line.86"></a>
-<span class="sourceLineNo">087</span> String s = getFirst(name);<a name="line.87"></a>
-<span class="sourceLineNo">088</span> return s == null ? def : s;<a name="line.88"></a>
-<span class="sourceLineNo">089</span> }<a name="line.89"></a>
-<span class="sourceLineNo">090</span><a name="line.90"></a>
-<span class="sourceLineNo">091</span> /**<a name="line.91"></a>
-<span class="sourceLineNo">092</span> * Returns the specified query parameter value converted to a POJO.<a name="line.92"></a>
-<span class="sourceLineNo">093</span> * <p><a name="line.93"></a>
-<span class="sourceLineNo">094</span> * This method can be used to retrieve a parameter without triggering the underlying servlet API to load and parse the request body.<a name="line.94"></a>
-<span class="sourceLineNo">095</span> * <p><a name="line.95"></a>
-<span class="sourceLineNo">096</span> * <h5 class='section'>Examples:</h5><a name="line.96"></a>
-<span class="sourceLineNo">097</span> * <p class='bcode'><a name="line.97"></a>
-<span class="sourceLineNo">098</span> * <jc>// Parse into an integer.</jc><a name="line.98"></a>
-<span class="sourceLineNo">099</span> * <jk>int</jk> myparam = req.getQueryParameter(<js>"myparam"</js>, <jk>int</jk>.<jk>class</jk>);<a name="line.99"></a>
-<span class="sourceLineNo">100</span> *<a name="line.100"></a>
-<span class="sourceLineNo">101</span> * <jc>// Parse into an int array.</jc><a name="line.101"></a>
-<span class="sourceLineNo">102</span> * <jk>int</jk>[] myparam = req.getQueryParameter(<js>"myparam"</js>, <jk>int</jk>[].<jk>class</jk>);<a name="line.102"></a>
-<span class="sourceLineNo">103</span><a name="line.103"></a>
-<span class="sourceLineNo">104</span> * <jc>// Parse into a bean.</jc><a name="line.104"></a>
-<span class="sourceLineNo">105</span> * MyBean myparam = req.getQueryParameter(<js>"myparam"</js>, MyBean.<jk>class</jk>);<a name="line.105"></a>
-<span class="sourceLineNo">106</span> *<a name="line.106"></a>
-<span class="sourceLineNo">107</span> * <jc>// Parse into a linked-list of objects.</jc><a name="line.107"></a>
-<span class="sourceLineNo">108</span> * List myparam = req.getQueryParameter(<js>"myparam"</js>, LinkedList.<jk>class</jk>);<a name="line.108"></a>
-<span class="sourceLineNo">109</span> *<a name="line.109"></a>
-<span class="sourceLineNo">110</span> * <jc>// Parse into a map of object keys/values.</jc><a name="line.110"></a>
-<span class="sourceLineNo">111</span> * Map myparam = req.getQueryParameter(<js>"myparam"</js>, TreeMap.<jk>class</jk>);<a name="line.111"></a>
-<span class="sourceLineNo">112</span> * </p><a name="line.112"></a>
-<span class="sourceLineNo">113</span> *<a name="line.113"></a>
-<span class="sourceLineNo">114</span> * @param name The parameter name.<a name="line.114"></a>
-<span class="sourceLineNo">115</span> * @param type The class type to convert the parameter value to.<a name="line.115"></a>
-<span class="sourceLineNo">116</span> * @param <T> The class type to convert the parameter value to.<a name="line.116"></a>
-<span class="sourceLineNo">117</span> * @return The parameter value converted to the specified class type.<a name="line.117"></a>
-<span class="sourceLineNo">118</span> * @throws ParseException<a name="line.118"></a>
-<span class="sourceLineNo">119</span> */<a name="line.119"></a>
-<span class="sourceLineNo">120</span> public <T> T get(String name, Class<T> type) throws ParseException {<a name="line.120"></a>
-<span class="sourceLineNo">121</span> return get(name, beanSession.getClassMeta(type));<a name="line.121"></a>
-<span class="sourceLineNo">122</span> }<a name="line.122"></a>
+<span class="sourceLineNo">083</span> * @return The parameter value, or <jk>null</jk> if parameter not specified or has no value (e.g. <js>"&amp;foo"</js>.<a name="line.83"></a>
+<span class="sourceLineNo">084</span> */<a name="line.84"></a>
+<span class="sourceLineNo">085</span> public String getFirst(String name) {<a name="line.85"></a>
+<span class="sourceLineNo">086</span> String[] v = get(name);<a name="line.86"></a>
+<span class="sourceLineNo">087</span> if (v == null || v.length == 0)<a name="line.87"></a>
+<span class="sourceLineNo">088</span> return null;<a name="line.88"></a>
+<span class="sourceLineNo">089</span> if (v.length == 1 && v[0] != null && v[0].isEmpty()) {<a name="line.89"></a>
+<span class="sourceLineNo">090</span> // Fix for behavior difference between Tomcat and WAS.<a name="line.90"></a>
+<span class="sourceLineNo">091</span> // getParameter("foo") on "&foo" in Tomcat returns "".<a name="line.91"></a>
+<span class="sourceLineNo">092</span> // getParameter("foo") on "&foo" in WAS returns null.<a name="line.92"></a>
+<span class="sourceLineNo">093</span> if (containsKey(name))<a name="line.93"></a>
+<span class="sourceLineNo">094</span> return null;<a name="line.94"></a>
+<span class="sourceLineNo">095</span> }<a name="line.95"></a>
+<span class="sourceLineNo">096</span> return v[0];<a name="line.96"></a>
+<span class="sourceLineNo">097</span> }<a name="line.97"></a>
+<span class="sourceLineNo">098</span><a name="line.98"></a>
+<span class="sourceLineNo">099</span> /**<a name="line.99"></a>
+<span class="sourceLineNo">100</span> * Same as {@link #getFirst(String)} but returns the specified default value if the query parameter was not specified.<a name="line.100"></a>
+<span class="sourceLineNo">101</span> *<a name="line.101"></a>
+<span class="sourceLineNo">102</span> * @param name The URL parameter name.<a name="line.102"></a>
+<span class="sourceLineNo">103</span> * @param def The default value.<a name="line.103"></a>
+<span class="sourceLineNo">104</span> * @return The parameter value, or the default value if parameter not specified or has no value (e.g. <js>"&amp;foo"</js>.<a name="line.104"></a>
+<span class="sourceLineNo">105</span> */<a name="line.105"></a>
+<span class="sourceLineNo">106</span> public String getFirst(String name, String def) {<a name="line.106"></a>
+<span class="sourceLineNo">107</span> String s = getFirst(name);<a name="line.107"></a>
+<span class="sourceLineNo">108</span> return s == null ? def : s;<a name="line.108"></a>
+<span class="sourceLineNo">109</span> }<a name="line.109"></a>
+<span class="sourceLineNo">110</span><a name="line.110"></a>
+<span class="sourceLineNo">111</span> /**<a name="line.111"></a>
+<span class="sourceLineNo">112</span> * Returns the specified query parameter value converted to a POJO.<a name="line.112"></a>
+<span class="sourceLineNo">113</span> * <p><a name="line.113"></a>
+<span class="sourceLineNo">114</span> * This method can be used to retrieve a parameter without triggering the underlying servlet API to load and parse the request body.<a name="line.114"></a>
+<span class="sourceLineNo">115</span> * <p><a name="line.115"></a>
+<span class="sourceLineNo">116</span> * <h5 class='section'>Examples:</h5><a name="line.116"></a>
+<span class="sourceLineNo">117</span> * <p class='bcode'><a name="line.117"></a>
+<span class="sourceLineNo">118</span> * <jc>// Parse into an integer.</jc><a name="line.118"></a>
+<span class="sourceLineNo">119</span> * <jk>int</jk> myparam = req.getQueryParameter(<js>"myparam"</js>, <jk>int</jk>.<jk>class</jk>);<a name="line.119"></a>
+<span class="sourceLineNo">120</span> *<a name="line.120"></a>
+<span class="sourceLineNo">121</span> * <jc>// Parse into an int array.</jc><a name="line.121"></a>
+<span class="sourceLineNo">122</span> * <jk>int</jk>[] myparam = req.getQueryParameter(<js>"myparam"</js>, <jk>int</jk>[].<jk>class</jk>);<a name="line.122"></a>
<span class="sourceLineNo">123</span><a name="line.123"></a>
-<span class="sourceLineNo">124</span> /**<a name="line.124"></a>
-<span class="sourceLineNo">125</span> * Same as {@link #get(String, Class)} except returns a default value if not found.<a name="line.125"></a>
+<span class="sourceLineNo">124</span> * <jc>// Parse into a bean.</jc><a name="line.124"></a>
+<span class="sourceLineNo">125</span> * MyBean myparam = req.getQueryParameter(<js>"myparam"</js>, MyBean.<jk>class</jk>);<a name="line.125"></a>
<span class="sourceLineNo">126</span> *<a name="line.126"></a>
-<span class="sourceLineNo">127</span> * @param name The parameter name.<a name="line.127"></a>
-<span class="sourceLineNo">128</span> * @param def The default value if the parameter was not specified or is <jk>null</jk>.<a name="line.128"></a>
-<span class="sourceLineNo">129</span> * @param type The class type to convert the parameter value to.<a name="line.129"></a>
-<span class="sourceLineNo">130</span> * @param <T> The class type to convert the parameter value to.<a name="line.130"></a>
-<span class="sourceLineNo">131</span> * @return The parameter value converted to the specified class type.<a name="line.131"></a>
-<span class="sourceLineNo">132</span> * @throws ParseException<a name="line.132"></a>
-<span class="sourceLineNo">133</span> */<a name="line.133"></a>
-<span class="sourceLineNo">134</span> public <T> T get(String name, T def, Class<T> type) throws ParseException {<a name="line.134"></a>
-<span class="sourceLineNo">135</span> return get(name, def, beanSession.getClassMeta(type));<a name="line.135"></a>
-<span class="sourceLineNo">136</span> }<a name="line.136"></a>
-<span class="sourceLineNo">137</span><a name="line.137"></a>
-<span class="sourceLineNo">138</span> /**<a name="line.138"></a>
-<span class="sourceLineNo">139</span> * Returns the specified query parameter value converted to a POJO.<a name="line.139"></a>
-<span class="sourceLineNo">140</span> * <p><a name="line.140"></a>
-<span class="sourceLineNo">141</span> * This method can be used to retrieve a parameter without triggering the underlying servlet API to load and parse the request body.<a name="line.141"></a>
-<span class="sourceLineNo">142</span> * <p><a name="line.142"></a>
-<span class="sourceLineNo">143</span> * Use this method if you want to parse into a parameterized <code>Map</code>/<code>Collection</code> object.<a name="line.143"></a>
-<span class="sourceLineNo">144</span> * <p><a name="line.144"></a>
-<span class="sourceLineNo">145</span> * <h5 class='section'>Examples:</h5><a name="line.145"></a>
-<span class="sourceLineNo">146</span> * <p class='bcode'><a name="line.146"></a>
-<span class="sourceLineNo">147</span> * <jc>// Parse into a linked-list of strings.</jc><a name="line.147"></a>
-<span class="sourceLineNo">148</span> * Listt&lt;String&gt; myparam = req.getQueryParameter(<js>"myparam"</js>, LinkedList.<jk>class</jk>, String.<jk>class</jk>);<a name="line.148"></a>
-<span class="sourceLineNo">149</span> *<a name="line.149"></a>
-<span class="sourceLineNo">150</span> * <jc>// Parse into a linked-list of linked-lists of strings.</jc><a name="line.150"></a>
-<span class="sourceLineNo">151</span> * Listt&lt;List&lt;String&gt;&gt; myparam = req.getQueryParameter(<js>"myparam"</js>, LinkedList.<jk>class</jk>, LinkedList.<jk>class</jk>, String.<jk>class</jk>);<a name="line.151"></a>
-<span class="sourceLineNo">152</span> *<a name="line.152"></a>
-<span class="sourceLineNo">153</span> * <jc>// Parse into a map of string keys/values.</jc><a name="line.153"></a>
-<span class="sourceLineNo">154</span> * Map&lt;String,String&gt; myparam = req.getQueryParameter(<js>"myparam"</js>, TreeMap.<jk>class</jk>, String.<jk>class</jk>, String.<jk>class</jk>);<a name="line.154"></a>
-<span class="sourceLineNo">155</span> *<a name="line.155"></a>
-<span class="sourceLineNo">156</span> * <jc>// Parse into a map containing string keys and values of lists containing beans.</jc><a name="line.156"></a>
-<span class="sourceLineNo">157</span> * Map&lt;String,List&lt;MyBean&gt;&gt; myparam = req.getQueryParameter(<js>"myparam"</js>, TreeMap.<jk>class</jk>, String.<jk>class</jk>, List.<jk>class</jk>, MyBean.<jk>class</jk>);<a name="line.157"></a>
-<span class="sourceLineNo">158</span> * </p><a name="line.158"></a>
-<span class="sourceLineNo">159</span> *<a name="line.159"></a>
-<span class="sourceLineNo">160</span> * @param name The parameter name.<a name="line.160"></a>
-<span class="sourceLineNo">161</span> * @param type The type of object to create.<a name="line.161"></a>
-<span class="sourceLineNo">162</span> * <br>Can be any of the following: {@link ClassMeta}, {@link Class}, {@link ParameterizedType}, {@link GenericArrayType}<a name="line.162"></a>
-<span class="sourceLineNo">163</span> * @param args The type arguments of the class if it's a collection or map.<a name="line.163"></a>
-<span class="sourceLineNo">164</span> * <br>Can be any of the following: {@link ClassMeta}, {@link Class}, {@link ParameterizedType}, {@link GenericArrayType}<a name="line.164"></a>
-<span class="sourceLineNo">165</span> * <br>Ignored if the main type is not a map or collection.<a name="line.165"></a>
-<span class="sourceLineNo">166</span> * @param <T> The class type to convert the parameter value to.<a name="line.166"></a>
-<span class="sourceLineNo">167</span> * @return The parameter value converted to the specified class type.<a name="line.167"></a>
-<span class="sourceLineNo">168</span> * @throws ParseException<a name="line.168"></a>
-<span class="sourceLineNo">169</span> */<a name="line.169"></a>
-<span class="sourceLineNo">170</span> public <T> T get(String name, Type type, Type...args) throws ParseException {<a name="line.170"></a>
-<span class="sourceLineNo">171</span> return (T)parse(name, beanSession.getClassMeta(type, args));<a name="line.171"></a>
-<span class="sourceLineNo">172</span> }<a name="line.172"></a>
-<span class="sourceLineNo">173</span><a name="line.173"></a>
-<span class="sourceLineNo">174</span> /**<a name="line.174"></a>
-<span class="sourceLineNo">175</span> * Same as {@link #get(String, Class)} except returns a default value if not found.<a name="line.175"></a>
-<span class="sourceLineNo">176</span> *<a name="line.176"></a>
-<span class="sourceLineNo">177</span> * @param name The parameter name.<a name="line.177"></a>
-<span class="sourceLineNo">178</span> * @param type The type of object to create.<a name="line.178"></a>
-<span class="sourceLineNo">179</span> * <br>Can be any of the following: {@link ClassMeta}, {@link Class}, {@link ParameterizedType}, {@link GenericArrayType}<a name="line.179"></a>
-<span class="sourceLineNo">180</span> * @param args The type arguments of the class if it's a collection or map.<a name="line.180"></a>
-<span class="sourceLineNo">181</span> * <br>Can be any of the following: {@link ClassMeta}, {@link Class}, {@link ParameterizedType}, {@link GenericArrayType}<a name="line.181"></a>
-<span class="sourceLineNo">182</span> * <br>Ignored if the main type is not a map or collection.<a name="line.182"></a>
-<span class="sourceLineNo">183</span> * @param def The default value if the parameter was not specified or is <jk>null</jk>.<a name="line.183"></a>
-<span class="sourceLineNo">184</span> * @param <T> The class type to convert the parameter value to.<a name="line.184"></a>
-<span class="sourceLineNo">185</span> * @return The parameter value converted to the specified class type.<a name="line.185"></a>
-<span class="sourceLineNo">186</span> * @throws ParseException<a name="line.186"></a>
-<span class="sourceLineNo">187</span> */<a name="line.187"></a>
-<span class="sourceLineNo">188</span> public <T> T get(String name, Object def, Type type, Type...args) throws ParseException {<a name="line.188"></a>
-<span class="sourceLineNo">189</span> return (T)parse(name, def, beanSession.getClassMeta(type, args));<a name="line.189"></a>
-<span class="sourceLineNo">190</span> }<a name="line.190"></a>
-<span class="sourceLineNo">191</span><a name="line.191"></a>
-<span class="sourceLineNo">192</span> /**<a name="line.192"></a>
-<span class="sourceLineNo">193</span> * Same as {@link #get(String, Class)} except for use on multi-part parameters<a name="line.193"></a>
-<span class="sourceLineNo">194</span> * (e.g. <js>"&amp;key=1&amp;key=2&amp;key=3"</js> instead of <js>"&amp;key=(1,2,3)"</js>).<a name="line.194"></a>
-<span class="sourceLineNo">195</span> * <p><a name="line.195"></a>
-<span class="sourceLineNo">196</span> * This method must only be called when parsing into classes of type Collection or array.<a name="line.196"></a>
-<span class="sourceLineNo">197</span> *<a name="line.197"></a>
-<span class="sourceLineNo">198</span> * @param name The query parameter name.<a name="line.198"></a>
-<span class="sourceLineNo">199</span> * @param c The class type to convert the parameter value to.<a name="line.199"></a>
-<span class="sourceLineNo">200</span> * @param <T> The class type to convert the parameter value to.<a name="line.200"></a>
-<span class="sourceLineNo">201</span> * @return The query parameter value converted to the specified class type.<a name="line.201"></a>
-<span class="sourceLineNo">202</span> * @throws ParseException<a name="line.202"></a>
-<span class="sourceLineNo">203</span> */<a name="line.203"></a>
-<span class="sourceLineNo">204</span> public <T> T getAll(String name, Class<T> c) throws ParseException {<a name="line.204"></a>
-<span class="sourceLineNo">205</span> return getAll(name, beanSession.getClassMeta(c));<a name="line.205"></a>
-<span class="sourceLineNo">206</span> }<a name="line.206"></a>
-<span class="sourceLineNo">207</span><a name="line.207"></a>
-<span class="sourceLineNo">208</span> /**<a name="line.208"></a>
-<span class="sourceLineNo">209</span> * Same as {@link #get(String, Type, Type...)} except for use on multi-part parameters<a name="line.209"></a>
-<span class="sourceLineNo">210</span> * (e.g. <js>"&amp;key=1&amp;key=2&amp;key=3"</js> instead of <js>"&amp;key=(1,2,3)"</js>).<a name="line.210"></a>
-<span class="sourceLineNo">211</span> * <p><a name="line.211"></a>
-<span class="sourceLineNo">212</span> * This method must only be called when parsing into classes of type Collection or array.<a name="line.212"></a>
-<span class="sourceLineNo">213</span> *<a name="line.213"></a>
-<span class="sourceLineNo">214</span> * @param name The query parameter name.<a name="line.214"></a>
-<span class="sourceLineNo">215</span> * @param type The type of object to create.<a name="line.215"></a>
-<span class="sourceLineNo">216</span> * <br>Can be any of the following: {@link ClassMeta}, {@link Class}, {@link ParameterizedType}, {@link GenericArrayType}<a name="line.216"></a>
-<span class="sourceLineNo">217</span> * @param args The type arguments of the class if it's a collection or map.<a name="line.217"></a>
-<span class="sourceLineNo">218</span> * <br>Can be any of the following: {@link ClassMeta}, {@link Class}, {@link ParameterizedType}, {@link GenericArrayType}<a name="line.218"></a>
-<span class="sourceLineNo">219</span> * <br>Ignored if the main type is not a map or collection.<a name="line.219"></a>
+<span class="sourceLineNo">127</span> * <jc>// Parse into a linked-list of objects.</jc><a name="line.127"></a>
+<span class="sourceLineNo">128</span> * List myparam = req.getQueryParameter(<js>"myparam"</js>, LinkedList.<jk>class</jk>);<a name="line.128"></a>
+<span class="sourceLineNo">129</span> *<a name="line.129"></a>
+<span class="sourceLineNo">130</span> * <jc>// Parse into a map of object keys/values.</jc><a name="line.130"></a>
+<span class="sourceLineNo">131</span> * Map myparam = req.getQueryParameter(<js>"myparam"</js>, TreeMap.<jk>class</jk>);<a name="line.131"></a>
+<span class="sourceLineNo">132</span> * </p><a name="line.132"></a>
+<span class="sourceLineNo">133</span> *<a name="line.133"></a>
+<span class="sourceLineNo">134</span> * @param name The parameter name.<a name="line.134"></a>
+<span class="sourceLineNo">135</span> * @param type The class type to convert the parameter value to.<a name="line.135"></a>
+<span class="sourceLineNo">136</span> * @param <T> The class type to convert the parameter value to.<a name="line.136"></a>
+<span class="sourceLineNo">137</span> * @return The parameter value converted to the specified class type.<a name="line.137"></a>
+<span class="sourceLineNo">138</span> * @throws ParseException<a name="line.138"></a>
+<span class="sourceLineNo">139</span> */<a name="line.139"></a>
+<span class="sourceLineNo">140</span> public <T> T get(String name, Class<T> type) throws ParseException {<a name="line.140"></a>
+<span class="sourceLineNo">141</span> return get(name, beanSession.getClassMeta(type));<a name="line.141"></a>
+<span class="sourceLineNo">142</span> }<a name="line.142"></a>
+<span class="sourceLineNo">143</span><a name="line.143"></a>
+<span class="sourceLineNo">144</span> /**<a name="line.144"></a>
+<span class="sourceLineNo">145</span> * Same as {@link #get(String, Class)} except returns a default value if not found.<a name="line.145"></a>
+<span class="sourceLineNo">146</span> *<a name="line.146"></a>
+<span class="sourceLineNo">147</span> * @param name The parameter name.<a name="line.147"></a>
+<span class="sourceLineNo">148</span> * @param def The default value if the parameter was not specified or is <jk>null</jk>.<a name="line.148"></a>
+<span class="sourceLineNo">149</span> * @param type The class type to convert the parameter value to.<a name="line.149"></a>
+<span class="sourceLineNo">150</span> * @param <T> The class type to convert the parameter value to.<a name="line.150"></a>
+<span class="sourceLineNo">151</span> * @return The parameter value converted to the specified class type.<a name="line.151"></a>
+<span class="sourceLineNo">152</span> * @throws ParseException<a name="line.152"></a>
+<span class="sourceLineNo">153</span> */<a name="line.153"></a>
+<span class="sourceLineNo">154</span> public <T> T get(String name, T def, Class<T> type) throws ParseException {<a name="line.154"></a>
+<span class="sourceLineNo">155</span> return get(name, def, beanSession.getClassMeta(type));<a name="line.155"></a>
+<span class="sourceLineNo">156</span> }<a name="line.156"></a>
+<span class="sourceLineNo">157</span><a name="line.157"></a>
+<span class="sourceLineNo">158</span> /**<a name="line.158"></a>
+<span class="sourceLineNo">159</span> * Returns the specified query parameter value converted to a POJO.<a name="line.159"></a>
+<span class="sourceLineNo">160</span> * <p><a name="line.160"></a>
+<span class="sourceLineNo">161</span> * This method can be used to retrieve a parameter without triggering the underlying servlet API to load and parse the request body.<a name="line.161"></a>
+<span class="sourceLineNo">162</span> * <p><a name="line.162"></a>
+<span class="sourceLineNo">163</span> * Use this method if you want to parse into a parameterized <code>Map</code>/<code>Collection</code> object.<a name="line.163"></a>
+<span class="sourceLineNo">164</span> * <p><a name="line.164"></a>
+<span class="sourceLineNo">165</span> * <h5 class='section'>Examples:</h5><a name="line.165"></a>
+<span class="sourceLineNo">166</span> * <p class='bcode'><a name="line.166"></a>
+<span class="sourceLineNo">167</span> * <jc>// Parse into a linked-list of strings.</jc><a name="line.167"></a>
+<span class="sourceLineNo">168</span> * Listt&lt;String&gt; myparam = req.getQueryParameter(<js>"myparam"</js>, LinkedList.<jk>class</jk>, String.<jk>class</jk>);<a name="line.168"></a>
+<span class="sourceLineNo">169</span> *<a name="line.169"></a>
+<span class="sourceLineNo">170</span> * <jc>// Parse into a linked-list of linked-lists of strings.</jc><a name="line.170"></a>
+<span class="sourceLineNo">171</span> * Listt&lt;List&lt;String&gt;&gt; myparam = req.getQueryParameter(<js>"myparam"</js>, LinkedList.<jk>class</jk>, LinkedList.<jk>class</jk>, String.<jk>class</jk>);<a name="line.171"></a>
+<span class="sourceLineNo">172</span> *<a name="line.172"></a>
+<span class="sourceLineNo">173</span> * <jc>// Parse into a map of string keys/values.</jc><a name="line.173"></a>
+<span class="sourceLineNo">174</span> * Map&lt;String,String&gt; myparam = req.getQueryParameter(<js>"myparam"</js>, TreeMap.<jk>class</jk>, String.<jk>class</jk>, String.<jk>class</jk>);<a name="line.174"></a>
+<span class="sourceLineNo">175</span> *<a name="line.175"></a>
+<span class="sourceLineNo">176</span> * <jc>// Parse into a map containing string keys and values of lists containing beans.</jc><a name="line.176"></a>
+<span class="sourceLineNo">177</span> * Map&lt;String,List&lt;MyBean&gt;&gt; myparam = req.getQueryParameter(<js>"myparam"</js>, TreeMap.<jk>class</jk>, String.<jk>class</jk>, List.<jk>class</jk>, MyBean.<jk>class</jk>);<a name="line.177"></a>
+<span class="sourceLineNo">178</span> * </p><a name="line.178"></a>
+<span class="sourceLineNo">179</span> *<a name="line.179"></a>
+<span class="sourceLineNo">180</span> * @param name The parameter name.<a name="line.180"></a>
+<span class="sourceLineNo">181</span> * @param type The type of object to create.<a name="line.181"></a>
+<span class="sourceLineNo">182</span> * <br>Can be any of the following: {@link ClassMeta}, {@link Class}, {@link ParameterizedType}, {@link GenericArrayType}<a name="line.182"></a>
+<span class="sourceLineNo">183</span> * @param args The type arguments of the class if it's a collection or map.<a name="line.183"></a>
+<span class="sourceLineNo">184</span> * <br>Can be any of the following: {@link ClassMeta}, {@link Class}, {@link ParameterizedType}, {@link GenericArrayType}<a name="line.184"></a>
+<span class="sourceLineNo">185</span> * <br>Ignored if the main type is not a map or collection.<a name="line.185"></a>
+<span class="sourceLineNo">186</span> * @param <T> The class type to convert the parameter value to.<a name="line.186"></a>
+<span class="sourceLineNo">187</span> * @return The parameter value converted to the specified class type.<a name="line.187"></a>
+<span class="sourceLineNo">188</span> * @throws ParseException<a name="line.188"></a>
+<span class="sourceLineNo">189</span> */<a name="line.189"></a>
+<span class="sourceLineNo">190</span> public <T> T get(String name, Type type, Type...args) throws ParseException {<a name="line.190"></a>
+<span class="sourceLineNo">191</span> return (T)parse(name, beanSession.getClassMeta(type, args));<a name="line.191"></a>
+<span class="sourceLineNo">192</span> }<a name="line.192"></a>
+<span class="sourceLineNo">193</span><a name="line.193"></a>
+<span class="sourceLineNo">194</span> /**<a name="line.194"></a>
+<span class="sourceLineNo">195</span> * Same as {@link #get(String, Class)} except returns a default value if not found.<a name="line.195"></a>
+<span class="sourceLineNo">196</span> *<a name="line.196"></a>
+<span class="sourceLineNo">197</span> * @param name The parameter name.<a name="line.197"></a>
+<span class="sourceLineNo">198</span> * @param type The type of object to create.<a name="line.198"></a>
+<span class="sourceLineNo">199</span> * <br>Can be any of the following: {@link ClassMeta}, {@link Class}, {@link ParameterizedType}, {@link GenericArrayType}<a name="line.199"></a>
+<span class="sourceLineNo">200</span> * @param args The type arguments of the class if it's a collection or map.<a name="line.200"></a>
+<span class="sourceLineNo">201</span> * <br>Can be any of the following: {@link ClassMeta}, {@link Class}, {@link ParameterizedType}, {@link GenericArrayType}<a name="line.201"></a>
+<span class="sourceLineNo">202</span> * <br>Ignored if the main type is not a map or collection.<a name="line.202"></a>
+<span class="sourceLineNo">203</span> * @param def The default value if the parameter was not specified or is <jk>null</jk>.<a name="line.203"></a>
+<span class="sourceLineNo">204</span> * @param <T> The class type to convert the parameter value to.<a name="line.204"></a>
+<span class="sourceLineNo">205</span> * @return The parameter value converted to the specified class type.<a name="line.205"></a>
+<span class="sourceLineNo">206</span> * @throws ParseException<a name="line.206"></a>
+<span class="sourceLineNo">207</span> */<a name="line.207"></a>
+<span class="sourceLineNo">208</span> public <T> T get(String name, Object def, Type type, Type...args) throws ParseException {<a name="line.208"></a>
+<span class="sourceLineNo">209</span> return (T)parse(name, def, beanSession.getClassMeta(type, args));<a name="line.209"></a>
+<span class="sourceLineNo">210</span> }<a name="line.210"></a>
+<span class="sourceLineNo">211</span><a name="line.211"></a>
+<span class="sourceLineNo">212</span> /**<a name="line.212"></a>
+<span class="sourceLineNo">213</span> * Same as {@link #get(String, Class)} except for use on multi-part parameters<a name="line.213"></a>
+<span class="sourceLineNo">214</span> * (e.g. <js>"&amp;key=1&amp;key=2&amp;key=3"</js> instead of <js>"&amp;key=(1,2,3)"</js>).<a name="line.214"></a>
+<span class="sourceLineNo">215</span> * <p><a name="line.215"></a>
+<span class="sourceLineNo">216</span> * This method must only be called when parsing into classes of type Collection or array.<a name="line.216"></a>
+<span class="sourceLineNo">217</span> *<a name="line.217"></a>
+<span class="sourceLineNo">218</span> * @param name The query parameter name.<a name="line.218"></a>
+<span class="sourceLineNo">219</span> * @param c The class type to convert the parameter value to.<a name="line.219"></a>
<span class="sourceLineNo">220</span> * @param <T> The class type to convert the parameter value to.<a name="line.220"></a>
<span class="sourceLineNo">221</span> * @return The query parameter value converted to the specified class type.<a name="line.221"></a>
<span class="sourceLineNo">222</span> * @throws ParseException<a name="line.222"></a>
<span class="sourceLineNo">223</span> */<a name="line.223"></a>
-<span class="sourceLineNo">224</span> public <T> T getAll(String name, Type type, Type...args) throws ParseException {<a name="line.224"></a>
-<span class="sourceLineNo">225</span> return (T)parseAll(name, beanSession.getClassMeta(type, args));<a name="line.225"></a>
+<span class="sourceLineNo">224</span> public <T> T getAll(String name, Class<T> c) throws ParseException {<a name="line.224"></a>
+<span class="sourceLineNo">225</span> return getAll(name, beanSession.getClassMeta(c));<a name="line.225"></a>
<span class="sourceLineNo">226</span> }<a name="line.226"></a>
<span class="sourceLineNo">227</span><a name="line.227"></a>
<span class="sourceLineNo">228</span> /**<a name="line.228"></a>
-<span class="sourceLineNo">229</span> * Returns <jk>true</jk> if the request contains any of the specified query parameters.<a name="line.229"></a>
-<span class="sourceLineNo">230</span> *<a name="line.230"></a>
-<span class="sourceLineNo">231</span> * @param params The list of parameters to check for.<a name="line.231"></a>
-<span class="sourceLineNo">232</span> * @return <jk>true</jk> if the request contains any of the specified query parameters.<a name="line.232"></a>
-<span class="sourceLineNo">233</span> */<a name="line.233"></a>
-<span class="sourceLineNo">234</span> public boolean containsAnyKeys(String...params) {<a name="line.234"></a>
-<span class="sourceLineNo">235</span> for (String p : params)<a name="line.235"></a>
-<span class="sourceLineNo">236</span> if (containsKey(p))<a name="line.236"></a>
-<span class="sourceLineNo">237</span> return true;<a name="line.237"></a>
-<span class="sourceLineNo">238</span> return false;<a name="line.238"></a>
-<span class="sourceLineNo">239</span> }<a name="line.239"></a>
-<span class="sourceLineNo">240</span><a name="line.240"></a>
-<span class="sourceLineNo">241</span> /* Workhorse method */<a name="line.241"></a>
-<span class="sourceLineNo">242</span> private <T> T parse(String name, T def, ClassMeta<T> cm) throws ParseException {<a name="line.242"></a>
-<span class="sourceLineNo">243</span> String val = getFirst(name);<a name="line.243"></a>
-<span class="sourceLineNo">244</span> if (val == null)<a name="line.244"></a>
-<span class="sourceLineNo">245</span> return def;<a name="line.245"></a>
-<span class="sourceLineNo">246</span> return parseValue(val, cm);<a name="line.246"></a>
-<span class="sourceLineNo">247</span> }<a name="line.247"></a>
-<span class="sourceLineNo">248</span><a name="line.248"></a>
-<span class="sourceLineNo">249</span> /* Workhorse method */<a name="line.249"></a>
-<span class="sourceLineNo">250</span> private <T> T parse(String name, ClassMeta<T> cm) throws ParseException {<a name="line.250"></a>
-<span class="sourceLineNo">251</span> String val = getFirst(name);<a name="line.251"></a>
-<span class="sourceLineNo">252</span> if (cm.isPrimitive() && (val == null || val.isEmpty()))<a name="line.252"></a>
-<span class="sourceLineNo">253</span> return cm.getPrimitiveDefault();<a name="line.253"></a>
-<span class="sourceLineNo">254</span> return parseValue(val, cm);<a name="line.254"></a>
-<span class="sourceLineNo">255</span> }<a name="line.255"></a>
-<span class="sourceLineNo">256</span><a name="line.256"></a>
-<span class="sourceLineNo">257</span> /* Workhorse method */<a name="line.257"></a>
-<span class="sourceLineNo">258</span> @SuppressWarnings("rawtypes")<a name="line.258"></a>
-<span class="sourceLineNo">259</span> private <T> T parseAll(String name, ClassMeta<T> cm) throws ParseException {<a name="line.259"></a>
-<span class="sourceLineNo">260</span> String[] p = get(name);<a name="line.260"></a>
-<span class="sourceLineNo">261</span> if (p == null)<a name="line.261"></a>
-<span class="sourceLineNo">262</span> return null;<a name="line.262"></a>
-<span class="sourceLineNo">263</span> if (cm.isArray()) {<a name="line.263"></a>
-<span class="sourceLineNo">264</span> List c = new ArrayList();<a name="line.264"></a>
-<span class="sourceLineNo">265</span> for (int i = 0; i < p.length; i++)<a name="line.265"></a>
-<span class="sourceLineNo">266</span> c.add(parseValue(p[i], cm.getElementType()));<a name="line.266"></a>
-<span class="sourceLineNo">267</span> return (T)ArrayUtils.toArray(c, cm.getElementType().getInnerClass());<a name="line.267"></a>
-<span class="sourceLineNo">268</span> } else if (cm.isCollection()) {<a name="line.268"></a>
-<span class="sourceLineNo">269</span> try {<a name="line.269"></a>
-<span class="sourceLineNo">270</span> Collection c = (Collection)(cm.canCreateNewInstance() ? cm.newInstance() : new ObjectList());<a name="line.270"></a>
-<span class="sourceLineNo">271</span> for (int i = 0; i < p.length; i++)<a name="line.271"></a>
-<span class="sourceLineNo">272</span> c.add(parseValue(p[i], cm.getElementType()));<a name="line.272"></a>
-<span class="sourceLineNo">273</span> return (T)c;<a name="line.273"></a>
-<span class="sourceLineNo">274</span> } catch (ParseException e) {<a name="line.274"></a>
-<span class="sourceLineNo">275</span> throw e;<a name="line.275"></a>
-<span class="sourceLineNo">276</span> } catch (Exception e) {<a name="line.276"></a>
-<span class="sourceLineNo">277</span> // Typically an instantiation exception.<a name="line.277"></a>
-<span class="sourceLineNo">278</span> throw new ParseException(e);<a name="line.278"></a>
-<span class="sourceLineNo">279</span> }<a name="line.279"></a>
-<span class="sourceLineNo">280</span> }<a name="line.280"></a>
-<span class="sourceLineNo">281</span> throw new ParseException("Invalid call to getQueryParameters(String, ClassMeta). Class type must be a Collection or array.");<a name="line.281"></a>
-<span class="sourceLineNo">282</span> }<a name="line.282"></a>
-<span class="sourceLineNo">283</span><a name="line.283"></a>
-<span class="sourceLineNo">284</span> private <T> T parseValue(String val, ClassMeta<T> c) throws ParseException {<a name="line.284"></a>
-<span class="sourceLineNo">285</span> return parser.parsePart(val, c);<a name="line.285"></a>
-<span class="sourceLineNo">286</span> }<a name="line.286"></a>
-<span class="sourceLineNo">287</span>}<a name="line.287"></a>
+<span class="sourceLineNo">229</span> * Same as {@link #get(String, Type, Type...)} except for use on multi-part parameters<a name="line.229"></a>
+<span class="sourceLineNo">230</span> * (e.g. <js>"&amp;key=1&amp;key=2&amp;key=3"</js> instead of <js>"&amp;key=(1,2,3)"</js>).<a name="line.230"></a>
+<span class="sourceLineNo">231</span> * <p><a name="line.231"></a>
+<span class="sourceLineNo">232</span> * This method must only be called when parsing into classes of type Collection or array.<a name="line.232"></a>
+<span class="sourceLineNo">233</span> *<a name="line.233"></a>
+<span class="sourceLineNo">234</span> * @param name The query parameter name.<a name="line.234"></a>
+<span class="sourceLineNo">235</span> * @param type The type of object to create.<a name="line.235"></a>
+<span class="sourceLineNo">236</span> * <br>Can be any of the following: {@link ClassMeta}, {@link Class}, {@link ParameterizedType}, {@link GenericArrayType}<a name="line.236"></a>
+<span class="sourceLineNo">237</span> * @param args The type arguments of the class if it's a collection or map.<a name="line.237"></a>
+<span class="sourceLineNo">238</span> * <br>Can be any of the following: {@link ClassMeta}, {@link Class}, {@link ParameterizedType}, {@link GenericArrayType}<a name="line.238"></a>
+<span class="sourceLineNo">239</span> * <br>Ignored if the main type is not a map or collection.<a name="line.239"></a>
+<span class="sourceLineNo">240</span> * @param <T> The class type to convert the parameter value to.<a name="line.240"></a>
+<span class="sourceLineNo">241</span> * @return The query parameter value converted to the specified class type.<a name="line.241"></a>
+<span class="sourceLineNo">242</span> * @throws ParseException<a name="line.242"></a>
+<span class="sourceLineNo">243</span> */<a name="line.243"></a>
+<span class="sourceLineNo">244</span> public <T> T getAll(String name, Type type, Type...args) throws ParseException {<a name="line.244"></a>
+<span class="sourceLineNo">245</span> return (T)parseAll(name, beanSession.getClassMeta(type, args));<a name="line.245"></a>
+<span class="sourceLineNo">246</span> }<a name="line.246"></a>
+<span class="sourceLineNo">247</span><a name="line.247"></a>
+<span class="sourceLineNo">248</span> /**<a name="line.248"></a>
+<span class="sourceLineNo">249</span> * Returns <jk>true</jk> if the request contains any of the specified query parameters.<a name="line.249"></a>
+<span class="sourceLineNo">250</span> *<a name="line.250"></a>
+<span class="sourceLineNo">251</span> * @param params The list of parameters to check for.<a name="line.251"></a>
+<span class="sourceLineNo">252</span> * @return <jk>true</jk> if the request contains any of the specified query parameters.<a name="line.252"></a>
+<span class="sourceLineNo">253</span> */<a name="line.253"></a>
+<span class="sourceLineNo">254</span> public boolean containsAnyKeys(String...params) {<a name="line.254"></a>
+<span class="sourceLineNo">255</span> for (String p : params)<a name="line.255"></a>
+<span class="sourceLineNo">256</span> if (containsKey(p))<a name="line.256"></a>
+<span class="sourceLineNo">257</span> return true;<a name="line.257"></a>
+<span class="sourceLineNo">258</span> return false;<a name="line.258"></a>
+<span class="sourceLineNo">259</span> }<a name="line.259"></a>
+<span class="sourceLineNo">260</span><a name="line.260"></a>
+<span class="sourceLineNo">261</span> /* Workhorse method */<a name="line.261"></a>
+<span class="sourceLineNo">262</span> private <T> T parse(String name, T def, ClassMeta<T> cm) throws ParseException {<a name="line.262"></a>
+<span class="sourceLineNo">263</span> String val = getFirst(name);<a name="line.263"></a>
+<span class="sourceLineNo">264</span> if (val == null)<a name="line.264"></a>
+<span class="sourceLineNo">265</span> return def;<a name="line.265"></a>
+<span class="sourceLineNo">266</span> return parseValue(val, cm);<a name="line.266"></a>
+<span class="sourceLineNo">267</span> }<a name="line.267"></a>
+<span class="sourceLineNo">268</span><a name="line.268"></a>
+<span class="sourceLineNo">269</span> /* Workhorse method */<a name="line.269"></a>
+<span class="sourceLineNo">270</span> private <T> T parse(String name, ClassMeta<T> cm) throws ParseException {<a name="line.270"></a>
+<span class="sourceLineNo">271</span> String val = getFirst(name);<a name="line.271"></a>
+<span class="sourceLineNo">272</span> if (cm.isPrimitive() && (val == null || val.isEmpty()))<a name="line.272"></a>
+<span class="sourceLineNo">273</span> return cm.getPrimitiveDefault();<a name="line.273"></a>
+<span class="sourceLineNo">274</span> return parseValue(val, cm);<a name="line.274"></a>
+<span class="sourceLineNo">275</span> }<a name="line.275"></a>
+<span class="sourceLineNo">276</span><a name="line.276"></a>
+<span class="sourceLineNo">277</span> /* Workhorse method */<a name="line.277"></a>
+<span class="sourceLineNo">278</span> @SuppressWarnings("rawtypes")<a name="line.278"></a>
+<span class="sourceLineNo">279</span> private <T> T parseAll(String name, ClassMeta<T> cm) throws ParseException {<a name="line.279"></a>
+<span class="sourceLineNo">280</span> String[] p = get(name);<a name="line.280"></a>
+<span class="sourceLineNo">281</span> if (p == null)<a name="line.281"></a>
+<span class="sourceLineNo">282</span> return null;<a name="line.282"></a>
+<span class="sourceLineNo">283</span> if (cm.isArray()) {<a name="line.283"></a>
+<span class="sourceLineNo">284</span> List c = new ArrayList();<a name="line.284"></a>
+<span class="sourceLineNo">285</span> for (int i = 0; i < p.length; i++)<a name="line.285"></a>
+<span class="sourceLineNo">286</span> c.add(parseValue(p[i], cm.getElementType()));<a name="line.286"></a>
+<span class="sourceLineNo">287</span> return (T)ArrayUtils.toArray(c, cm.getElementType().getInnerClass());<a name="line.287"></a>
+<span class="sourceLineNo">288</span> } else if (cm.isCollection()) {<a name="line.288"></a>
+<span class="sourceLineNo">289</span> try {<a name="line.289"></a>
+<span class="sourceLineNo">290</span> Collection c = (Collection)(cm.canCreateNewInstance() ? cm.newInstance() : new ObjectList());<a name="line.290"></a>
+<span class="sourceLineNo">291</span> for (int i = 0; i < p.length; i++)<a name="line.291"></a>
+<span class="sourceLineNo">292</span> c.add(parseValue(p[i], cm.getElementType()));<a name="line.292"></a>
+<span class="sourceLineNo">293</span> return (T)c;<a name="line.293"></a>
+<span class="sourceLineNo">294</span> } catch (ParseException e) {<a name="line.294"></a>
+<span class="sourceLineNo">295</span> throw e;<a name="line.295"></a>
+<span class="sourceLineNo">296</span> } catch (Exception e) {<a name="line.296"></a>
+<span class="sourceLineNo">297</span> // Typically an instantiation exception.<a name="line.297"></a>
+<span class="sourceLineNo">298</span> throw new ParseException(e);<a name="line.298"></a>
+<span class="sourceLineNo">299</span> }<a name="line.299"></a>
+<span class="sourceLineNo">300</span> }<a name="line.300"></a>
+<span class="sourceLineNo">301</span> throw new ParseException("Invalid call to getQueryParameters(String, ClassMeta). Class type must be a Collection or array.");<a name="line.301"></a>
+<span class="sourceLineNo">302</span> }<a name="line.302"></a>
+<span class="sourceLineNo">303</span><a name="line.303"></a>
+<span class="sourceLineNo">304</span> private <T> T parseValue(String val, ClassMeta<T> c) throws ParseException {<a name="line.304"></a>
+<span class="sourceLineNo">305</span> return parser.parsePart(val, c);<a name="line.305"></a>
+<span class="sourceLineNo">306</span> }<a name="line.306"></a>
+<span class="sourceLineNo">307</span>}<a name="line.307"></a>
[14/15] incubator-juneau-website git commit: Update javadocs.
Posted by ja...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/org/apache/juneau/http/HeaderValidator.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/org/apache/juneau/http/HeaderValidator.html b/content/site/apidocs/org/apache/juneau/http/HeaderValidator.html
deleted file mode 100644
index c7e4de6..0000000
--- a/content/site/apidocs/org/apache/juneau/http/HeaderValidator.html
+++ /dev/null
@@ -1,309 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<!-- NewPage -->
-<html lang="en">
-<head>
-<!-- Generated by javadoc -->
-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-<title>HeaderValidator (Apache Juneau (incubating) 6.2.1-incubating-SNAPSHOT)</title>
-<link rel="stylesheet" type="text/css" href="../../../../javadoc.css" title="Style">
-<script type="text/javascript" src="../../../../script.js"></script>
-</head>
-<body>
-<script type="text/javascript"><!--
- try {
- if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="HeaderValidator (Apache Juneau (incubating) 6.2.1-incubating-SNAPSHOT)";
- }
- }
- catch(err) {
- }
-//-->
-var methods = {"i0":10,"i1":10};
-var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
-var altColor = "altColor";
-var rowColor = "rowColor";
-var tableTab = "tableTab";
-var activeTableTab = "activeTableTab";
-</script>
-<noscript>
-<div>JavaScript is disabled on your browser.</div>
-</noscript>
-<!-- ========= START OF TOP NAVBAR ======= -->
-<div class="topNav"><a name="navbar.top">
-<!-- -->
-</a>
-<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
-<a name="navbar.top.firstrow">
-<!-- -->
-</a>
-<ul class="navList" title="Navigation">
-<li><a href="../../../../overview-summary.html">Overview</a></li>
-<li><a href="package-summary.html">Package</a></li>
-<li class="navBarCell1Rev">Class</li>
-<li><a href="package-tree.html">Tree</a></li>
-<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
-<li><a href="../../../../index-all.html">Index</a></li>
-<li><a href="../../../../help-doc.html">Help</a></li>
-</ul>
-</div>
-<div class="subNav">
-<ul class="navList">
-<li><a href="../../../../org/apache/juneau/http/HeaderUrl.html" title="class in org.apache.juneau.http"><span class="typeNameLink">Prev Class</span></a></li>
-<li><a href="../../../../org/apache/juneau/http/HeaderValidatorArray.html" title="class in org.apache.juneau.http"><span class="typeNameLink">Next Class</span></a></li>
-</ul>
-<ul class="navList">
-<li><a href="../../../../index.html?org/apache/juneau/http/HeaderValidator.html" target="_top">Frames</a></li>
-<li><a href="HeaderValidator.html" target="_top">No Frames</a></li>
-</ul>
-<ul class="navList" id="allclasses_navbar_top">
-<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
-</ul>
-<div>
-<script type="text/javascript"><!--
- allClassesLink = document.getElementById("allclasses_navbar_top");
- if(window==top) {
- allClassesLink.style.display = "block";
- }
- else {
- allClassesLink.style.display = "none";
- }
- //-->
-</script>
-</div>
-<div>
-<ul class="subNavList">
-<li>Summary: </li>
-<li>Nested | </li>
-<li>Field | </li>
-<li><a href="#constructor.summary">Constr</a> | </li>
-<li><a href="#method.summary">Method</a></li>
-</ul>
-<ul class="subNavList">
-<li>Detail: </li>
-<li>Field | </li>
-<li><a href="#constructor.detail">Constr</a> | </li>
-<li><a href="#method.detail">Method</a></li>
-</ul>
-</div>
-<a name="skip.navbar.top">
-<!-- -->
-</a></div>
-<!-- ========= END OF TOP NAVBAR ========= -->
-<!-- ======== START OF CLASS DATA ======== -->
-<div class="header">
-<div class="subTitle">org.apache.juneau.http</div>
-<h2 title="Class HeaderValidator" class="title">Class HeaderValidator</h2>
-</div>
-<div class="contentContainer">
-<ul class="inheritance">
-<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
-<li>
-<ul class="inheritance">
-<li>org.apache.juneau.http.HeaderValidator</li>
-</ul>
-</li>
-</ul>
-<div class="description">
-<ul class="blockList">
-<li class="blockList">
-<hr>
-<br>
-<pre>public class <a href="../../../../src-html/org/apache/juneau/http/HeaderValidator.html#line.23">HeaderValidator</a>
-extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
-<div class="block">Category of headers that consist of a single validator value.
- <p>
- <h6 class='figure'>Example</h6>
- <p class='bcode'>
- ETag: "xyzzy"
- </p></div>
-</li>
-</ul>
-</div>
-<div class="summary">
-<ul class="blockList">
-<li class="blockList">
-<!-- ======== CONSTRUCTOR SUMMARY ======== -->
-<ul class="blockList">
-<li class="blockList"><a name="constructor.summary">
-<!-- -->
-</a>
-<h3>Constructor Summary</h3>
-<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
-<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
-<tr>
-<th class="colFirst" scope="col">Modifier</th>
-<th class="colLast" scope="col">Constructor and Description</th>
-</tr>
-<tr class="altColor">
-<td class="colFirst"><code>protected </code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/HeaderValidator.html#HeaderValidator-java.lang.String-">HeaderValidator</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</code>
-<div class="block">Constructor.</div>
-</td>
-</tr>
-</table>
-</li>
-</ul>
-<!-- ========== METHOD SUMMARY =========== -->
-<ul class="blockList">
-<li class="blockList"><a name="method.summary">
-<!-- -->
-</a>
-<h3>Method Summary</h3>
-<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
-<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
-<tr>
-<th class="colFirst" scope="col">Modifier and Type</th>
-<th class="colLast" scope="col">Method and Description</th>
-</tr>
-<tr id="i0" class="altColor">
-<td class="colFirst"><code><a href="../../../../org/apache/juneau/http/EntityValidator.html" title="class in org.apache.juneau.http">EntityValidator</a></code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/HeaderValidator.html#asValidator--">asValidator</a></span>()</code>
-<div class="block">Returns this header value as a <a href="../../../../org/apache/juneau/http/EntityValidator.html" title="class in org.apache.juneau.http"><code>EntityValidator</code></a> object.</div>
-</td>
-</tr>
-<tr id="i1" class="rowColor">
-<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/HeaderValidator.html#toString--">toString</a></span>()</code> </td>
-</tr>
-</table>
-<ul class="blockList">
-<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
-<!-- -->
-</a>
-<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
-<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang
/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
-</ul>
-</li>
-</ul>
-</li>
-</ul>
-</div>
-<div class="details">
-<ul class="blockList">
-<li class="blockList">
-<!-- ========= CONSTRUCTOR DETAIL ======== -->
-<ul class="blockList">
-<li class="blockList"><a name="constructor.detail">
-<!-- -->
-</a>
-<h3>Constructor Detail</h3>
-<a name="HeaderValidator-java.lang.String-">
-<!-- -->
-</a>
-<ul class="blockListLast">
-<li class="blockList">
-<h4>HeaderValidator</h4>
-<pre>protected <a href="../../../../src-html/org/apache/juneau/http/HeaderValidator.html#line.31">HeaderValidator</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</pre>
-<div class="block">Constructor.</div>
-<dl>
-<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>value</code> - The raw header value.</dd>
-</dl>
-</li>
-</ul>
-</li>
-</ul>
-<!-- ============ METHOD DETAIL ========== -->
-<ul class="blockList">
-<li class="blockList"><a name="method.detail">
-<!-- -->
-</a>
-<h3>Method Detail</h3>
-<a name="asValidator--">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>asValidator</h4>
-<pre>public <a href="../../../../org/apache/juneau/http/EntityValidator.html" title="class in org.apache.juneau.http">EntityValidator</a> <a href="../../../../src-html/org/apache/juneau/http/HeaderValidator.html#line.39">asValidator</a>()</pre>
-<div class="block">Returns this header value as a <a href="../../../../org/apache/juneau/http/EntityValidator.html" title="class in org.apache.juneau.http"><code>EntityValidator</code></a> object.</div>
-<dl>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd>this header value as a <a href="../../../../org/apache/juneau/http/EntityValidator.html" title="class in org.apache.juneau.http"><code>EntityValidator</code></a> object.</dd>
-</dl>
-</li>
-</ul>
-<a name="toString--">
-<!-- -->
-</a>
-<ul class="blockListLast">
-<li class="blockList">
-<h4>toString</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/http/HeaderValidator.html#line.44">toString</a>()</pre>
-<dl>
-<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
-<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a></code> in class <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
-</dl>
-</li>
-</ul>
-</li>
-</ul>
-</li>
-</ul>
-</div>
-</div>
-<!-- ========= END OF CLASS DATA ========= -->
-<!-- ======= START OF BOTTOM NAVBAR ====== -->
-<div class="bottomNav"><a name="navbar.bottom">
-<!-- -->
-</a>
-<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
-<a name="navbar.bottom.firstrow">
-<!-- -->
-</a>
-<ul class="navList" title="Navigation">
-<li><a href="../../../../overview-summary.html">Overview</a></li>
-<li><a href="package-summary.html">Package</a></li>
-<li class="navBarCell1Rev">Class</li>
-<li><a href="package-tree.html">Tree</a></li>
-<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
-<li><a href="../../../../index-all.html">Index</a></li>
-<li><a href="../../../../help-doc.html">Help</a></li>
-</ul>
-</div>
-<div class="subNav">
-<ul class="navList">
-<li><a href="../../../../org/apache/juneau/http/HeaderUrl.html" title="class in org.apache.juneau.http"><span class="typeNameLink">Prev Class</span></a></li>
-<li><a href="../../../../org/apache/juneau/http/HeaderValidatorArray.html" title="class in org.apache.juneau.http"><span class="typeNameLink">Next Class</span></a></li>
-</ul>
-<ul class="navList">
-<li><a href="../../../../index.html?org/apache/juneau/http/HeaderValidator.html" target="_top">Frames</a></li>
-<li><a href="HeaderValidator.html" target="_top">No Frames</a></li>
-</ul>
-<ul class="navList" id="allclasses_navbar_bottom">
-<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
-</ul>
-<div>
-<script type="text/javascript"><!--
- allClassesLink = document.getElementById("allclasses_navbar_bottom");
- if(window==top) {
- allClassesLink.style.display = "block";
- }
- else {
- allClassesLink.style.display = "none";
- }
- //-->
-</script>
-</div>
-<div>
-<ul class="subNavList">
-<li>Summary: </li>
-<li>Nested | </li>
-<li>Field | </li>
-<li><a href="#constructor.summary">Constr</a> | </li>
-<li><a href="#method.summary">Method</a></li>
-</ul>
-<ul class="subNavList">
-<li>Detail: </li>
-<li>Field | </li>
-<li><a href="#constructor.detail">Constr</a> | </li>
-<li><a href="#method.detail">Method</a></li>
-</ul>
-</div>
-<a name="skip.navbar.bottom">
-<!-- -->
-</a></div>
-<!-- ======== END OF BOTTOM NAVBAR ======= -->
-<p class="legalCopy"><small>Copyright © 2017 <a href="http://www.apache.org/">Apache</a>. All rights reserved.</small></p>
-</body>
-</html>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/org/apache/juneau/http/HeaderValidatorArray.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/org/apache/juneau/http/HeaderValidatorArray.html b/content/site/apidocs/org/apache/juneau/http/HeaderValidatorArray.html
deleted file mode 100644
index 69fe3ae..0000000
--- a/content/site/apidocs/org/apache/juneau/http/HeaderValidatorArray.html
+++ /dev/null
@@ -1,315 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<!-- NewPage -->
-<html lang="en">
-<head>
-<!-- Generated by javadoc -->
-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-<title>HeaderValidatorArray (Apache Juneau (incubating) 6.2.1-incubating-SNAPSHOT)</title>
-<link rel="stylesheet" type="text/css" href="../../../../javadoc.css" title="Style">
-<script type="text/javascript" src="../../../../script.js"></script>
-</head>
-<body>
-<script type="text/javascript"><!--
- try {
- if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="HeaderValidatorArray (Apache Juneau (incubating) 6.2.1-incubating-SNAPSHOT)";
- }
- }
- catch(err) {
- }
-//-->
-var methods = {"i0":10,"i1":10};
-var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
-var altColor = "altColor";
-var rowColor = "rowColor";
-var tableTab = "tableTab";
-var activeTableTab = "activeTableTab";
-</script>
-<noscript>
-<div>JavaScript is disabled on your browser.</div>
-</noscript>
-<!-- ========= START OF TOP NAVBAR ======= -->
-<div class="topNav"><a name="navbar.top">
-<!-- -->
-</a>
-<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
-<a name="navbar.top.firstrow">
-<!-- -->
-</a>
-<ul class="navList" title="Navigation">
-<li><a href="../../../../overview-summary.html">Overview</a></li>
-<li><a href="package-summary.html">Package</a></li>
-<li class="navBarCell1Rev">Class</li>
-<li><a href="package-tree.html">Tree</a></li>
-<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
-<li><a href="../../../../index-all.html">Index</a></li>
-<li><a href="../../../../help-doc.html">Help</a></li>
-</ul>
-</div>
-<div class="subNav">
-<ul class="navList">
-<li><a href="../../../../org/apache/juneau/http/HeaderValidator.html" title="class in org.apache.juneau.http"><span class="typeNameLink">Prev Class</span></a></li>
-<li><a href="../../../../org/apache/juneau/http/Host.html" title="class in org.apache.juneau.http"><span class="typeNameLink">Next Class</span></a></li>
-</ul>
-<ul class="navList">
-<li><a href="../../../../index.html?org/apache/juneau/http/HeaderValidatorArray.html" target="_top">Frames</a></li>
-<li><a href="HeaderValidatorArray.html" target="_top">No Frames</a></li>
-</ul>
-<ul class="navList" id="allclasses_navbar_top">
-<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
-</ul>
-<div>
-<script type="text/javascript"><!--
- allClassesLink = document.getElementById("allclasses_navbar_top");
- if(window==top) {
- allClassesLink.style.display = "block";
- }
- else {
- allClassesLink.style.display = "none";
- }
- //-->
-</script>
-</div>
-<div>
-<ul class="subNavList">
-<li>Summary: </li>
-<li>Nested | </li>
-<li>Field | </li>
-<li><a href="#constructor.summary">Constr</a> | </li>
-<li><a href="#method.summary">Method</a></li>
-</ul>
-<ul class="subNavList">
-<li>Detail: </li>
-<li>Field | </li>
-<li><a href="#constructor.detail">Constr</a> | </li>
-<li><a href="#method.detail">Method</a></li>
-</ul>
-</div>
-<a name="skip.navbar.top">
-<!-- -->
-</a></div>
-<!-- ========= END OF TOP NAVBAR ========= -->
-<!-- ======== START OF CLASS DATA ======== -->
-<div class="header">
-<div class="subTitle">org.apache.juneau.http</div>
-<h2 title="Class HeaderValidatorArray" class="title">Class HeaderValidatorArray</h2>
-</div>
-<div class="contentContainer">
-<ul class="inheritance">
-<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
-<li>
-<ul class="inheritance">
-<li>org.apache.juneau.http.HeaderValidatorArray</li>
-</ul>
-</li>
-</ul>
-<div class="description">
-<ul class="blockList">
-<li class="blockList">
-<dl>
-<dt>Direct Known Subclasses:</dt>
-<dd><a href="../../../../org/apache/juneau/http/IfMatch.html" title="class in org.apache.juneau.http">IfMatch</a>, <a href="../../../../org/apache/juneau/http/IfNoneMatch.html" title="class in org.apache.juneau.http">IfNoneMatch</a></dd>
-</dl>
-<hr>
-<br>
-<pre>public class <a href="../../../../src-html/org/apache/juneau/http/HeaderValidatorArray.html#line.27">HeaderValidatorArray</a>
-extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
-<div class="block">Category of headers that consist of a comma-delimited list of validator values.
- <p>
- <h6 class='figure'>Example</h6>
- <p class='bcode'>
- If-Match: "xyzzy"
- If-Match: "xyzzy", "r2d2xxxx", "c3piozzzz"
- If-Match: *
- </p></div>
-</li>
-</ul>
-</div>
-<div class="summary">
-<ul class="blockList">
-<li class="blockList">
-<!-- ======== CONSTRUCTOR SUMMARY ======== -->
-<ul class="blockList">
-<li class="blockList"><a name="constructor.summary">
-<!-- -->
-</a>
-<h3>Constructor Summary</h3>
-<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
-<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
-<tr>
-<th class="colFirst" scope="col">Modifier</th>
-<th class="colLast" scope="col">Constructor and Description</th>
-</tr>
-<tr class="altColor">
-<td class="colFirst"><code>protected </code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/HeaderValidatorArray.html#HeaderValidatorArray-java.lang.String-">HeaderValidatorArray</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</code>
-<div class="block">Constructor.</div>
-</td>
-</tr>
-</table>
-</li>
-</ul>
-<!-- ========== METHOD SUMMARY =========== -->
-<ul class="blockList">
-<li class="blockList"><a name="method.summary">
-<!-- -->
-</a>
-<h3>Method Summary</h3>
-<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
-<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
-<tr>
-<th class="colFirst" scope="col">Modifier and Type</th>
-<th class="colLast" scope="col">Method and Description</th>
-</tr>
-<tr id="i0" class="altColor">
-<td class="colFirst"><code><a href="../../../../org/apache/juneau/http/EntityValidator.html" title="class in org.apache.juneau.http">EntityValidator</a>[]</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/HeaderValidatorArray.html#asValidators--">asValidators</a></span>()</code>
-<div class="block">Returns this header value as an array of <a href="../../../../org/apache/juneau/http/EntityValidator.html" title="class in org.apache.juneau.http"><code>EntityValidator</code></a> objects.</div>
-</td>
-</tr>
-<tr id="i1" class="rowColor">
-<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/HeaderValidatorArray.html#toString--">toString</a></span>()</code> </td>
-</tr>
-</table>
-<ul class="blockList">
-<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
-<!-- -->
-</a>
-<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
-<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang
/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
-</ul>
-</li>
-</ul>
-</li>
-</ul>
-</div>
-<div class="details">
-<ul class="blockList">
-<li class="blockList">
-<!-- ========= CONSTRUCTOR DETAIL ======== -->
-<ul class="blockList">
-<li class="blockList"><a name="constructor.detail">
-<!-- -->
-</a>
-<h3>Constructor Detail</h3>
-<a name="HeaderValidatorArray-java.lang.String-">
-<!-- -->
-</a>
-<ul class="blockListLast">
-<li class="blockList">
-<h4>HeaderValidatorArray</h4>
-<pre>protected <a href="../../../../src-html/org/apache/juneau/http/HeaderValidatorArray.html#line.35">HeaderValidatorArray</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</pre>
-<div class="block">Constructor.</div>
-<dl>
-<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>value</code> - The raw header value.</dd>
-</dl>
-</li>
-</ul>
-</li>
-</ul>
-<!-- ============ METHOD DETAIL ========== -->
-<ul class="blockList">
-<li class="blockList"><a name="method.detail">
-<!-- -->
-</a>
-<h3>Method Detail</h3>
-<a name="asValidators--">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>asValidators</h4>
-<pre>public <a href="../../../../org/apache/juneau/http/EntityValidator.html" title="class in org.apache.juneau.http">EntityValidator</a>[] <a href="../../../../src-html/org/apache/juneau/http/HeaderValidatorArray.html#line.47">asValidators</a>()</pre>
-<div class="block">Returns this header value as an array of <a href="../../../../org/apache/juneau/http/EntityValidator.html" title="class in org.apache.juneau.http"><code>EntityValidator</code></a> objects.</div>
-<dl>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd>this header value as an array of <a href="../../../../org/apache/juneau/http/EntityValidator.html" title="class in org.apache.juneau.http"><code>EntityValidator</code></a> objects.</dd>
-</dl>
-</li>
-</ul>
-<a name="toString--">
-<!-- -->
-</a>
-<ul class="blockListLast">
-<li class="blockList">
-<h4>toString</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/http/HeaderValidatorArray.html#line.52">toString</a>()</pre>
-<dl>
-<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
-<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a></code> in class <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
-</dl>
-</li>
-</ul>
-</li>
-</ul>
-</li>
-</ul>
-</div>
-</div>
-<!-- ========= END OF CLASS DATA ========= -->
-<!-- ======= START OF BOTTOM NAVBAR ====== -->
-<div class="bottomNav"><a name="navbar.bottom">
-<!-- -->
-</a>
-<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
-<a name="navbar.bottom.firstrow">
-<!-- -->
-</a>
-<ul class="navList" title="Navigation">
-<li><a href="../../../../overview-summary.html">Overview</a></li>
-<li><a href="package-summary.html">Package</a></li>
-<li class="navBarCell1Rev">Class</li>
-<li><a href="package-tree.html">Tree</a></li>
-<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
-<li><a href="../../../../index-all.html">Index</a></li>
-<li><a href="../../../../help-doc.html">Help</a></li>
-</ul>
-</div>
-<div class="subNav">
-<ul class="navList">
-<li><a href="../../../../org/apache/juneau/http/HeaderValidator.html" title="class in org.apache.juneau.http"><span class="typeNameLink">Prev Class</span></a></li>
-<li><a href="../../../../org/apache/juneau/http/Host.html" title="class in org.apache.juneau.http"><span class="typeNameLink">Next Class</span></a></li>
-</ul>
-<ul class="navList">
-<li><a href="../../../../index.html?org/apache/juneau/http/HeaderValidatorArray.html" target="_top">Frames</a></li>
-<li><a href="HeaderValidatorArray.html" target="_top">No Frames</a></li>
-</ul>
-<ul class="navList" id="allclasses_navbar_bottom">
-<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
-</ul>
-<div>
-<script type="text/javascript"><!--
- allClassesLink = document.getElementById("allclasses_navbar_bottom");
- if(window==top) {
- allClassesLink.style.display = "block";
- }
- else {
- allClassesLink.style.display = "none";
- }
- //-->
-</script>
-</div>
-<div>
-<ul class="subNavList">
-<li>Summary: </li>
-<li>Nested | </li>
-<li>Field | </li>
-<li><a href="#constructor.summary">Constr</a> | </li>
-<li><a href="#method.summary">Method</a></li>
-</ul>
-<ul class="subNavList">
-<li>Detail: </li>
-<li>Field | </li>
-<li><a href="#constructor.detail">Constr</a> | </li>
-<li><a href="#method.detail">Method</a></li>
-</ul>
-</div>
-<a name="skip.navbar.bottom">
-<!-- -->
-</a></div>
-<!-- ======== END OF BOTTOM NAVBAR ======= -->
-<p class="legalCopy"><small>Copyright © 2017 <a href="http://www.apache.org/">Apache</a>. All rights reserved.</small></p>
-</body>
-</html>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/org/apache/juneau/http/SimpleRange.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/org/apache/juneau/http/SimpleRange.html b/content/site/apidocs/org/apache/juneau/http/SimpleRange.html
deleted file mode 100644
index da8d40e..0000000
--- a/content/site/apidocs/org/apache/juneau/http/SimpleRange.html
+++ /dev/null
@@ -1,468 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<!-- NewPage -->
-<html lang="en">
-<head>
-<!-- Generated by javadoc -->
-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-<title>SimpleRange (Apache Juneau (incubating) 6.2.1-incubating-SNAPSHOT)</title>
-<link rel="stylesheet" type="text/css" href="../../../../javadoc.css" title="Style">
-<script type="text/javascript" src="../../../../script.js"></script>
-</head>
-<body>
-<script type="text/javascript"><!--
- try {
- if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="SimpleRange (Apache Juneau (incubating) 6.2.1-incubating-SNAPSHOT)";
- }
- }
- catch(err) {
- }
-//-->
-var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":9,"i8":10};
-var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
-var altColor = "altColor";
-var rowColor = "rowColor";
-var tableTab = "tableTab";
-var activeTableTab = "activeTableTab";
-</script>
-<noscript>
-<div>JavaScript is disabled on your browser.</div>
-</noscript>
-<!-- ========= START OF TOP NAVBAR ======= -->
-<div class="topNav"><a name="navbar.top">
-<!-- -->
-</a>
-<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
-<a name="navbar.top.firstrow">
-<!-- -->
-</a>
-<ul class="navList" title="Navigation">
-<li><a href="../../../../overview-summary.html">Overview</a></li>
-<li><a href="package-summary.html">Package</a></li>
-<li class="navBarCell1Rev">Class</li>
-<li><a href="package-tree.html">Tree</a></li>
-<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
-<li><a href="../../../../index-all.html">Index</a></li>
-<li><a href="../../../../help-doc.html">Help</a></li>
-</ul>
-</div>
-<div class="subNav">
-<ul class="navList">
-<li><a href="../../../../org/apache/juneau/http/Server.html" title="class in org.apache.juneau.http"><span class="typeNameLink">Prev Class</span></a></li>
-<li><a href="../../../../org/apache/juneau/http/TE.html" title="class in org.apache.juneau.http"><span class="typeNameLink">Next Class</span></a></li>
-</ul>
-<ul class="navList">
-<li><a href="../../../../index.html?org/apache/juneau/http/SimpleRange.html" target="_top">Frames</a></li>
-<li><a href="SimpleRange.html" target="_top">No Frames</a></li>
-</ul>
-<ul class="navList" id="allclasses_navbar_top">
-<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
-</ul>
-<div>
-<script type="text/javascript"><!--
- allClassesLink = document.getElementById("allclasses_navbar_top");
- if(window==top) {
- allClassesLink.style.display = "block";
- }
- else {
- allClassesLink.style.display = "none";
- }
- //-->
-</script>
-</div>
-<div>
-<ul class="subNavList">
-<li>Summary: </li>
-<li>Nested | </li>
-<li>Field | </li>
-<li>Constr | </li>
-<li><a href="#method.summary">Method</a></li>
-</ul>
-<ul class="subNavList">
-<li>Detail: </li>
-<li>Field | </li>
-<li>Constr | </li>
-<li><a href="#method.detail">Method</a></li>
-</ul>
-</div>
-<a name="skip.navbar.top">
-<!-- -->
-</a></div>
-<!-- ========= END OF TOP NAVBAR ========= -->
-<!-- ======== START OF CLASS DATA ======== -->
-<div class="header">
-<div class="subTitle">org.apache.juneau.http</div>
-<h2 title="Class SimpleRange" class="title">Class SimpleRange</h2>
-</div>
-<div class="contentContainer">
-<ul class="inheritance">
-<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
-<li>
-<ul class="inheritance">
-<li>org.apache.juneau.http.SimpleRange</li>
-</ul>
-</li>
-</ul>
-<div class="description">
-<ul class="blockList">
-<li class="blockList">
-<dl>
-<dt>All Implemented Interfaces:</dt>
-<dd><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a><<a href="../../../../org/apache/juneau/http/SimpleRange.html" title="class in org.apache.juneau.http">SimpleRange</a>></dd>
-</dl>
-<hr>
-<br>
-<pre><a href="../../../../org/apache/juneau/annotation/BeanIgnore.html" title="annotation in org.apache.juneau.annotation">@BeanIgnore</a>
-public final class <a href="../../../../src-html/org/apache/juneau/http/SimpleRange.html#line.31">SimpleRange</a>
-extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
-implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a><<a href="../../../../org/apache/juneau/http/SimpleRange.html" title="class in org.apache.juneau.http">SimpleRange</a>></pre>
-<div class="block">Represents a single value in a comma-delimited header value that optionally contains a quality
- metric for comparison and extension parameters.
- <p>
- Similar in concept to <a href="../../../../org/apache/juneau/http/MediaTypeRange.html" title="class in org.apache.juneau.http"><code>MediaTypeRange</code></a> except instead of media types (e.g. <js>"text/json"</js>),
- it's a simple type (e.g. <js>"iso-8601"</js>).
- <p>
- An example of a type range is a value in an <code>Accept-Encoding</code> header.</div>
-</li>
-</ul>
-</div>
-<div class="summary">
-<ul class="blockList">
-<li class="blockList">
-<!-- ========== METHOD SUMMARY =========== -->
-<ul class="blockList">
-<li class="blockList"><a name="method.summary">
-<!-- -->
-</a>
-<h3>Method Summary</h3>
-<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
-<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
-<tr>
-<th class="colFirst" scope="col">Modifier and Type</th>
-<th class="colLast" scope="col">Method and Description</th>
-</tr>
-<tr id="i0" class="altColor">
-<td class="colFirst"><code>int</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/SimpleRange.html#compareTo-org.apache.juneau.http.SimpleRange-">compareTo</a></span>(<a href="../../../../org/apache/juneau/http/SimpleRange.html" title="class in org.apache.juneau.http">SimpleRange</a> o)</code>
-<div class="block">Compares two MediaRanges for equality.</div>
-</td>
-</tr>
-<tr id="i1" class="rowColor">
-<td class="colFirst"><code>boolean</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/SimpleRange.html#equals-java.lang.Object-">equals</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> o)</code>
-<div class="block">Returns <jk>true</jk> if the specified object is also a <code>MediaType</code>, and has the same qValue, type, parameters, and extensions.</div>
-</td>
-</tr>
-<tr id="i2" class="altColor">
-<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>>></code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/SimpleRange.html#getExtensions--">getExtensions</a></span>()</code>
-<div class="block">Returns the optional set of custom extensions defined for this type.</div>
-</td>
-</tr>
-<tr id="i3" class="rowColor">
-<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Float.html?is-external=true" title="class or interface in java.lang">Float</a></code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/SimpleRange.html#getQValue--">getQValue</a></span>()</code>
-<div class="block">Returns the <js>'q'</js> (quality) value for this type, as described in Section 3.9 of RFC2616.</div>
-</td>
-</tr>
-<tr id="i4" class="altColor">
-<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/SimpleRange.html#getType--">getType</a></span>()</code>
-<div class="block">Returns the type enclosed by this type range.</div>
-</td>
-</tr>
-<tr id="i5" class="rowColor">
-<td class="colFirst"><code>int</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/SimpleRange.html#hashCode--">hashCode</a></span>()</code>
-<div class="block">Returns a hash based on this instance's <code>media-type</code>.</div>
-</td>
-</tr>
-<tr id="i6" class="altColor">
-<td class="colFirst"><code>boolean</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/SimpleRange.html#matches-java.lang.String-">matches</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> type)</code>
-<div class="block">Checks if the specified type matches this range.</div>
-</td>
-</tr>
-<tr id="i7" class="rowColor">
-<td class="colFirst"><code>static <a href="../../../../org/apache/juneau/http/SimpleRange.html" title="class in org.apache.juneau.http">SimpleRange</a>[]</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/SimpleRange.html#parse-java.lang.String-">parse</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</code>
-<div class="block">Parses a header such as an <code>Accept-Encoding</code> header value into an array of type ranges.</div>
-</td>
-</tr>
-<tr id="i8" class="altColor">
-<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/SimpleRange.html#toString--">toString</a></span>()</code>
-<div class="block">Provides a string representation of this media range, suitable for use as an <code>Accept</code> header value.</div>
-</td>
-</tr>
-</table>
-<ul class="blockList">
-<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
-<!-- -->
-</a>
-<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
-<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-ex
ternal=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
-</ul>
-</li>
-</ul>
-</li>
-</ul>
-</div>
-<div class="details">
-<ul class="blockList">
-<li class="blockList">
-<!-- ============ METHOD DETAIL ========== -->
-<ul class="blockList">
-<li class="blockList"><a name="method.detail">
-<!-- -->
-</a>
-<h3>Method Detail</h3>
-<a name="parse-java.lang.String-">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>parse</h4>
-<pre>public static <a href="../../../../org/apache/juneau/http/SimpleRange.html" title="class in org.apache.juneau.http">SimpleRange</a>[] <a href="../../../../src-html/org/apache/juneau/http/SimpleRange.html#line.62">parse</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</pre>
-<div class="block">Parses a header such as an <code>Accept-Encoding</code> header value into an array of type ranges.
- <p>
- The syntax expected to be found in the referenced <code>value</code> complies with the syntax described in RFC2616, Section 14.1, as described below:
- <p class='bcode'>
- Accept-Encoding = "Accept-Encoding" ":"
- 1#( codings [ ";" "q" "=" qvalue ] )
- codings = ( content-coding | "*" )
- </p>
- <p>
- Examples of its use are:
- <p class='bcode'>
- Accept-Encoding: compress, gzip
- Accept-Encoding:
- Accept-Encoding: *
- Accept-Encoding: compress;q=0.5, gzip;q=1.0
- Accept-Encoding: gzip;q=1.0, identity; q=0.5, *;q=0
- </p></div>
-<dl>
-<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>value</code> - The value to parse. If <jk>null</jk> or empty, returns a single <code>TypeRange</code> is returned that represents all types.</dd>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd>The type ranges described by the string.
- <br>The ranges are sorted such that the most acceptable type is available at ordinal position <js>'0'</js>, and the least acceptable at position n-1.</dd>
-</dl>
-</li>
-</ul>
-<a name="getType--">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>getType</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/http/SimpleRange.html#line.147">getType</a>()</pre>
-<div class="block">Returns the type enclosed by this type range.
-
- <h5 class='section'>Examples:</h5>
- <ul>
- <li><js>"compress"</js>
- <li><js>"gzip"</js>
- <li><js>"*"</js>
- </ul></div>
-<dl>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd>The type of this type range, lowercased, never <jk>null</jk>.</dd>
-</dl>
-</li>
-</ul>
-<a name="getQValue--">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>getQValue</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Float.html?is-external=true" title="class or interface in java.lang">Float</a> <a href="../../../../src-html/org/apache/juneau/http/SimpleRange.html#line.161">getQValue</a>()</pre>
-<div class="block">Returns the <js>'q'</js> (quality) value for this type, as described in Section 3.9 of RFC2616.
- <p>
- The quality value is a float between <code>0.0</code> (unacceptable) and <code>1.0</code> (most acceptable).
- <p>
- If 'q' value doesn't make sense for the context (e.g. this range was extracted from a <js>"content-*"</js> header, as opposed to <js>"accept-*"</js>
- header, its value will always be <js>"1"</js>.</div>
-<dl>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd>The 'q' value for this type, never <jk>null</jk>.</dd>
-</dl>
-</li>
-</ul>
-<a name="getExtensions--">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>getExtensions</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>>> <a href="../../../../src-html/org/apache/juneau/http/SimpleRange.html#line.172">getExtensions</a>()</pre>
-<div class="block">Returns the optional set of custom extensions defined for this type.
- <p>
- Values are lowercase and never <jk>null</jk>.</div>
-<dl>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd>The optional list of extensions, never <jk>null</jk>.</dd>
-</dl>
-</li>
-</ul>
-<a name="toString--">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>toString</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/http/SimpleRange.html#line.184">toString</a>()</pre>
-<div class="block">Provides a string representation of this media range, suitable for use as an <code>Accept</code> header value.
- <p>
- The literal text generated will be all lowercase.</div>
-<dl>
-<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
-<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a></code> in class <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd>A media range suitable for use as an Accept header value, never <code>null</code>.</dd>
-</dl>
-</li>
-</ul>
-<a name="equals-java.lang.Object-">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>equals</h4>
-<pre>public boolean <a href="../../../../src-html/org/apache/juneau/http/SimpleRange.html#line.214">equals</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> o)</pre>
-<div class="block">Returns <jk>true</jk> if the specified object is also a <code>MediaType</code>, and has the same qValue, type, parameters, and extensions.</div>
-<dl>
-<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
-<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a></code> in class <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd><jk>true</jk> if object is equivalent.</dd>
-</dl>
-</li>
-</ul>
-<a name="hashCode--">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>hashCode</h4>
-<pre>public int <a href="../../../../src-html/org/apache/juneau/http/SimpleRange.html#line.234">hashCode</a>()</pre>
-<div class="block">Returns a hash based on this instance's <code>media-type</code>.</div>
-<dl>
-<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
-<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a></code> in class <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd>A hash based on this instance's <code>media-type</code>.</dd>
-</dl>
-</li>
-</ul>
-<a name="compareTo-org.apache.juneau.http.SimpleRange-">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>compareTo</h4>
-<pre>public int <a href="../../../../src-html/org/apache/juneau/http/SimpleRange.html#line.249">compareTo</a>(<a href="../../../../org/apache/juneau/http/SimpleRange.html" title="class in org.apache.juneau.http">SimpleRange</a> o)</pre>
-<div class="block">Compares two MediaRanges for equality.
- <p>
- The values are first compared according to <code>qValue</code> values.
- Should those values be equal, the <code>type</code> is then lexicographically compared (case-insensitive) in ascending order,
- with the <js>"*"</js> type demoted last in that order.
- <code>TypeRanges</code> with the same types but with extensions are promoted over those same types with no extensions.</div>
-<dl>
-<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
-<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true#compareTo-T-" title="class or interface in java.lang">compareTo</a></code> in interface <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a><<a href="../../../../org/apache/juneau/http/SimpleRange.html" title="class in org.apache.juneau.http">SimpleRange</a>></code></dd>
-<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>o</code> - The range to compare to. Never <jk>null</jk>.</dd>
-</dl>
-</li>
-</ul>
-<a name="matches-java.lang.String-">
-<!-- -->
-</a>
-<ul class="blockListLast">
-<li class="blockList">
-<h4>matches</h4>
-<pre>public boolean <a href="../../../../src-html/org/apache/juneau/http/SimpleRange.html#line.271">matches</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> type)</pre>
-<div class="block">Checks if the specified type matches this range.
- <p>
- The type will match this range if the range type string is the same or <js>"*"</js>.</div>
-<dl>
-<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>type</code> - The type to match against this range.</dd>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd><jk>true</jk> if the specified type matches this range.</dd>
-</dl>
-</li>
-</ul>
-</li>
-</ul>
-</li>
-</ul>
-</div>
-</div>
-<!-- ========= END OF CLASS DATA ========= -->
-<!-- ======= START OF BOTTOM NAVBAR ====== -->
-<div class="bottomNav"><a name="navbar.bottom">
-<!-- -->
-</a>
-<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
-<a name="navbar.bottom.firstrow">
-<!-- -->
-</a>
-<ul class="navList" title="Navigation">
-<li><a href="../../../../overview-summary.html">Overview</a></li>
-<li><a href="package-summary.html">Package</a></li>
-<li class="navBarCell1Rev">Class</li>
-<li><a href="package-tree.html">Tree</a></li>
-<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
-<li><a href="../../../../index-all.html">Index</a></li>
-<li><a href="../../../../help-doc.html">Help</a></li>
-</ul>
-</div>
-<div class="subNav">
-<ul class="navList">
-<li><a href="../../../../org/apache/juneau/http/Server.html" title="class in org.apache.juneau.http"><span class="typeNameLink">Prev Class</span></a></li>
-<li><a href="../../../../org/apache/juneau/http/TE.html" title="class in org.apache.juneau.http"><span class="typeNameLink">Next Class</span></a></li>
-</ul>
-<ul class="navList">
-<li><a href="../../../../index.html?org/apache/juneau/http/SimpleRange.html" target="_top">Frames</a></li>
-<li><a href="SimpleRange.html" target="_top">No Frames</a></li>
-</ul>
-<ul class="navList" id="allclasses_navbar_bottom">
-<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
-</ul>
-<div>
-<script type="text/javascript"><!--
- allClassesLink = document.getElementById("allclasses_navbar_bottom");
- if(window==top) {
- allClassesLink.style.display = "block";
- }
- else {
- allClassesLink.style.display = "none";
- }
- //-->
-</script>
-</div>
-<div>
-<ul class="subNavList">
-<li>Summary: </li>
-<li>Nested | </li>
-<li>Field | </li>
-<li>Constr | </li>
-<li><a href="#method.summary">Method</a></li>
-</ul>
-<ul class="subNavList">
-<li>Detail: </li>
-<li>Field | </li>
-<li>Constr | </li>
-<li><a href="#method.detail">Method</a></li>
-</ul>
-</div>
-<a name="skip.navbar.bottom">
-<!-- -->
-</a></div>
-<!-- ======== END OF BOTTOM NAVBAR ======= -->
-<p class="legalCopy"><small>Copyright © 2017 <a href="http://www.apache.org/">Apache</a>. All rights reserved.</small></p>
-</body>
-</html>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/org/apache/juneau/http/TypeRange.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/org/apache/juneau/http/TypeRange.html b/content/site/apidocs/org/apache/juneau/http/TypeRange.html
deleted file mode 100644
index 6f5b19e..0000000
--- a/content/site/apidocs/org/apache/juneau/http/TypeRange.html
+++ /dev/null
@@ -1,468 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<!-- NewPage -->
-<html lang="en">
-<head>
-<!-- Generated by javadoc -->
-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-<title>TypeRange (Apache Juneau (incubating) 6.2.1-incubating-SNAPSHOT)</title>
-<link rel="stylesheet" type="text/css" href="../../../../javadoc.css" title="Style">
-<script type="text/javascript" src="../../../../script.js"></script>
-</head>
-<body>
-<script type="text/javascript"><!--
- try {
- if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="TypeRange (Apache Juneau (incubating) 6.2.1-incubating-SNAPSHOT)";
- }
- }
- catch(err) {
- }
-//-->
-var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":9,"i8":10};
-var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
-var altColor = "altColor";
-var rowColor = "rowColor";
-var tableTab = "tableTab";
-var activeTableTab = "activeTableTab";
-</script>
-<noscript>
-<div>JavaScript is disabled on your browser.</div>
-</noscript>
-<!-- ========= START OF TOP NAVBAR ======= -->
-<div class="topNav"><a name="navbar.top">
-<!-- -->
-</a>
-<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
-<a name="navbar.top.firstrow">
-<!-- -->
-</a>
-<ul class="navList" title="Navigation">
-<li><a href="../../../../overview-summary.html">Overview</a></li>
-<li><a href="package-summary.html">Package</a></li>
-<li class="navBarCell1Rev">Class</li>
-<li><a href="package-tree.html">Tree</a></li>
-<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
-<li><a href="../../../../index-all.html">Index</a></li>
-<li><a href="../../../../help-doc.html">Help</a></li>
-</ul>
-</div>
-<div class="subNav">
-<ul class="navList">
-<li><a href="../../../../org/apache/juneau/http/TransferEncoding.html" title="class in org.apache.juneau.http"><span class="typeNameLink">Prev Class</span></a></li>
-<li><a href="../../../../org/apache/juneau/http/Upgrade.html" title="class in org.apache.juneau.http"><span class="typeNameLink">Next Class</span></a></li>
-</ul>
-<ul class="navList">
-<li><a href="../../../../index.html?org/apache/juneau/http/TypeRange.html" target="_top">Frames</a></li>
-<li><a href="TypeRange.html" target="_top">No Frames</a></li>
-</ul>
-<ul class="navList" id="allclasses_navbar_top">
-<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
-</ul>
-<div>
-<script type="text/javascript"><!--
- allClassesLink = document.getElementById("allclasses_navbar_top");
- if(window==top) {
- allClassesLink.style.display = "block";
- }
- else {
- allClassesLink.style.display = "none";
- }
- //-->
-</script>
-</div>
-<div>
-<ul class="subNavList">
-<li>Summary: </li>
-<li>Nested | </li>
-<li>Field | </li>
-<li>Constr | </li>
-<li><a href="#method.summary">Method</a></li>
-</ul>
-<ul class="subNavList">
-<li>Detail: </li>
-<li>Field | </li>
-<li>Constr | </li>
-<li><a href="#method.detail">Method</a></li>
-</ul>
-</div>
-<a name="skip.navbar.top">
-<!-- -->
-</a></div>
-<!-- ========= END OF TOP NAVBAR ========= -->
-<!-- ======== START OF CLASS DATA ======== -->
-<div class="header">
-<div class="subTitle">org.apache.juneau.http</div>
-<h2 title="Class TypeRange" class="title">Class TypeRange</h2>
-</div>
-<div class="contentContainer">
-<ul class="inheritance">
-<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
-<li>
-<ul class="inheritance">
-<li>org.apache.juneau.http.TypeRange</li>
-</ul>
-</li>
-</ul>
-<div class="description">
-<ul class="blockList">
-<li class="blockList">
-<dl>
-<dt>All Implemented Interfaces:</dt>
-<dd><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a><<a href="../../../../org/apache/juneau/http/TypeRange.html" title="class in org.apache.juneau.http">TypeRange</a>></dd>
-</dl>
-<hr>
-<br>
-<pre><a href="../../../../org/apache/juneau/annotation/BeanIgnore.html" title="annotation in org.apache.juneau.annotation">@BeanIgnore</a>
-public final class <a href="../../../../src-html/org/apache/juneau/http/TypeRange.html#line.31">TypeRange</a>
-extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
-implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a><<a href="../../../../org/apache/juneau/http/TypeRange.html" title="class in org.apache.juneau.http">TypeRange</a>></pre>
-<div class="block">Represents a single value in a comma-delimited header value that optionally contains a quality
- metric for comparison and extension parameters.
- <p>
- Similar in concept to <a href="../../../../org/apache/juneau/http/MediaTypeRange.html" title="class in org.apache.juneau.http"><code>MediaTypeRange</code></a> except instead of media types (e.g. <js>"text/json"</js>),
- it's a simple type (e.g. <js>"iso-8601"</js>).
- <p>
- An example of a type range is a value in an <code>Accept-Encoding</code> header.</div>
-</li>
-</ul>
-</div>
-<div class="summary">
-<ul class="blockList">
-<li class="blockList">
-<!-- ========== METHOD SUMMARY =========== -->
-<ul class="blockList">
-<li class="blockList"><a name="method.summary">
-<!-- -->
-</a>
-<h3>Method Summary</h3>
-<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
-<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
-<tr>
-<th class="colFirst" scope="col">Modifier and Type</th>
-<th class="colLast" scope="col">Method and Description</th>
-</tr>
-<tr id="i0" class="altColor">
-<td class="colFirst"><code>int</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/TypeRange.html#compareTo-org.apache.juneau.http.TypeRange-">compareTo</a></span>(<a href="../../../../org/apache/juneau/http/TypeRange.html" title="class in org.apache.juneau.http">TypeRange</a> o)</code>
-<div class="block">Compares two MediaRanges for equality.</div>
-</td>
-</tr>
-<tr id="i1" class="rowColor">
-<td class="colFirst"><code>boolean</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/TypeRange.html#equals-java.lang.Object-">equals</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> o)</code>
-<div class="block">Returns <jk>true</jk> if the specified object is also a <code>MediaType</code>, and has the same qValue, type, parameters, and extensions.</div>
-</td>
-</tr>
-<tr id="i2" class="altColor">
-<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>>></code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/TypeRange.html#getExtensions--">getExtensions</a></span>()</code>
-<div class="block">Returns the optional set of custom extensions defined for this type.</div>
-</td>
-</tr>
-<tr id="i3" class="rowColor">
-<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Float.html?is-external=true" title="class or interface in java.lang">Float</a></code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/TypeRange.html#getQValue--">getQValue</a></span>()</code>
-<div class="block">Returns the <js>'q'</js> (quality) value for this type, as described in Section 3.9 of RFC2616.</div>
-</td>
-</tr>
-<tr id="i4" class="altColor">
-<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/TypeRange.html#getType--">getType</a></span>()</code>
-<div class="block">Returns the type enclosed by this type range.</div>
-</td>
-</tr>
-<tr id="i5" class="rowColor">
-<td class="colFirst"><code>int</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/TypeRange.html#hashCode--">hashCode</a></span>()</code>
-<div class="block">Returns a hash based on this instance's <code>media-type</code>.</div>
-</td>
-</tr>
-<tr id="i6" class="altColor">
-<td class="colFirst"><code>boolean</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/TypeRange.html#matches-java.lang.String-">matches</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> type)</code>
-<div class="block">Checks if the specified type matches this range.</div>
-</td>
-</tr>
-<tr id="i7" class="rowColor">
-<td class="colFirst"><code>static <a href="../../../../org/apache/juneau/http/TypeRange.html" title="class in org.apache.juneau.http">TypeRange</a>[]</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/TypeRange.html#parse-java.lang.String-">parse</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</code>
-<div class="block">Parses a header such as an <code>Accept-Encoding</code> header value into an array of type ranges.</div>
-</td>
-</tr>
-<tr id="i8" class="altColor">
-<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/TypeRange.html#toString--">toString</a></span>()</code>
-<div class="block">Provides a string representation of this media range, suitable for use as an <code>Accept</code> header value.</div>
-</td>
-</tr>
-</table>
-<ul class="blockList">
-<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
-<!-- -->
-</a>
-<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
-<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-ex
ternal=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
-</ul>
-</li>
-</ul>
-</li>
-</ul>
-</div>
-<div class="details">
-<ul class="blockList">
-<li class="blockList">
-<!-- ============ METHOD DETAIL ========== -->
-<ul class="blockList">
-<li class="blockList"><a name="method.detail">
-<!-- -->
-</a>
-<h3>Method Detail</h3>
-<a name="parse-java.lang.String-">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>parse</h4>
-<pre>public static <a href="../../../../org/apache/juneau/http/TypeRange.html" title="class in org.apache.juneau.http">TypeRange</a>[] <a href="../../../../src-html/org/apache/juneau/http/TypeRange.html#line.62">parse</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</pre>
-<div class="block">Parses a header such as an <code>Accept-Encoding</code> header value into an array of type ranges.
- <p>
- The syntax expected to be found in the referenced <code>value</code> complies with the syntax described in RFC2616, Section 14.1, as described below:
- <p class='bcode'>
- Accept-Encoding = "Accept-Encoding" ":"
- 1#( codings [ ";" "q" "=" qvalue ] )
- codings = ( content-coding | "*" )
- </p>
- <p>
- Examples of its use are:
- <p class='bcode'>
- Accept-Encoding: compress, gzip
- Accept-Encoding:
- Accept-Encoding: *
- Accept-Encoding: compress;q=0.5, gzip;q=1.0
- Accept-Encoding: gzip;q=1.0, identity; q=0.5, *;q=0
- </p></div>
-<dl>
-<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>value</code> - The value to parse. If <jk>null</jk> or empty, returns a single <code>TypeRange</code> is returned that represents all types.</dd>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd>The type ranges described by the string.
- <br>The ranges are sorted such that the most acceptable type is available at ordinal position <js>'0'</js>, and the least acceptable at position n-1.</dd>
-</dl>
-</li>
-</ul>
-<a name="getType--">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>getType</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/http/TypeRange.html#line.147">getType</a>()</pre>
-<div class="block">Returns the type enclosed by this type range.
-
- <h5 class='section'>Examples:</h5>
- <ul>
- <li><js>"compress"</js>
- <li><js>"gzip"</js>
- <li><js>"*"</js>
- </ul></div>
-<dl>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd>The type of this type range, lowercased, never <jk>null</jk>.</dd>
-</dl>
-</li>
-</ul>
-<a name="getQValue--">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>getQValue</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Float.html?is-external=true" title="class or interface in java.lang">Float</a> <a href="../../../../src-html/org/apache/juneau/http/TypeRange.html#line.161">getQValue</a>()</pre>
-<div class="block">Returns the <js>'q'</js> (quality) value for this type, as described in Section 3.9 of RFC2616.
- <p>
- The quality value is a float between <code>0.0</code> (unacceptable) and <code>1.0</code> (most acceptable).
- <p>
- If 'q' value doesn't make sense for the context (e.g. this range was extracted from a <js>"content-*"</js> header, as opposed to <js>"accept-*"</js>
- header, its value will always be <js>"1"</js>.</div>
-<dl>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd>The 'q' value for this type, never <jk>null</jk>.</dd>
-</dl>
-</li>
-</ul>
-<a name="getExtensions--">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>getExtensions</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>>> <a href="../../../../src-html/org/apache/juneau/http/TypeRange.html#line.172">getExtensions</a>()</pre>
-<div class="block">Returns the optional set of custom extensions defined for this type.
- <p>
- Values are lowercase and never <jk>null</jk>.</div>
-<dl>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd>The optional list of extensions, never <jk>null</jk>.</dd>
-</dl>
-</li>
-</ul>
-<a name="toString--">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>toString</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/http/TypeRange.html#line.184">toString</a>()</pre>
-<div class="block">Provides a string representation of this media range, suitable for use as an <code>Accept</code> header value.
- <p>
- The literal text generated will be all lowercase.</div>
-<dl>
-<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
-<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a></code> in class <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd>A media range suitable for use as an Accept header value, never <code>null</code>.</dd>
-</dl>
-</li>
-</ul>
-<a name="equals-java.lang.Object-">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>equals</h4>
-<pre>public boolean <a href="../../../../src-html/org/apache/juneau/http/TypeRange.html#line.214">equals</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> o)</pre>
-<div class="block">Returns <jk>true</jk> if the specified object is also a <code>MediaType</code>, and has the same qValue, type, parameters, and extensions.</div>
-<dl>
-<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
-<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a></code> in class <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd><jk>true</jk> if object is equivalent.</dd>
-</dl>
-</li>
-</ul>
-<a name="hashCode--">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>hashCode</h4>
-<pre>public int <a href="../../../../src-html/org/apache/juneau/http/TypeRange.html#line.234">hashCode</a>()</pre>
-<div class="block">Returns a hash based on this instance's <code>media-type</code>.</div>
-<dl>
-<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
-<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a></code> in class <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd>A hash based on this instance's <code>media-type</code>.</dd>
-</dl>
-</li>
-</ul>
-<a name="compareTo-org.apache.juneau.http.TypeRange-">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>compareTo</h4>
-<pre>public int <a href="../../../../src-html/org/apache/juneau/http/TypeRange.html#line.249">compareTo</a>(<a href="../../../../org/apache/juneau/http/TypeRange.html" title="class in org.apache.juneau.http">TypeRange</a> o)</pre>
-<div class="block">Compares two MediaRanges for equality.
- <p>
- The values are first compared according to <code>qValue</code> values.
- Should those values be equal, the <code>type</code> is then lexicographically compared (case-insensitive) in ascending order,
- with the <js>"*"</js> type demoted last in that order.
- <code>TypeRanges</code> with the same types but with extensions are promoted over those same types with no extensions.</div>
-<dl>
-<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
-<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true#compareTo-T-" title="class or interface in java.lang">compareTo</a></code> in interface <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a><<a href="../../../../org/apache/juneau/http/TypeRange.html" title="class in org.apache.juneau.http">TypeRange</a>></code></dd>
-<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>o</code> - The range to compare to. Never <jk>null</jk>.</dd>
-</dl>
-</li>
-</ul>
-<a name="matches-java.lang.String-">
-<!-- -->
-</a>
-<ul class="blockListLast">
-<li class="blockList">
-<h4>matches</h4>
-<pre>public boolean <a href="../../../../src-html/org/apache/juneau/http/TypeRange.html#line.271">matches</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> type)</pre>
-<div class="block">Checks if the specified type matches this range.
- <p>
- The type will match this range if the range type string is the same or <js>"*"</js>.</div>
-<dl>
-<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>type</code> - The type to match against this range.</dd>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd><jk>true</jk> if the specified type matches this range.</dd>
-</dl>
-</li>
-</ul>
-</li>
-</ul>
-</li>
-</ul>
-</div>
-</div>
-<!-- ========= END OF CLASS DATA ========= -->
-<!-- ======= START OF BOTTOM NAVBAR ====== -->
-<div class="bottomNav"><a name="navbar.bottom">
-<!-- -->
-</a>
-<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
-<a name="navbar.bottom.firstrow">
-<!-- -->
-</a>
-<ul class="navList" title="Navigation">
-<li><a href="../../../../overview-summary.html">Overview</a></li>
-<li><a href="package-summary.html">Package</a></li>
-<li class="navBarCell1Rev">Class</li>
-<li><a href="package-tree.html">Tree</a></li>
-<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
-<li><a href="../../../../index-all.html">Index</a></li>
-<li><a href="../../../../help-doc.html">Help</a></li>
-</ul>
-</div>
-<div class="subNav">
-<ul class="navList">
-<li><a href="../../../../org/apache/juneau/http/TransferEncoding.html" title="class in org.apache.juneau.http"><span class="typeNameLink">Prev Class</span></a></li>
-<li><a href="../../../../org/apache/juneau/http/Upgrade.html" title="class in org.apache.juneau.http"><span class="typeNameLink">Next Class</span></a></li>
-</ul>
-<ul class="navList">
-<li><a href="../../../../index.html?org/apache/juneau/http/TypeRange.html" target="_top">Frames</a></li>
-<li><a href="TypeRange.html" target="_top">No Frames</a></li>
-</ul>
-<ul class="navList" id="allclasses_navbar_bottom">
-<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
-</ul>
-<div>
-<script type="text/javascript"><!--
- allClassesLink = document.getElementById("allclasses_navbar_bottom");
- if(window==top) {
- allClassesLink.style.display = "block";
- }
- else {
- allClassesLink.style.display = "none";
- }
- //-->
-</script>
-</div>
-<div>
-<ul class="subNavList">
-<li>Summary: </li>
-<li>Nested | </li>
-<li>Field | </li>
-<li>Constr | </li>
-<li><a href="#method.summary">Method</a></li>
-</ul>
-<ul class="subNavList">
-<li>Detail: </li>
-<li>Field | </li>
-<li>Constr | </li>
-<li><a href="#method.detail">Method</a></li>
-</ul>
-</div>
-<a name="skip.navbar.bottom">
-<!-- -->
-</a></div>
-<!-- ======== END OF BOTTOM NAVBAR ======= -->
-<p class="legalCopy"><small>Copyright © 2017 <a href="http://www.apache.org/">Apache</a>. All rights reserved.</small></p>
-</body>
-</html>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/org/apache/juneau/microservice/package-summary.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/org/apache/juneau/microservice/package-summary.html b/content/site/apidocs/org/apache/juneau/microservice/package-summary.html
index 591c791..bc68f93 100644
--- a/content/site/apidocs/org/apache/juneau/microservice/package-summary.html
+++ b/content/site/apidocs/org/apache/juneau/microservice/package-summary.html
@@ -739,14 +739,14 @@
<ul>
<li><l>$R{attribute.X}</l> - Value returned by <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletRequestWrapper.html?is-external=true#getAttribute-java.lang.String-" title="class or interface in javax.servlet"><code>ServletRequestWrapper.getAttribute(String)</code></a> converted to a string.
<li><l>$R{contextPath}</l> - Value returned by <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServletRequestWrapper.html?is-external=true#getContextPath--" title="class or interface in javax.servlet.http"><code>HttpServletRequestWrapper.getContextPath()</code></a>.
- <li><l>$R{formData.X}</l> - Value returned by <a href="../../../../org/apache/juneau/rest/RestRequest.html#getFormData-java.lang.String-"><code>RestRequest.getFormData(String)</code></a>.
- <li><l>$R{header.X}</l> - Value returned by <a href="../../../../org/apache/juneau/rest/RestRequest.html#getHeader-java.lang.String-"><code>RestRequest.getHeader(String)</code></a>.
+ <li><l>$R{formData.X}</l> - Value returned by <a href="../../../../org/apache/juneau/rest/RequestFormData.html#getFirst-java.lang.String-"><code>RequestFormData.getFirst(String)</code></a>.
+ <li><l>$R{header.X}</l> - Value returned by <a href="../../../../org/apache/juneau/rest/RequestHeaders.html#getFirst-java.lang.String-"><code>RequestHeaders.getFirst(String)</code></a>.
<li><l>$R{method}</l> - Value returned by <a href="../../../../org/apache/juneau/rest/RestRequest.html#getMethod--"><code>RestRequest.getMethod()</code></a>.
<li><l>$R{methodSummary}</l> - Value returned by <a href="../../../../org/apache/juneau/rest/RestRequest.html#getMethodSummary--"><code>RestRequest.getMethodSummary()</code></a>.
<li><l>$R{methodDescription}</l> - Value returned by <a href="../../../../org/apache/juneau/rest/RestRequest.html#getMethodDescription--"><code>RestRequest.getMethodDescription()</code></a>.
- <li><l>$R{path.X}</l> - Value returned by <a href="../../../../org/apache/juneau/rest/RestRequest.html#getPathParameter-java.lang.String-"><code>RestRequest.getPathParameter(String)</code></a>.
+ <li><l>$R{path.X}</l> - Value returned by <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#get-java.lang.Object-" title="class or interface in java.util"><code>TreeMap.get(Object)</code></a>.
<li><l>$R{pathInfo}</l> - Value returned by <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServletRequestWrapper.html?is-external=true#getPathInfo--" title="class or interface in javax.servlet.http"><code>HttpServletRequestWrapper.getPathInfo()</code></a>.
- <li><l>$R{query.X}</l> - Value returned by <a href="../../../../org/apache/juneau/rest/RestRequest.html#getQuery-java.lang.String-"><code>RestRequest.getQuery(String)</code></a>.
+ <li><l>$R{query.X}</l> - Value returned by <a href="../../../../org/apache/juneau/rest/RequestQuery.html#getFirst-java.lang.String-"><code>RequestQuery.getFirst(String)</code></a>.
<li><l>$R{requestParentURI}</l> - Value returned by <a href="../../../../org/apache/juneau/rest/RestRequest.html#getRequestParentURI--"><code>RestRequest.getRequestParentURI()</code></a>.
<li><l>$R{requestURI}</l> - Value returned by <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServletRequestWrapper.html?is-external=true#getRequestURI--" title="class or interface in javax.servlet.http"><code>HttpServletRequestWrapper.getRequestURI()</code></a>.
<li><l>$R{servletDescription}</l> - Value returned by <a href="../../../../org/apache/juneau/rest/RestRequest.html#getServletDescription--"><code>RestRequest.getServletDescription()</code></a>.
[13/15] incubator-juneau-website git commit: Update javadocs.
Posted by ja...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/org/apache/juneau/rest/RequestBody.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/org/apache/juneau/rest/RequestBody.html b/content/site/apidocs/org/apache/juneau/rest/RequestBody.html
index ccb5625..501f620 100644
--- a/content/site/apidocs/org/apache/juneau/rest/RequestBody.html
+++ b/content/site/apidocs/org/apache/juneau/rest/RequestBody.html
@@ -229,10 +229,10 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?
<a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre>
<div class="block">Reads the input from the HTTP request as JSON, XML, or HTML and converts the input to a POJO.
<p>
- If <code>allowHeaderParams</code> init parameter is <jk>true</jk>, then first looks for <code>&body=xxx</code> in the URL
+ If <code>allowHeaderParams</code> init parameter is <jk>true</jk>, then first looks for <code>&body=xxx</code> in the URL
query string.
<p>
- If type is <jk>null</jk> or <code>Object.<jk>class</jk></code>, then the actual type will be determined
+ If type is <jk>null</jk> or <code>Object.<jk>class</jk></code>, then the actual type will be determined
automatically based on the following input:
<table class='styled'>
<tr><th>Type</th><th>JSON input</th><th>XML input</th><th>Return type</th></tr>
@@ -274,25 +274,25 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?
</tr>
</table>
<p>
- Refer to <a class="doclink" href="../../../../overview-summary.html#Core.PojoCategories">POJO Categories</a> for
+ Refer to <a class="doclink" href="../../../../overview-summary.html#Core.PojoCategories">POJO Categories</a> for
a complete definition of supported POJOs.
<p>
<h5 class='section'>Examples:</h5>
<p class='bcode'>
<jc>// Parse into an integer.</jc>
- <jk>int</jk> body = req.getBody(<jk>int</jk>.<jk>class</jk>);
+ <jk>int</jk> body = req.getBody().asType(<jk>int</jk>.<jk>class</jk>);
<jc>// Parse into an int array.</jc>
- <jk>int</jk>[] body = req.getBody(<jk>int</jk>[].<jk>class</jk>);
+ <jk>int</jk>[] body = req.getBody().asType(<jk>int</jk>[].<jk>class</jk>);
<jc>// Parse into a bean.</jc>
- MyBean body = req.getBody(MyBean.<jk>class</jk>);
+ MyBean body = req.getBody().asType(MyBean.<jk>class</jk>);
<jc>// Parse into a linked-list of objects.</jc>
- List body = req.getBody(LinkedList.<jk>class</jk>);
+ List body = req.getBody().asType(LinkedList.<jk>class</jk>);
<jc>// Parse into a map of object keys/values.</jc>
- Map body = req.getBody(TreeMap.<jk>class</jk>);
+ Map body = req.getBody().asType(TreeMap.<jk>class</jk>);
</p></div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
@@ -303,7 +303,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?
<dd>The input parsed to a POJO.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If a problem occurred trying to read from the reader.</dd>
-<dd><code><a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></code> - If the input contains a syntax error or is malformed for the requested <code>Accept</code>
+<dd><code><a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></code> - If the input contains a syntax error or is malformed for the requested <code>Accept</code>
header or is not valid for the specified type.</dd>
</dl>
</li>
@@ -321,26 +321,26 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?
<h5 class='section'>Examples:</h5>
<p class='bcode'>
<jc>// Parse into a linked-list of strings.</jc>
- List<String> body = req.getBody(LinkedList.<jk>class</jk>, String.<jk>class</jk>);
+ List<String> body = req.getBody().asType(LinkedList.<jk>class</jk>, String.<jk>class</jk>);
<jc>// Parse into a linked-list of linked-lists of strings.</jc>
- List<List<String>> body = req.getBody(LinkedList.<jk>class</jk>, LinkedList.<jk>class</jk>, String.<jk>class</jk>);
+ List<List<String>> body = req.getBody().asType(LinkedList.<jk>class</jk>, LinkedList.<jk>class</jk>, String.<jk>class</jk>);
<jc>// Parse into a map of string keys/values.</jc>
- Map<String,String> body = req.getBody(TreeMap.<jk>class</jk>, String.<jk>class</jk>, String.<jk>class</jk>);
+ Map<String,String> body = req.getBody().asType(TreeMap.<jk>class</jk>, String.<jk>class</jk>, String.<jk>class</jk>);
<jc>// Parse into a map containing string keys and values of lists containing beans.</jc>
- Map<String,List<MyBean>> body = req.getBody(TreeMap.<jk>class</jk>, String.<jk>class</jk>, List.<jk>class</jk>, MyBean.<jk>class</jk>);
+ Map<String,List<MyBean>> body = req.getBody().asType(TreeMap.<jk>class</jk>, String.<jk>class</jk>, List.<jk>class</jk>, MyBean.<jk>class</jk>);
</p></div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - The class type to instantiate.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - The type of object to create.
- <br>Can be any of the following: <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau"><code>ClassMeta</code></a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang"><code>Class</code></a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/ParameterizedType.html?is-external=true" title="class or interface in java.lang.reflect"><code>ParameterizedType</code></a>,
+ <br>Can be any of the following: <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau"><code>ClassMeta</code></a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang"><code>Class</code></a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/ParameterizedType.html?is-external=true" title="class or interface in java.lang.reflect"><code>ParameterizedType</code></a>,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/GenericArrayType.html?is-external=true" title="class or interface in java.lang.reflect"><code>GenericArrayType</code></a></dd>
<dd><code>args</code> - The type arguments of the class if it's a collection or map.
- <br>Can be any of the following: <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau"><code>ClassMeta</code></a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang"><code>Class</code></a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/ParameterizedType.html?is-external=true" title="class or interface in java.lang.reflect"><code>ParameterizedType</code></a>,
+ <br>Can be any of the following: <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau"><code>ClassMeta</code></a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang"><code>Class</code></a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/ParameterizedType.html?is-external=true" title="class or interface in java.lang.reflect"><code>ParameterizedType</code></a>,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/GenericArrayType.html?is-external=true" title="class or interface in java.lang.reflect"><code>GenericArrayType</code></a>
<br>Ignored if the main type is not a map or collection.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -358,7 +358,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Returns the HTTP body content as a plain string.
<p>
- If <code>allowHeaderParams</code> init parameter is true, then first looks for <code>&body=xxx</code> in the URL query
+ If <code>allowHeaderParams</code> init parameter is true, then first looks for <code>&body=xxx</code> in the URL query
string.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -395,7 +395,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Returns the HTTP body content as a <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io"><code>Reader</code></a>.
<p>
- If <code>allowHeaderParams</code> init parameter is true, then first looks for <code>&body=xxx</code> in the URL query
+ If <code>allowHeaderParams</code> init parameter is true, then first looks for <code>&body=xxx</code> in the URL query
string.
<p>
Automatically handles GZipped input streams.</div>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/org/apache/juneau/rest/RequestFormData.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/org/apache/juneau/rest/RequestFormData.html b/content/site/apidocs/org/apache/juneau/rest/RequestFormData.html
index 94b1bfe..0fb6ae1 100644
--- a/content/site/apidocs/org/apache/juneau/rest/RequestFormData.html
+++ b/content/site/apidocs/org/apache/juneau/rest/RequestFormData.html
@@ -18,7 +18,7 @@
catch(err) {
}
//-->
-var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10};
+var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
@@ -185,6 +185,12 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
+<td class="colFirst"><code><a href="../../../../org/apache/juneau/rest/RequestFormData.html" title="class in org.apache.juneau.rest">RequestFormData</a></code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestFormData.html#addDefault-java.util.Map-">addDefault</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> defaultEntries)</code>
+<div class="block">Adds default entries to these form-data parameters.</div>
+</td>
+</tr>
+<tr id="i1" class="rowColor">
<td class="colFirst"><code><T> T</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestFormData.html#get-java.lang.String-java.lang.Class-">get</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type)</code>
@@ -192,7 +198,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa
<a href="../../../../org/apache/juneau/urlencoding/UrlEncodingParser.html" title="class in org.apache.juneau.urlencoding"><code>UrlEncodingParser</code></a> registered with this servlet.</div>
</td>
</tr>
-<tr id="i1" class="rowColor">
+<tr id="i2" class="altColor">
<td class="colFirst"><code><T> T</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestFormData.html#get-java.lang.String-T-java.lang.Class-">get</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
T def,
@@ -200,7 +206,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestFormData.html#get-java.lang.String-java.lang.Class-"><code>get(String, Class)</code></a> except returns a default value if not specified.</div>
</td>
</tr>
-<tr id="i2" class="altColor">
+<tr id="i3" class="rowColor">
<td class="colFirst"><code><T> T</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestFormData.html#get-java.lang.String-java.lang.reflect.Type-java.lang.reflect.Type...-">get</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> type,
@@ -209,7 +215,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa
<a href="../../../../org/apache/juneau/urlencoding/UrlEncodingParser.html" title="class in org.apache.juneau.urlencoding"><code>UrlEncodingParser</code></a> registered with this servlet.</div>
</td>
</tr>
-<tr id="i3" class="rowColor">
+<tr id="i4" class="altColor">
<td class="colFirst"><code><T> T</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestFormData.html#getAll-java.lang.String-java.lang.Class-">getAll</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type)</code>
@@ -217,7 +223,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa
(e.g.</div>
</td>
</tr>
-<tr id="i4" class="altColor">
+<tr id="i5" class="rowColor">
<td class="colFirst"><code><T> T</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestFormData.html#getAll-java.lang.String-java.lang.reflect.Type-java.lang.reflect.Type...-">getAll</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> type,
@@ -226,20 +232,20 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa
(e.g.</div>
</td>
</tr>
-<tr id="i5" class="rowColor">
+<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestFormData.html#getFirst-java.lang.String-">getFirst</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</code>
<div class="block">Returns a form data parameter value.</div>
</td>
</tr>
-<tr id="i6" class="altColor">
+<tr id="i7" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestFormData.html#getFirst-java.lang.String-java.lang.String-">getFirst</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> def)</code>
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestFormData.html#getFirst-java.lang.String-"><code>getFirst(String)</code></a> except returns a default value if <jk>null</jk> or empty.</div>
</td>
</tr>
-<tr id="i7" class="rowColor">
+<tr id="i8" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestFormData.html#put-java.lang.String-java.lang.Object-">put</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
@@ -313,13 +319,31 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa
<!-- -->
</a>
<h3>Method Detail</h3>
+<a name="addDefault-java.util.Map-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>addDefault</h4>
+<pre>public <a href="../../../../org/apache/juneau/rest/RequestFormData.html" title="class in org.apache.juneau.rest">RequestFormData</a> <a href="../../../../src-html/org/apache/juneau/rest/RequestFormData.html#line.51">addDefault</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> defaultEntries)</pre>
+<div class="block">Adds default entries to these form-data parameters.
+ <p>
+ This includes the default form-data parameters defined on the servlet and method levels.</div>
+<dl>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>defaultEntries</code> - The default entries. Can be <jk>null</jk>.</dd>
+<dt><span class="returnLabel">Returns:</span></dt>
+<dd>This object (for method chaining).</dd>
+</dl>
+</li>
+</ul>
<a name="put-java.lang.String-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
-<pre>public void <a href="../../../../src-html/org/apache/juneau/rest/RequestFormData.html#line.49">put</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
+<pre>public void <a href="../../../../src-html/org/apache/juneau/rest/RequestFormData.html#line.69">put</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</pre>
<div class="block">Sets a request form data parameter value.</div>
<dl>
@@ -335,7 +359,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa
<ul class="blockList">
<li class="blockList">
<h4>getFirst</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RequestFormData.html#line.74">getFirst</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre>
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RequestFormData.html#line.94">getFirst</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre>
<div class="block">Returns a form data parameter value.
<p>
Parameter lookup is case-insensitive (consistent with WAS, but differs from Tomcat).
@@ -366,7 +390,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa
<ul class="blockList">
<li class="blockList">
<h4>getFirst</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RequestFormData.html#line.95">getFirst</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RequestFormData.html#line.115">getFirst</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> def)</pre>
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestFormData.html#getFirst-java.lang.String-"><code>getFirst(String)</code></a> except returns a default value if <jk>null</jk> or empty.</div>
<dl>
@@ -384,7 +408,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
-<pre>public <T> T <a href="../../../../src-html/org/apache/juneau/rest/RequestFormData.html#line.135">get</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
+<pre>public <T> T <a href="../../../../src-html/org/apache/juneau/rest/RequestFormData.html#line.155">get</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type)
throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre>
<div class="block">Returns the specified form data parameter value converted to a POJO using the
@@ -433,7 +457,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
-<pre>public <T> T <a href="../../../../src-html/org/apache/juneau/rest/RequestFormData.html#line.149">get</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
+<pre>public <T> T <a href="../../../../src-html/org/apache/juneau/rest/RequestFormData.html#line.169">get</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
T def,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type)
throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre>
@@ -458,7 +482,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa
<ul class="blockList">
<li class="blockList">
<h4>getAll</h4>
-<pre>public <T> T <a href="../../../../src-html/org/apache/juneau/rest/RequestFormData.html#line.164">getAll</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
+<pre>public <T> T <a href="../../../../src-html/org/apache/juneau/rest/RequestFormData.html#line.184">getAll</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type)
throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre>
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestFormData.html#get-java.lang.String-java.lang.Class-"><code>get(String, Class)</code></a> except for use on multi-part parameters
@@ -482,7 +506,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
-<pre>public <T> T <a href="../../../../src-html/org/apache/juneau/rest/RequestFormData.html#line.202">get</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
+<pre>public <T> T <a href="../../../../src-html/org/apache/juneau/rest/RequestFormData.html#line.222">get</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> type,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>... args)
throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre>
@@ -530,7 +554,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa
<ul class="blockListLast">
<li class="blockList">
<h4>getAll</h4>
-<pre>public <T> T <a href="../../../../src-html/org/apache/juneau/rest/RequestFormData.html#line.221">getAll</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
+<pre>public <T> T <a href="../../../../src-html/org/apache/juneau/rest/RequestFormData.html#line.241">getAll</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> type,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>... args)
throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/org/apache/juneau/rest/RequestHeaders.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/org/apache/juneau/rest/RequestHeaders.html b/content/site/apidocs/org/apache/juneau/rest/RequestHeaders.html
index 319426d..52bb2d1 100644
--- a/content/site/apidocs/org/apache/juneau/rest/RequestHeaders.html
+++ b/content/site/apidocs/org/apache/juneau/rest/RequestHeaders.html
@@ -49,7 +49,7 @@ var activeTableTab = "activeTableTab";
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/apache/juneau/rest/RequestFormData.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">Prev Class</span></a></li>
-<li><a href="../../../../org/apache/juneau/rest/RequestPathParams.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">Next Class</span></a></li>
+<li><a href="../../../../org/apache/juneau/rest/RequestPathMatch.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/juneau/rest/RequestHeaders.html" target="_top">Frames</a></li>
@@ -1259,7 +1259,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/apache/juneau/rest/RequestFormData.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">Prev Class</span></a></li>
-<li><a href="../../../../org/apache/juneau/rest/RequestPathParams.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">Next Class</span></a></li>
+<li><a href="../../../../org/apache/juneau/rest/RequestPathMatch.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/juneau/rest/RequestHeaders.html" target="_top">Frames</a></li>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/org/apache/juneau/rest/RequestPathMatch.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/org/apache/juneau/rest/RequestPathMatch.html b/content/site/apidocs/org/apache/juneau/rest/RequestPathMatch.html
new file mode 100644
index 0000000..2919730
--- /dev/null
+++ b/content/site/apidocs/org/apache/juneau/rest/RequestPathMatch.html
@@ -0,0 +1,498 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!-- NewPage -->
+<html lang="en">
+<head>
+<!-- Generated by javadoc -->
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>RequestPathMatch (Apache Juneau (incubating) 6.2.1-incubating-SNAPSHOT)</title>
+<link rel="stylesheet" type="text/css" href="../../../../javadoc.css" title="Style">
+<script type="text/javascript" src="../../../../script.js"></script>
+</head>
+<body>
+<script type="text/javascript"><!--
+ try {
+ if (location.href.indexOf('is-external=true') == -1) {
+ parent.document.title="RequestPathMatch (Apache Juneau (incubating) 6.2.1-incubating-SNAPSHOT)";
+ }
+ }
+ catch(err) {
+ }
+//-->
+var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10};
+var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
+var altColor = "altColor";
+var rowColor = "rowColor";
+var tableTab = "tableTab";
+var activeTableTab = "activeTableTab";
+</script>
+<noscript>
+<div>JavaScript is disabled on your browser.</div>
+</noscript>
+<!-- ========= START OF TOP NAVBAR ======= -->
+<div class="topNav"><a name="navbar.top">
+<!-- -->
+</a>
+<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
+<a name="navbar.top.firstrow">
+<!-- -->
+</a>
+<ul class="navList" title="Navigation">
+<li><a href="../../../../overview-summary.html">Overview</a></li>
+<li><a href="package-summary.html">Package</a></li>
+<li class="navBarCell1Rev">Class</li>
+<li><a href="package-tree.html">Tree</a></li>
+<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
+<li><a href="../../../../index-all.html">Index</a></li>
+<li><a href="../../../../help-doc.html">Help</a></li>
+</ul>
+</div>
+<div class="subNav">
+<ul class="navList">
+<li><a href="../../../../org/apache/juneau/rest/RequestHeaders.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">Prev Class</span></a></li>
+<li><a href="../../../../org/apache/juneau/rest/RequestQuery.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">Next Class</span></a></li>
+</ul>
+<ul class="navList">
+<li><a href="../../../../index.html?org/apache/juneau/rest/RequestPathMatch.html" target="_top">Frames</a></li>
+<li><a href="RequestPathMatch.html" target="_top">No Frames</a></li>
+</ul>
+<ul class="navList" id="allclasses_navbar_top">
+<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
+</ul>
+<div>
+<script type="text/javascript"><!--
+ allClassesLink = document.getElementById("allclasses_navbar_top");
+ if(window==top) {
+ allClassesLink.style.display = "block";
+ }
+ else {
+ allClassesLink.style.display = "none";
+ }
+ //-->
+</script>
+</div>
+<div>
+<ul class="subNavList">
+<li>Summary: </li>
+<li><a href="#nested.classes.inherited.from.class.java.util.AbstractMap">Nested</a> | </li>
+<li>Field | </li>
+<li>Constr | </li>
+<li><a href="#method.summary">Method</a></li>
+</ul>
+<ul class="subNavList">
+<li>Detail: </li>
+<li>Field | </li>
+<li>Constr | </li>
+<li><a href="#method.detail">Method</a></li>
+</ul>
+</div>
+<a name="skip.navbar.top">
+<!-- -->
+</a></div>
+<!-- ========= END OF TOP NAVBAR ========= -->
+<!-- ======== START OF CLASS DATA ======== -->
+<div class="header">
+<div class="subTitle">org.apache.juneau.rest</div>
+<h2 title="Class RequestPathMatch" class="title">Class RequestPathMatch</h2>
+</div>
+<div class="contentContainer">
+<ul class="inheritance">
+<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
+<li>
+<ul class="inheritance">
+<li><a href="http://docs.oracle.com/javase/7/docs/api/java/util/AbstractMap.html?is-external=true" title="class or interface in java.util">java.util.AbstractMap</a><K,V></li>
+<li>
+<ul class="inheritance">
+<li><a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true" title="class or interface in java.util">java.util.TreeMap</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></li>
+<li>
+<ul class="inheritance">
+<li>org.apache.juneau.rest.RequestPathMatch</li>
+</ul>
+</li>
+</ul>
+</li>
+</ul>
+</li>
+</ul>
+<div class="description">
+<ul class="blockList">
+<li class="blockList">
+<dl>
+<dt>All Implemented Interfaces:</dt>
+<dd><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang">Cloneable</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/NavigableMap.html?is-external=true" title="class or interface in java.util">NavigableMap</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interfac
e in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/SortedMap.html?is-external=true" title="class or interface in java.util">SortedMap</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></dd>
+</dl>
+<hr>
+<br>
+<pre>public class <a href="../../../../src-html/org/apache/juneau/rest/RequestPathMatch.html#line.30">RequestPathMatch</a>
+extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true" title="class or interface in java.util">TreeMap</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></pre>
+<div class="block">Contains information about the matched path on the HTTP request.
+ <p>
+ Provides access to the matched path variables and path match remainder.</div>
+<dl>
+<dt><span class="seeLabel">See Also:</span></dt>
+<dd><a href="../../../../serialized-form.html#org.apache.juneau.rest.RequestPathMatch">Serialized Form</a></dd>
+</dl>
+</li>
+</ul>
+</div>
+<div class="summary">
+<ul class="blockList">
+<li class="blockList">
+<!-- ======== NESTED CLASS SUMMARY ======== -->
+<ul class="blockList">
+<li class="blockList"><a name="nested.class.summary">
+<!-- -->
+</a>
+<h3>Nested Class Summary</h3>
+<ul class="blockList">
+<li class="blockList"><a name="nested.classes.inherited.from.class.java.util.AbstractMap">
+<!-- -->
+</a>
+<h3>Nested classes/interfaces inherited from class java.util.<a href="http://docs.oracle.com/javase/7/docs/api/java/util/AbstractMap.html?is-external=true" title="class or interface in java.util">AbstractMap</a></h3>
+<code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/AbstractMap.SimpleEntry.html?is-external=true" title="class or interface in java.util">AbstractMap.SimpleEntry</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/util/AbstractMap.SimpleEntry.html?is-external=true" title="class or interface in java.util">K</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/util/AbstractMap.SimpleEntry.html?is-external=true" title="class or interface in java.util">V</a>>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/AbstractMap.SimpleImmutableEntry.html?is-external=true" title="class or interface in java.util">AbstractMap.SimpleImmutableEntry</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/util/AbstractMap.SimpleImmutableEntry.html?is-external=true" title="class or interface in java.util">K</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/util/AbstractMap.SimpleImmutableEntry.html?is-external=true" title="class or interface in
java.util">V</a>></code></li>
+</ul>
+</li>
+</ul>
+<!-- ========== METHOD SUMMARY =========== -->
+<ul class="blockList">
+<li class="blockList"><a name="method.summary">
+<!-- -->
+</a>
+<h3>Method Summary</h3>
+<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
+<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
+<tr>
+<th class="colFirst" scope="col">Modifier and Type</th>
+<th class="colLast" scope="col">Method and Description</th>
+</tr>
+<tr id="i0" class="altColor">
+<td class="colFirst"><code><T> T</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestPathMatch.html#get-java.lang.String-java.lang.Class-">get</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
+ <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type)</code>
+<div class="block">Returns the specified path parameter converted to a POJO.</div>
+</td>
+</tr>
+<tr id="i1" class="rowColor">
+<td class="colFirst"><code><T> T</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestPathMatch.html#get-java.lang.String-java.lang.reflect.Type-java.lang.reflect.Type...-">get</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
+ <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> type,
+ <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>... args)</code>
+<div class="block">Returns the specified path parameter converted to a POJO.</div>
+</td>
+</tr>
+<tr id="i2" class="altColor">
+<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestPathMatch.html#getRemainder--">getRemainder</a></span>()</code>
+<div class="block">Returns the decoded remainder of the URL following any path pattern matches.</div>
+</td>
+</tr>
+<tr id="i3" class="rowColor">
+<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestPathMatch.html#getRemainderUndecoded--">getRemainderUndecoded</a></span>()</code>
+<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestPathMatch.html#getRemainder--"><code>getRemainder()</code></a> but doesn't decode characters.</div>
+</td>
+</tr>
+<tr id="i4" class="altColor">
+<td class="colFirst"><code>void</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestPathMatch.html#put-java.lang.String-java.lang.Object-">put</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
+ <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
+<div class="block">Sets a request query parameter value.</div>
+</td>
+</tr>
+</table>
+<ul class="blockList">
+<li class="blockList"><a name="methods.inherited.from.class.java.util.TreeMap">
+<!-- -->
+</a>
+<h3>Methods inherited from class java.util.<a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true" title="class or interface in java.util">TreeMap</a></h3>
+<code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#ceilingEntry-K-" title="class or interface in java.util">ceilingEntry</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#ceilingKey-K-" title="class or interface in java.util">ceilingKey</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#clear--" title="class or interface in java.util">clear</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#clone--" title="class or interface in java.util">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#comparator--" title="class or interface in java.util">comparator</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#containsKey-java.lang.Object-" title="class or interface in java.util">containsKey</a>, <a href="http://docs.oracle
.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#containsValue-java.lang.Object-" title="class or interface in java.util">containsValue</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#descendingKeySet--" title="class or interface in java.util">descendingKeySet</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#descendingMap--" title="class or interface in java.util">descendingMap</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#entrySet--" title="class or interface in java.util">entrySet</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#firstEntry--" title="class or interface in java.util">firstEntry</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#firstKey--" title="class or interface in java.util">firstKey</a>, <a href="http://docs.oracle.com/
javase/7/docs/api/java/util/TreeMap.html?is-external=true#floorEntry-K-" title="class or interface in java.util">floorEntry</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#floorKey-K-" title="class or interface in java.util">floorKey</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#forEach-java.util.function.BiConsumer-" title="class or interface in java.util">forEach</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#get-java.lang.Object-" title="class or interface in java.util">get</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#headMap-K-" title="class or interface in java.util">headMap</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#headMap-K-boolean-" title="class or interface in java.util">headMap</a>, <a href="http://docs.oracle.com/javase/7/docs/ap
i/java/util/TreeMap.html?is-external=true#higherEntry-K-" title="class or interface in java.util">higherEntry</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#higherKey-K-" title="class or interface in java.util">higherKey</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#keySet--" title="class or interface in java.util">keySet</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#lastEntry--" title="class or interface in java.util">lastEntry</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#lastKey--" title="class or interface in java.util">lastKey</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#lowerEntry-K-" title="class or interface in java.util">lowerEntry</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#lowerKey
-K-" title="class or interface in java.util">lowerKey</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#navigableKeySet--" title="class or interface in java.util">navigableKeySet</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#pollFirstEntry--" title="class or interface in java.util">pollFirstEntry</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#pollLastEntry--" title="class or interface in java.util">pollLastEntry</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#put-K-V-" title="class or interface in java.util">put</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#putAll-java.util.Map-" title="class or interface in java.util">putAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#remove-java.lang.Object-" titl
e="class or interface in java.util">remove</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#replace-K-V-" title="class or interface in java.util">replace</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#replace-K-V-V-" title="class or interface in java.util">replace</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#replaceAll-java.util.function.BiFunction-" title="class or interface in java.util">replaceAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#size--" title="class or interface in java.util">size</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#subMap-K-boolean-K-boolean-" title="class or interface in java.util">subMap</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#subMap-K-K-" title="class or interf
ace in java.util">subMap</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#tailMap-K-" title="class or interface in java.util">tailMap</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#tailMap-K-boolean-" title="class or interface in java.util">tailMap</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#values--" title="class or interface in java.util">values</a></code></li>
+</ul>
+<ul class="blockList">
+<li class="blockList"><a name="methods.inherited.from.class.java.util.AbstractMap">
+<!-- -->
+</a>
+<h3>Methods inherited from class java.util.<a href="http://docs.oracle.com/javase/7/docs/api/java/util/AbstractMap.html?is-external=true" title="class or interface in java.util">AbstractMap</a></h3>
+<code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/AbstractMap.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.util">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/AbstractMap.html?is-external=true#hashCode--" title="class or interface in java.util">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/AbstractMap.html?is-external=true#isEmpty--" title="class or interface in java.util">isEmpty</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/AbstractMap.html?is-external=true#toString--" title="class or interface in java.util">toString</a></code></li>
+</ul>
+<ul class="blockList">
+<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
+<!-- -->
+</a>
+<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
+<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-
external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
+</ul>
+<ul class="blockList">
+<li class="blockList"><a name="methods.inherited.from.class.java.util.Map">
+<!-- -->
+</a>
+<h3>Methods inherited from interface java.util.<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a></h3>
+<code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#compute-K-java.util.function.BiFunction-" title="class or interface in java.util">compute</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#computeIfAbsent-K-java.util.function.Function-" title="class or interface in java.util">computeIfAbsent</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#computeIfPresent-K-java.util.function.BiFunction-" title="class or interface in java.util">computeIfPresent</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.util">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#getOrDefault-java.lang.Object-V-" title="class or interface in java.util">getOrDefault</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-ex
ternal=true#hashCode--" title="class or interface in java.util">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#isEmpty--" title="class or interface in java.util">isEmpty</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#merge-K-V-java.util.function.BiFunction-" title="class or interface in java.util">merge</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#putIfAbsent-K-V-" title="class or interface in java.util">putIfAbsent</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#remove-java.lang.Object-java.lang.Object-" title="class or interface in java.util">remove</a></code></li>
+</ul>
+</li>
+</ul>
+</li>
+</ul>
+</div>
+<div class="details">
+<ul class="blockList">
+<li class="blockList">
+<!-- ============ METHOD DETAIL ========== -->
+<ul class="blockList">
+<li class="blockList"><a name="method.detail">
+<!-- -->
+</a>
+<h3>Method Detail</h3>
+<a name="put-java.lang.String-java.lang.Object-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>put</h4>
+<pre>public void <a href="../../../../src-html/org/apache/juneau/rest/RequestPathMatch.html#line.62">put</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
+ <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</pre>
+<div class="block">Sets a request query parameter value.</div>
+<dl>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>name</code> - The parameter name.</dd>
+<dd><code>value</code> - The parameter value.</dd>
+</dl>
+</li>
+</ul>
+<a name="get-java.lang.String-java.lang.Class-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>get</h4>
+<pre>public <T> T <a href="../../../../src-html/org/apache/juneau/rest/RequestPathMatch.html#line.96">get</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
+ <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type)
+ throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre>
+<div class="block">Returns the specified path parameter converted to a POJO.
+ <p>
+ The type can be any POJO type convertable from a <code>String</code> (See <a class="doclink"
+ href="package-summary.html#PojosConvertableFromString">POJOs Convertable From Strings</a>).
+ <p>
+ <h5 class='section'>Examples:</h5>
+ <p class='bcode'>
+ <jc>// Parse into an integer.</jc>
+ <jk>int</jk> myparam = req.getPathParameter(<js>"myparam"</js>, <jk>int</jk>.<jk>class</jk>);
+
+ <jc>// Parse into an int array.</jc>
+ <jk>int</jk>[] myparam = req.getPathParameter(<js>"myparam"</js>, <jk>int</jk>[].<jk>class</jk>);
+
+ <jc>// Parse into a bean.</jc>
+ MyBean myparam = req.getPathParameter(<js>"myparam"</js>, MyBean.<jk>class</jk>);
+
+ <jc>// Parse into a linked-list of objects.</jc>
+ List myparam = req.getPathParameter(<js>"myparam"</js>, LinkedList.<jk>class</jk>);
+
+ <jc>// Parse into a map of object keys/values.</jc>
+ Map myparam = req.getPathParameter(<js>"myparam"</js>, TreeMap.<jk>class</jk>);
+ </p></div>
+<dl>
+<dt><span class="paramLabel">Type Parameters:</span></dt>
+<dd><code>T</code> - The class type to convert the attribute value to.</dd>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>name</code> - The attribute name.</dd>
+<dd><code>type</code> - The class type to convert the attribute value to.</dd>
+<dt><span class="returnLabel">Returns:</span></dt>
+<dd>The attribute value converted to the specified class type.</dd>
+<dt><span class="throwsLabel">Throws:</span></dt>
+<dd><code><a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></code></dd>
+</dl>
+</li>
+</ul>
+<a name="get-java.lang.String-java.lang.reflect.Type-java.lang.reflect.Type...-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>get</h4>
+<pre>public <T> T <a href="../../../../src-html/org/apache/juneau/rest/RequestPathMatch.html#line.132">get</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
+ <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> type,
+ <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>... args)
+ throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre>
+<div class="block">Returns the specified path parameter converted to a POJO.
+ <p>
+ The type can be any POJO type convertable from a <code>String</code> (See <a class="doclink" href="package-summary.html#PojosConvertableFromString">POJOs Convertable From Strings</a>).
+ <p>
+ Use this method if you want to parse into a parameterized <code>Map</code>/<code>Collection</code> object.
+ <p>
+ <h5 class='section'>Examples:</h5>
+ <p class='bcode'>
+ <jc>// Parse into a linked-list of strings.</jc>
+ List<String> myparam = req.getPathParameter(<js>"myparam"</js>, LinkedList.<jk>class</jk>, String.<jk>class</jk>);
+
+ <jc>// Parse into a linked-list of linked-lists of strings.</jc>
+ List<List<String>> myparam = req.getPathParameter(<js>"myparam"</js>, LinkedList.<jk>class</jk>, LinkedList.<jk>class</jk>, String.<jk>class</jk>);
+
+ <jc>// Parse into a map of string keys/values.</jc>
+ Map<String,String> myparam = req.getPathParameter(<js>"myparam"</js>, TreeMap.<jk>class</jk>, String.<jk>class</jk>, String.<jk>class</jk>);
+
+ <jc>// Parse into a map containing string keys and values of lists containing beans.</jc>
+ Map<String,List<MyBean>> myparam = req.getPathParameter(<js>"myparam"</js>, TreeMap.<jk>class</jk>, String.<jk>class</jk>, List.<jk>class</jk>, MyBean.<jk>class</jk>);
+ </p></div>
+<dl>
+<dt><span class="paramLabel">Type Parameters:</span></dt>
+<dd><code>T</code> - The class type to convert the attribute value to.</dd>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>name</code> - The attribute name.</dd>
+<dd><code>type</code> - The type of object to create.
+ <br>Can be any of the following: <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau"><code>ClassMeta</code></a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang"><code>Class</code></a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/ParameterizedType.html?is-external=true" title="class or interface in java.lang.reflect"><code>ParameterizedType</code></a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/GenericArrayType.html?is-external=true" title="class or interface in java.lang.reflect"><code>GenericArrayType</code></a></dd>
+<dd><code>args</code> - The type arguments of the class if it's a collection or map.
+ <br>Can be any of the following: <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau"><code>ClassMeta</code></a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang"><code>Class</code></a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/ParameterizedType.html?is-external=true" title="class or interface in java.lang.reflect"><code>ParameterizedType</code></a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/GenericArrayType.html?is-external=true" title="class or interface in java.lang.reflect"><code>GenericArrayType</code></a>
+ <br>Ignored if the main type is not a map or collection.</dd>
+<dt><span class="returnLabel">Returns:</span></dt>
+<dd>The attribute value converted to the specified class type.</dd>
+<dt><span class="throwsLabel">Throws:</span></dt>
+<dd><code><a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></code></dd>
+</dl>
+</li>
+</ul>
+<a name="getRemainder--">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getRemainder</h4>
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RequestPathMatch.html#line.201">getRemainder</a>()</pre>
+<div class="block">Returns the decoded remainder of the URL following any path pattern matches.
+ <p>
+ The behavior of path remainder is shown below given the path pattern "/foo/*":
+ <p>
+ <table class='styled'>
+ <tr>
+ <th>URL</th>
+ <th>Path Remainder</th>
+ </tr>
+ <tr>
+ <td><code>/foo</code></td>
+ <td><jk>null</jk></td>
+ </tr>
+ <tr>
+ <td><code>/foo/</code></td>
+ <td><js>""</js></td>
+ </tr>
+ <tr>
+ <td><code>/foo//</code></td>
+ <td><js>"/"</js></td>
+ </tr>
+ <tr>
+ <td><code>/foo///</code></td>
+ <td><js>"//"</js></td>
+ </tr>
+ <tr>
+ <td><code>/foo/a/b</code></td>
+ <td><js>"a/b"</js></td>
+ </tr>
+ <tr>
+ <td><code>/foo//a/b/</code></td>
+ <td><js>"/a/b/"</js></td>
+ </tr>
+ <tr>
+ <td><code>/foo/a%2Fb</code></td>
+ <td><js>"a/b"</js></td>
+ </tr>
+ </table>
+
+ <h5 class='section'>Example:</h5>
+ <p class='bcode'>
+ <jc>// REST method</jc>
+ <ja>@RestMethod</ja>(name=<js>"GET"</js>,path=<js>"/foo/{bar}/*"</js>)
+ <jk>public</jk> String doGetById(RequestPathParams pathParams, <jk>int</jk> bar) {
+ <jk>return</jk> pathParams.getRemainder();
+ }
+
+ <jc>// Prints "path/remainder"</jc>
+ <jk>new</jk> RestCall(servletPath + <js>"/foo/123/path/remainder"</js>).connect();
+ </p></div>
+<dl>
+<dt><span class="returnLabel">Returns:</span></dt>
+<dd>The path remainder string.</dd>
+</dl>
+</li>
+</ul>
+<a name="getRemainderUndecoded--">
+<!-- -->
+</a>
+<ul class="blockListLast">
+<li class="blockList">
+<h4>getRemainderUndecoded</h4>
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RequestPathMatch.html#line.210">getRemainderUndecoded</a>()</pre>
+<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestPathMatch.html#getRemainder--"><code>getRemainder()</code></a> but doesn't decode characters.</div>
+<dl>
+<dt><span class="returnLabel">Returns:</span></dt>
+<dd>The undecoded path remainder.</dd>
+</dl>
+</li>
+</ul>
+</li>
+</ul>
+</li>
+</ul>
+</div>
+</div>
+<!-- ========= END OF CLASS DATA ========= -->
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<div class="bottomNav"><a name="navbar.bottom">
+<!-- -->
+</a>
+<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
+<a name="navbar.bottom.firstrow">
+<!-- -->
+</a>
+<ul class="navList" title="Navigation">
+<li><a href="../../../../overview-summary.html">Overview</a></li>
+<li><a href="package-summary.html">Package</a></li>
+<li class="navBarCell1Rev">Class</li>
+<li><a href="package-tree.html">Tree</a></li>
+<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
+<li><a href="../../../../index-all.html">Index</a></li>
+<li><a href="../../../../help-doc.html">Help</a></li>
+</ul>
+</div>
+<div class="subNav">
+<ul class="navList">
+<li><a href="../../../../org/apache/juneau/rest/RequestHeaders.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">Prev Class</span></a></li>
+<li><a href="../../../../org/apache/juneau/rest/RequestQuery.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">Next Class</span></a></li>
+</ul>
+<ul class="navList">
+<li><a href="../../../../index.html?org/apache/juneau/rest/RequestPathMatch.html" target="_top">Frames</a></li>
+<li><a href="RequestPathMatch.html" target="_top">No Frames</a></li>
+</ul>
+<ul class="navList" id="allclasses_navbar_bottom">
+<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
+</ul>
+<div>
+<script type="text/javascript"><!--
+ allClassesLink = document.getElementById("allclasses_navbar_bottom");
+ if(window==top) {
+ allClassesLink.style.display = "block";
+ }
+ else {
+ allClassesLink.style.display = "none";
+ }
+ //-->
+</script>
+</div>
+<div>
+<ul class="subNavList">
+<li>Summary: </li>
+<li><a href="#nested.classes.inherited.from.class.java.util.AbstractMap">Nested</a> | </li>
+<li>Field | </li>
+<li>Constr | </li>
+<li><a href="#method.summary">Method</a></li>
+</ul>
+<ul class="subNavList">
+<li>Detail: </li>
+<li>Field | </li>
+<li>Constr | </li>
+<li><a href="#method.detail">Method</a></li>
+</ul>
+</div>
+<a name="skip.navbar.bottom">
+<!-- -->
+</a></div>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+<p class="legalCopy"><small>Copyright © 2017 <a href="http://www.apache.org/">Apache</a>. All rights reserved.</small></p>
+</body>
+</html>
[02/15] incubator-juneau-website git commit: Update javadocs.
Posted by ja...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/src-html/org/apache/juneau/rest/RestResponse.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/rest/RestResponse.html b/content/site/apidocs/src-html/org/apache/juneau/rest/RestResponse.html
index 9607459..2022dd3 100644
--- a/content/site/apidocs/src-html/org/apache/juneau/rest/RestResponse.html
+++ b/content/site/apidocs/src-html/org/apache/juneau/rest/RestResponse.html
@@ -69,423 +69,436 @@
<span class="sourceLineNo">061</span> UrlEncodingSerializer urlEncodingSerializer; // The serializer used to convert arguments passed into Redirect objects.<a name="line.61"></a>
<span class="sourceLineNo">062</span> private EncoderGroup encoders;<a name="line.62"></a>
<span class="sourceLineNo">063</span> private ServletOutputStream os;<a name="line.63"></a>
-<span class="sourceLineNo">064</span><a name="line.64"></a>
-<span class="sourceLineNo">065</span> /**<a name="line.65"></a>
-<span class="sourceLineNo">066</span> * Constructor.<a name="line.66"></a>
-<span class="sourceLineNo">067</span> */<a name="line.67"></a>
-<span class="sourceLineNo">068</span> RestResponse(RestContext context, RestRequest req, HttpServletResponse res) {<a name="line.68"></a>
-<span class="sourceLineNo">069</span> super(res);<a name="line.69"></a>
-<span class="sourceLineNo">070</span> this.request = req;<a name="line.70"></a>
-<span class="sourceLineNo">071</span><a name="line.71"></a>
-<span class="sourceLineNo">072</span> for (Map.Entry<String,Object> e : context.getDefaultResponseHeaders().entrySet())<a name="line.72"></a>
-<span class="sourceLineNo">073</span> setHeader(e.getKey(), e.getValue().toString());<a name="line.73"></a>
-<span class="sourceLineNo">074</span><a name="line.74"></a>
-<span class="sourceLineNo">075</span> try {<a name="line.75"></a>
-<span class="sourceLineNo">076</span> String passThroughHeaders = req.getHeader("x-response-headers");<a name="line.76"></a>
-<span class="sourceLineNo">077</span> if (passThroughHeaders != null) {<a name="line.77"></a>
-<span class="sourceLineNo">078</span> UrlEncodingParser p = context.getUrlEncodingParser();<a name="line.78"></a>
-<span class="sourceLineNo">079</span> ObjectMap m = p.parsePart(passThroughHeaders, p.getBeanContext().getClassMeta(ObjectMap.class));<a name="line.79"></a>
-<span class="sourceLineNo">080</span> for (Map.Entry<String,Object> e : m.entrySet())<a name="line.80"></a>
-<span class="sourceLineNo">081</span> setHeader(e.getKey(), e.getValue().toString());<a name="line.81"></a>
-<span class="sourceLineNo">082</span> }<a name="line.82"></a>
-<span class="sourceLineNo">083</span> } catch (Exception e1) {<a name="line.83"></a>
-<span class="sourceLineNo">084</span> throw new RestException(SC_BAD_REQUEST, "Invalid format for header 'x-response-headers'. Must be in URL-encoded format.").initCause(e1);<a name="line.84"></a>
-<span class="sourceLineNo">085</span> }<a name="line.85"></a>
-<span class="sourceLineNo">086</span> }<a name="line.86"></a>
-<span class="sourceLineNo">087</span><a name="line.87"></a>
-<span class="sourceLineNo">088</span> /*<a name="line.88"></a>
-<span class="sourceLineNo">089</span> * Called from RestServlet after a match has been made but before the guard or method invocation.<a name="line.89"></a>
-<span class="sourceLineNo">090</span> */<a name="line.90"></a>
-<span class="sourceLineNo">091</span> @SuppressWarnings("hiding")<a name="line.91"></a>
-<span class="sourceLineNo">092</span> final void init(ObjectMap properties, String defaultCharset, SerializerGroup mSerializers, UrlEncodingSerializer mUrlEncodingSerializer, EncoderGroup encoders) {<a name="line.92"></a>
-<span class="sourceLineNo">093</span> this.properties = properties;<a name="line.93"></a>
-<span class="sourceLineNo">094</span> this.serializerGroup = mSerializers;<a name="line.94"></a>
-<span class="sourceLineNo">095</span> this.urlEncodingSerializer = mUrlEncodingSerializer;<a name="line.95"></a>
-<span class="sourceLineNo">096</span> this.encoders = encoders;<a name="line.96"></a>
-<span class="sourceLineNo">097</span><a name="line.97"></a>
-<span class="sourceLineNo">098</span> // Find acceptable charset<a name="line.98"></a>
-<span class="sourceLineNo">099</span> String h = request.getHeader("accept-charset");<a name="line.99"></a>
-<span class="sourceLineNo">100</span> String charset = null;<a name="line.100"></a>
-<span class="sourceLineNo">101</span> if (h == null)<a name="line.101"></a>
-<span class="sourceLineNo">102</span> charset = defaultCharset;<a name="line.102"></a>
-<span class="sourceLineNo">103</span> else for (MediaTypeRange r : MediaTypeRange.parse(h)) {<a name="line.103"></a>
-<span class="sourceLineNo">104</span> if (r.getQValue() > 0) {<a name="line.104"></a>
-<span class="sourceLineNo">105</span> MediaType mt = r.getMediaType();<a name="line.105"></a>
-<span class="sourceLineNo">106</span> if (mt.getType().equals("*"))<a name="line.106"></a>
-<span class="sourceLineNo">107</span> charset = defaultCharset;<a name="line.107"></a>
-<span class="sourceLineNo">108</span> else if (Charset.isSupported(mt.getType()))<a name="line.108"></a>
-<span class="sourceLineNo">109</span> charset = mt.getType();<a name="line.109"></a>
-<span class="sourceLineNo">110</span> if (charset != null)<a name="line.110"></a>
-<span class="sourceLineNo">111</span> break;<a name="line.111"></a>
-<span class="sourceLineNo">112</span> }<a name="line.112"></a>
-<span class="sourceLineNo">113</span> }<a name="line.113"></a>
-<span class="sourceLineNo">114</span><a name="line.114"></a>
-<span class="sourceLineNo">115</span> if (charset == null)<a name="line.115"></a>
-<span class="sourceLineNo">116</span> throw new RestException(SC_NOT_ACCEPTABLE, "No supported charsets in header ''Accept-Charset'': ''{0}''", request.getHeader("Accept-Charset"));<a name="line.116"></a>
-<span class="sourceLineNo">117</span> super.setCharacterEncoding(charset);<a name="line.117"></a>
-<span class="sourceLineNo">118</span> }<a name="line.118"></a>
-<span class="sourceLineNo">119</span><a name="line.119"></a>
-<span class="sourceLineNo">120</span> /**<a name="line.120"></a>
-<span class="sourceLineNo">121</span> * Gets the serializer group for the response.<a name="line.121"></a>
-<span class="sourceLineNo">122</span> *<a name="line.122"></a>
-<span class="sourceLineNo">123</span> * @return The serializer group for the response.<a name="line.123"></a>
-<span class="sourceLineNo">124</span> */<a name="line.124"></a>
-<span class="sourceLineNo">125</span> public SerializerGroup getSerializerGroup() {<a name="line.125"></a>
-<span class="sourceLineNo">126</span> return serializerGroup;<a name="line.126"></a>
-<span class="sourceLineNo">127</span> }<a name="line.127"></a>
-<span class="sourceLineNo">128</span><a name="line.128"></a>
-<span class="sourceLineNo">129</span> /**<a name="line.129"></a>
-<span class="sourceLineNo">130</span> * Returns the media types that are valid for <code>Accept</code> headers on the request.<a name="line.130"></a>
-<span class="sourceLineNo">131</span> *<a name="line.131"></a>
-<span class="sourceLineNo">132</span> * @return The set of media types registered in the parser group of this request.<a name="line.132"></a>
-<span class="sourceLineNo">133</span> */<a name="line.133"></a>
-<span class="sourceLineNo">134</span> public List<MediaType> getSupportedMediaTypes() {<a name="line.134"></a>
-<span class="sourceLineNo">135</span> return serializerGroup.getSupportedMediaTypes();<a name="line.135"></a>
-<span class="sourceLineNo">136</span> }<a name="line.136"></a>
-<span class="sourceLineNo">137</span><a name="line.137"></a>
-<span class="sourceLineNo">138</span> /**<a name="line.138"></a>
-<span class="sourceLineNo">139</span> * Returns the codings that are valid for <code>Accept-Encoding</code> and <code>Content-Encoding</code> headers on the request.<a name="line.139"></a>
-<span class="sourceLineNo">140</span> *<a name="line.140"></a>
-<span class="sourceLineNo">141</span> * @return The set of media types registered in the parser group of this request.<a name="line.141"></a>
-<span class="sourceLineNo">142</span> * @throws RestServletException<a name="line.142"></a>
-<span class="sourceLineNo">143</span> */<a name="line.143"></a>
-<span class="sourceLineNo">144</span> public List<String> getSupportedEncodings() throws RestServletException {<a name="line.144"></a>
-<span class="sourceLineNo">145</span> return encoders.getSupportedEncodings();<a name="line.145"></a>
-<span class="sourceLineNo">146</span> }<a name="line.146"></a>
-<span class="sourceLineNo">147</span><a name="line.147"></a>
-<span class="sourceLineNo">148</span> /**<a name="line.148"></a>
-<span class="sourceLineNo">149</span> * Sets the HTTP output on the response.<a name="line.149"></a>
-<span class="sourceLineNo">150</span> * <p><a name="line.150"></a>
-<span class="sourceLineNo">151</span> * Calling this method is functionally equivalent to returning the object in the REST Java method.<a name="line.151"></a>
-<span class="sourceLineNo">152</span> * <p><a name="line.152"></a>
-<span class="sourceLineNo">153</span> * Can be of any of the following types:<a name="line.153"></a>
-<span class="sourceLineNo">154</span> * <ul><a name="line.154"></a>
-<span class="sourceLineNo">155</span> * <li> {@link InputStream}<a name="line.155"></a>
-<span class="sourceLineNo">156</span> * <li> {@link Reader}<a name="line.156"></a>
-<span class="sourceLineNo">157</span> * <li> Any serializable type defined in <a class="doclink" href="../../../../overview-summary.html#Core.PojoCategories">POJO Categories</a><a name="line.157"></a>
-<span class="sourceLineNo">158</span> * </ul><a name="line.158"></a>
-<span class="sourceLineNo">159</span> * <p><a name="line.159"></a>
-<span class="sourceLineNo">160</span> * If it's an {@link InputStream} or {@link Reader}, you must also specify the <code>Content-Type</code> using the {@link #setContentType(String)} method.<a name="line.160"></a>
-<span class="sourceLineNo">161</span> *<a name="line.161"></a>
-<span class="sourceLineNo">162</span> * @param output The output to serialize to the connection.<a name="line.162"></a>
-<span class="sourceLineNo">163</span> * @return This object (for method chaining).<a name="line.163"></a>
-<span class="sourceLineNo">164</span> */<a name="line.164"></a>
-<span class="sourceLineNo">165</span> public RestResponse setOutput(Object output) {<a name="line.165"></a>
-<span class="sourceLineNo">166</span> this.output = output;<a name="line.166"></a>
-<span class="sourceLineNo">167</span> this.isNullOutput = output == null;<a name="line.167"></a>
-<span class="sourceLineNo">168</span> return this;<a name="line.168"></a>
-<span class="sourceLineNo">169</span> }<a name="line.169"></a>
-<span class="sourceLineNo">170</span><a name="line.170"></a>
-<span class="sourceLineNo">171</span> /**<a name="line.171"></a>
-<span class="sourceLineNo">172</span> * Add a serializer property to send to the serializers to override a default value.<a name="line.172"></a>
-<span class="sourceLineNo">173</span> * <p><a name="line.173"></a>
-<span class="sourceLineNo">174</span> * Can be any value specified in the following classes:<a name="line.174"></a>
-<span class="sourceLineNo">175</span> * <ul><a name="line.175"></a>
-<span class="sourceLineNo">176</span> * <li>{@link SerializerContext}<a name="line.176"></a>
-<span class="sourceLineNo">177</span> * <li>{@link JsonSerializerContext}<a name="line.177"></a>
-<span class="sourceLineNo">178</span> * <li>{@link XmlSerializerContext}<a name="line.178"></a>
-<span class="sourceLineNo">179</span> * <li>{@link RdfSerializerContext}<a name="line.179"></a>
-<span class="sourceLineNo">180</span> * </ul><a name="line.180"></a>
-<span class="sourceLineNo">181</span> *<a name="line.181"></a>
-<span class="sourceLineNo">182</span> * @param key The setting name.<a name="line.182"></a>
-<span class="sourceLineNo">183</span> * @param value The setting value.<a name="line.183"></a>
-<span class="sourceLineNo">184</span> * @return This object (for method chaining).<a name="line.184"></a>
-<span class="sourceLineNo">185</span> */<a name="line.185"></a>
-<span class="sourceLineNo">186</span> public RestResponse setProperty(String key, Object value) {<a name="line.186"></a>
-<span class="sourceLineNo">187</span> properties.put(key, value);<a name="line.187"></a>
-<span class="sourceLineNo">188</span> return this;<a name="line.188"></a>
-<span class="sourceLineNo">189</span> }<a name="line.189"></a>
-<span class="sourceLineNo">190</span><a name="line.190"></a>
-<span class="sourceLineNo">191</span> /**<a name="line.191"></a>
-<span class="sourceLineNo">192</span> * Returns the properties set via {@link #setProperty(String, Object)}.<a name="line.192"></a>
-<span class="sourceLineNo">193</span> *<a name="line.193"></a>
-<span class="sourceLineNo">194</span> * @return A map of all the property values set.<a name="line.194"></a>
-<span class="sourceLineNo">195</span> */<a name="line.195"></a>
-<span class="sourceLineNo">196</span> public ObjectMap getProperties() {<a name="line.196"></a>
-<span class="sourceLineNo">197</span> return properties;<a name="line.197"></a>
-<span class="sourceLineNo">198</span> }<a name="line.198"></a>
-<span class="sourceLineNo">199</span><a name="line.199"></a>
-<span class="sourceLineNo">200</span> /**<a name="line.200"></a>
-<span class="sourceLineNo">201</span> * Shortcut method that allows you to use varargs to simplify setting array output.<a name="line.201"></a>
-<span class="sourceLineNo">202</span> *<a name="line.202"></a>
-<span class="sourceLineNo">203</span> * <h5 class='section'>Example:</h5><a name="line.203"></a>
-<span class="sourceLineNo">204</span> * <p class='bcode'><a name="line.204"></a>
-<span class="sourceLineNo">205</span> * <jc>// Instead of...</jc><a name="line.205"></a>
-<span class="sourceLineNo">206</span> * response.setOutput(<jk>new</jk> Object[]{x,y,z});<a name="line.206"></a>
-<span class="sourceLineNo">207</span> *<a name="line.207"></a>
-<span class="sourceLineNo">208</span> * <jc>// ...call this...</jc><a name="line.208"></a>
-<span class="sourceLineNo">209</span> * response.setOutput(x,y,z);<a name="line.209"></a>
-<span class="sourceLineNo">210</span> * </p><a name="line.210"></a>
-<span class="sourceLineNo">211</span> *<a name="line.211"></a>
-<span class="sourceLineNo">212</span> * @param output The output to serialize to the connection.<a name="line.212"></a>
-<span class="sourceLineNo">213</span> * @return This object (for method chaining).<a name="line.213"></a>
-<span class="sourceLineNo">214</span> */<a name="line.214"></a>
-<span class="sourceLineNo">215</span> public RestResponse setOutputs(Object...output) {<a name="line.215"></a>
-<span class="sourceLineNo">216</span> this.output = output;<a name="line.216"></a>
-<span class="sourceLineNo">217</span> return this;<a name="line.217"></a>
-<span class="sourceLineNo">218</span> }<a name="line.218"></a>
-<span class="sourceLineNo">219</span><a name="line.219"></a>
-<span class="sourceLineNo">220</span> /**<a name="line.220"></a>
-<span class="sourceLineNo">221</span> * Returns the output that was set by calling {@link #setOutput(Object)}.<a name="line.221"></a>
-<span class="sourceLineNo">222</span> *<a name="line.222"></a>
-<span class="sourceLineNo">223</span> * @return The output object.<a name="line.223"></a>
-<span class="sourceLineNo">224</span> */<a name="line.224"></a>
-<span class="sourceLineNo">225</span> public Object getOutput() {<a name="line.225"></a>
-<span class="sourceLineNo">226</span> return output;<a name="line.226"></a>
-<span class="sourceLineNo">227</span> }<a name="line.227"></a>
-<span class="sourceLineNo">228</span><a name="line.228"></a>
-<span class="sourceLineNo">229</span> /**<a name="line.229"></a>
-<span class="sourceLineNo">230</span> * Returns <jk>true</jk> if this response has any output associated with it.<a name="line.230"></a>
-<span class="sourceLineNo">231</span> *<a name="line.231"></a>
-<span class="sourceLineNo">232</span> * @return <jk>true</jk> if {@code setInput()} has been called.<a name="line.232"></a>
-<span class="sourceLineNo">233</span> */<a name="line.233"></a>
-<span class="sourceLineNo">234</span> public boolean hasOutput() {<a name="line.234"></a>
-<span class="sourceLineNo">235</span> return output != null || isNullOutput;<a name="line.235"></a>
-<span class="sourceLineNo">236</span> }<a name="line.236"></a>
-<span class="sourceLineNo">237</span><a name="line.237"></a>
-<span class="sourceLineNo">238</span> /**<a name="line.238"></a>
-<span class="sourceLineNo">239</span> * Sets the output to a plain-text message regardless of the content type.<a name="line.239"></a>
-<span class="sourceLineNo">240</span> *<a name="line.240"></a>
-<span class="sourceLineNo">241</span> * @param text The output text to send.<a name="line.241"></a>
-<span class="sourceLineNo">242</span> * @return This object (for method chaining).<a name="line.242"></a>
-<span class="sourceLineNo">243</span> * @throws IOException If a problem occurred trying to write to the writer.<a name="line.243"></a>
-<span class="sourceLineNo">244</span> */<a name="line.244"></a>
-<span class="sourceLineNo">245</span> public RestResponse sendPlainText(String text) throws IOException {<a name="line.245"></a>
-<span class="sourceLineNo">246</span> setContentType("text/plain");<a name="line.246"></a>
-<span class="sourceLineNo">247</span> getNegotiatedWriter().write(text);<a name="line.247"></a>
-<span class="sourceLineNo">248</span> return this;<a name="line.248"></a>
-<span class="sourceLineNo">249</span> }<a name="line.249"></a>
-<span class="sourceLineNo">250</span><a name="line.250"></a>
-<span class="sourceLineNo">251</span> /**<a name="line.251"></a>
-<span class="sourceLineNo">252</span> * Equivalent to {@link HttpServletResponse#getOutputStream()}, except<a name="line.252"></a>
-<span class="sourceLineNo">253</span> * wraps the output stream if an {@link Encoder} was found that matched<a name="line.253"></a>
-<span class="sourceLineNo">254</span> * the <code>Accept-Encoding</code> header.<a name="line.254"></a>
-<span class="sourceLineNo">255</span> *<a name="line.255"></a>
-<span class="sourceLineNo">256</span> * @return A negotiated output stream.<a name="line.256"></a>
-<span class="sourceLineNo">257</span> * @throws IOException<a name="line.257"></a>
-<span class="sourceLineNo">258</span> */<a name="line.258"></a>
-<span class="sourceLineNo">259</span> public ServletOutputStream getNegotiatedOutputStream() throws IOException {<a name="line.259"></a>
-<span class="sourceLineNo">260</span> if (os == null) {<a name="line.260"></a>
-<span class="sourceLineNo">261</span> Encoder encoder = null;<a name="line.261"></a>
-<span class="sourceLineNo">262</span><a name="line.262"></a>
-<span class="sourceLineNo">263</span> String ae = request.getHeader("Accept-Encoding");<a name="line.263"></a>
-<span class="sourceLineNo">264</span> if (! (ae == null || ae.isEmpty())) {<a name="line.264"></a>
-<span class="sourceLineNo">265</span> EncoderMatch match = encoders != null ? encoders.getEncoderMatch(ae) : null;<a name="line.265"></a>
-<span class="sourceLineNo">266</span> if (match == null) {<a name="line.266"></a>
-<span class="sourceLineNo">267</span> // Identity should always match unless "identity;q=0" or "*;q=0" is specified.<a name="line.267"></a>
-<span class="sourceLineNo">268</span> if (ae.matches(".*(identity|\\*)\\s*;\\s*q\\s*=\\s*(0(?!\\.)|0\\.0).*")) {<a name="line.268"></a>
-<span class="sourceLineNo">269</span> throw new RestException(SC_NOT_ACCEPTABLE,<a name="line.269"></a>
-<span class="sourceLineNo">270</span> "Unsupported encoding in request header ''Accept-Encoding'': ''{0}''\n\tSupported codings: {1}",<a name="line.270"></a>
-<span class="sourceLineNo">271</span> ae, encoders.getSupportedEncodings()<a name="line.271"></a>
-<span class="sourceLineNo">272</span> );<a name="line.272"></a>
-<span class="sourceLineNo">273</span> }<a name="line.273"></a>
-<span class="sourceLineNo">274</span> } else {<a name="line.274"></a>
-<span class="sourceLineNo">275</span> encoder = match.getEncoder();<a name="line.275"></a>
-<span class="sourceLineNo">276</span> String encoding = match.getEncoding().toString();<a name="line.276"></a>
-<span class="sourceLineNo">277</span><a name="line.277"></a>
-<span class="sourceLineNo">278</span> // Some clients don't recognize identity as an encoding, so don't set it.<a name="line.278"></a>
-<span class="sourceLineNo">279</span> if (! encoding.equals("identity"))<a name="line.279"></a>
-<span class="sourceLineNo">280</span> setHeader("content-encoding", encoding);<a name="line.280"></a>
-<span class="sourceLineNo">281</span> }<a name="line.281"></a>
-<span class="sourceLineNo">282</span> }<a name="line.282"></a>
-<span class="sourceLineNo">283</span> os = getOutputStream();<a name="line.283"></a>
-<span class="sourceLineNo">284</span> if (encoder != null) {<a name="line.284"></a>
-<span class="sourceLineNo">285</span> final OutputStream os2 = encoder.getOutputStream(os);<a name="line.285"></a>
-<span class="sourceLineNo">286</span> os = new ServletOutputStream(){<a name="line.286"></a>
-<span class="sourceLineNo">287</span> @Override /* OutputStream */<a name="line.287"></a>
-<span class="sourceLineNo">288</span> public final void write(byte[] b, int off, int len) throws IOException {<a name="line.288"></a>
-<span class="sourceLineNo">289</span> os2.write(b, off, len);<a name="line.289"></a>
-<span class="sourceLineNo">290</span> }<a name="line.290"></a>
-<span class="sourceLineNo">291</span> @Override /* OutputStream */<a name="line.291"></a>
-<span class="sourceLineNo">292</span> public final void write(int b) throws IOException {<a name="line.292"></a>
-<span class="sourceLineNo">293</span> os2.write(b);<a name="line.293"></a>
-<span class="sourceLineNo">294</span> }<a name="line.294"></a>
-<span class="sourceLineNo">295</span> @Override /* OutputStream */<a name="line.295"></a>
-<span class="sourceLineNo">296</span> public final void flush() throws IOException {<a name="line.296"></a>
-<span class="sourceLineNo">297</span> os2.flush();<a name="line.297"></a>
-<span class="sourceLineNo">298</span> }<a name="line.298"></a>
-<span class="sourceLineNo">299</span> @Override /* OutputStream */<a name="line.299"></a>
-<span class="sourceLineNo">300</span> public final void close() throws IOException {<a name="line.300"></a>
-<span class="sourceLineNo">301</span> os2.close();<a name="line.301"></a>
-<span class="sourceLineNo">302</span> }<a name="line.302"></a>
-<span class="sourceLineNo">303</span> };<a name="line.303"></a>
-<span class="sourceLineNo">304</span> }<a name="line.304"></a>
-<span class="sourceLineNo">305</span> }<a name="line.305"></a>
-<span class="sourceLineNo">306</span> return os;<a name="line.306"></a>
-<span class="sourceLineNo">307</span> }<a name="line.307"></a>
-<span class="sourceLineNo">308</span><a name="line.308"></a>
-<span class="sourceLineNo">309</span> @Override /* ServletResponse */<a name="line.309"></a>
-<span class="sourceLineNo">310</span> public ServletOutputStream getOutputStream() throws IOException {<a name="line.310"></a>
-<span class="sourceLineNo">311</span> if (os == null)<a name="line.311"></a>
-<span class="sourceLineNo">312</span> os = super.getOutputStream();<a name="line.312"></a>
-<span class="sourceLineNo">313</span> return os;<a name="line.313"></a>
-<span class="sourceLineNo">314</span> }<a name="line.314"></a>
-<span class="sourceLineNo">315</span><a name="line.315"></a>
-<span class="sourceLineNo">316</span> /**<a name="line.316"></a>
-<span class="sourceLineNo">317</span> * Returns <jk>true</jk> if {@link #getOutputStream()} has been called.<a name="line.317"></a>
-<span class="sourceLineNo">318</span> *<a name="line.318"></a>
-<span class="sourceLineNo">319</span> * @return <jk>true</jk> if {@link #getOutputStream()} has been called.<a name="line.319"></a>
-<span class="sourceLineNo">320</span> */<a name="line.320"></a>
-<span class="sourceLineNo">321</span> public boolean getOutputStreamCalled() {<a name="line.321"></a>
-<span class="sourceLineNo">322</span> return os != null;<a name="line.322"></a>
-<span class="sourceLineNo">323</span> }<a name="line.323"></a>
-<span class="sourceLineNo">324</span><a name="line.324"></a>
-<span class="sourceLineNo">325</span> /**<a name="line.325"></a>
-<span class="sourceLineNo">326</span> * Returns the writer to the response body.<a name="line.326"></a>
-<span class="sourceLineNo">327</span> * This methods bypasses any specified encoders and returns a regular unbuffered writer.<a name="line.327"></a>
-<span class="sourceLineNo">328</span> * Use the {@link #getNegotiatedWriter()} method if you want to use the matched encoder (if any).<a name="line.328"></a>
-<span class="sourceLineNo">329</span> */<a name="line.329"></a>
-<span class="sourceLineNo">330</span> @Override /* ServletResponse */<a name="line.330"></a>
-<span class="sourceLineNo">331</span> public PrintWriter getWriter() throws IOException {<a name="line.331"></a>
-<span class="sourceLineNo">332</span> return getWriter(true);<a name="line.332"></a>
-<span class="sourceLineNo">333</span> }<a name="line.333"></a>
-<span class="sourceLineNo">334</span><a name="line.334"></a>
-<span class="sourceLineNo">335</span> /**<a name="line.335"></a>
-<span class="sourceLineNo">336</span> * Convenience method meant to be used when rendering directly to a browser with no buffering.<a name="line.336"></a>
-<span class="sourceLineNo">337</span> * Sets the header <js>"x-content-type-options=nosniff"</js> so that output is rendered<a name="line.337"></a>
-<span class="sourceLineNo">338</span> * immediately on IE and Chrome without any buffering for content-type sniffing.<a name="line.338"></a>
-<span class="sourceLineNo">339</span> *<a name="line.339"></a>
-<span class="sourceLineNo">340</span> * @param contentType The value to set as the <code>Content-Type</code> on the response.<a name="line.340"></a>
-<span class="sourceLineNo">341</span> * @return The raw writer.<a name="line.341"></a>
-<span class="sourceLineNo">342</span> * @throws IOException<a name="line.342"></a>
-<span class="sourceLineNo">343</span> */<a name="line.343"></a>
-<span class="sourceLineNo">344</span> public PrintWriter getDirectWriter(String contentType) throws IOException {<a name="line.344"></a>
-<span class="sourceLineNo">345</span> setContentType(contentType);<a name="line.345"></a>
-<span class="sourceLineNo">346</span> setHeader("x-content-type-options", "nosniff");<a name="line.346"></a>
-<span class="sourceLineNo">347</span> return getWriter();<a name="line.347"></a>
-<span class="sourceLineNo">348</span> }<a name="line.348"></a>
-<span class="sourceLineNo">349</span><a name="line.349"></a>
-<span class="sourceLineNo">350</span> /**<a name="line.350"></a>
-<span class="sourceLineNo">351</span> * Equivalent to {@link HttpServletResponse#getWriter()}, except<a name="line.351"></a>
-<span class="sourceLineNo">352</span> * wraps the output stream if an {@link Encoder} was found that matched<a name="line.352"></a>
-<span class="sourceLineNo">353</span> * the <code>Accept-Encoding</code> header and sets the <code>Content-Encoding</code><a name="line.353"></a>
-<span class="sourceLineNo">354</span> * header to the appropriate value.<a name="line.354"></a>
-<span class="sourceLineNo">355</span> *<a name="line.355"></a>
-<span class="sourceLineNo">356</span> * @return The negotiated writer.<a name="line.356"></a>
-<span class="sourceLineNo">357</span> * @throws IOException<a name="line.357"></a>
-<span class="sourceLineNo">358</span> */<a name="line.358"></a>
-<span class="sourceLineNo">359</span> public PrintWriter getNegotiatedWriter() throws IOException {<a name="line.359"></a>
-<span class="sourceLineNo">360</span> return getWriter(false);<a name="line.360"></a>
-<span class="sourceLineNo">361</span> }<a name="line.361"></a>
-<span class="sourceLineNo">362</span><a name="line.362"></a>
-<span class="sourceLineNo">363</span> private PrintWriter getWriter(boolean raw) throws IOException {<a name="line.363"></a>
-<span class="sourceLineNo">364</span> // If plain text requested, override it now.<a name="line.364"></a>
-<span class="sourceLineNo">365</span> if (request.isPlainText()) {<a name="line.365"></a>
-<span class="sourceLineNo">366</span> setHeader("Content-Type", "text/plain");<a name="line.366"></a>
-<span class="sourceLineNo">367</span> }<a name="line.367"></a>
-<span class="sourceLineNo">368</span><a name="line.368"></a>
-<span class="sourceLineNo">369</span> try {<a name="line.369"></a>
-<span class="sourceLineNo">370</span> OutputStream out = (raw ? getOutputStream() : getNegotiatedOutputStream());<a name="line.370"></a>
-<span class="sourceLineNo">371</span> return new PrintWriter(new OutputStreamWriter(out, getCharacterEncoding()));<a name="line.371"></a>
-<span class="sourceLineNo">372</span> } catch (UnsupportedEncodingException e) {<a name="line.372"></a>
-<span class="sourceLineNo">373</span> String ce = getCharacterEncoding();<a name="line.373"></a>
-<span class="sourceLineNo">374</span> setCharacterEncoding("UTF-8");<a name="line.374"></a>
-<span class="sourceLineNo">375</span> throw new RestException(SC_NOT_ACCEPTABLE, "Unsupported charset in request header ''Accept-Charset'': ''{0}''", ce);<a name="line.375"></a>
-<span class="sourceLineNo">376</span> }<a name="line.376"></a>
-<span class="sourceLineNo">377</span> }<a name="line.377"></a>
-<span class="sourceLineNo">378</span><a name="line.378"></a>
-<span class="sourceLineNo">379</span> /**<a name="line.379"></a>
-<span class="sourceLineNo">380</span> * Returns the <code>Content-Type</code> header stripped of the charset attribute if present.<a name="line.380"></a>
-<span class="sourceLineNo">381</span> *<a name="line.381"></a>
-<span class="sourceLineNo">382</span> * @return The <code>media-type</code> portion of the <code>Content-Type</code> header.<a name="line.382"></a>
-<span class="sourceLineNo">383</span> */<a name="line.383"></a>
-<span class="sourceLineNo">384</span> public MediaType getMediaType() {<a name="line.384"></a>
-<span class="sourceLineNo">385</span> return MediaType.forString(getContentType());<a name="line.385"></a>
-<span class="sourceLineNo">386</span> }<a name="line.386"></a>
-<span class="sourceLineNo">387</span><a name="line.387"></a>
-<span class="sourceLineNo">388</span> /**<a name="line.388"></a>
-<span class="sourceLineNo">389</span> * Redirects to the specified URI.<a name="line.389"></a>
-<span class="sourceLineNo">390</span> * <p><a name="line.390"></a>
-<span class="sourceLineNo">391</span> * Relative URIs are always interpreted as relative to the context root.<a name="line.391"></a>
-<span class="sourceLineNo">392</span> * This is similar to how WAS handles redirect requests, and is different from how Tomcat<a name="line.392"></a>
-<span class="sourceLineNo">393</span> * handles redirect requests.<a name="line.393"></a>
-<span class="sourceLineNo">394</span> */<a name="line.394"></a>
-<span class="sourceLineNo">395</span> @Override /* ServletResponse */<a name="line.395"></a>
-<span class="sourceLineNo">396</span> public void sendRedirect(String uri) throws IOException {<a name="line.396"></a>
-<span class="sourceLineNo">397</span> char c = (uri.length() > 0 ? uri.charAt(0) : 0);<a name="line.397"></a>
-<span class="sourceLineNo">398</span> if (c != '/' && uri.indexOf("://") == -1)<a name="line.398"></a>
-<span class="sourceLineNo">399</span> uri = request.getContextPath() + '/' + uri;<a name="line.399"></a>
-<span class="sourceLineNo">400</span> super.sendRedirect(uri);<a name="line.400"></a>
-<span class="sourceLineNo">401</span> }<a name="line.401"></a>
-<span class="sourceLineNo">402</span><a name="line.402"></a>
-<span class="sourceLineNo">403</span> /**<a name="line.403"></a>
-<span class="sourceLineNo">404</span> * Returns the URL-encoding serializer associated with this response.<a name="line.404"></a>
-<span class="sourceLineNo">405</span> *<a name="line.405"></a>
-<span class="sourceLineNo">406</span> * @return The URL-encoding serializer associated with this response.<a name="line.406"></a>
-<span class="sourceLineNo">407</span> */<a name="line.407"></a>
-<span class="sourceLineNo">408</span> public UrlEncodingSerializer getUrlEncodingSerializer() {<a name="line.408"></a>
-<span class="sourceLineNo">409</span> return urlEncodingSerializer;<a name="line.409"></a>
-<span class="sourceLineNo">410</span> }<a name="line.410"></a>
-<span class="sourceLineNo">411</span><a name="line.411"></a>
-<span class="sourceLineNo">412</span> @Override /* ServletResponse */<a name="line.412"></a>
-<span class="sourceLineNo">413</span> public void setHeader(String name, String value) {<a name="line.413"></a>
-<span class="sourceLineNo">414</span> // Jetty doesn't set the content type correctly if set through this method.<a name="line.414"></a>
-<span class="sourceLineNo">415</span> // Tomcat/WAS does.<a name="line.415"></a>
-<span class="sourceLineNo">416</span> if (name.equalsIgnoreCase("Content-Type"))<a name="line.416"></a>
-<span class="sourceLineNo">417</span> super.setContentType(value);<a name="line.417"></a>
-<span class="sourceLineNo">418</span> else<a name="line.418"></a>
-<span class="sourceLineNo">419</span> super.setHeader(name, value);<a name="line.419"></a>
-<span class="sourceLineNo">420</span> }<a name="line.420"></a>
-<span class="sourceLineNo">421</span><a name="line.421"></a>
-<span class="sourceLineNo">422</span> /**<a name="line.422"></a>
-<span class="sourceLineNo">423</span> * Sets the page title for HTML views.<a name="line.423"></a>
-<span class="sourceLineNo">424</span> * <p><a name="line.424"></a>
-<span class="sourceLineNo">425</span> * This is the programmatic equivalent to the {@link RestResource#pageTitle() @RestResource#pageTitle()}/<a name="line.425"></a>
-<span class="sourceLineNo">426</span> * {@link RestMethod#pageTitle() @RestMethod#pageTitle()} annotations.<a name="line.426"></a>
-<span class="sourceLineNo">427</span> * <p><a name="line.427"></a>
-<span class="sourceLineNo">428</span> * This is a shortcut for calling <code>setProperty(<jsf>HTMLDOC_title</jsf>, title);</code><a name="line.428"></a>
-<span class="sourceLineNo">429</span> * <p class='info'><a name="line.429"></a>
-<span class="sourceLineNo">430</span> * <b>Tip:</b> Use {@link StringMessage} to generate a page title with delayed serialization so as not to<a name="line.430"></a>
-<span class="sourceLineNo">431</span> * waste string concatenation cycles on non-HTML views.<a name="line.431"></a>
-<span class="sourceLineNo">432</span> * </p><a name="line.432"></a>
-<span class="sourceLineNo">433</span> *<a name="line.433"></a>
-<span class="sourceLineNo">434</span> * @param title The localized page title to render on the page.<a name="line.434"></a>
-<span class="sourceLineNo">435</span> * Object will be converted to a string using {@link Object#toString()}.<a name="line.435"></a>
-<span class="sourceLineNo">436</span> * @return This object (for method chaining).<a name="line.436"></a>
-<span class="sourceLineNo">437</span> */<a name="line.437"></a>
-<span class="sourceLineNo">438</span> public RestResponse setPageTitle(Object title) {<a name="line.438"></a>
-<span class="sourceLineNo">439</span> return setProperty(HtmlDocSerializerContext.HTMLDOC_title, title);<a name="line.439"></a>
-<span class="sourceLineNo">440</span> }<a name="line.440"></a>
-<span class="sourceLineNo">441</span><a name="line.441"></a>
-<span class="sourceLineNo">442</span> /**<a name="line.442"></a>
-<span class="sourceLineNo">443</span> * Sets the page text for HTML views.<a name="line.443"></a>
-<span class="sourceLineNo">444</span> * <p><a name="line.444"></a>
-<span class="sourceLineNo">445</span> * This is the programmatic equivalent to the {@link RestResource#pageText() @RestResource#pageText()}/<a name="line.445"></a>
-<span class="sourceLineNo">446</span> * {@link RestMethod#pageText() @RestMethod#pageText()} annotations.<a name="line.446"></a>
-<span class="sourceLineNo">447</span> * <p><a name="line.447"></a>
-<span class="sourceLineNo">448</span> * This is a shortcut for calling <code>setProperty(<jsf>HTMLDOC_text</jsf>, text);</code><a name="line.448"></a>
-<span class="sourceLineNo">449</span> * <p class='info'><a name="line.449"></a>
-<span class="sourceLineNo">450</span> * <b>Tip:</b> Use {@link StringMessage} to generate page text with delayed serialization so as not to<a name="line.450"></a>
-<span class="sourceLineNo">451</span> * waste string concatenation cycles on non-HTML views.<a name="line.451"></a>
-<span class="sourceLineNo">452</span> * </p><a name="line.452"></a>
-<span class="sourceLineNo">453</span> *<a name="line.453"></a>
-<span class="sourceLineNo">454</span> * @param text The localized page text to render on the page.<a name="line.454"></a>
-<span class="sourceLineNo">455</span> * @return This object (for method chaining).<a name="line.455"></a>
-<span class="sourceLineNo">456</span> */<a name="line.456"></a>
-<span class="sourceLineNo">457</span> public RestResponse setPageText(Object text) {<a name="line.457"></a>
-<span class="sourceLineNo">458</span> return setProperty(HtmlDocSerializerContext.HTMLDOC_text, text);<a name="line.458"></a>
-<span class="sourceLineNo">459</span> }<a name="line.459"></a>
-<span class="sourceLineNo">460</span><a name="line.460"></a>
-<span class="sourceLineNo">461</span> /**<a name="line.461"></a>
-<span class="sourceLineNo">462</span> * Sets the page text for HTML views.<a name="line.462"></a>
-<span class="sourceLineNo">463</span> * <p><a name="line.463"></a>
-<span class="sourceLineNo">464</span> * This is the programmatic equivalent to the {@link RestResource#pageLinks() @RestResource#pageLinks()}/<a name="line.464"></a>
-<span class="sourceLineNo">465</span> * {@link RestMethod#pageLinks() @RestMethod#pageLinks()} annotations.<a name="line.465"></a>
-<span class="sourceLineNo">466</span> * <p><a name="line.466"></a>
-<span class="sourceLineNo">467</span> * This is a shortcut for calling <code>setProperty(<jsf>HTMLDOC_links</jsf>, links);</code><a name="line.467"></a>
-<span class="sourceLineNo">468</span> * <p class='info'><a name="line.468"></a>
-<span class="sourceLineNo">469</span> * <b>Tip:</b> Use {@link StringMessage} to generate page links with delayed serialization so as not to<a name="line.469"></a>
-<span class="sourceLineNo">470</span> * waste string concatenation cycles on non-HTML views.<a name="line.470"></a>
-<span class="sourceLineNo">471</span> * </p><a name="line.471"></a>
-<span class="sourceLineNo">472</span> *<a name="line.472"></a>
-<span class="sourceLineNo">473</span> * @param links The localized page links render on the page.<a name="line.473"></a>
-<span class="sourceLineNo">474</span> * @return This object (for method chaining).<a name="line.474"></a>
-<span class="sourceLineNo">475</span> */<a name="line.475"></a>
-<span class="sourceLineNo">476</span> public RestResponse setPageLinks(Object links) {<a name="line.476"></a>
-<span class="sourceLineNo">477</span> properties.put(HtmlDocSerializerContext.HTMLDOC_links, links);<a name="line.477"></a>
-<span class="sourceLineNo">478</span> return this;<a name="line.478"></a>
-<span class="sourceLineNo">479</span> }<a name="line.479"></a>
-<span class="sourceLineNo">480</span>}<a name="line.480"></a>
+<span class="sourceLineNo">064</span> private PrintWriter w;<a name="line.64"></a>
+<span class="sourceLineNo">065</span><a name="line.65"></a>
+<span class="sourceLineNo">066</span> /**<a name="line.66"></a>
+<span class="sourceLineNo">067</span> * Constructor.<a name="line.67"></a>
+<span class="sourceLineNo">068</span> */<a name="line.68"></a>
+<span class="sourceLineNo">069</span> RestResponse(RestContext context, RestRequest req, HttpServletResponse res) {<a name="line.69"></a>
+<span class="sourceLineNo">070</span> super(res);<a name="line.70"></a>
+<span class="sourceLineNo">071</span> this.request = req;<a name="line.71"></a>
+<span class="sourceLineNo">072</span><a name="line.72"></a>
+<span class="sourceLineNo">073</span> for (Map.Entry<String,Object> e : context.getDefaultResponseHeaders().entrySet())<a name="line.73"></a>
+<span class="sourceLineNo">074</span> setHeader(e.getKey(), e.getValue().toString());<a name="line.74"></a>
+<span class="sourceLineNo">075</span><a name="line.75"></a>
+<span class="sourceLineNo">076</span> try {<a name="line.76"></a>
+<span class="sourceLineNo">077</span> String passThroughHeaders = req.getHeader("x-response-headers");<a name="line.77"></a>
+<span class="sourceLineNo">078</span> if (passThroughHeaders != null) {<a name="line.78"></a>
+<span class="sourceLineNo">079</span> UrlEncodingParser p = context.getUrlEncodingParser();<a name="line.79"></a>
+<span class="sourceLineNo">080</span> ObjectMap m = p.parsePart(passThroughHeaders, p.getBeanContext().getClassMeta(ObjectMap.class));<a name="line.80"></a>
+<span class="sourceLineNo">081</span> for (Map.Entry<String,Object> e : m.entrySet())<a name="line.81"></a>
+<span class="sourceLineNo">082</span> setHeader(e.getKey(), e.getValue().toString());<a name="line.82"></a>
+<span class="sourceLineNo">083</span> }<a name="line.83"></a>
+<span class="sourceLineNo">084</span> } catch (Exception e1) {<a name="line.84"></a>
+<span class="sourceLineNo">085</span> throw new RestException(SC_BAD_REQUEST, "Invalid format for header 'x-response-headers'. Must be in URL-encoded format.").initCause(e1);<a name="line.85"></a>
+<span class="sourceLineNo">086</span> }<a name="line.86"></a>
+<span class="sourceLineNo">087</span> }<a name="line.87"></a>
+<span class="sourceLineNo">088</span><a name="line.88"></a>
+<span class="sourceLineNo">089</span> /*<a name="line.89"></a>
+<span class="sourceLineNo">090</span> * Called from RestServlet after a match has been made but before the guard or method invocation.<a name="line.90"></a>
+<span class="sourceLineNo">091</span> */<a name="line.91"></a>
+<span class="sourceLineNo">092</span> @SuppressWarnings("hiding")<a name="line.92"></a>
+<span class="sourceLineNo">093</span> final void init(ObjectMap properties, String defaultCharset, SerializerGroup mSerializers, UrlEncodingSerializer mUrlEncodingSerializer, EncoderGroup encoders) {<a name="line.93"></a>
+<span class="sourceLineNo">094</span> this.properties = properties;<a name="line.94"></a>
+<span class="sourceLineNo">095</span> this.serializerGroup = mSerializers;<a name="line.95"></a>
+<span class="sourceLineNo">096</span> this.urlEncodingSerializer = mUrlEncodingSerializer;<a name="line.96"></a>
+<span class="sourceLineNo">097</span> this.encoders = encoders;<a name="line.97"></a>
+<span class="sourceLineNo">098</span><a name="line.98"></a>
+<span class="sourceLineNo">099</span> // Find acceptable charset<a name="line.99"></a>
+<span class="sourceLineNo">100</span> String h = request.getHeader("accept-charset");<a name="line.100"></a>
+<span class="sourceLineNo">101</span> String charset = null;<a name="line.101"></a>
+<span class="sourceLineNo">102</span> if (h == null)<a name="line.102"></a>
+<span class="sourceLineNo">103</span> charset = defaultCharset;<a name="line.103"></a>
+<span class="sourceLineNo">104</span> else for (MediaTypeRange r : MediaTypeRange.parse(h)) {<a name="line.104"></a>
+<span class="sourceLineNo">105</span> if (r.getQValue() > 0) {<a name="line.105"></a>
+<span class="sourceLineNo">106</span> MediaType mt = r.getMediaType();<a name="line.106"></a>
+<span class="sourceLineNo">107</span> if (mt.getType().equals("*"))<a name="line.107"></a>
+<span class="sourceLineNo">108</span> charset = defaultCharset;<a name="line.108"></a>
+<span class="sourceLineNo">109</span> else if (Charset.isSupported(mt.getType()))<a name="line.109"></a>
+<span class="sourceLineNo">110</span> charset = mt.getType();<a name="line.110"></a>
+<span class="sourceLineNo">111</span> if (charset != null)<a name="line.111"></a>
+<span class="sourceLineNo">112</span> break;<a name="line.112"></a>
+<span class="sourceLineNo">113</span> }<a name="line.113"></a>
+<span class="sourceLineNo">114</span> }<a name="line.114"></a>
+<span class="sourceLineNo">115</span><a name="line.115"></a>
+<span class="sourceLineNo">116</span> if (charset == null)<a name="line.116"></a>
+<span class="sourceLineNo">117</span> throw new RestException(SC_NOT_ACCEPTABLE, "No supported charsets in header ''Accept-Charset'': ''{0}''", request.getHeader("Accept-Charset"));<a name="line.117"></a>
+<span class="sourceLineNo">118</span> super.setCharacterEncoding(charset);<a name="line.118"></a>
+<span class="sourceLineNo">119</span> }<a name="line.119"></a>
+<span class="sourceLineNo">120</span><a name="line.120"></a>
+<span class="sourceLineNo">121</span> /**<a name="line.121"></a>
+<span class="sourceLineNo">122</span> * Gets the serializer group for the response.<a name="line.122"></a>
+<span class="sourceLineNo">123</span> *<a name="line.123"></a>
+<span class="sourceLineNo">124</span> * @return The serializer group for the response.<a name="line.124"></a>
+<span class="sourceLineNo">125</span> */<a name="line.125"></a>
+<span class="sourceLineNo">126</span> public SerializerGroup getSerializerGroup() {<a name="line.126"></a>
+<span class="sourceLineNo">127</span> return serializerGroup;<a name="line.127"></a>
+<span class="sourceLineNo">128</span> }<a name="line.128"></a>
+<span class="sourceLineNo">129</span><a name="line.129"></a>
+<span class="sourceLineNo">130</span> /**<a name="line.130"></a>
+<span class="sourceLineNo">131</span> * Returns the media types that are valid for <code>Accept</code> headers on the request.<a name="line.131"></a>
+<span class="sourceLineNo">132</span> *<a name="line.132"></a>
+<span class="sourceLineNo">133</span> * @return The set of media types registered in the parser group of this request.<a name="line.133"></a>
+<span class="sourceLineNo">134</span> */<a name="line.134"></a>
+<span class="sourceLineNo">135</span> public List<MediaType> getSupportedMediaTypes() {<a name="line.135"></a>
+<span class="sourceLineNo">136</span> return serializerGroup.getSupportedMediaTypes();<a name="line.136"></a>
+<span class="sourceLineNo">137</span> }<a name="line.137"></a>
+<span class="sourceLineNo">138</span><a name="line.138"></a>
+<span class="sourceLineNo">139</span> /**<a name="line.139"></a>
+<span class="sourceLineNo">140</span> * Returns the codings that are valid for <code>Accept-Encoding</code> and <code>Content-Encoding</code> headers on the request.<a name="line.140"></a>
+<span class="sourceLineNo">141</span> *<a name="line.141"></a>
+<span class="sourceLineNo">142</span> * @return The set of media types registered in the parser group of this request.<a name="line.142"></a>
+<span class="sourceLineNo">143</span> * @throws RestServletException<a name="line.143"></a>
+<span class="sourceLineNo">144</span> */<a name="line.144"></a>
+<span class="sourceLineNo">145</span> public List<String> getSupportedEncodings() throws RestServletException {<a name="line.145"></a>
+<span class="sourceLineNo">146</span> return encoders.getSupportedEncodings();<a name="line.146"></a>
+<span class="sourceLineNo">147</span> }<a name="line.147"></a>
+<span class="sourceLineNo">148</span><a name="line.148"></a>
+<span class="sourceLineNo">149</span> /**<a name="line.149"></a>
+<span class="sourceLineNo">150</span> * Sets the HTTP output on the response.<a name="line.150"></a>
+<span class="sourceLineNo">151</span> * <p><a name="line.151"></a>
+<span class="sourceLineNo">152</span> * Calling this method is functionally equivalent to returning the object in the REST Java method.<a name="line.152"></a>
+<span class="sourceLineNo">153</span> * <p><a name="line.153"></a>
+<span class="sourceLineNo">154</span> * Can be of any of the following types:<a name="line.154"></a>
+<span class="sourceLineNo">155</span> * <ul><a name="line.155"></a>
+<span class="sourceLineNo">156</span> * <li> {@link InputStream}<a name="line.156"></a>
+<span class="sourceLineNo">157</span> * <li> {@link Reader}<a name="line.157"></a>
+<span class="sourceLineNo">158</span> * <li> Any serializable type defined in <a class="doclink" href="../../../../overview-summary.html#Core.PojoCategories">POJO Categories</a><a name="line.158"></a>
+<span class="sourceLineNo">159</span> * </ul><a name="line.159"></a>
+<span class="sourceLineNo">160</span> * <p><a name="line.160"></a>
+<span class="sourceLineNo">161</span> * If it's an {@link InputStream} or {@link Reader}, you must also specify the <code>Content-Type</code> using the {@link #setContentType(String)} method.<a name="line.161"></a>
+<span class="sourceLineNo">162</span> *<a name="line.162"></a>
+<span class="sourceLineNo">163</span> * @param output The output to serialize to the connection.<a name="line.163"></a>
+<span class="sourceLineNo">164</span> * @return This object (for method chaining).<a name="line.164"></a>
+<span class="sourceLineNo">165</span> */<a name="line.165"></a>
+<span class="sourceLineNo">166</span> public RestResponse setOutput(Object output) {<a name="line.166"></a>
+<span class="sourceLineNo">167</span> this.output = output;<a name="line.167"></a>
+<span class="sourceLineNo">168</span> this.isNullOutput = output == null;<a name="line.168"></a>
+<span class="sourceLineNo">169</span> return this;<a name="line.169"></a>
+<span class="sourceLineNo">170</span> }<a name="line.170"></a>
+<span class="sourceLineNo">171</span><a name="line.171"></a>
+<span class="sourceLineNo">172</span> /**<a name="line.172"></a>
+<span class="sourceLineNo">173</span> * Add a serializer property to send to the serializers to override a default value.<a name="line.173"></a>
+<span class="sourceLineNo">174</span> * <p><a name="line.174"></a>
+<span class="sourceLineNo">175</span> * Can be any value specified in the following classes:<a name="line.175"></a>
+<span class="sourceLineNo">176</span> * <ul><a name="line.176"></a>
+<span class="sourceLineNo">177</span> * <li>{@link SerializerContext}<a name="line.177"></a>
+<span class="sourceLineNo">178</span> * <li>{@link JsonSerializerContext}<a name="line.178"></a>
+<span class="sourceLineNo">179</span> * <li>{@link XmlSerializerContext}<a name="line.179"></a>
+<span class="sourceLineNo">180</span> * <li>{@link RdfSerializerContext}<a name="line.180"></a>
+<span class="sourceLineNo">181</span> * </ul><a name="line.181"></a>
+<span class="sourceLineNo">182</span> *<a name="line.182"></a>
+<span class="sourceLineNo">183</span> * @param key The setting name.<a name="line.183"></a>
+<span class="sourceLineNo">184</span> * @param value The setting value.<a name="line.184"></a>
+<span class="sourceLineNo">185</span> * @return This object (for method chaining).<a name="line.185"></a>
+<span class="sourceLineNo">186</span> */<a name="line.186"></a>
+<span class="sourceLineNo">187</span> public RestResponse setProperty(String key, Object value) {<a name="line.187"></a>
+<span class="sourceLineNo">188</span> properties.put(key, value);<a name="line.188"></a>
+<span class="sourceLineNo">189</span> return this;<a name="line.189"></a>
+<span class="sourceLineNo">190</span> }<a name="line.190"></a>
+<span class="sourceLineNo">191</span><a name="line.191"></a>
+<span class="sourceLineNo">192</span> /**<a name="line.192"></a>
+<span class="sourceLineNo">193</span> * Returns the properties set via {@link #setProperty(String, Object)}.<a name="line.193"></a>
+<span class="sourceLineNo">194</span> *<a name="line.194"></a>
+<span class="sourceLineNo">195</span> * @return A map of all the property values set.<a name="line.195"></a>
+<span class="sourceLineNo">196</span> */<a name="line.196"></a>
+<span class="sourceLineNo">197</span> public ObjectMap getProperties() {<a name="line.197"></a>
+<span class="sourceLineNo">198</span> return properties;<a name="line.198"></a>
+<span class="sourceLineNo">199</span> }<a name="line.199"></a>
+<span class="sourceLineNo">200</span><a name="line.200"></a>
+<span class="sourceLineNo">201</span> /**<a name="line.201"></a>
+<span class="sourceLineNo">202</span> * Shortcut method that allows you to use varargs to simplify setting array output.<a name="line.202"></a>
+<span class="sourceLineNo">203</span> *<a name="line.203"></a>
+<span class="sourceLineNo">204</span> * <h5 class='section'>Example:</h5><a name="line.204"></a>
+<span class="sourceLineNo">205</span> * <p class='bcode'><a name="line.205"></a>
+<span class="sourceLineNo">206</span> * <jc>// Instead of...</jc><a name="line.206"></a>
+<span class="sourceLineNo">207</span> * response.setOutput(<jk>new</jk> Object[]{x,y,z});<a name="line.207"></a>
+<span class="sourceLineNo">208</span> *<a name="line.208"></a>
+<span class="sourceLineNo">209</span> * <jc>// ...call this...</jc><a name="line.209"></a>
+<span class="sourceLineNo">210</span> * response.setOutput(x,y,z);<a name="line.210"></a>
+<span class="sourceLineNo">211</span> * </p><a name="line.211"></a>
+<span class="sourceLineNo">212</span> *<a name="line.212"></a>
+<span class="sourceLineNo">213</span> * @param output The output to serialize to the connection.<a name="line.213"></a>
+<span class="sourceLineNo">214</span> * @return This object (for method chaining).<a name="line.214"></a>
+<span class="sourceLineNo">215</span> */<a name="line.215"></a>
+<span class="sourceLineNo">216</span> public RestResponse setOutputs(Object...output) {<a name="line.216"></a>
+<span class="sourceLineNo">217</span> this.output = output;<a name="line.217"></a>
+<span class="sourceLineNo">218</span> return this;<a name="line.218"></a>
+<span class="sourceLineNo">219</span> }<a name="line.219"></a>
+<span class="sourceLineNo">220</span><a name="line.220"></a>
+<span class="sourceLineNo">221</span> /**<a name="line.221"></a>
+<span class="sourceLineNo">222</span> * Returns the output that was set by calling {@link #setOutput(Object)}.<a name="line.222"></a>
+<span class="sourceLineNo">223</span> *<a name="line.223"></a>
+<span class="sourceLineNo">224</span> * @return The output object.<a name="line.224"></a>
+<span class="sourceLineNo">225</span> */<a name="line.225"></a>
+<span class="sourceLineNo">226</span> public Object getOutput() {<a name="line.226"></a>
+<span class="sourceLineNo">227</span> return output;<a name="line.227"></a>
+<span class="sourceLineNo">228</span> }<a name="line.228"></a>
+<span class="sourceLineNo">229</span><a name="line.229"></a>
+<span class="sourceLineNo">230</span> /**<a name="line.230"></a>
+<span class="sourceLineNo">231</span> * Returns <jk>true</jk> if this response has any output associated with it.<a name="line.231"></a>
+<span class="sourceLineNo">232</span> *<a name="line.232"></a>
+<span class="sourceLineNo">233</span> * @return <jk>true</jk> if {@code setInput()} has been called.<a name="line.233"></a>
+<span class="sourceLineNo">234</span> */<a name="line.234"></a>
+<span class="sourceLineNo">235</span> public boolean hasOutput() {<a name="line.235"></a>
+<span class="sourceLineNo">236</span> return output != null || isNullOutput;<a name="line.236"></a>
+<span class="sourceLineNo">237</span> }<a name="line.237"></a>
+<span class="sourceLineNo">238</span><a name="line.238"></a>
+<span class="sourceLineNo">239</span> /**<a name="line.239"></a>
+<span class="sourceLineNo">240</span> * Sets the output to a plain-text message regardless of the content type.<a name="line.240"></a>
+<span class="sourceLineNo">241</span> *<a name="line.241"></a>
+<span class="sourceLineNo">242</span> * @param text The output text to send.<a name="line.242"></a>
+<span class="sourceLineNo">243</span> * @return This object (for method chaining).<a name="line.243"></a>
+<span class="sourceLineNo">244</span> * @throws IOException If a problem occurred trying to write to the writer.<a name="line.244"></a>
+<span class="sourceLineNo">245</span> */<a name="line.245"></a>
+<span class="sourceLineNo">246</span> public RestResponse sendPlainText(String text) throws IOException {<a name="line.246"></a>
+<span class="sourceLineNo">247</span> setContentType("text/plain");<a name="line.247"></a>
+<span class="sourceLineNo">248</span> getNegotiatedWriter().write(text);<a name="line.248"></a>
+<span class="sourceLineNo">249</span> return this;<a name="line.249"></a>
+<span class="sourceLineNo">250</span> }<a name="line.250"></a>
+<span class="sourceLineNo">251</span><a name="line.251"></a>
+<span class="sourceLineNo">252</span> /**<a name="line.252"></a>
+<span class="sourceLineNo">253</span> * Equivalent to {@link HttpServletResponse#getOutputStream()}, except<a name="line.253"></a>
+<span class="sourceLineNo">254</span> * wraps the output stream if an {@link Encoder} was found that matched<a name="line.254"></a>
+<span class="sourceLineNo">255</span> * the <code>Accept-Encoding</code> header.<a name="line.255"></a>
+<span class="sourceLineNo">256</span> *<a name="line.256"></a>
+<span class="sourceLineNo">257</span> * @return A negotiated output stream.<a name="line.257"></a>
+<span class="sourceLineNo">258</span> * @throws IOException<a name="line.258"></a>
+<span class="sourceLineNo">259</span> */<a name="line.259"></a>
+<span class="sourceLineNo">260</span> public ServletOutputStream getNegotiatedOutputStream() throws IOException {<a name="line.260"></a>
+<span class="sourceLineNo">261</span> if (os == null) {<a name="line.261"></a>
+<span class="sourceLineNo">262</span> Encoder encoder = null;<a name="line.262"></a>
+<span class="sourceLineNo">263</span><a name="line.263"></a>
+<span class="sourceLineNo">264</span> String ae = request.getHeader("Accept-Encoding");<a name="line.264"></a>
+<span class="sourceLineNo">265</span> if (! (ae == null || ae.isEmpty())) {<a name="line.265"></a>
+<span class="sourceLineNo">266</span> EncoderMatch match = encoders != null ? encoders.getEncoderMatch(ae) : null;<a name="line.266"></a>
+<span class="sourceLineNo">267</span> if (match == null) {<a name="line.267"></a>
+<span class="sourceLineNo">268</span> // Identity should always match unless "identity;q=0" or "*;q=0" is specified.<a name="line.268"></a>
+<span class="sourceLineNo">269</span> if (ae.matches(".*(identity|\\*)\\s*;\\s*q\\s*=\\s*(0(?!\\.)|0\\.0).*")) {<a name="line.269"></a>
+<span class="sourceLineNo">270</span> throw new RestException(SC_NOT_ACCEPTABLE,<a name="line.270"></a>
+<span class="sourceLineNo">271</span> "Unsupported encoding in request header ''Accept-Encoding'': ''{0}''\n\tSupported codings: {1}",<a name="line.271"></a>
+<span class="sourceLineNo">272</span> ae, encoders.getSupportedEncodings()<a name="line.272"></a>
+<span class="sourceLineNo">273</span> );<a name="line.273"></a>
+<span class="sourceLineNo">274</span> }<a name="line.274"></a>
+<span class="sourceLineNo">275</span> } else {<a name="line.275"></a>
+<span class="sourceLineNo">276</span> encoder = match.getEncoder();<a name="line.276"></a>
+<span class="sourceLineNo">277</span> String encoding = match.getEncoding().toString();<a name="line.277"></a>
+<span class="sourceLineNo">278</span><a name="line.278"></a>
+<span class="sourceLineNo">279</span> // Some clients don't recognize identity as an encoding, so don't set it.<a name="line.279"></a>
+<span class="sourceLineNo">280</span> if (! encoding.equals("identity"))<a name="line.280"></a>
+<span class="sourceLineNo">281</span> setHeader("content-encoding", encoding);<a name="line.281"></a>
+<span class="sourceLineNo">282</span> }<a name="line.282"></a>
+<span class="sourceLineNo">283</span> }<a name="line.283"></a>
+<span class="sourceLineNo">284</span> os = getOutputStream();<a name="line.284"></a>
+<span class="sourceLineNo">285</span> if (encoder != null) {<a name="line.285"></a>
+<span class="sourceLineNo">286</span> final OutputStream os2 = encoder.getOutputStream(os);<a name="line.286"></a>
+<span class="sourceLineNo">287</span> os = new ServletOutputStream(){<a name="line.287"></a>
+<span class="sourceLineNo">288</span> @Override /* OutputStream */<a name="line.288"></a>
+<span class="sourceLineNo">289</span> public final void write(byte[] b, int off, int len) throws IOException {<a name="line.289"></a>
+<span class="sourceLineNo">290</span> os2.write(b, off, len);<a name="line.290"></a>
+<span class="sourceLineNo">291</span> }<a name="line.291"></a>
+<span class="sourceLineNo">292</span> @Override /* OutputStream */<a name="line.292"></a>
+<span class="sourceLineNo">293</span> public final void write(int b) throws IOException {<a name="line.293"></a>
+<span class="sourceLineNo">294</span> os2.write(b);<a name="line.294"></a>
+<span class="sourceLineNo">295</span> }<a name="line.295"></a>
+<span class="sourceLineNo">296</span> @Override /* OutputStream */<a name="line.296"></a>
+<span class="sourceLineNo">297</span> public final void flush() throws IOException {<a name="line.297"></a>
+<span class="sourceLineNo">298</span> os2.flush();<a name="line.298"></a>
+<span class="sourceLineNo">299</span> }<a name="line.299"></a>
+<span class="sourceLineNo">300</span> @Override /* OutputStream */<a name="line.300"></a>
+<span class="sourceLineNo">301</span> public final void close() throws IOException {<a name="line.301"></a>
+<span class="sourceLineNo">302</span> os2.close();<a name="line.302"></a>
+<span class="sourceLineNo">303</span> }<a name="line.303"></a>
+<span class="sourceLineNo">304</span> };<a name="line.304"></a>
+<span class="sourceLineNo">305</span> }<a name="line.305"></a>
+<span class="sourceLineNo">306</span> }<a name="line.306"></a>
+<span class="sourceLineNo">307</span> return os;<a name="line.307"></a>
+<span class="sourceLineNo">308</span> }<a name="line.308"></a>
+<span class="sourceLineNo">309</span><a name="line.309"></a>
+<span class="sourceLineNo">310</span> @Override /* ServletResponse */<a name="line.310"></a>
+<span class="sourceLineNo">311</span> public ServletOutputStream getOutputStream() throws IOException {<a name="line.311"></a>
+<span class="sourceLineNo">312</span> if (os == null)<a name="line.312"></a>
+<span class="sourceLineNo">313</span> os = super.getOutputStream();<a name="line.313"></a>
+<span class="sourceLineNo">314</span> return os;<a name="line.314"></a>
+<span class="sourceLineNo">315</span> }<a name="line.315"></a>
+<span class="sourceLineNo">316</span><a name="line.316"></a>
+<span class="sourceLineNo">317</span> /**<a name="line.317"></a>
+<span class="sourceLineNo">318</span> * Returns <jk>true</jk> if {@link #getOutputStream()} has been called.<a name="line.318"></a>
+<span class="sourceLineNo">319</span> *<a name="line.319"></a>
+<span class="sourceLineNo">320</span> * @return <jk>true</jk> if {@link #getOutputStream()} has been called.<a name="line.320"></a>
+<span class="sourceLineNo">321</span> */<a name="line.321"></a>
+<span class="sourceLineNo">322</span> public boolean getOutputStreamCalled() {<a name="line.322"></a>
+<span class="sourceLineNo">323</span> return os != null;<a name="line.323"></a>
+<span class="sourceLineNo">324</span> }<a name="line.324"></a>
+<span class="sourceLineNo">325</span><a name="line.325"></a>
+<span class="sourceLineNo">326</span> /**<a name="line.326"></a>
+<span class="sourceLineNo">327</span> * Returns the writer to the response body.<a name="line.327"></a>
+<span class="sourceLineNo">328</span> * This methods bypasses any specified encoders and returns a regular unbuffered writer.<a name="line.328"></a>
+<span class="sourceLineNo">329</span> * Use the {@link #getNegotiatedWriter()} method if you want to use the matched encoder (if any).<a name="line.329"></a>
+<span class="sourceLineNo">330</span> */<a name="line.330"></a>
+<span class="sourceLineNo">331</span> @Override /* ServletResponse */<a name="line.331"></a>
+<span class="sourceLineNo">332</span> public PrintWriter getWriter() throws IOException {<a name="line.332"></a>
+<span class="sourceLineNo">333</span> return getWriter(true);<a name="line.333"></a>
+<span class="sourceLineNo">334</span> }<a name="line.334"></a>
+<span class="sourceLineNo">335</span><a name="line.335"></a>
+<span class="sourceLineNo">336</span> /**<a name="line.336"></a>
+<span class="sourceLineNo">337</span> * Convenience method meant to be used when rendering directly to a browser with no buffering.<a name="line.337"></a>
+<span class="sourceLineNo">338</span> * Sets the header <js>"x-content-type-options=nosniff"</js> so that output is rendered<a name="line.338"></a>
+<span class="sourceLineNo">339</span> * immediately on IE and Chrome without any buffering for content-type sniffing.<a name="line.339"></a>
+<span class="sourceLineNo">340</span> *<a name="line.340"></a>
+<span class="sourceLineNo">341</span> * @param contentType The value to set as the <code>Content-Type</code> on the response.<a name="line.341"></a>
+<span class="sourceLineNo">342</span> * @return The raw writer.<a name="line.342"></a>
+<span class="sourceLineNo">343</span> * @throws IOException<a name="line.343"></a>
+<span class="sourceLineNo">344</span> */<a name="line.344"></a>
+<span class="sourceLineNo">345</span> public PrintWriter getDirectWriter(String contentType) throws IOException {<a name="line.345"></a>
+<span class="sourceLineNo">346</span> setContentType(contentType);<a name="line.346"></a>
+<span class="sourceLineNo">347</span> setHeader("x-content-type-options", "nosniff");<a name="line.347"></a>
+<span class="sourceLineNo">348</span> return getWriter();<a name="line.348"></a>
+<span class="sourceLineNo">349</span> }<a name="line.349"></a>
+<span class="sourceLineNo">350</span><a name="line.350"></a>
+<span class="sourceLineNo">351</span> /**<a name="line.351"></a>
+<span class="sourceLineNo">352</span> * Equivalent to {@link HttpServletResponse#getWriter()}, except<a name="line.352"></a>
+<span class="sourceLineNo">353</span> * wraps the output stream if an {@link Encoder} was found that matched<a name="line.353"></a>
+<span class="sourceLineNo">354</span> * the <code>Accept-Encoding</code> header and sets the <code>Content-Encoding</code><a name="line.354"></a>
+<span class="sourceLineNo">355</span> * header to the appropriate value.<a name="line.355"></a>
+<span class="sourceLineNo">356</span> *<a name="line.356"></a>
+<span class="sourceLineNo">357</span> * @return The negotiated writer.<a name="line.357"></a>
+<span class="sourceLineNo">358</span> * @throws IOException<a name="line.358"></a>
+<span class="sourceLineNo">359</span> */<a name="line.359"></a>
+<span class="sourceLineNo">360</span> public PrintWriter getNegotiatedWriter() throws IOException {<a name="line.360"></a>
+<span class="sourceLineNo">361</span> return getWriter(false);<a name="line.361"></a>
+<span class="sourceLineNo">362</span> }<a name="line.362"></a>
+<span class="sourceLineNo">363</span><a name="line.363"></a>
+<span class="sourceLineNo">364</span> private PrintWriter getWriter(boolean raw) throws IOException {<a name="line.364"></a>
+<span class="sourceLineNo">365</span> if (w != null)<a name="line.365"></a>
+<span class="sourceLineNo">366</span> return w;<a name="line.366"></a>
+<span class="sourceLineNo">367</span><a name="line.367"></a>
+<span class="sourceLineNo">368</span> // If plain text requested, override it now.<a name="line.368"></a>
+<span class="sourceLineNo">369</span> if (request.isPlainText()) <a name="line.369"></a>
+<span class="sourceLineNo">370</span> setHeader("Content-Type", "text/plain");<a name="line.370"></a>
+<span class="sourceLineNo">371</span><a name="line.371"></a>
+<span class="sourceLineNo">372</span> try {<a name="line.372"></a>
+<span class="sourceLineNo">373</span> OutputStream out = (raw ? getOutputStream() : getNegotiatedOutputStream());<a name="line.373"></a>
+<span class="sourceLineNo">374</span> w = new PrintWriter(new OutputStreamWriter(out, getCharacterEncoding()));<a name="line.374"></a>
+<span class="sourceLineNo">375</span> return w;<a name="line.375"></a>
+<span class="sourceLineNo">376</span> } catch (UnsupportedEncodingException e) {<a name="line.376"></a>
+<span class="sourceLineNo">377</span> String ce = getCharacterEncoding();<a name="line.377"></a>
+<span class="sourceLineNo">378</span> setCharacterEncoding("UTF-8");<a name="line.378"></a>
+<span class="sourceLineNo">379</span> throw new RestException(SC_NOT_ACCEPTABLE, "Unsupported charset in request header ''Accept-Charset'': ''{0}''", ce);<a name="line.379"></a>
+<span class="sourceLineNo">380</span> }<a name="line.380"></a>
+<span class="sourceLineNo">381</span> }<a name="line.381"></a>
+<span class="sourceLineNo">382</span><a name="line.382"></a>
+<span class="sourceLineNo">383</span> /**<a name="line.383"></a>
+<span class="sourceLineNo">384</span> * Returns the <code>Content-Type</code> header stripped of the charset attribute if present.<a name="line.384"></a>
+<span class="sourceLineNo">385</span> *<a name="line.385"></a>
+<span class="sourceLineNo">386</span> * @return The <code>media-type</code> portion of the <code>Content-Type</code> header.<a name="line.386"></a>
+<span class="sourceLineNo">387</span> */<a name="line.387"></a>
+<span class="sourceLineNo">388</span> public MediaType getMediaType() {<a name="line.388"></a>
+<span class="sourceLineNo">389</span> return MediaType.forString(getContentType());<a name="line.389"></a>
+<span class="sourceLineNo">390</span> }<a name="line.390"></a>
+<span class="sourceLineNo">391</span><a name="line.391"></a>
+<span class="sourceLineNo">392</span> /**<a name="line.392"></a>
+<span class="sourceLineNo">393</span> * Redirects to the specified URI.<a name="line.393"></a>
+<span class="sourceLineNo">394</span> * <p><a name="line.394"></a>
+<span class="sourceLineNo">395</span> * Relative URIs are always interpreted as relative to the context root.<a name="line.395"></a>
+<span class="sourceLineNo">396</span> * This is similar to how WAS handles redirect requests, and is different from how Tomcat<a name="line.396"></a>
+<span class="sourceLineNo">397</span> * handles redirect requests.<a name="line.397"></a>
+<span class="sourceLineNo">398</span> */<a name="line.398"></a>
+<span class="sourceLineNo">399</span> @Override /* ServletResponse */<a name="line.399"></a>
+<span class="sourceLineNo">400</span> public void sendRedirect(String uri) throws IOException {<a name="line.400"></a>
+<span class="sourceLineNo">401</span> char c = (uri.length() > 0 ? uri.charAt(0) : 0);<a name="line.401"></a>
+<span class="sourceLineNo">402</span> if (c != '/' && uri.indexOf("://") == -1)<a name="line.402"></a>
+<span class="sourceLineNo">403</span> uri = request.getContextPath() + '/' + uri;<a name="line.403"></a>
+<span class="sourceLineNo">404</span> super.sendRedirect(uri);<a name="line.404"></a>
+<span class="sourceLineNo">405</span> }<a name="line.405"></a>
+<span class="sourceLineNo">406</span><a name="line.406"></a>
+<span class="sourceLineNo">407</span> /**<a name="line.407"></a>
+<span class="sourceLineNo">408</span> * Returns the URL-encoding serializer associated with this response.<a name="line.408"></a>
+<span class="sourceLineNo">409</span> *<a name="line.409"></a>
+<span class="sourceLineNo">410</span> * @return The URL-encoding serializer associated with this response.<a name="line.410"></a>
+<span class="sourceLineNo">411</span> */<a name="line.411"></a>
+<span class="sourceLineNo">412</span> public UrlEncodingSerializer getUrlEncodingSerializer() {<a name="line.412"></a>
+<span class="sourceLineNo">413</span> return urlEncodingSerializer;<a name="line.413"></a>
+<span class="sourceLineNo">414</span> }<a name="line.414"></a>
+<span class="sourceLineNo">415</span><a name="line.415"></a>
+<span class="sourceLineNo">416</span> @Override /* ServletResponse */<a name="line.416"></a>
+<span class="sourceLineNo">417</span> public void setHeader(String name, String value) {<a name="line.417"></a>
+<span class="sourceLineNo">418</span> // Jetty doesn't set the content type correctly if set through this method.<a name="line.418"></a>
+<span class="sourceLineNo">419</span> // Tomcat/WAS does.<a name="line.419"></a>
+<span class="sourceLineNo">420</span> if (name.equalsIgnoreCase("Content-Type"))<a name="line.420"></a>
+<span class="sourceLineNo">421</span> super.setContentType(value);<a name="line.421"></a>
+<span class="sourceLineNo">422</span> else<a name="line.422"></a>
+<span class="sourceLineNo">423</span> super.setHeader(name, value);<a name="line.423"></a>
+<span class="sourceLineNo">424</span> }<a name="line.424"></a>
+<span class="sourceLineNo">425</span><a name="line.425"></a>
+<span class="sourceLineNo">426</span> /**<a name="line.426"></a>
+<span class="sourceLineNo">427</span> * Sets the page title for HTML views.<a name="line.427"></a>
+<span class="sourceLineNo">428</span> * <p><a name="line.428"></a>
+<span class="sourceLineNo">429</span> * This is the programmatic equivalent to the {@link RestResource#pageTitle() @RestResource#pageTitle()}/<a name="line.429"></a>
+<span class="sourceLineNo">430</span> * {@link RestMethod#pageTitle() @RestMethod#pageTitle()} annotations.<a name="line.430"></a>
+<span class="sourceLineNo">431</span> * <p><a name="line.431"></a>
+<span class="sourceLineNo">432</span> * This is a shortcut for calling <code>setProperty(<jsf>HTMLDOC_title</jsf>, title);</code><a name="line.432"></a>
+<span class="sourceLineNo">433</span> * <p class='info'><a name="line.433"></a>
+<span class="sourceLineNo">434</span> * <b>Tip:</b> Use {@link StringMessage} to generate a page title with delayed serialization so as not to<a name="line.434"></a>
+<span class="sourceLineNo">435</span> * waste string concatenation cycles on non-HTML views.<a name="line.435"></a>
+<span class="sourceLineNo">436</span> * </p><a name="line.436"></a>
+<span class="sourceLineNo">437</span> *<a name="line.437"></a>
+<span class="sourceLineNo">438</span> * @param title The localized page title to render on the page.<a name="line.438"></a>
+<span class="sourceLineNo">439</span> * Object will be converted to a string using {@link Object#toString()}.<a name="line.439"></a>
+<span class="sourceLineNo">440</span> * @return This object (for method chaining).<a name="line.440"></a>
+<span class="sourceLineNo">441</span> */<a name="line.441"></a>
+<span class="sourceLineNo">442</span> public RestResponse setPageTitle(Object title) {<a name="line.442"></a>
+<span class="sourceLineNo">443</span> return setProperty(HtmlDocSerializerContext.HTMLDOC_title, title);<a name="line.443"></a>
+<span class="sourceLineNo">444</span> }<a name="line.444"></a>
+<span class="sourceLineNo">445</span><a name="line.445"></a>
+<span class="sourceLineNo">446</span> /**<a name="line.446"></a>
+<span class="sourceLineNo">447</span> * Sets the page text for HTML views.<a name="line.447"></a>
+<span class="sourceLineNo">448</span> * <p><a name="line.448"></a>
+<span class="sourceLineNo">449</span> * This is the programmatic equivalent to the {@link RestResource#pageText() @RestResource#pageText()}/<a name="line.449"></a>
+<span class="sourceLineNo">450</span> * {@link RestMethod#pageText() @RestMethod#pageText()} annotations.<a name="line.450"></a>
+<span class="sourceLineNo">451</span> * <p><a name="line.451"></a>
+<span class="sourceLineNo">452</span> * This is a shortcut for calling <code>setProperty(<jsf>HTMLDOC_text</jsf>, text);</code><a name="line.452"></a>
+<span class="sourceLineNo">453</span> * <p class='info'><a name="line.453"></a>
+<span class="sourceLineNo">454</span> * <b>Tip:</b> Use {@link StringMessage} to generate page text with delayed serialization so as not to<a name="line.454"></a>
+<span class="sourceLineNo">455</span> * waste string concatenation cycles on non-HTML views.<a name="line.455"></a>
+<span class="sourceLineNo">456</span> * </p><a name="line.456"></a>
+<span class="sourceLineNo">457</span> *<a name="line.457"></a>
+<span class="sourceLineNo">458</span> * @param text The localized page text to render on the page.<a name="line.458"></a>
+<span class="sourceLineNo">459</span> * @return This object (for method chaining).<a name="line.459"></a>
+<span class="sourceLineNo">460</span> */<a name="line.460"></a>
+<span class="sourceLineNo">461</span> public RestResponse setPageText(Object text) {<a name="line.461"></a>
+<span class="sourceLineNo">462</span> return setProperty(HtmlDocSerializerContext.HTMLDOC_text, text);<a name="line.462"></a>
+<span class="sourceLineNo">463</span> }<a name="line.463"></a>
+<span class="sourceLineNo">464</span><a name="line.464"></a>
+<span class="sourceLineNo">465</span> /**<a name="line.465"></a>
+<span class="sourceLineNo">466</span> * Sets the page text for HTML views.<a name="line.466"></a>
+<span class="sourceLineNo">467</span> * <p><a name="line.467"></a>
+<span class="sourceLineNo">468</span> * This is the programmatic equivalent to the {@link RestResource#pageLinks() @RestResource#pageLinks()}/<a name="line.468"></a>
+<span class="sourceLineNo">469</span> * {@link RestMethod#pageLinks() @RestMethod#pageLinks()} annotations.<a name="line.469"></a>
+<span class="sourceLineNo">470</span> * <p><a name="line.470"></a>
+<span class="sourceLineNo">471</span> * This is a shortcut for calling <code>setProperty(<jsf>HTMLDOC_links</jsf>, links);</code><a name="line.471"></a>
+<span class="sourceLineNo">472</span> * <p class='info'><a name="line.472"></a>
+<span class="sourceLineNo">473</span> * <b>Tip:</b> Use {@link StringMessage} to generate page links with delayed serialization so as not to<a name="line.473"></a>
+<span class="sourceLineNo">474</span> * waste string concatenation cycles on non-HTML views.<a name="line.474"></a>
+<span class="sourceLineNo">475</span> * </p><a name="line.475"></a>
+<span class="sourceLineNo">476</span> *<a name="line.476"></a>
+<span class="sourceLineNo">477</span> * @param links The localized page links render on the page.<a name="line.477"></a>
+<span class="sourceLineNo">478</span> * @return This object (for method chaining).<a name="line.478"></a>
+<span class="sourceLineNo">479</span> */<a name="line.479"></a>
+<span class="sourceLineNo">480</span> public RestResponse setPageLinks(Object links) {<a name="line.480"></a>
+<span class="sourceLineNo">481</span> properties.put(HtmlDocSerializerContext.HTMLDOC_links, links);<a name="line.481"></a>
+<span class="sourceLineNo">482</span> return this;<a name="line.482"></a>
+<span class="sourceLineNo">483</span> }<a name="line.483"></a>
+<span class="sourceLineNo">484</span><a name="line.484"></a>
+<span class="sourceLineNo">485</span> @Override /* ServletResponse */<a name="line.485"></a>
+<span class="sourceLineNo">486</span> public void flushBuffer() throws IOException {<a name="line.486"></a>
+<span class="sourceLineNo">487</span> if (w != null)<a name="line.487"></a>
+<span class="sourceLineNo">488</span> w.flush();<a name="line.488"></a>
+<span class="sourceLineNo">489</span> if (os != null)<a name="line.489"></a>
+<span class="sourceLineNo">490</span> os.flush();<a name="line.490"></a>
+<span class="sourceLineNo">491</span> super.flushBuffer();<a name="line.491"></a>
+<span class="sourceLineNo">492</span> }<a name="line.492"></a>
+<span class="sourceLineNo">493</span>}<a name="line.493"></a>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/src-html/org/apache/juneau/rest/RestUtils.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/rest/RestUtils.html b/content/site/apidocs/src-html/org/apache/juneau/rest/RestUtils.html
index 0452a5e..6475805 100644
--- a/content/site/apidocs/src-html/org/apache/juneau/rest/RestUtils.html
+++ b/content/site/apidocs/src-html/org/apache/juneau/rest/RestUtils.html
@@ -171,7 +171,24 @@
<span class="sourceLineNo">163</span> String val = s.substring(i+1).trim();<a name="line.163"></a>
<span class="sourceLineNo">164</span> return new String[]{name,val};<a name="line.164"></a>
<span class="sourceLineNo">165</span> }<a name="line.165"></a>
-<span class="sourceLineNo">166</span>}<a name="line.166"></a>
+<span class="sourceLineNo">166</span><a name="line.166"></a>
+<span class="sourceLineNo">167</span> /**<a name="line.167"></a>
+<span class="sourceLineNo">168</span> * Parses key/value pairs separated by either : or =<a name="line.168"></a>
+<span class="sourceLineNo">169</span> */<a name="line.169"></a>
+<span class="sourceLineNo">170</span> static String[] parseKeyValuePair(String s) {<a name="line.170"></a>
+<span class="sourceLineNo">171</span> int i = -1;<a name="line.171"></a>
+<span class="sourceLineNo">172</span> for (int j = 0; j < s.length() && i < 0; j++) { s.indexOf(':');<a name="line.172"></a>
+<span class="sourceLineNo">173</span> char c = s.charAt(j);<a name="line.173"></a>
+<span class="sourceLineNo">174</span> if (c == '=' || c == ':')<a name="line.174"></a>
+<span class="sourceLineNo">175</span> i = j;<a name="line.175"></a>
+<span class="sourceLineNo">176</span> }<a name="line.176"></a>
+<span class="sourceLineNo">177</span> if (i == -1)<a name="line.177"></a>
+<span class="sourceLineNo">178</span> return null;<a name="line.178"></a>
+<span class="sourceLineNo">179</span> String name = s.substring(0, i).trim();<a name="line.179"></a>
+<span class="sourceLineNo">180</span> String val = s.substring(i+1).trim();<a name="line.180"></a>
+<span class="sourceLineNo">181</span> return new String[]{name,val};<a name="line.181"></a>
+<span class="sourceLineNo">182</span> }<a name="line.182"></a>
+<span class="sourceLineNo">183</span>}<a name="line.183"></a>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/src-html/org/apache/juneau/rest/annotation/Body.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/rest/annotation/Body.html b/content/site/apidocs/src-html/org/apache/juneau/rest/annotation/Body.html
index 1d71e3b..888506f 100644
--- a/content/site/apidocs/src-html/org/apache/juneau/rest/annotation/Body.html
+++ b/content/site/apidocs/src-html/org/apache/juneau/rest/annotation/Body.html
@@ -43,7 +43,7 @@
<span class="sourceLineNo">035</span> * <p class='bcode'><a name="line.35"></a>
<span class="sourceLineNo">036</span> * <ja>@RestMethod</ja>(name=<js>"POST"</js>)<a name="line.36"></a>
<span class="sourceLineNo">037</span> * <jk>public void</jk> doPostPerson(RestRequest req, RestResponse res) {<a name="line.37"></a>
-<span class="sourceLineNo">038</span> * Person person = req.getBody(Person.<jk>class</jk>);<a name="line.38"></a>
+<span class="sourceLineNo">038</span> * Person person = req.getBody().asType(Person.<jk>class</jk>);<a name="line.38"></a>
<span class="sourceLineNo">039</span> * ...<a name="line.39"></a>
<span class="sourceLineNo">040</span> * }<a name="line.40"></a>
<span class="sourceLineNo">041</span> * </p><a name="line.41"></a>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/src-html/org/apache/juneau/rest/annotation/FormData.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/rest/annotation/FormData.html b/content/site/apidocs/src-html/org/apache/juneau/rest/annotation/FormData.html
index 595f492..9027a9f 100644
--- a/content/site/apidocs/src-html/org/apache/juneau/rest/annotation/FormData.html
+++ b/content/site/apidocs/src-html/org/apache/juneau/rest/annotation/FormData.html
@@ -101,7 +101,12 @@
<span class="sourceLineNo">093</span> * <js>"foo"</js> when using UON mode.<a name="line.93"></a>
<span class="sourceLineNo">094</span> */<a name="line.94"></a>
<span class="sourceLineNo">095</span> String format() default "INHERIT";<a name="line.95"></a>
-<span class="sourceLineNo">096</span>}<a name="line.96"></a>
+<span class="sourceLineNo">096</span><a name="line.96"></a>
+<span class="sourceLineNo">097</span> /**<a name="line.97"></a>
+<span class="sourceLineNo">098</span> * The default value for this form-data parameter if it's not present in the request.<a name="line.98"></a>
+<span class="sourceLineNo">099</span> */<a name="line.99"></a>
+<span class="sourceLineNo">100</span> String def() default "";<a name="line.100"></a>
+<span class="sourceLineNo">101</span>}<a name="line.101"></a>
[04/15] incubator-juneau-website git commit: Update javadocs.
Posted by ja...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/src-html/org/apache/juneau/rest/RestCallHandler.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/rest/RestCallHandler.html b/content/site/apidocs/src-html/org/apache/juneau/rest/RestCallHandler.html
index e51b7db..4d233f5 100644
--- a/content/site/apidocs/src-html/org/apache/juneau/rest/RestCallHandler.html
+++ b/content/site/apidocs/src-html/org/apache/juneau/rest/RestCallHandler.html
@@ -184,184 +184,187 @@
<span class="sourceLineNo">176</span><a name="line.176"></a>
<span class="sourceLineNo">177</span> onSuccess(req, res, System.currentTimeMillis() - startTime);<a name="line.177"></a>
<span class="sourceLineNo">178</span><a name="line.178"></a>
-<span class="sourceLineNo">179</span> } catch (RestException e) {<a name="line.179"></a>
-<span class="sourceLineNo">180</span> handleError(r1, r2, e);<a name="line.180"></a>
-<span class="sourceLineNo">181</span> } catch (Throwable e) {<a name="line.181"></a>
-<span class="sourceLineNo">182</span> handleError(r1, r2, new RestException(SC_INTERNAL_SERVER_ERROR, e));<a name="line.182"></a>
-<span class="sourceLineNo">183</span> }<a name="line.183"></a>
-<span class="sourceLineNo">184</span> logger.log(FINE, "HTTP: [{0} {1}] finished in {2}ms", r1.getMethod(), r1.getRequestURI(), System.currentTimeMillis()-startTime);<a name="line.184"></a>
-<span class="sourceLineNo">185</span> }<a name="line.185"></a>
-<span class="sourceLineNo">186</span><a name="line.186"></a>
-<span class="sourceLineNo">187</span> /**<a name="line.187"></a>
-<span class="sourceLineNo">188</span> * The main method for serializing POJOs passed in through the {@link RestResponse#setOutput(Object)} method or returned by<a name="line.188"></a>
-<span class="sourceLineNo">189</span> * the Java method.<a name="line.189"></a>
-<span class="sourceLineNo">190</span> * <p><a name="line.190"></a>
-<span class="sourceLineNo">191</span> * Subclasses may override this method if they wish to modify the way the output is rendered or support<a name="line.191"></a>
-<span class="sourceLineNo">192</span> * other output formats.<a name="line.192"></a>
+<span class="sourceLineNo">179</span> // Make sure our writer in RestResponse gets written.<a name="line.179"></a>
+<span class="sourceLineNo">180</span> res.flushBuffer();<a name="line.180"></a>
+<span class="sourceLineNo">181</span><a name="line.181"></a>
+<span class="sourceLineNo">182</span> } catch (RestException e) {<a name="line.182"></a>
+<span class="sourceLineNo">183</span> handleError(r1, r2, e);<a name="line.183"></a>
+<span class="sourceLineNo">184</span> } catch (Throwable e) {<a name="line.184"></a>
+<span class="sourceLineNo">185</span> handleError(r1, r2, new RestException(SC_INTERNAL_SERVER_ERROR, e));<a name="line.185"></a>
+<span class="sourceLineNo">186</span> }<a name="line.186"></a>
+<span class="sourceLineNo">187</span> logger.log(FINE, "HTTP: [{0} {1}] finished in {2}ms", r1.getMethod(), r1.getRequestURI(), System.currentTimeMillis()-startTime);<a name="line.187"></a>
+<span class="sourceLineNo">188</span> }<a name="line.188"></a>
+<span class="sourceLineNo">189</span><a name="line.189"></a>
+<span class="sourceLineNo">190</span> /**<a name="line.190"></a>
+<span class="sourceLineNo">191</span> * The main method for serializing POJOs passed in through the {@link RestResponse#setOutput(Object)} method or returned by<a name="line.191"></a>
+<span class="sourceLineNo">192</span> * the Java method.<a name="line.192"></a>
<span class="sourceLineNo">193</span> * <p><a name="line.193"></a>
-<span class="sourceLineNo">194</span> * The default implementation simply iterates through the response handlers on this resource<a name="line.194"></a>
-<span class="sourceLineNo">195</span> * looking for the first one whose {@link ResponseHandler#handle(RestRequest, RestResponse, Object)} method returns <jk>true</jk>.<a name="line.195"></a>
-<span class="sourceLineNo">196</span> *<a name="line.196"></a>
-<span class="sourceLineNo">197</span> * @param req The HTTP request.<a name="line.197"></a>
-<span class="sourceLineNo">198</span> * @param res The HTTP response.<a name="line.198"></a>
-<span class="sourceLineNo">199</span> * @param output The output to serialize in the response.<a name="line.199"></a>
-<span class="sourceLineNo">200</span> * @throws IOException<a name="line.200"></a>
-<span class="sourceLineNo">201</span> * @throws RestException<a name="line.201"></a>
-<span class="sourceLineNo">202</span> */<a name="line.202"></a>
-<span class="sourceLineNo">203</span> protected void handleResponse(RestRequest req, RestResponse res, Object output) throws IOException, RestException {<a name="line.203"></a>
-<span class="sourceLineNo">204</span> // Loop until we find the correct handler for the POJO.<a name="line.204"></a>
-<span class="sourceLineNo">205</span> for (ResponseHandler h : context.getResponseHandlers())<a name="line.205"></a>
-<span class="sourceLineNo">206</span> if (h.handle(req, res, output))<a name="line.206"></a>
-<span class="sourceLineNo">207</span> return;<a name="line.207"></a>
-<span class="sourceLineNo">208</span> throw new RestException(SC_NOT_IMPLEMENTED, "No response handlers found to process output of type '"+(output == null ? null : output.getClass().getName())+"'");<a name="line.208"></a>
-<span class="sourceLineNo">209</span> }<a name="line.209"></a>
-<span class="sourceLineNo">210</span><a name="line.210"></a>
-<span class="sourceLineNo">211</span> /**<a name="line.211"></a>
-<span class="sourceLineNo">212</span> * Handle the case where a matching method was not found.<a name="line.212"></a>
-<span class="sourceLineNo">213</span> * <p><a name="line.213"></a>
-<span class="sourceLineNo">214</span> * Subclasses can override this method to provide a 2nd-chance for specifying a response.<a name="line.214"></a>
-<span class="sourceLineNo">215</span> * The default implementation will simply throw an exception with an appropriate message.<a name="line.215"></a>
-<span class="sourceLineNo">216</span> *<a name="line.216"></a>
-<span class="sourceLineNo">217</span> * @param rc The HTTP response code.<a name="line.217"></a>
-<span class="sourceLineNo">218</span> * @param req The HTTP request.<a name="line.218"></a>
-<span class="sourceLineNo">219</span> * @param res The HTTP response.<a name="line.219"></a>
-<span class="sourceLineNo">220</span> * @throws Exception<a name="line.220"></a>
-<span class="sourceLineNo">221</span> */<a name="line.221"></a>
-<span class="sourceLineNo">222</span> protected void handleNotFound(int rc, RestRequest req, RestResponse res) throws Exception {<a name="line.222"></a>
-<span class="sourceLineNo">223</span> String pathInfo = req.getPathInfo();<a name="line.223"></a>
-<span class="sourceLineNo">224</span> String methodUC = req.getMethod();<a name="line.224"></a>
-<span class="sourceLineNo">225</span> String onPath = pathInfo == null ? " on no pathInfo" : String.format(" on path '%s'", pathInfo);<a name="line.225"></a>
-<span class="sourceLineNo">226</span> if (rc == SC_NOT_FOUND)<a name="line.226"></a>
-<span class="sourceLineNo">227</span> throw new RestException(rc, "Method ''{0}'' not found on resource with matching pattern{1}.", methodUC, onPath);<a name="line.227"></a>
-<span class="sourceLineNo">228</span> else if (rc == SC_PRECONDITION_FAILED)<a name="line.228"></a>
-<span class="sourceLineNo">229</span> throw new RestException(rc, "Method ''{0}'' not found on resource{1} with matching matcher.", methodUC, onPath);<a name="line.229"></a>
-<span class="sourceLineNo">230</span> else if (rc == SC_METHOD_NOT_ALLOWED)<a name="line.230"></a>
-<span class="sourceLineNo">231</span> throw new RestException(rc, "Method ''{0}'' not found on resource.", methodUC);<a name="line.231"></a>
-<span class="sourceLineNo">232</span> else<a name="line.232"></a>
-<span class="sourceLineNo">233</span> throw new ServletException("Invalid method response: " + rc);<a name="line.233"></a>
-<span class="sourceLineNo">234</span> }<a name="line.234"></a>
-<span class="sourceLineNo">235</span><a name="line.235"></a>
-<span class="sourceLineNo">236</span> /**<a name="line.236"></a>
-<span class="sourceLineNo">237</span> * Method for handling response errors.<a name="line.237"></a>
-<span class="sourceLineNo">238</span> * <p><a name="line.238"></a>
-<span class="sourceLineNo">239</span> * The default implementation logs the error and calls {@link #renderError(HttpServletRequest,HttpServletResponse,RestException)}.<a name="line.239"></a>
-<span class="sourceLineNo">240</span> * <p><a name="line.240"></a>
-<span class="sourceLineNo">241</span> * Subclasses can override this method to provide their own custom error response handling.<a name="line.241"></a>
-<span class="sourceLineNo">242</span> *<a name="line.242"></a>
-<span class="sourceLineNo">243</span> * @param req The servlet request.<a name="line.243"></a>
-<span class="sourceLineNo">244</span> * @param res The servlet response.<a name="line.244"></a>
-<span class="sourceLineNo">245</span> * @param e The exception that occurred.<a name="line.245"></a>
-<span class="sourceLineNo">246</span> * @throws IOException Can be thrown if a problem occurred trying to write to the output stream.<a name="line.246"></a>
-<span class="sourceLineNo">247</span> */<a name="line.247"></a>
-<span class="sourceLineNo">248</span> protected synchronized void handleError(HttpServletRequest req, HttpServletResponse res, RestException e) throws IOException {<a name="line.248"></a>
-<span class="sourceLineNo">249</span> e.setOccurrence(context == null ? 0 : context.getStackTraceOccurrence(e));<a name="line.249"></a>
-<span class="sourceLineNo">250</span> logger.onError(req, res, e);<a name="line.250"></a>
-<span class="sourceLineNo">251</span> renderError(req, res, e);<a name="line.251"></a>
-<span class="sourceLineNo">252</span> }<a name="line.252"></a>
-<span class="sourceLineNo">253</span><a name="line.253"></a>
-<span class="sourceLineNo">254</span> /**<a name="line.254"></a>
-<span class="sourceLineNo">255</span> * Method for rendering response errors.<a name="line.255"></a>
-<span class="sourceLineNo">256</span> * <p><a name="line.256"></a>
-<span class="sourceLineNo">257</span> * The default implementation renders a plain text English message, optionally with a stack trace<a name="line.257"></a>
-<span class="sourceLineNo">258</span> * if {@link RestContext#REST_renderResponseStackTraces} is enabled.<a name="line.258"></a>
+<span class="sourceLineNo">194</span> * Subclasses may override this method if they wish to modify the way the output is rendered or support<a name="line.194"></a>
+<span class="sourceLineNo">195</span> * other output formats.<a name="line.195"></a>
+<span class="sourceLineNo">196</span> * <p><a name="line.196"></a>
+<span class="sourceLineNo">197</span> * The default implementation simply iterates through the response handlers on this resource<a name="line.197"></a>
+<span class="sourceLineNo">198</span> * looking for the first one whose {@link ResponseHandler#handle(RestRequest, RestResponse, Object)} method returns <jk>true</jk>.<a name="line.198"></a>
+<span class="sourceLineNo">199</span> *<a name="line.199"></a>
+<span class="sourceLineNo">200</span> * @param req The HTTP request.<a name="line.200"></a>
+<span class="sourceLineNo">201</span> * @param res The HTTP response.<a name="line.201"></a>
+<span class="sourceLineNo">202</span> * @param output The output to serialize in the response.<a name="line.202"></a>
+<span class="sourceLineNo">203</span> * @throws IOException<a name="line.203"></a>
+<span class="sourceLineNo">204</span> * @throws RestException<a name="line.204"></a>
+<span class="sourceLineNo">205</span> */<a name="line.205"></a>
+<span class="sourceLineNo">206</span> protected void handleResponse(RestRequest req, RestResponse res, Object output) throws IOException, RestException {<a name="line.206"></a>
+<span class="sourceLineNo">207</span> // Loop until we find the correct handler for the POJO.<a name="line.207"></a>
+<span class="sourceLineNo">208</span> for (ResponseHandler h : context.getResponseHandlers())<a name="line.208"></a>
+<span class="sourceLineNo">209</span> if (h.handle(req, res, output))<a name="line.209"></a>
+<span class="sourceLineNo">210</span> return;<a name="line.210"></a>
+<span class="sourceLineNo">211</span> throw new RestException(SC_NOT_IMPLEMENTED, "No response handlers found to process output of type '"+(output == null ? null : output.getClass().getName())+"'");<a name="line.211"></a>
+<span class="sourceLineNo">212</span> }<a name="line.212"></a>
+<span class="sourceLineNo">213</span><a name="line.213"></a>
+<span class="sourceLineNo">214</span> /**<a name="line.214"></a>
+<span class="sourceLineNo">215</span> * Handle the case where a matching method was not found.<a name="line.215"></a>
+<span class="sourceLineNo">216</span> * <p><a name="line.216"></a>
+<span class="sourceLineNo">217</span> * Subclasses can override this method to provide a 2nd-chance for specifying a response.<a name="line.217"></a>
+<span class="sourceLineNo">218</span> * The default implementation will simply throw an exception with an appropriate message.<a name="line.218"></a>
+<span class="sourceLineNo">219</span> *<a name="line.219"></a>
+<span class="sourceLineNo">220</span> * @param rc The HTTP response code.<a name="line.220"></a>
+<span class="sourceLineNo">221</span> * @param req The HTTP request.<a name="line.221"></a>
+<span class="sourceLineNo">222</span> * @param res The HTTP response.<a name="line.222"></a>
+<span class="sourceLineNo">223</span> * @throws Exception<a name="line.223"></a>
+<span class="sourceLineNo">224</span> */<a name="line.224"></a>
+<span class="sourceLineNo">225</span> protected void handleNotFound(int rc, RestRequest req, RestResponse res) throws Exception {<a name="line.225"></a>
+<span class="sourceLineNo">226</span> String pathInfo = req.getPathInfo();<a name="line.226"></a>
+<span class="sourceLineNo">227</span> String methodUC = req.getMethod();<a name="line.227"></a>
+<span class="sourceLineNo">228</span> String onPath = pathInfo == null ? " on no pathInfo" : String.format(" on path '%s'", pathInfo);<a name="line.228"></a>
+<span class="sourceLineNo">229</span> if (rc == SC_NOT_FOUND)<a name="line.229"></a>
+<span class="sourceLineNo">230</span> throw new RestException(rc, "Method ''{0}'' not found on resource with matching pattern{1}.", methodUC, onPath);<a name="line.230"></a>
+<span class="sourceLineNo">231</span> else if (rc == SC_PRECONDITION_FAILED)<a name="line.231"></a>
+<span class="sourceLineNo">232</span> throw new RestException(rc, "Method ''{0}'' not found on resource{1} with matching matcher.", methodUC, onPath);<a name="line.232"></a>
+<span class="sourceLineNo">233</span> else if (rc == SC_METHOD_NOT_ALLOWED)<a name="line.233"></a>
+<span class="sourceLineNo">234</span> throw new RestException(rc, "Method ''{0}'' not found on resource.", methodUC);<a name="line.234"></a>
+<span class="sourceLineNo">235</span> else<a name="line.235"></a>
+<span class="sourceLineNo">236</span> throw new ServletException("Invalid method response: " + rc);<a name="line.236"></a>
+<span class="sourceLineNo">237</span> }<a name="line.237"></a>
+<span class="sourceLineNo">238</span><a name="line.238"></a>
+<span class="sourceLineNo">239</span> /**<a name="line.239"></a>
+<span class="sourceLineNo">240</span> * Method for handling response errors.<a name="line.240"></a>
+<span class="sourceLineNo">241</span> * <p><a name="line.241"></a>
+<span class="sourceLineNo">242</span> * The default implementation logs the error and calls {@link #renderError(HttpServletRequest,HttpServletResponse,RestException)}.<a name="line.242"></a>
+<span class="sourceLineNo">243</span> * <p><a name="line.243"></a>
+<span class="sourceLineNo">244</span> * Subclasses can override this method to provide their own custom error response handling.<a name="line.244"></a>
+<span class="sourceLineNo">245</span> *<a name="line.245"></a>
+<span class="sourceLineNo">246</span> * @param req The servlet request.<a name="line.246"></a>
+<span class="sourceLineNo">247</span> * @param res The servlet response.<a name="line.247"></a>
+<span class="sourceLineNo">248</span> * @param e The exception that occurred.<a name="line.248"></a>
+<span class="sourceLineNo">249</span> * @throws IOException Can be thrown if a problem occurred trying to write to the output stream.<a name="line.249"></a>
+<span class="sourceLineNo">250</span> */<a name="line.250"></a>
+<span class="sourceLineNo">251</span> protected synchronized void handleError(HttpServletRequest req, HttpServletResponse res, RestException e) throws IOException {<a name="line.251"></a>
+<span class="sourceLineNo">252</span> e.setOccurrence(context == null ? 0 : context.getStackTraceOccurrence(e));<a name="line.252"></a>
+<span class="sourceLineNo">253</span> logger.onError(req, res, e);<a name="line.253"></a>
+<span class="sourceLineNo">254</span> renderError(req, res, e);<a name="line.254"></a>
+<span class="sourceLineNo">255</span> }<a name="line.255"></a>
+<span class="sourceLineNo">256</span><a name="line.256"></a>
+<span class="sourceLineNo">257</span> /**<a name="line.257"></a>
+<span class="sourceLineNo">258</span> * Method for rendering response errors.<a name="line.258"></a>
<span class="sourceLineNo">259</span> * <p><a name="line.259"></a>
-<span class="sourceLineNo">260</span> * Subclasses can override this method to provide their own custom error response handling.<a name="line.260"></a>
-<span class="sourceLineNo">261</span> *<a name="line.261"></a>
-<span class="sourceLineNo">262</span> * @param req The servlet request.<a name="line.262"></a>
-<span class="sourceLineNo">263</span> * @param res The servlet response.<a name="line.263"></a>
-<span class="sourceLineNo">264</span> * @param e The exception that occurred.<a name="line.264"></a>
-<span class="sourceLineNo">265</span> * @throws IOException Can be thrown if a problem occurred trying to write to the output stream.<a name="line.265"></a>
-<span class="sourceLineNo">266</span> */<a name="line.266"></a>
-<span class="sourceLineNo">267</span> protected void renderError(HttpServletRequest req, HttpServletResponse res, RestException e) throws IOException {<a name="line.267"></a>
-<span class="sourceLineNo">268</span><a name="line.268"></a>
-<span class="sourceLineNo">269</span> int status = e.getStatus();<a name="line.269"></a>
-<span class="sourceLineNo">270</span> res.setStatus(status);<a name="line.270"></a>
-<span class="sourceLineNo">271</span> res.setContentType("text/plain");<a name="line.271"></a>
-<span class="sourceLineNo">272</span> res.setHeader("Content-Encoding", "identity");<a name="line.272"></a>
-<span class="sourceLineNo">273</span><a name="line.273"></a>
-<span class="sourceLineNo">274</span> Throwable t = e.getRootCause();<a name="line.274"></a>
-<span class="sourceLineNo">275</span> if (t != null) {<a name="line.275"></a>
-<span class="sourceLineNo">276</span> res.setHeader("Exception-Name", t.getClass().getName());<a name="line.276"></a>
-<span class="sourceLineNo">277</span> res.setHeader("Exception-Message", t.getMessage());<a name="line.277"></a>
-<span class="sourceLineNo">278</span> }<a name="line.278"></a>
-<span class="sourceLineNo">279</span><a name="line.279"></a>
-<span class="sourceLineNo">280</span> PrintWriter w = null;<a name="line.280"></a>
-<span class="sourceLineNo">281</span> try {<a name="line.281"></a>
-<span class="sourceLineNo">282</span> w = res.getWriter();<a name="line.282"></a>
-<span class="sourceLineNo">283</span> } catch (IllegalStateException e2) {<a name="line.283"></a>
-<span class="sourceLineNo">284</span> w = new PrintWriter(new OutputStreamWriter(res.getOutputStream(), IOUtils.UTF8));<a name="line.284"></a>
-<span class="sourceLineNo">285</span> }<a name="line.285"></a>
-<span class="sourceLineNo">286</span> String httpMessage = RestUtils.getHttpResponseText(status);<a name="line.286"></a>
-<span class="sourceLineNo">287</span> if (httpMessage != null)<a name="line.287"></a>
-<span class="sourceLineNo">288</span> w.append("HTTP ").append(String.valueOf(status)).append(": ").append(httpMessage).append("\n\n");<a name="line.288"></a>
-<span class="sourceLineNo">289</span> if (context != null && context.isRenderResponseStackTraces())<a name="line.289"></a>
-<span class="sourceLineNo">290</span> e.printStackTrace(w);<a name="line.290"></a>
-<span class="sourceLineNo">291</span> else<a name="line.291"></a>
-<span class="sourceLineNo">292</span> w.append(e.getFullStackMessage(true));<a name="line.292"></a>
-<span class="sourceLineNo">293</span> w.flush();<a name="line.293"></a>
-<span class="sourceLineNo">294</span> w.close();<a name="line.294"></a>
-<span class="sourceLineNo">295</span> }<a name="line.295"></a>
-<span class="sourceLineNo">296</span><a name="line.296"></a>
-<span class="sourceLineNo">297</span> /**<a name="line.297"></a>
-<span class="sourceLineNo">298</span> * Callback method for listening for successful completion of requests.<a name="line.298"></a>
-<span class="sourceLineNo">299</span> * <p><a name="line.299"></a>
-<span class="sourceLineNo">300</span> * Subclasses can override this method for gathering performance statistics.<a name="line.300"></a>
-<span class="sourceLineNo">301</span> * <p><a name="line.301"></a>
-<span class="sourceLineNo">302</span> * The default implementation does nothing.<a name="line.302"></a>
-<span class="sourceLineNo">303</span> *<a name="line.303"></a>
-<span class="sourceLineNo">304</span> * @param req The HTTP request.<a name="line.304"></a>
-<span class="sourceLineNo">305</span> * @param res The HTTP response.<a name="line.305"></a>
-<span class="sourceLineNo">306</span> * @param time The time in milliseconds it took to process the request.<a name="line.306"></a>
-<span class="sourceLineNo">307</span> */<a name="line.307"></a>
-<span class="sourceLineNo">308</span> protected void onSuccess(RestRequest req, RestResponse res, long time) {<a name="line.308"></a>
-<span class="sourceLineNo">309</span> if (restServlet != null)<a name="line.309"></a>
-<span class="sourceLineNo">310</span> restServlet.onSuccess(req, res, time);<a name="line.310"></a>
-<span class="sourceLineNo">311</span> }<a name="line.311"></a>
-<span class="sourceLineNo">312</span><a name="line.312"></a>
-<span class="sourceLineNo">313</span> /**<a name="line.313"></a>
-<span class="sourceLineNo">314</span> * Callback method that gets invoked right before the REST Java method is invoked.<a name="line.314"></a>
-<span class="sourceLineNo">315</span> * <p><a name="line.315"></a>
-<span class="sourceLineNo">316</span> * Subclasses can override this method to override request headers or set request-duration properties<a name="line.316"></a>
-<span class="sourceLineNo">317</span> * before the Java method is invoked.<a name="line.317"></a>
-<span class="sourceLineNo">318</span> *<a name="line.318"></a>
-<span class="sourceLineNo">319</span> * @param req The HTTP servlet request object.<a name="line.319"></a>
-<span class="sourceLineNo">320</span> * @throws RestException If any error occurs.<a name="line.320"></a>
-<span class="sourceLineNo">321</span> */<a name="line.321"></a>
-<span class="sourceLineNo">322</span> protected void onPreCall(RestRequest req) throws RestException {<a name="line.322"></a>
-<span class="sourceLineNo">323</span> if (restServlet != null)<a name="line.323"></a>
-<span class="sourceLineNo">324</span> restServlet.onPreCall(req);<a name="line.324"></a>
-<span class="sourceLineNo">325</span> }<a name="line.325"></a>
-<span class="sourceLineNo">326</span><a name="line.326"></a>
-<span class="sourceLineNo">327</span> /**<a name="line.327"></a>
-<span class="sourceLineNo">328</span> * Callback method that gets invoked right after the REST Java method is invoked, but before<a name="line.328"></a>
-<span class="sourceLineNo">329</span> * the serializer is invoked.<a name="line.329"></a>
-<span class="sourceLineNo">330</span> * <p><a name="line.330"></a>
-<span class="sourceLineNo">331</span> * Subclasses can override this method to override request and response headers, or<a name="line.331"></a>
-<span class="sourceLineNo">332</span> * set/override properties used by the serializer.<a name="line.332"></a>
-<span class="sourceLineNo">333</span> *<a name="line.333"></a>
-<span class="sourceLineNo">334</span> * @param req The HTTP servlet request object.<a name="line.334"></a>
-<span class="sourceLineNo">335</span> * @param res The HTTP servlet response object.<a name="line.335"></a>
-<span class="sourceLineNo">336</span> * @throws RestException If any error occurs.<a name="line.336"></a>
-<span class="sourceLineNo">337</span> */<a name="line.337"></a>
-<span class="sourceLineNo">338</span> protected void onPostCall(RestRequest req, RestResponse res) throws RestException {<a name="line.338"></a>
-<span class="sourceLineNo">339</span> if (restServlet != null)<a name="line.339"></a>
-<span class="sourceLineNo">340</span> restServlet.onPostCall(req, res);<a name="line.340"></a>
-<span class="sourceLineNo">341</span> }<a name="line.341"></a>
-<span class="sourceLineNo">342</span><a name="line.342"></a>
-<span class="sourceLineNo">343</span> /**<a name="line.343"></a>
-<span class="sourceLineNo">344</span> * Returns the session objects for the specified request.<a name="line.344"></a>
-<span class="sourceLineNo">345</span> * <p><a name="line.345"></a>
-<span class="sourceLineNo">346</span> * The default implementation simply returns a single map containing <code>{'req':req}</code>.<a name="line.346"></a>
-<span class="sourceLineNo">347</span> *<a name="line.347"></a>
-<span class="sourceLineNo">348</span> * @param req The REST request.<a name="line.348"></a>
-<span class="sourceLineNo">349</span> * @return The session objects for that request.<a name="line.349"></a>
-<span class="sourceLineNo">350</span> */<a name="line.350"></a>
-<span class="sourceLineNo">351</span> public Map<String,Object> getSessionObjects(RestRequest req) {<a name="line.351"></a>
-<span class="sourceLineNo">352</span> Map<String,Object> m = new HashMap<String,Object>();<a name="line.352"></a>
-<span class="sourceLineNo">353</span> m.put(RequestVar.SESSION_req, req);<a name="line.353"></a>
-<span class="sourceLineNo">354</span> return m;<a name="line.354"></a>
-<span class="sourceLineNo">355</span> }<a name="line.355"></a>
-<span class="sourceLineNo">356</span>}<a name="line.356"></a>
+<span class="sourceLineNo">260</span> * The default implementation renders a plain text English message, optionally with a stack trace<a name="line.260"></a>
+<span class="sourceLineNo">261</span> * if {@link RestContext#REST_renderResponseStackTraces} is enabled.<a name="line.261"></a>
+<span class="sourceLineNo">262</span> * <p><a name="line.262"></a>
+<span class="sourceLineNo">263</span> * Subclasses can override this method to provide their own custom error response handling.<a name="line.263"></a>
+<span class="sourceLineNo">264</span> *<a name="line.264"></a>
+<span class="sourceLineNo">265</span> * @param req The servlet request.<a name="line.265"></a>
+<span class="sourceLineNo">266</span> * @param res The servlet response.<a name="line.266"></a>
+<span class="sourceLineNo">267</span> * @param e The exception that occurred.<a name="line.267"></a>
+<span class="sourceLineNo">268</span> * @throws IOException Can be thrown if a problem occurred trying to write to the output stream.<a name="line.268"></a>
+<span class="sourceLineNo">269</span> */<a name="line.269"></a>
+<span class="sourceLineNo">270</span> protected void renderError(HttpServletRequest req, HttpServletResponse res, RestException e) throws IOException {<a name="line.270"></a>
+<span class="sourceLineNo">271</span><a name="line.271"></a>
+<span class="sourceLineNo">272</span> int status = e.getStatus();<a name="line.272"></a>
+<span class="sourceLineNo">273</span> res.setStatus(status);<a name="line.273"></a>
+<span class="sourceLineNo">274</span> res.setContentType("text/plain");<a name="line.274"></a>
+<span class="sourceLineNo">275</span> res.setHeader("Content-Encoding", "identity");<a name="line.275"></a>
+<span class="sourceLineNo">276</span><a name="line.276"></a>
+<span class="sourceLineNo">277</span> Throwable t = e.getRootCause();<a name="line.277"></a>
+<span class="sourceLineNo">278</span> if (t != null) {<a name="line.278"></a>
+<span class="sourceLineNo">279</span> res.setHeader("Exception-Name", t.getClass().getName());<a name="line.279"></a>
+<span class="sourceLineNo">280</span> res.setHeader("Exception-Message", t.getMessage());<a name="line.280"></a>
+<span class="sourceLineNo">281</span> }<a name="line.281"></a>
+<span class="sourceLineNo">282</span><a name="line.282"></a>
+<span class="sourceLineNo">283</span> PrintWriter w = null;<a name="line.283"></a>
+<span class="sourceLineNo">284</span> try {<a name="line.284"></a>
+<span class="sourceLineNo">285</span> w = res.getWriter();<a name="line.285"></a>
+<span class="sourceLineNo">286</span> } catch (IllegalStateException e2) {<a name="line.286"></a>
+<span class="sourceLineNo">287</span> w = new PrintWriter(new OutputStreamWriter(res.getOutputStream(), IOUtils.UTF8));<a name="line.287"></a>
+<span class="sourceLineNo">288</span> }<a name="line.288"></a>
+<span class="sourceLineNo">289</span> String httpMessage = RestUtils.getHttpResponseText(status);<a name="line.289"></a>
+<span class="sourceLineNo">290</span> if (httpMessage != null)<a name="line.290"></a>
+<span class="sourceLineNo">291</span> w.append("HTTP ").append(String.valueOf(status)).append(": ").append(httpMessage).append("\n\n");<a name="line.291"></a>
+<span class="sourceLineNo">292</span> if (context != null && context.isRenderResponseStackTraces())<a name="line.292"></a>
+<span class="sourceLineNo">293</span> e.printStackTrace(w);<a name="line.293"></a>
+<span class="sourceLineNo">294</span> else<a name="line.294"></a>
+<span class="sourceLineNo">295</span> w.append(e.getFullStackMessage(true));<a name="line.295"></a>
+<span class="sourceLineNo">296</span> w.flush();<a name="line.296"></a>
+<span class="sourceLineNo">297</span> w.close();<a name="line.297"></a>
+<span class="sourceLineNo">298</span> }<a name="line.298"></a>
+<span class="sourceLineNo">299</span><a name="line.299"></a>
+<span class="sourceLineNo">300</span> /**<a name="line.300"></a>
+<span class="sourceLineNo">301</span> * Callback method for listening for successful completion of requests.<a name="line.301"></a>
+<span class="sourceLineNo">302</span> * <p><a name="line.302"></a>
+<span class="sourceLineNo">303</span> * Subclasses can override this method for gathering performance statistics.<a name="line.303"></a>
+<span class="sourceLineNo">304</span> * <p><a name="line.304"></a>
+<span class="sourceLineNo">305</span> * The default implementation does nothing.<a name="line.305"></a>
+<span class="sourceLineNo">306</span> *<a name="line.306"></a>
+<span class="sourceLineNo">307</span> * @param req The HTTP request.<a name="line.307"></a>
+<span class="sourceLineNo">308</span> * @param res The HTTP response.<a name="line.308"></a>
+<span class="sourceLineNo">309</span> * @param time The time in milliseconds it took to process the request.<a name="line.309"></a>
+<span class="sourceLineNo">310</span> */<a name="line.310"></a>
+<span class="sourceLineNo">311</span> protected void onSuccess(RestRequest req, RestResponse res, long time) {<a name="line.311"></a>
+<span class="sourceLineNo">312</span> if (restServlet != null)<a name="line.312"></a>
+<span class="sourceLineNo">313</span> restServlet.onSuccess(req, res, time);<a name="line.313"></a>
+<span class="sourceLineNo">314</span> }<a name="line.314"></a>
+<span class="sourceLineNo">315</span><a name="line.315"></a>
+<span class="sourceLineNo">316</span> /**<a name="line.316"></a>
+<span class="sourceLineNo">317</span> * Callback method that gets invoked right before the REST Java method is invoked.<a name="line.317"></a>
+<span class="sourceLineNo">318</span> * <p><a name="line.318"></a>
+<span class="sourceLineNo">319</span> * Subclasses can override this method to override request headers or set request-duration properties<a name="line.319"></a>
+<span class="sourceLineNo">320</span> * before the Java method is invoked.<a name="line.320"></a>
+<span class="sourceLineNo">321</span> *<a name="line.321"></a>
+<span class="sourceLineNo">322</span> * @param req The HTTP servlet request object.<a name="line.322"></a>
+<span class="sourceLineNo">323</span> * @throws RestException If any error occurs.<a name="line.323"></a>
+<span class="sourceLineNo">324</span> */<a name="line.324"></a>
+<span class="sourceLineNo">325</span> protected void onPreCall(RestRequest req) throws RestException {<a name="line.325"></a>
+<span class="sourceLineNo">326</span> if (restServlet != null)<a name="line.326"></a>
+<span class="sourceLineNo">327</span> restServlet.onPreCall(req);<a name="line.327"></a>
+<span class="sourceLineNo">328</span> }<a name="line.328"></a>
+<span class="sourceLineNo">329</span><a name="line.329"></a>
+<span class="sourceLineNo">330</span> /**<a name="line.330"></a>
+<span class="sourceLineNo">331</span> * Callback method that gets invoked right after the REST Java method is invoked, but before<a name="line.331"></a>
+<span class="sourceLineNo">332</span> * the serializer is invoked.<a name="line.332"></a>
+<span class="sourceLineNo">333</span> * <p><a name="line.333"></a>
+<span class="sourceLineNo">334</span> * Subclasses can override this method to override request and response headers, or<a name="line.334"></a>
+<span class="sourceLineNo">335</span> * set/override properties used by the serializer.<a name="line.335"></a>
+<span class="sourceLineNo">336</span> *<a name="line.336"></a>
+<span class="sourceLineNo">337</span> * @param req The HTTP servlet request object.<a name="line.337"></a>
+<span class="sourceLineNo">338</span> * @param res The HTTP servlet response object.<a name="line.338"></a>
+<span class="sourceLineNo">339</span> * @throws RestException If any error occurs.<a name="line.339"></a>
+<span class="sourceLineNo">340</span> */<a name="line.340"></a>
+<span class="sourceLineNo">341</span> protected void onPostCall(RestRequest req, RestResponse res) throws RestException {<a name="line.341"></a>
+<span class="sourceLineNo">342</span> if (restServlet != null)<a name="line.342"></a>
+<span class="sourceLineNo">343</span> restServlet.onPostCall(req, res);<a name="line.343"></a>
+<span class="sourceLineNo">344</span> }<a name="line.344"></a>
+<span class="sourceLineNo">345</span><a name="line.345"></a>
+<span class="sourceLineNo">346</span> /**<a name="line.346"></a>
+<span class="sourceLineNo">347</span> * Returns the session objects for the specified request.<a name="line.347"></a>
+<span class="sourceLineNo">348</span> * <p><a name="line.348"></a>
+<span class="sourceLineNo">349</span> * The default implementation simply returns a single map containing <code>{'req':req}</code>.<a name="line.349"></a>
+<span class="sourceLineNo">350</span> *<a name="line.350"></a>
+<span class="sourceLineNo">351</span> * @param req The REST request.<a name="line.351"></a>
+<span class="sourceLineNo">352</span> * @return The session objects for that request.<a name="line.352"></a>
+<span class="sourceLineNo">353</span> */<a name="line.353"></a>
+<span class="sourceLineNo">354</span> public Map<String,Object> getSessionObjects(RestRequest req) {<a name="line.354"></a>
+<span class="sourceLineNo">355</span> Map<String,Object> m = new HashMap<String,Object>();<a name="line.355"></a>
+<span class="sourceLineNo">356</span> m.put(RequestVar.SESSION_req, req);<a name="line.356"></a>
+<span class="sourceLineNo">357</span> return m;<a name="line.357"></a>
+<span class="sourceLineNo">358</span> }<a name="line.358"></a>
+<span class="sourceLineNo">359</span>}<a name="line.359"></a>
[10/15] incubator-juneau-website git commit: Update javadocs.
Posted by ja...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/org/apache/juneau/rest/RestResponse.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/org/apache/juneau/rest/RestResponse.html b/content/site/apidocs/org/apache/juneau/rest/RestResponse.html
index 2212167..796331d 100644
--- a/content/site/apidocs/org/apache/juneau/rest/RestResponse.html
+++ b/content/site/apidocs/org/apache/juneau/rest/RestResponse.html
@@ -18,7 +18,7 @@
catch(err) {
}
//-->
-var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10};
+var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
@@ -176,18 +176,22 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
+<td class="colFirst"><code>void</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestResponse.html#flushBuffer--">flushBuffer</a></span>()</code> </td>
+</tr>
+<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/PrintWriter.html?is-external=true" title="class or interface in java.io">PrintWriter</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestResponse.html#getDirectWriter-java.lang.String-">getDirectWriter</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> contentType)</code>
<div class="block">Convenience method meant to be used when rendering directly to a browser with no buffering.</div>
</td>
</tr>
-<tr id="i1" class="rowColor">
+<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestResponse.html#getMediaType--">getMediaType</a></span>()</code>
<div class="block">Returns the <code>Content-Type</code> header stripped of the charset attribute if present.</div>
</td>
</tr>
-<tr id="i2" class="altColor">
+<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletOutputStream.html?is-external=true" title="class or interface in javax.servlet">ServletOutputStream</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestResponse.html#getNegotiatedOutputStream--">getNegotiatedOutputStream</a></span>()</code>
<div class="block">Equivalent to <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponse.html?is-external=true#getOutputStream--" title="class or interface in javax.servlet"><code>ServletResponse.getOutputStream()</code></a>, except
@@ -195,7 +199,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
the <code>Accept-Encoding</code> header.</div>
</td>
</tr>
-<tr id="i3" class="rowColor">
+<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/PrintWriter.html?is-external=true" title="class or interface in java.io">PrintWriter</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestResponse.html#getNegotiatedWriter--">getNegotiatedWriter</a></span>()</code>
<div class="block">Equivalent to <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponse.html?is-external=true#getWriter--" title="class or interface in javax.servlet"><code>ServletResponse.getWriter()</code></a>, except
@@ -204,112 +208,112 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
header to the appropriate value.</div>
</td>
</tr>
-<tr id="i4" class="altColor">
+<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestResponse.html#getOutput--">getOutput</a></span>()</code>
<div class="block">Returns the output that was set by calling <a href="../../../../org/apache/juneau/rest/RestResponse.html#setOutput-java.lang.Object-"><code>setOutput(Object)</code></a>.</div>
</td>
</tr>
-<tr id="i5" class="rowColor">
+<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletOutputStream.html?is-external=true" title="class or interface in javax.servlet">ServletOutputStream</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestResponse.html#getOutputStream--">getOutputStream</a></span>()</code> </td>
</tr>
-<tr id="i6" class="altColor">
+<tr id="i7" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestResponse.html#getOutputStreamCalled--">getOutputStreamCalled</a></span>()</code>
<div class="block">Returns <jk>true</jk> if <a href="../../../../org/apache/juneau/rest/RestResponse.html#getOutputStream--"><code>getOutputStream()</code></a> has been called.</div>
</td>
</tr>
-<tr id="i7" class="rowColor">
+<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau">ObjectMap</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestResponse.html#getProperties--">getProperties</a></span>()</code>
<div class="block">Returns the properties set via <a href="../../../../org/apache/juneau/rest/RestResponse.html#setProperty-java.lang.String-java.lang.Object-"><code>setProperty(String, Object)</code></a>.</div>
</td>
</tr>
-<tr id="i8" class="altColor">
+<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/serializer/SerializerGroup.html" title="class in org.apache.juneau.serializer">SerializerGroup</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestResponse.html#getSerializerGroup--">getSerializerGroup</a></span>()</code>
<div class="block">Gets the serializer group for the response.</div>
</td>
</tr>
-<tr id="i9" class="rowColor">
+<tr id="i10" class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestResponse.html#getSupportedEncodings--">getSupportedEncodings</a></span>()</code>
<div class="block">Returns the codings that are valid for <code>Accept-Encoding</code> and <code>Content-Encoding</code> headers on the request.</div>
</td>
</tr>
-<tr id="i10" class="altColor">
+<tr id="i11" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a>></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestResponse.html#getSupportedMediaTypes--">getSupportedMediaTypes</a></span>()</code>
<div class="block">Returns the media types that are valid for <code>Accept</code> headers on the request.</div>
</td>
</tr>
-<tr id="i11" class="rowColor">
+<tr id="i12" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/urlencoding/UrlEncodingSerializer.html" title="class in org.apache.juneau.urlencoding">UrlEncodingSerializer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestResponse.html#getUrlEncodingSerializer--">getUrlEncodingSerializer</a></span>()</code>
<div class="block">Returns the URL-encoding serializer associated with this response.</div>
</td>
</tr>
-<tr id="i12" class="altColor">
+<tr id="i13" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/PrintWriter.html?is-external=true" title="class or interface in java.io">PrintWriter</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestResponse.html#getWriter--">getWriter</a></span>()</code>
<div class="block">Returns the writer to the response body.</div>
</td>
</tr>
-<tr id="i13" class="rowColor">
+<tr id="i14" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestResponse.html#hasOutput--">hasOutput</a></span>()</code>
<div class="block">Returns <jk>true</jk> if this response has any output associated with it.</div>
</td>
</tr>
-<tr id="i14" class="altColor">
+<tr id="i15" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestResponse.html#sendPlainText-java.lang.String-">sendPlainText</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> text)</code>
<div class="block">Sets the output to a plain-text message regardless of the content type.</div>
</td>
</tr>
-<tr id="i15" class="rowColor">
+<tr id="i16" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestResponse.html#sendRedirect-java.lang.String-">sendRedirect</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> uri)</code>
<div class="block">Redirects to the specified URI.</div>
</td>
</tr>
-<tr id="i16" class="altColor">
+<tr id="i17" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestResponse.html#setHeader-java.lang.String-java.lang.String-">setHeader</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</code> </td>
</tr>
-<tr id="i17" class="rowColor">
+<tr id="i18" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestResponse.html#setOutput-java.lang.Object-">setOutput</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> output)</code>
<div class="block">Sets the HTTP output on the response.</div>
</td>
</tr>
-<tr id="i18" class="altColor">
+<tr id="i19" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestResponse.html#setOutputs-java.lang.Object...-">setOutputs</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>... output)</code>
<div class="block">Shortcut method that allows you to use varargs to simplify setting array output.</div>
</td>
</tr>
-<tr id="i19" class="rowColor">
+<tr id="i20" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestResponse.html#setPageLinks-java.lang.Object-">setPageLinks</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> links)</code>
<div class="block">Sets the page text for HTML views.</div>
</td>
</tr>
-<tr id="i20" class="altColor">
+<tr id="i21" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestResponse.html#setPageText-java.lang.Object-">setPageText</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> text)</code>
<div class="block">Sets the page text for HTML views.</div>
</td>
</tr>
-<tr id="i21" class="rowColor">
+<tr id="i22" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestResponse.html#setPageTitle-java.lang.Object-">setPageTitle</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> title)</code>
<div class="block">Sets the page title for HTML views.</div>
</td>
</tr>
-<tr id="i22" class="altColor">
+<tr id="i23" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestResponse.html#setProperty-java.lang.String-java.lang.Object-">setProperty</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
@@ -329,7 +333,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<!-- -->
</a>
<h3>Methods inherited from class javax.servlet.<a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html?is-external=true" title="class or interface in javax.servlet">ServletResponseWrapper</a></h3>
-<code><a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html?is-external=true#flushBuffer--" title="class or interface in javax.servlet">flushBuffer</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html?is-external=true#getBufferSize--" title="class or interface in javax.servlet">getBufferSize</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html?is-external=true#getCharacterEncoding--" title="class or interface in javax.servlet">getCharacterEncoding</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html?is-external=true#getContentType--" title="class or interface in javax.servlet">getContentType</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html?is-external=true#getLocale--" title="class or interface in javax.servlet">getLocale</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletR
esponseWrapper.html?is-external=true#getResponse--" title="class or interface in javax.servlet">getResponse</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html?is-external=true#isCommitted--" title="class or interface in javax.servlet">isCommitted</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html?is-external=true#isWrapperFor-java.lang.Class-" title="class or interface in javax.servlet">isWrapperFor</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html?is-external=true#isWrapperFor-javax.servlet.ServletResponse-" title="class or interface in javax.servlet">isWrapperFor</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html?is-external=true#reset--" title="class or interface in javax.servlet">reset</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html?is-external=true#resetBuffer--" title="cl
ass or interface in javax.servlet">resetBuffer</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html?is-external=true#setBufferSize-int-" title="class or interface in javax.servlet">setBufferSize</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html?is-external=true#setCharacterEncoding-java.lang.String-" title="class or interface in javax.servlet">setCharacterEncoding</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html?is-external=true#setContentLength-int-" title="class or interface in javax.servlet">setContentLength</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html?is-external=true#setContentType-java.lang.String-" title="class or interface in javax.servlet">setContentType</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html?is-external=true#setLocale-java.util.Locale-" title="class or
interface in javax.servlet">setLocale</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html?is-external=true#setResponse-javax.servlet.ServletResponse-" title="class or interface in javax.servlet">setResponse</a></code></li>
+<code><a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html?is-external=true#getBufferSize--" title="class or interface in javax.servlet">getBufferSize</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html?is-external=true#getCharacterEncoding--" title="class or interface in javax.servlet">getCharacterEncoding</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html?is-external=true#getContentType--" title="class or interface in javax.servlet">getContentType</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html?is-external=true#getLocale--" title="class or interface in javax.servlet">getLocale</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html?is-external=true#getResponse--" title="class or interface in javax.servlet">getResponse</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletR
esponseWrapper.html?is-external=true#isCommitted--" title="class or interface in javax.servlet">isCommitted</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html?is-external=true#isWrapperFor-java.lang.Class-" title="class or interface in javax.servlet">isWrapperFor</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html?is-external=true#isWrapperFor-javax.servlet.ServletResponse-" title="class or interface in javax.servlet">isWrapperFor</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html?is-external=true#reset--" title="class or interface in javax.servlet">reset</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html?is-external=true#resetBuffer--" title="class or interface in javax.servlet">resetBuffer</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html?is-external=true#setBufferSize-int-" titl
e="class or interface in javax.servlet">setBufferSize</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html?is-external=true#setCharacterEncoding-java.lang.String-" title="class or interface in javax.servlet">setCharacterEncoding</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html?is-external=true#setContentLength-int-" title="class or interface in javax.servlet">setContentLength</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html?is-external=true#setContentType-java.lang.String-" title="class or interface in javax.servlet">setContentType</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html?is-external=true#setLocale-java.util.Locale-" title="class or interface in javax.servlet">setLocale</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html?is-external=true#setResponse-javax.servlet.Servlet
Response-" title="class or interface in javax.servlet">setResponse</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
@@ -343,7 +347,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<!-- -->
</a>
<h3>Methods inherited from interface javax.servlet.<a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponse.html?is-external=true" title="class or interface in javax.servlet">ServletResponse</a></h3>
-<code><a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponse.html?is-external=true#flushBuffer--" title="class or interface in javax.servlet">flushBuffer</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponse.html?is-external=true#getBufferSize--" title="class or interface in javax.servlet">getBufferSize</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponse.html?is-external=true#getCharacterEncoding--" title="class or interface in javax.servlet">getCharacterEncoding</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponse.html?is-external=true#getContentType--" title="class or interface in javax.servlet">getContentType</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponse.html?is-external=true#getLocale--" title="class or interface in javax.servlet">getLocale</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponse.html?is-external=true#isCom
mitted--" title="class or interface in javax.servlet">isCommitted</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponse.html?is-external=true#reset--" title="class or interface in javax.servlet">reset</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponse.html?is-external=true#resetBuffer--" title="class or interface in javax.servlet">resetBuffer</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponse.html?is-external=true#setBufferSize-int-" title="class or interface in javax.servlet">setBufferSize</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponse.html?is-external=true#setCharacterEncoding-java.lang.String-" title="class or interface in javax.servlet">setCharacterEncoding</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponse.html?is-external=true#setContentLength-int-" title="class or interface in javax.servlet">setContentLength</a>, <a href="http://doc
s.oracle.com/javaee/5/api/javax/servlet/ServletResponse.html?is-external=true#setContentType-java.lang.String-" title="class or interface in javax.servlet">setContentType</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponse.html?is-external=true#setLocale-java.util.Locale-" title="class or interface in javax.servlet">setLocale</a></code></li>
+<code><a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponse.html?is-external=true#getBufferSize--" title="class or interface in javax.servlet">getBufferSize</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponse.html?is-external=true#getCharacterEncoding--" title="class or interface in javax.servlet">getCharacterEncoding</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponse.html?is-external=true#getContentType--" title="class or interface in javax.servlet">getContentType</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponse.html?is-external=true#getLocale--" title="class or interface in javax.servlet">getLocale</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponse.html?is-external=true#isCommitted--" title="class or interface in javax.servlet">isCommitted</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponse.html?is-external=true#reset
--" title="class or interface in javax.servlet">reset</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponse.html?is-external=true#resetBuffer--" title="class or interface in javax.servlet">resetBuffer</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponse.html?is-external=true#setBufferSize-int-" title="class or interface in javax.servlet">setBufferSize</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponse.html?is-external=true#setCharacterEncoding-java.lang.String-" title="class or interface in javax.servlet">setCharacterEncoding</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponse.html?is-external=true#setContentLength-int-" title="class or interface in javax.servlet">setContentLength</a>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponse.html?is-external=true#setContentType-java.lang.String-" title="class or interface in javax.servlet">setContentType</a
>, <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponse.html?is-external=true#setLocale-java.util.Locale-" title="class or interface in javax.servlet">setLocale</a></code></li>
</ul>
</li>
</ul>
@@ -365,7 +369,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getSerializerGroup</h4>
-<pre>public <a href="../../../../org/apache/juneau/serializer/SerializerGroup.html" title="class in org.apache.juneau.serializer">SerializerGroup</a> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.125">getSerializerGroup</a>()</pre>
+<pre>public <a href="../../../../org/apache/juneau/serializer/SerializerGroup.html" title="class in org.apache.juneau.serializer">SerializerGroup</a> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.126">getSerializerGroup</a>()</pre>
<div class="block">Gets the serializer group for the response.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -379,7 +383,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getSupportedMediaTypes</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a>> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.134">getSupportedMediaTypes</a>()</pre>
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a>> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.135">getSupportedMediaTypes</a>()</pre>
<div class="block">Returns the media types that are valid for <code>Accept</code> headers on the request.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -393,7 +397,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getSupportedEncodings</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.144">getSupportedEncodings</a>()
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.145">getSupportedEncodings</a>()
throws <a href="../../../../org/apache/juneau/rest/RestServletException.html" title="class in org.apache.juneau.rest">RestServletException</a></pre>
<div class="block">Returns the codings that are valid for <code>Accept-Encoding</code> and <code>Content-Encoding</code> headers on the request.</div>
<dl>
@@ -410,7 +414,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>setOutput</h4>
-<pre>public <a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.165">setOutput</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> output)</pre>
+<pre>public <a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.166">setOutput</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> output)</pre>
<div class="block">Sets the HTTP output on the response.
<p>
Calling this method is functionally equivalent to returning the object in the REST Java method.
@@ -437,7 +441,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>setProperty</h4>
-<pre>public <a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.186">setProperty</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key,
+<pre>public <a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.187">setProperty</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</pre>
<div class="block">Add a serializer property to send to the serializers to override a default value.
<p>
@@ -463,7 +467,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getProperties</h4>
-<pre>public <a href="../../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau">ObjectMap</a> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.196">getProperties</a>()</pre>
+<pre>public <a href="../../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau">ObjectMap</a> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.197">getProperties</a>()</pre>
<div class="block">Returns the properties set via <a href="../../../../org/apache/juneau/rest/RestResponse.html#setProperty-java.lang.String-java.lang.Object-"><code>setProperty(String, Object)</code></a>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -477,7 +481,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>setOutputs</h4>
-<pre>public <a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.215">setOutputs</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>... output)</pre>
+<pre>public <a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.216">setOutputs</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>... output)</pre>
<div class="block">Shortcut method that allows you to use varargs to simplify setting array output.
<h5 class='section'>Example:</h5>
@@ -502,7 +506,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getOutput</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.225">getOutput</a>()</pre>
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.226">getOutput</a>()</pre>
<div class="block">Returns the output that was set by calling <a href="../../../../org/apache/juneau/rest/RestResponse.html#setOutput-java.lang.Object-"><code>setOutput(Object)</code></a>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -516,7 +520,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>hasOutput</h4>
-<pre>public boolean <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.234">hasOutput</a>()</pre>
+<pre>public boolean <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.235">hasOutput</a>()</pre>
<div class="block">Returns <jk>true</jk> if this response has any output associated with it.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -530,7 +534,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>sendPlainText</h4>
-<pre>public <a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.245">sendPlainText</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> text)
+<pre>public <a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.246">sendPlainText</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> text)
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Sets the output to a plain-text message regardless of the content type.</div>
<dl>
@@ -549,7 +553,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getNegotiatedOutputStream</h4>
-<pre>public <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletOutputStream.html?is-external=true" title="class or interface in javax.servlet">ServletOutputStream</a> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.259">getNegotiatedOutputStream</a>()
+<pre>public <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletOutputStream.html?is-external=true" title="class or interface in javax.servlet">ServletOutputStream</a> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.260">getNegotiatedOutputStream</a>()
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Equivalent to <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponse.html?is-external=true#getOutputStream--" title="class or interface in javax.servlet"><code>ServletResponse.getOutputStream()</code></a>, except
wraps the output stream if an <a href="../../../../org/apache/juneau/encoders/Encoder.html" title="class in org.apache.juneau.encoders"><code>Encoder</code></a> was found that matched
@@ -568,7 +572,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getOutputStream</h4>
-<pre>public <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletOutputStream.html?is-external=true" title="class or interface in javax.servlet">ServletOutputStream</a> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.310">getOutputStream</a>()
+<pre>public <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletOutputStream.html?is-external=true" title="class or interface in javax.servlet">ServletOutputStream</a> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.311">getOutputStream</a>()
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
@@ -586,7 +590,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getOutputStreamCalled</h4>
-<pre>public boolean <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.321">getOutputStreamCalled</a>()</pre>
+<pre>public boolean <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.322">getOutputStreamCalled</a>()</pre>
<div class="block">Returns <jk>true</jk> if <a href="../../../../org/apache/juneau/rest/RestResponse.html#getOutputStream--"><code>getOutputStream()</code></a> has been called.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -600,7 +604,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getWriter</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/io/PrintWriter.html?is-external=true" title="class or interface in java.io">PrintWriter</a> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.331">getWriter</a>()
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/io/PrintWriter.html?is-external=true" title="class or interface in java.io">PrintWriter</a> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.332">getWriter</a>()
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Returns the writer to the response body.
This methods bypasses any specified encoders and returns a regular unbuffered writer.
@@ -621,7 +625,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getDirectWriter</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/io/PrintWriter.html?is-external=true" title="class or interface in java.io">PrintWriter</a> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.344">getDirectWriter</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> contentType)
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/io/PrintWriter.html?is-external=true" title="class or interface in java.io">PrintWriter</a> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.345">getDirectWriter</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> contentType)
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Convenience method meant to be used when rendering directly to a browser with no buffering.
Sets the header <js>"x-content-type-options=nosniff"</js> so that output is rendered
@@ -642,7 +646,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getNegotiatedWriter</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/io/PrintWriter.html?is-external=true" title="class or interface in java.io">PrintWriter</a> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.359">getNegotiatedWriter</a>()
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/io/PrintWriter.html?is-external=true" title="class or interface in java.io">PrintWriter</a> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.360">getNegotiatedWriter</a>()
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Equivalent to <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponse.html?is-external=true#getWriter--" title="class or interface in javax.servlet"><code>ServletResponse.getWriter()</code></a>, except
wraps the output stream if an <a href="../../../../org/apache/juneau/encoders/Encoder.html" title="class in org.apache.juneau.encoders"><code>Encoder</code></a> was found that matched
@@ -662,7 +666,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getMediaType</h4>
-<pre>public <a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.384">getMediaType</a>()</pre>
+<pre>public <a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.388">getMediaType</a>()</pre>
<div class="block">Returns the <code>Content-Type</code> header stripped of the charset attribute if present.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -676,7 +680,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>sendRedirect</h4>
-<pre>public void <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.396">sendRedirect</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> uri)
+<pre>public void <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.400">sendRedirect</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> uri)
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Redirects to the specified URI.
<p>
@@ -699,7 +703,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getUrlEncodingSerializer</h4>
-<pre>public <a href="../../../../org/apache/juneau/urlencoding/UrlEncodingSerializer.html" title="class in org.apache.juneau.urlencoding">UrlEncodingSerializer</a> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.408">getUrlEncodingSerializer</a>()</pre>
+<pre>public <a href="../../../../org/apache/juneau/urlencoding/UrlEncodingSerializer.html" title="class in org.apache.juneau.urlencoding">UrlEncodingSerializer</a> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.412">getUrlEncodingSerializer</a>()</pre>
<div class="block">Returns the URL-encoding serializer associated with this response.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -713,7 +717,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>setHeader</h4>
-<pre>public void <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.413">setHeader</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
+<pre>public void <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.417">setHeader</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
@@ -729,7 +733,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>setPageTitle</h4>
-<pre>public <a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.438">setPageTitle</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> title)</pre>
+<pre>public <a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.442">setPageTitle</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> title)</pre>
<div class="block">Sets the page title for HTML views.
<p>
This is the programmatic equivalent to the <a href="../../../../org/apache/juneau/rest/annotation/RestResource.html#pageTitle--"><code>@RestResource#pageTitle()</code></a>/
@@ -755,7 +759,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>setPageText</h4>
-<pre>public <a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.457">setPageText</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> text)</pre>
+<pre>public <a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.461">setPageText</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> text)</pre>
<div class="block">Sets the page text for HTML views.
<p>
This is the programmatic equivalent to the <a href="../../../../org/apache/juneau/rest/annotation/RestResource.html#pageText--"><code>@RestResource#pageText()</code></a>/
@@ -777,10 +781,10 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<a name="setPageLinks-java.lang.Object-">
<!-- -->
</a>
-<ul class="blockListLast">
+<ul class="blockList">
<li class="blockList">
<h4>setPageLinks</h4>
-<pre>public <a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.476">setPageLinks</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> links)</pre>
+<pre>public <a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a> <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.480">setPageLinks</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> links)</pre>
<div class="block">Sets the page text for HTML views.
<p>
This is the programmatic equivalent to the <a href="../../../../org/apache/juneau/rest/annotation/RestResource.html#pageLinks--"><code>@RestResource#pageLinks()</code></a>/
@@ -799,6 +803,24 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
</dl>
</li>
</ul>
+<a name="flushBuffer--">
+<!-- -->
+</a>
+<ul class="blockListLast">
+<li class="blockList">
+<h4>flushBuffer</h4>
+<pre>public void <a href="../../../../src-html/org/apache/juneau/rest/RestResponse.html#line.486">flushBuffer</a>()
+ throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
+<dl>
+<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
+<dd><code><a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponse.html?is-external=true#flushBuffer--" title="class or interface in javax.servlet">flushBuffer</a></code> in interface <code><a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponse.html?is-external=true" title="class or interface in javax.servlet">ServletResponse</a></code></dd>
+<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
+<dd><code><a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html?is-external=true#flushBuffer--" title="class or interface in javax.servlet">flushBuffer</a></code> in class <code><a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html?is-external=true" title="class or interface in javax.servlet">ServletResponseWrapper</a></code></dd>
+<dt><span class="throwsLabel">Throws:</span></dt>
+<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
+</dl>
+</li>
+</ul>
</li>
</ul>
</li>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/org/apache/juneau/rest/annotation/Body.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/org/apache/juneau/rest/annotation/Body.html b/content/site/apidocs/org/apache/juneau/rest/annotation/Body.html
index fdff14e..40b62fb 100644
--- a/content/site/apidocs/org/apache/juneau/rest/annotation/Body.html
+++ b/content/site/apidocs/org/apache/juneau/rest/annotation/Body.html
@@ -113,7 +113,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota
<p class='bcode'>
<ja>@RestMethod</ja>(name=<js>"POST"</js>)
<jk>public void</jk> doPostPerson(RestRequest req, RestResponse res) {
- Person person = req.getBody(Person.<jk>class</jk>);
+ Person person = req.getBody().asType(Person.<jk>class</jk>);
...
}
</p>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/org/apache/juneau/rest/annotation/FormData.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/org/apache/juneau/rest/annotation/FormData.html b/content/site/apidocs/org/apache/juneau/rest/annotation/FormData.html
index a92287d..eb4dcf1 100644
--- a/content/site/apidocs/org/apache/juneau/rest/annotation/FormData.html
+++ b/content/site/apidocs/org/apache/juneau/rest/annotation/FormData.html
@@ -170,11 +170,17 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/annotation/FormData.html#def--">def</a></span></code>
+<div class="block">The default value for this form-data parameter if it's not present in the request.</div>
+</td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/annotation/FormData.html#format--">format</a></span></code>
<div class="block">The expected format of the request parameter.</div>
</td>
</tr>
-<tr class="rowColor">
+<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/annotation/FormData.html#multipart--">multipart</a></span></code>
<div class="block">Specify <jk>true</jk> if using multi-part parameters to represent collections and arrays.</div>
@@ -236,7 +242,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota
<li class="blockList"><a name="format--">
<!-- -->
</a>
-<ul class="blockListLast">
+<ul class="blockList">
<li class="blockList">
<h4>format</h4>
<pre>public abstract <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/juneau/rest/annotation/FormData.html#line.95">format</a></pre>
@@ -262,6 +268,23 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota
</ul>
</li>
</ul>
+<ul class="blockList">
+<li class="blockList"><a name="def--">
+<!-- -->
+</a>
+<ul class="blockListLast">
+<li class="blockList">
+<h4>def</h4>
+<pre>public abstract <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/juneau/rest/annotation/FormData.html#line.100">def</a></pre>
+<div class="block">The default value for this form-data parameter if it's not present in the request.</div>
+<dl>
+<dt>Default:</dt>
+<dd>""</dd>
+</dl>
+</li>
+</ul>
+</li>
+</ul>
</li>
</ul>
</div>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/org/apache/juneau/rest/annotation/Header.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/org/apache/juneau/rest/annotation/Header.html b/content/site/apidocs/org/apache/juneau/rest/annotation/Header.html
index 65a9c4b..1b2f6b0 100644
--- a/content/site/apidocs/org/apache/juneau/rest/annotation/Header.html
+++ b/content/site/apidocs/org/apache/juneau/rest/annotation/Header.html
@@ -69,7 +69,7 @@
<li>Summary: </li>
<li>Field | </li>
<li><a href="#annotation.type.required.element.summary">Required</a> | </li>
-<li>Optional</li>
+<li><a href="#annotation.type.optional.element.summary">Optional</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
@@ -144,6 +144,27 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota
</table>
</li>
</ul>
+<!-- =========== ANNOTATION TYPE OPTIONAL MEMBER SUMMARY =========== -->
+<ul class="blockList">
+<li class="blockList"><a name="annotation.type.optional.element.summary">
+<!-- -->
+</a>
+<h3>Optional Element Summary</h3>
+<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Optional Element Summary table, listing optional elements, and an explanation">
+<caption><span>Optional Elements</span><span class="tabEnd"> </span></caption>
+<tr>
+<th class="colFirst" scope="col">Modifier and Type</th>
+<th class="colLast" scope="col">Optional Element and Description</th>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/annotation/Header.html#def--">def</a></span></code>
+<div class="block">The default value for this header if it's not present in the request.</div>
+</td>
+</tr>
+</table>
+</li>
+</ul>
</li>
</ul>
</div>
@@ -168,6 +189,24 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota
</ul>
</li>
</ul>
+<!-- ============ ANNOTATION TYPE MEMBER DETAIL =========== -->
+<ul class="blockList">
+<li class="blockList"><a name="def--">
+<!-- -->
+</a>
+<ul class="blockListLast">
+<li class="blockList">
+<h4>def</h4>
+<pre>public abstract <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/juneau/rest/annotation/Header.html#line.56">def</a></pre>
+<div class="block">The default value for this header if it's not present in the request.</div>
+<dl>
+<dt>Default:</dt>
+<dd>""</dd>
+</dl>
+</li>
+</ul>
+</li>
+</ul>
</li>
</ul>
</div>
@@ -220,7 +259,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota
<li>Summary: </li>
<li>Field | </li>
<li><a href="#annotation.type.required.element.summary">Required</a> | </li>
-<li>Optional</li>
+<li><a href="#annotation.type.optional.element.summary">Optional</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/org/apache/juneau/rest/annotation/Query.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/org/apache/juneau/rest/annotation/Query.html b/content/site/apidocs/org/apache/juneau/rest/annotation/Query.html
index f2cb074..4c4c746 100644
--- a/content/site/apidocs/org/apache/juneau/rest/annotation/Query.html
+++ b/content/site/apidocs/org/apache/juneau/rest/annotation/Query.html
@@ -166,11 +166,17 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/annotation/Query.html#def--">def</a></span></code>
+<div class="block">The default value for this query parameter if it's not present in the request.</div>
+</td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/annotation/Query.html#format--">format</a></span></code>
<div class="block">The expected format of the request parameter.</div>
</td>
</tr>
-<tr class="rowColor">
+<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/annotation/Query.html#multipart--">multipart</a></span></code>
<div class="block">Specify <jk>true</jk> if using multi-part parameters to represent collections and arrays.</div>
@@ -232,7 +238,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota
<li class="blockList"><a name="format--">
<!-- -->
</a>
-<ul class="blockListLast">
+<ul class="blockList">
<li class="blockList">
<h4>format</h4>
<pre>public abstract <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/juneau/rest/annotation/Query.html#line.91">format</a></pre>
@@ -258,6 +264,23 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota
</ul>
</li>
</ul>
+<ul class="blockList">
+<li class="blockList"><a name="def--">
+<!-- -->
+</a>
+<ul class="blockListLast">
+<li class="blockList">
+<h4>def</h4>
+<pre>public abstract <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/juneau/rest/annotation/Query.html#line.96">def</a></pre>
+<div class="block">The default value for this query parameter if it's not present in the request.</div>
+<dl>
+<dt>Default:</dt>
+<dd>""</dd>
+</dl>
+</li>
+</ul>
+</li>
+</ul>
</li>
</ul>
</div>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/org/apache/juneau/rest/annotation/RestMethod.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/org/apache/juneau/rest/annotation/RestMethod.html b/content/site/apidocs/org/apache/juneau/rest/annotation/RestMethod.html
index 47600f5..77afb53 100644
--- a/content/site/apidocs/org/apache/juneau/rest/annotation/RestMethod.html
+++ b/content/site/apidocs/org/apache/juneau/rest/annotation/RestMethod.html
@@ -138,6 +138,18 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/annotation/RestMethod.html#defaultFormData--">defaultFormData</a></span></code>
+<div class="block">Specifies default values for form-data parameters.</div>
+</td>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/annotation/RestMethod.html#defaultQuery--">defaultQuery</a></span></code>
+<div class="block">Specifies default values for query parameters.</div>
+</td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/annotation/RestMethod.html#defaultRequestHeaders--">defaultRequestHeaders</a></span></code>
<div class="block">Specifies default values for request headers.</div>
</td>
@@ -714,7 +726,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota
<ul class="blockList">
<li class="blockList">
<h4>defaultRequestHeaders</h4>
-<pre>public abstract <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.293">defaultRequestHeaders</a></pre>
+<pre>public abstract <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.296">defaultRequestHeaders</a></pre>
<div class="block">Specifies default values for request headers.
<p>
Strings are of the format <js>"Header-Name: header-value"</js>.
@@ -735,7 +747,74 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota
<jk>public</jk> String doGet() {
...
}
- </p></div>
+ </p>
+ <p>
+ You can use either <js>':'</js> or <js>'='</js> as the key/value delimiter.
+ Key and value is trimmed of whitespace.</div>
+<dl>
+<dt>Default:</dt>
+<dd>{}</dd>
+</dl>
+</li>
+</ul>
+</li>
+</ul>
+<ul class="blockList">
+<li class="blockList"><a name="defaultQuery--">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>defaultQuery</h4>
+<pre>public abstract <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.316">defaultQuery</a></pre>
+<div class="block">Specifies default values for query parameters.
+ <p>
+ Strings are of the format <js>"name=value"</js>.
+ <p>
+ Affects values returned by <a href="../../../../../org/apache/juneau/rest/RestRequest.html#getQuery-java.lang.String-"><code>RestRequest.getQuery(String)</code></a> when the parameter is not present on the request.
+
+ <h5 class='section'>Example:</h5>
+ <p class='bcode'>
+ <ja>@RestMethod</ja>(name=<js>"GET"</js>, path=<js>"/*"</js>, defaultQuery={<js>"foo=bar"</js>})
+ <jk>public</jk> String doGet(<ja>@Query</ja>(<js>"foo"</js>) String foo) {
+ ...
+ }
+ </p>
+ <p>
+ You can use either <js>':'</js> or <js>'='</js> as the key/value delimiter.
+ Key and value is trimmed of whitespace.</div>
+<dl>
+<dt>Default:</dt>
+<dd>{}</dd>
+</dl>
+</li>
+</ul>
+</li>
+</ul>
+<ul class="blockList">
+<li class="blockList"><a name="defaultFormData--">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>defaultFormData</h4>
+<pre>public abstract <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.336">defaultFormData</a></pre>
+<div class="block">Specifies default values for form-data parameters.
+ <p>
+ Strings are of the format <js>"name=value"</js>.
+ <p>
+ Affects values returned by <a href="../../../../../org/apache/juneau/rest/RestRequest.html#getFormData-java.lang.String-"><code>RestRequest.getFormData(String)</code></a> when the parameter is not present on the request.
+
+ <h5 class='section'>Example:</h5>
+ <p class='bcode'>
+ <ja>@RestMethod</ja>(name=<js>"POST"</js>, path=<js>"/*"</js>, defaultFormData={<js>"foo=bar"</js>})
+ <jk>public</jk> String doGet(<ja>@FormData</ja>(<js>"foo"</js>) String foo) {
+ ...
+ }
+ </p>
+ <p>
+ You can use either <js>':'</js> or <js>'='</js> as the key/value delimiter.
+ Key and value is trimmed of whitespace.</div>
<dl>
<dt>Default:</dt>
<dd>{}</dd>
@@ -751,7 +830,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota
<ul class="blockList">
<li class="blockList">
<h4>summary</h4>
-<pre>public abstract <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.312">summary</a></pre>
+<pre>public abstract <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.355">summary</a></pre>
<div class="block">Optional summary for the exposed API.
<p>
This summary is used in the following locations:
@@ -782,7 +861,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota
<ul class="blockList">
<li class="blockList">
<h4>description</h4>
-<pre>public abstract <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.331">description</a></pre>
+<pre>public abstract <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.374">description</a></pre>
<div class="block">Optional description for the exposed API.
<p>
This description is used in the following locations:
@@ -813,7 +892,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota
<ul class="blockList">
<li class="blockList">
<h4>externalDocs</h4>
-<pre>public abstract <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.358">externalDocs</a></pre>
+<pre>public abstract <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.401">externalDocs</a></pre>
<div class="block">Optional external documentation information for the exposed API.
<p>
Used to populate the Swagger external documentation field.
@@ -852,7 +931,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota
<ul class="blockList">
<li class="blockList">
<h4>tags</h4>
-<pre>public abstract <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.380">tags</a></pre>
+<pre>public abstract <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.423">tags</a></pre>
<div class="block">Optional tagging information for the exposed API.
<p>
Used to populate the Swagger tags field.
@@ -886,7 +965,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota
<ul class="blockList">
<li class="blockList">
<h4>deprecated</h4>
-<pre>public abstract boolean <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.399">deprecated</a></pre>
+<pre>public abstract boolean <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.442">deprecated</a></pre>
<div class="block">Optional deprecated flag for the exposed API.
<p>
Used to populate the Swagger deprecated field.
@@ -917,7 +996,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota
<ul class="blockList">
<li class="blockList">
<h4>parameters</h4>
-<pre>public abstract <a href="../../../../../org/apache/juneau/rest/annotation/Parameter.html" title="annotation in org.apache.juneau.rest.annotation">Parameter</a>[] <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.436">parameters</a></pre>
+<pre>public abstract <a href="../../../../../org/apache/juneau/rest/annotation/Parameter.html" title="annotation in org.apache.juneau.rest.annotation">Parameter</a>[] <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.479">parameters</a></pre>
<div class="block">Optional parameter descriptions.
<p>
This annotation is provided for documentation purposes and is used to populate the method <js>"parameters"</js> column
@@ -966,7 +1045,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota
<ul class="blockList">
<li class="blockList">
<h4>responses</h4>
-<pre>public abstract <a href="../../../../../org/apache/juneau/rest/annotation/Response.html" title="annotation in org.apache.juneau.rest.annotation">Response</a>[] <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.472">responses</a></pre>
+<pre>public abstract <a href="../../../../../org/apache/juneau/rest/annotation/Response.html" title="annotation in org.apache.juneau.rest.annotation">Response</a>[] <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.515">responses</a></pre>
<div class="block">Optional output description.
<p>
This annotation is provided for documentation purposes and is used to populate the method <js>"responses"</js> column
@@ -1014,7 +1093,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota
<ul class="blockList">
<li class="blockList">
<h4>clientVersion</h4>
-<pre>public abstract <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.530">clientVersion</a></pre>
+<pre>public abstract <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.573">clientVersion</a></pre>
<div class="block">Specifies whether this method can be called based on the client version.
<p>
The client version is identified via the HTTP request header identified by <a href="../../../../../org/apache/juneau/rest/annotation/RestResource.html#clientVersionHeader--"><code>RestResource.clientVersionHeader()</code></a> which
@@ -1084,7 +1163,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota
<ul class="blockList">
<li class="blockList">
<h4>pageTitle</h4>
-<pre>public abstract <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.535">pageTitle</a></pre>
+<pre>public abstract <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.578">pageTitle</a></pre>
<div class="block">Overrides the HTML page title defined on the servlet via the <a href="../../../../../org/apache/juneau/rest/annotation/RestResource.html#pageTitle--"><code>@RestResource.pageTitle()</code></a> annotation.</div>
<dl>
<dt>Default:</dt>
@@ -1101,7 +1180,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota
<ul class="blockList">
<li class="blockList">
<h4>pageText</h4>
-<pre>public abstract <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.540">pageText</a></pre>
+<pre>public abstract <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.583">pageText</a></pre>
<div class="block">Overrides the HTML page text defined on the servlet via the <a href="../../../../../org/apache/juneau/rest/annotation/RestResource.html#pageText--"><code>@RestResource.pageText()</code></a> annotation.</div>
<dl>
<dt>Default:</dt>
@@ -1118,7 +1197,7 @@ public @interface <a href="../../../../../src-html/org/apache/juneau/rest/annota
<ul class="blockListLast">
<li class="blockList">
<h4>pageLinks</h4>
-<pre>public abstract <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.545">pageLinks</a></pre>
+<pre>public abstract <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/juneau/rest/annotation/RestMethod.html#line.588">pageLinks</a></pre>
<div class="block">Overrides the HTML page links defined on the servlet via the <a href="../../../../../org/apache/juneau/rest/annotation/RestResource.html#pageLinks--"><code>@RestResource.pageLinks()</code></a> annotation.</div>
<dl>
<dt>Default:</dt>
[08/15] incubator-juneau-website git commit: Update javadocs.
Posted by ja...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/overview-summary.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/overview-summary.html b/content/site/apidocs/overview-summary.html
index 1f5dadb..50b7e28 100644
--- a/content/site/apidocs/overview-summary.html
+++ b/content/site/apidocs/overview-summary.html
@@ -3378,106 +3378,123 @@
<jd>/** Example GET request that redirects to our example method */</jd>
<ja>@RestMethod</ja>(name=<js>"GET"</js>, path=<js>"/"</js>)
- <jk>public</jk> Redirect doGetExample() <jk>throws</jk> Exception {
- <jk>return new</jk> Redirect(<js>"example1/xxx/123/{0}/xRemainder?p1=123&p2=yyy"</js>, UUID.<jsm>randomUUID</jsm>());
+ <jk>public</jk> Redirect doExample() <jk>throws</jk> Exception {
+ <jk>return new</jk> Redirect(<js>"example1/xxx/123/{0}/xRemainder?q1=123&q2=yyy"</js>, UUID.<jsm>randomUUID</jsm>());
}
- <jd>/** Example GET request using annotated attributes */</jd>
- <ja>@RestMethod</ja>(name=<js>"GET"</js>, path=<js>"/example1/{a1}/{a2}/{a3}/*"</js>, rc={200})
- <jk>public</jk> String doGetExample1(
- <ja>@Method</ja> String method,
- <ja>@Path</ja> String a1,
- <ja>@Path</ja> <jk>int</jk> a2,
- <ja>@Path</ja> UUID a3,
- <ja>@Query</ja>(<js>"p1"</js>) <jk>int</jk> p1,
- <ja>@Query</ja>(<js>"p2"</js>) String p2,
- <ja>@Query</ja>(<js>"p3"</js>) UUID p3,
- <ja>@PathRemainder</ja> String remainder,
- <ja>@Header</ja>(<js>"Accept-Language"</js>) String lang,
- <ja>@Header</ja>(<js>"Accept"</js>) String accept,
- <ja>@Header</ja>(<js>"DNT"</js>) <jk>int</jk> doNotTrack
- ) {
- String output = String.format(
- <js>"method=%s, a1=%s, a2=%d, a3=%s, remainder=%s, p1=%d, p2=%s, p3=%s, lang=%s, accept=%s, dnt=%d"</js>,
- method, a1, a2, a3, remainder, p1, p2, p3, lang, accept, doNotTrack);
- <jk>return</jk> output;
- }
-
- <jd>/** Example GET request using methods on RestRequest and RestResponse */</jd>
- <ja>@RestMethod</ja>(name=<js>"GET"</js>, path=<js>"/example2/{a1}/{a2}/{a3}/*"</js>, rc={200})
- <jk>public void</jk> doGetExample2(RestRequest req, RestResponse res) <jk>throws</jk> Exception {
- String method = req.getMethod();
-
- <jc>// Attributes (from URL pattern variables)</jc>
- RequestPathParams path = req.getPathParams();
- String a1 = path.get(<js>"a1"</js>, String.<jk>class</jk>);
- <jk>int</jk> a2 = path.get(<js>"a2"</js>, <jk>int</jk>.<jk>class</jk>);
- UUID a3 = path.get(<js>"a3"</js>, UUID.<jk>class</jk>);
+ <jd>/**
+ * Methodology #1 - GET request using annotated attributes.
+ * This approach uses annotated parameters for retrieving input.
+ */</jd>
+ <ja>@RestMethod</ja>(name=<js>"GET"</js>, path=<js>"/example1/{p1}/{p2}/{p3}/*"</js>)
+ <jk>public</jk> String example1(
+ <ja>@Method</ja> String method, <jc>// HTTP method.</jc>
+ <ja>@Path</ja> String p1, <jc>// Path variables.</jc>
+ <ja>@Path</ja> <jk>int</jk> p2,
+ <ja>@Path</ja> UUID p3,
+ <ja>@Query</ja>(<js>"q1"</js>) <jk>int</jk> q1, <jc>// Query parameters.</jc>
+ <ja>@Query</ja>(<js>"q2"</js>) String q2,
+ <ja>@Query</ja>(<js>"q3"</js>) UUID q3,
+ <ja>@PathRemainder</ja> String remainder, <jc>// Path remainder after pattern match.</jc>
+ <ja>@Header</ja>(<js>"Accept-Language"</js>) String lang, <jc>// Headers.</jc>
+ <ja>@Header</ja>(<js>"Accept"</js>) String accept,
+ <ja>@Header</ja>(<js>"DNT"</js>) <jk>int</jk> doNotTrack
+ ) {
+
+ <jc>// Send back a simple String response</jc>
+ String output = String.<jsm>format</jsm>(
+ <js>"method=%s, p1=%s, p2=%d, p3=%s, remainder=%s, q1=%d, q2=%s, q3=%s, lang=%s, accept=%s, dnt=%d"</js>,
+ method, p1, p2, p3, remainder, q1, q2, q3, lang, accept, doNotTrack);
+ <jk>return</jk> output;
+ }
+
+ <jd>/**
+ * Methodology #2 - GET request using methods on RestRequest and RestResponse.
+ * This approach uses low-level request/response objects to perform the same as above.
+ */</jd>
+ <ja>@RestMethod</ja>(name=<js>"GET"</js>, path=<js>"/example2/{p1}/{p2}/{p3}/*"</js>)
+ <jk>public</jk> String example2(
+ RestRequest req, <jc>// A direct subclass of HttpServletRequest.</jc>
+ RestResponse res <jc>// A direct subclass of HttpServletResponse.</jc>
+ ) {
- <jc>// Optional GET parameters</jc>
+ <jc>// HTTP method.</jc>
+ String method = req.getMethod();
+
+ <jc>// Path variables.</jc>
+ RequestPathMatch path = req.getPathMatch();
+ String p1 = path.get(<js>"p1"</js>, String.<jk>class</jk>);
+ <jk>int</jk> p2 = path.get(<js>"p2"</js>, <jk>int</jk>.<jk>class</jk>);
+ UUID p3 = path.get(<js>"p3"</js>, UUID.<jk>class</jk>);
+
+ <jc>// Query parameters.</jc>
RequestQuery query = req.getQuery();
- <jk>int</jk> p1 = query.get(<js>"p1"</js>, <jk>int</jk>.<jk>class</jk>, 0);
- String p2 = query.get(<js>"p2"</js>, String.<jk>class</jk>);
- UUID p3 = query.get(<js>"p3"</js>, UUID.<jk>class</jk>);
-
- <jc>// URL pattern post-match</jc>
- String remainder = req.getPathRemainder();
-
- <jc>// Headers</jc>
- String lang = req.getHeader(<js>"Accept-Language"</js>);
- <jk>int</jk> doNotTrack = req.getHeader(<js>"DNT"</js>, <jk>int</jk>.<jk>class</jk>);
-
- <jc>// Send back a simple String response</jc>
- String output = String.format(
- <js>"method=%s, a1=%s, a2=%d, a3=%s, remainder=%s, p1=%d, p2=%s, p3=%s, lang=%s, dnt=%d"</js>,
- method, a1, a2, a3, remainder, p1, p2, p3, lang, doNotTrack);
- res.setOutput(output);
- }
+ <jk>int</jk> q1 = query.get(<js>"q1"</js>, 0, <jk>int</jk>.<jk>class</jk>);
+ String q2 = query.get(<js>"q2"</js>, String.<jk>class</jk>);
+ UUID q3 = query.get(<js>"q3"</js>, UUID.<jk>class</jk>);
+
+ <jc>// Path remainder after pattern match.</jc>
+ String remainder = req.getPathMatch().getRemainder();
+
+ <jc>// Headers.</jc>
+ String lang = req.getHeader(<js>"Accept-Language"</js>);
+ String accept = req.getHeader(<js>"Accept"</js>);
+ <jk>int</jk> doNotTrack = req.getHeaders().get(<js>"DNT"</js>, <jk>int</jk>.<jk>class</jk>);
+
+ <jc>// Send back a simple String response</jc>
+ String output = String.format(
+ <js>"method=%s, p1=%s, p2=%d, p3=%s, remainder=%s, q1=%d, q2=%s, q3=%s, lang=%s, accept=%s, dnt=%d"</js>,
+ method, p1, p2, p3, remainder, q1, q2, q3, lang, accept, doNotTrack);
+ res.setOutput(output); <jc>// Or use getWriter().</jc>
+ }
- <jd>/** Example GET request using resolved parameter objects */</jd>
- <ja>@RestMethod</ja>(name=<js>"GET"</js>, path=<js>"/example3/{a1}/{a2}/{a3}/*"</js>, rc={200})
- <jk>public void</jk> doGetExample3(
- HttpMethod httpMethod,
- RequestPathParams path,
- RequestQuery query,
- <ja>@PathRemainder</ja> String remainder,
- AcceptLanguage acceptLanguage,
- Accept accept,
- DNT dnt
- ) <jk>throws</jk> Exception {
-
- String method = httpMethod.toString();
-
- <jc>// Attributes (from URL pattern variables)</jc>
- String a1 = path.get(<js>"a1"</js>, String.<jk>class</jk>);
- <jk>int</jk> a2 = path.get(<js>"a2"</js>, <jk>int</jk>.<jk>class</jk>);
- UUID a3 = path.get(<js>"a3"</js>, UUID.<jk>class</jk>);
-
- <jc>// Optional GET parameters</jc>
- <jk>int</jk> p1 = query.get(<js>"p1"</js>, <jk>int</jk>.<jk>class</jk>, 0);
- String p2 = query.get(<js>"p2"</js>, String.<jk>class</jk>);
- UUID p3 = query.get(<js>"p3"</js>, UUID.<jk>class</jk>);
-
- <jc>// Headers</jc>
- String lang = acceptLanguage.toString();
- <jk>int</jk> doNotTrack = dnt.asType(<jk>int</jk>.<jk>class</jk>);
+ <jd>/**
+ * Methodology #3 - GET request using special objects.
+ * This approach uses intermediate-level APIs.
+ * The framework recognizes the parameter types and knows how to resolve them.
+ */</jd>
+ <ja>@RestMethod</ja>(name=<js>"GET"</js>, path=<js>"/example3/{p1}/{p2}/{p3}/*"</js>)
+ <jk>public</jk> String example3(
+ HttpMethod method, <jc>// HTTP method.</jc>
+ RequestPathMatch path, <jc>// Path variables.</jc>
+ RequestQuery query, <jc>// Query parameters.</jc>
+ RequestHeaders headers, <jc>// Headers.</jc>
+ AcceptLanguage lang, <jc>// Specific header classes.</jc>
+ Accept accept
+ ) {
- <jc>// Send back a simple String response</jc>
- String output = String.format(
- <js>"method=%s, a1=%s, a2=%d, a3=%s, remainder=%s, p1=%d, p2=%s, p3=%s, lang=%s, dnt=%d"</js>,
- method, a1, a2, a3, remainder, p1, p2, p3, lang, doNotTrack);
- res.setOutput(output);
- }
- }
+ <jc>// Path variables.</jc>
+ String p1 = path.get(<js>"p1"</js>, String.<jk>class</jk>);
+ <jk>int</jk> p2 = path.get(<js>"p2"</js>, <jk>int</jk>.<jk>class</jk>);
+ UUID p3 = path.get(<js>"p3"</js>, UUID.<jk>class</jk>);
+
+ <jc>// Query parameters.</jc>
+ <jk>int</jk> q1 = query.get(<js>"q1"</js>, 0, <jk>int</jk>.<jk>class</jk>);
+ String q2 = query.get(<js>"q2"</js>, String.<jk>class</jk>);
+ UUID q3 = query.get(<js>"q3"</js>, UUID.<jk>class</jk>);
+
+ <jc>// Path remainder after pattern match.</jc>
+ String remainder = path.getRemainder();
+
+ <jc>// Headers.</jc>
+ int doNotTrack = headers.get(<js>"DNT"</js>, <jk>int</jk>.<jk>class</jk>);
+
+ <jc>// Send back a simple String response</jc>
+ String output = String.format(
+ <js>"method=%s, p1=%s, p2=%d, p3=%s, remainder=%s, q1=%d, q2=%s, q3=%s, lang=%s, accept=%s, dnt=%d"</js>,
+ method, p1, p2, p3, remainder, q1, q2, q3, lang, accept, doNotTrack);
+ res.setOutput(output);
+ }
+ }
</p>
<p>
The class consists of 4 methods:
</p>
<ul class='javahierarchy'>
- <li class='m'><l>doGetExample()</l>
+ <li class='m'><l>doExample()</l>
<br>The root page.
<br>Performs a simple redirection to the <l>doGetExample1()</l> method using a <a href="org/apache/juneau/rest/Redirect.html" title="class in org.apache.juneau.rest"><code>Redirect</code></a> object.
- <li class='m'><l>doGetExample1()</l>
+ <li class='m'><l>example1()</l>
<br>Shows how to use the following annotations:
<ul>
<li class='n'><a href="org/apache/juneau/rest/annotation/Path.html" title="annotation in org.apache.juneau.rest.annotation"><code>@Path</code></a>
@@ -3487,18 +3504,18 @@
<li class='n'><a href="org/apache/juneau/rest/annotation/PathRemainder.html" title="annotation in org.apache.juneau.rest.annotation"><code>@PathRemainder</code></a>
</ul>
Method returns a POJO to be serialized as the output.
- <li class='m'><l>doGetExample2()</l>
+ <li class='m'><l>example2()</l>
<br>Identical to <l>doGetExample1()</l> but shows how to use the <a href="org/apache/juneau/rest/RestRequest.html" title="class in org.apache.juneau.rest"><code>RestRequest</code></a> and <a href="org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest"><code>RestResponse</code></a> objects:
<ul>
- <li class='m'><a href="org/apache/juneau/rest/RestRequest.html#getPathParams--"><code>RestRequest.getPathParams()</code></a>
+ <li class='m'><a href="org/apache/juneau/rest/RestRequest.html#getPathMatch--"><code>RestRequest.getPathMatch()</code></a>
<li class='m'><a href="org/apache/juneau/rest/RestRequest.html#getQuery--"><code>RestRequest.getQuery()</code></a>
<li class='m'><a href="org/apache/juneau/rest/RestRequest.html#getFormData--"><code>RestRequest.getFormData()</code></a>
<li class='m'><a href="org/apache/juneau/rest/RestRequest.html#getHeaders--"><code>RestRequest.getHeaders()</code></a>
<li class='m'><a href="org/apache/juneau/rest/RestRequest.html#getMethod--"><code>RestRequest.getMethod()</code></a>
- <li class='m'><a href="org/apache/juneau/rest/RestRequest.html#getPathRemainder--"><code>RestRequest.getPathRemainder()</code></a>
+ <li class='m'><a href="org/apache/juneau/rest/RequestPathMatch.html#getRemainder--"><code>RequestPathMatch.getRemainder()</code></a>
</ul>
Method sets the POJO to be serialized using the <a href="org/apache/juneau/rest/RestResponse.html#setOutput-java.lang.Object-"><code>RestResponse.setOutput(Object)</code></a> method.
- <li class='m'><l>doGetExample2()</l>
+ <li class='m'><l>example3()</l>
<br>Identical to <l>doGetExample1()</l> but uses automatically resolved parameters based on class type.
<br>Juneau automatically recognizes specific class types such as common header types and automatically
resolves them to objects for you.
@@ -4455,14 +4472,13 @@
<ja>@RestMethod</ja>(name=<js>"PUT"</js>, path=<js>"/people/{id}/*"</js>,
guards=AdminGuard.<jk>class</jk>
)
- <jk>public</jk> String updatePerson(RestRequest req, <ja>@Path</ja> <jk>int</jk> id) <jk>throws</jk> Exception {
+ <jk>public</jk> String updatePerson(RestRequest req, <ja>@Path</ja> <jk>int</jk> id, <ja>@PathRemainder</ja> String remainder) <jk>throws</jk> Exception {
<jk>try</jk> {
Person p = findPerson(id);
- String pathRemainder = req.getPathRemainder();
PojoRest r = <jk>new</jk> PojoRest(p);
- ClassMeta<?> cm = r.getClassMeta(pathRemainder);
- Object in = req.getBody(cm);
- r.put(pathRemainder, in);
+ ClassMeta<?> cm = r.getClassMeta(remainder);
+ Object in = req.getBody().asType(cm);
+ r.put(remainder, in);
<jk>return</jk> <js>"PUT successful"</js>;
} <jk>catch</jk> (Exception e) {
<jk>throw new</jk> RestException(<jsf>SC_BAD_REQUEST</jsf>, <js>"PUT unsuccessful"</js>).initCause(e);
@@ -4476,14 +4492,13 @@
<ja>@RestMethod</ja>(name=<js>"PUT"</js>, path=<js>"/addresses/{id}/*"</js>,
guards=AdminGuard.<jk>class</jk>
)
- <jk>public</jk> String updateAddress(RestRequest req, <ja>@Path</ja> <jk>int</jk> id) <jk>throws</jk> Exception {
+ <jk>public</jk> String updateAddress(RestRequest req, <ja>@Path</ja> <jk>int</jk> id, <ja>@PathRemainder</ja> String remainder) <jk>throws</jk> Exception {
<jk>try</jk> {
Address a = findAddress(id);
- String pathInfo = req.getPathInfo();
PojoRest r = <jk>new</jk> PojoRest(a);
- ClassMeta<?> cm = r.getClassMeta(pathInfo);
- Object in = req.getBody(cm);
- r.put(pathInfo, in);
+ ClassMeta<?> cm = r.getClassMeta(remainder);
+ Object in = req.getBody().asType(cm);
+ r.put(remainder, in);
<jk>return</jk> <js>"PUT successful"</js>;
} <jk>catch</jk> (Exception e) {
<jk>throw new</jk> RestException(<jsf>SC_BAD_REQUEST</jsf>, <js>"PUT unsuccessful"</js>).initCause(e);
@@ -6321,7 +6336,7 @@
<li><a href="org/apache/juneau/rest/RestRequest.html#getHeaders--"><code>RestRequest.getHeaders()</code></a> - The request headers.
<li><a href="org/apache/juneau/rest/RestRequest.html#getQuery--"><code>RestRequest.getQuery()</code></a> - The request query parameters.
<li><a href="org/apache/juneau/rest/RestRequest.html#getFormData--"><code>RestRequest.getFormData()</code></a> - The request form data parameters.
- <li><a href="org/apache/juneau/rest/RestRequest.html#getPathParams--"><code>RestRequest.getPathParams()</code></a> - The path variables.
+ <li><a href="org/apache/juneau/rest/RestRequest.html#getPathMatch--"><code>RestRequest.getPathMatch()</code></a> - The path variables and remainder.
</ul>
The following classes have been introduced:
<ul>
@@ -6329,7 +6344,7 @@
<li><a href="org/apache/juneau/rest/RequestHeaders.html" title="class in org.apache.juneau.rest"><code>RequestHeaders</code></a>
<li><a href="org/apache/juneau/rest/RequestQuery.html" title="class in org.apache.juneau.rest"><code>RequestQuery</code></a>
<li><a href="org/apache/juneau/rest/RequestFormData.html" title="class in org.apache.juneau.rest"><code>RequestFormData</code></a>
- <li><a href="org/apache/juneau/rest/RequestPathParams.html" title="class in org.apache.juneau.rest"><code>RequestPathParams</code></a>
+ <li><a href="org/apache/juneau/rest/RequestPathMatch.html" title="class in org.apache.juneau.rest"><code>RequestPathMatch</code></a>
</ul>
<li>The unannotated parameter types that can be passed in through REST Java methods has been significantly expanded.
<br>For reference, the previous supported types were:
@@ -6382,7 +6397,7 @@
<li><a href="org/apache/juneau/rest/RequestHeaders.html" title="class in org.apache.juneau.rest"><code>RequestHeaders</code></a> - API for accessing request headers.
<li><a href="org/apache/juneau/rest/RequestQuery.html" title="class in org.apache.juneau.rest"><code>RequestQuery</code></a> - API for accessing request query parameters.
<li><a href="org/apache/juneau/rest/RequestFormData.html" title="class in org.apache.juneau.rest"><code>RequestFormData</code></a> - API for accessing request form data.
- <li><a href="org/apache/juneau/rest/RequestPathParams.html" title="class in org.apache.juneau.rest"><code>RequestPathParams</code></a> - API for accessing path variables.
+ <li><a href="org/apache/juneau/rest/RequestPathMatch.html" title="class in org.apache.juneau.rest"><code>RequestPathMatch</code></a> - API for accessing path variables.
<li><a href="org/apache/juneau/rest/RequestBody.html" title="class in org.apache.juneau.rest"><code>RequestBody</code></a> - API for accessing request body.
<li><a href="org/apache/juneau/http/HttpMethod.html" title="enum in org.apache.juneau.http"><code>HttpMethod</code></a> - The method name matched (when using <code><ja>@RestMethod</ja>(name=<js>"*"</js>)</code>)
<li><a href="http://docs.oracle.com/javase/7/docs/api/java/util/logging/Logger.html?is-external=true" title="class or interface in java.util.logging"><code>Logger</code></a> - The logger to use for logging.
@@ -6392,7 +6407,7 @@
<li><a href="org/apache/juneau/dto/swagger/Swagger.html" title="class in org.apache.juneau.dto.swagger"><code>Swagger</code></a> - The auto-generated Swagger doc.
<li><a href="org/apache/juneau/ini/ConfigFile.html" title="class in org.apache.juneau.ini"><code>ConfigFile</code></a> - The external config file for the resource.
</ul>
- So, for example
+ So, for example...
<p class='bcode'>
<jd>/** Old way */</jd>
<ja>@RestMethod</ja>(name=<js>"*"</js>, path=<js>"/example1/{a1}/{a2}/{a3}/*"</js>)
@@ -6414,12 +6429,25 @@
HttpMethod httpMethod,
RequestPathParams pathParams,
RequestQuery query,
- AcceptLangage acceptLanguage,
+ AcceptLanguage acceptLanguage,
Accept accept
)
</p>
<li>A new annotation <a href="org/apache/juneau/rest/annotation/RestResource.html#paramResolvers--"><code>@RestResource.paramResolvers()</code></a>
that allows you to define your own custom Java method parameter resolvers.
+ <li>Fixed bug where Writer returned by <a href="org/apache/juneau/rest/RestResponse.html#getWriter--"><code>RestResponse.getWriter()</code></a> was not being flushed automatically
+ at the end of the HTTP call.
+ <li>New anntotations added to <a href="org/apache/juneau/rest/annotation/RestMethod.html" title="annotation in org.apache.juneau.rest.annotation"><code>@RestMethod</code></a>:
+ <ul>
+ <li><a href="org/apache/juneau/rest/annotation/RestMethod.html#defaultQuery--"><code>defaultQuery()</code></a>
+ <li><a href="org/apache/juneau/rest/annotation/RestMethod.html#defaultFormData--"><code>defaultFormData()</code></a>
+ </ul>
+ <li>Default values on header, query, and form-data annotations:
+ <ul>
+ <li><a href="org/apache/juneau/rest/annotation/Header.html#def--"><code>@Header.def()</code></a> - Default header value.
+ <li><a href="org/apache/juneau/rest/annotation/Query.html#def--"><code>@Query.def()</code></a> - Default query parameter value.
+ <li><a href="org/apache/juneau/rest/annotation/FormData.html#def--"><code>@FormData.def()</code></a> - Default form data parameter value.
+ </ul>
</ul>
<h6 class='topic'>org.apache.juneau.rest.client</h6>
@@ -7854,7 +7882,7 @@
<li><code><del>RestRequest.getQueryParameterMap()</del></code>
<li><code><del>RestRequest.getQueryParameterNames()</del></code>
<li><a href="org/apache/juneau/rest/RestRequest.html#getPathInfoUndecoded--"><code>RestRequest.getPathInfoUndecoded()</code></a>
- <li><a href="org/apache/juneau/rest/RestRequest.html#getPathRemainderUndecoded--"><code>RestRequest.getPathRemainderUndecoded()</code></a>
+ <li><code><del>RestRequest.getPathRemainderUndecoded()</del></code>
<li><a href="org/apache/juneau/rest/RestRequest.html#getTrimmedRequestURI--"><code>RestRequest.getTrimmedRequestURI()</code></a>
<li><a href="org/apache/juneau/rest/RestRequest.html#getTrimmedRequestURL--"><code>RestRequest.getTrimmedRequestURL()</code></a>
<li><a href="org/apache/juneau/rest/RestRequest.html#getServletTitle--"><code>RestRequest.getServletTitle()</code></a>
@@ -7863,8 +7891,8 @@
</ul>
<li>Behavior changes to <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServletRequestWrapper.html?is-external=true#getPathInfo--" title="class or interface in javax.servlet.http"><code>HttpServletRequestWrapper.getPathInfo()</code></a> to follow Servlet specs.
Returns <jk>null</jk> instead of blank for no path info.
- <li><a href="org/apache/juneau/rest/RestRequest.html#getPathRemainder--"><code>RestRequest.getPathRemainder()</code></a> now automatically decodes the path remainder.
- Use <a href="org/apache/juneau/rest/RestRequest.html#getPathRemainderUndecoded--"><code>RestRequest.getPathRemainderUndecoded()</code></a> to get the unencoded path remainder.
+ <li><code><del>RestRequest.getPathRemainder()</del></code> now automatically decodes the path remainder.
+ Use <code><del>RestRequest.getPathRemainderUndecoded()</del></code> to get the unencoded path remainder.
<li>Bug fixes in <a href="org/apache/juneau/rest/RestRequest.html#getRequestParentURI--"><code>RestRequest.getRequestParentURI()</code></a> when servlet is mapped to <js>"/*"</js>.
<li>Bug fixes in <a href="org/apache/juneau/rest/RestRequest.html#getServletURI--"><code>RestRequest.getServletURI()</code></a> when servlet is mapped to <js>"/*"</js>.
</ul>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/overview-tree.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/overview-tree.html b/content/site/apidocs/overview-tree.html
index 4151093..5b84ab9 100644
--- a/content/site/apidocs/overview-tree.html
+++ b/content/site/apidocs/overview-tree.html
@@ -226,7 +226,7 @@
<li type="circle">java.util.<a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true" title="class or interface in java.util"><span class="typeNameLink">TreeMap</span></a><K,V> (implements java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang">Cloneable</a>, java.util.<a href="http://docs.oracle.com/javase/7/docs/api/java/util/NavigableMap.html?is-external=true" title="class or interface in java.util">NavigableMap</a><K,V>, java.io.<a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>)
<ul>
<li type="circle">org.apache.juneau.rest.<a href="org/apache/juneau/rest/RequestHeaders.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">RequestHeaders</span></a></li>
-<li type="circle">org.apache.juneau.rest.<a href="org/apache/juneau/rest/RequestPathParams.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">RequestPathParams</span></a></li>
+<li type="circle">org.apache.juneau.rest.<a href="org/apache/juneau/rest/RequestPathMatch.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">RequestPathMatch</span></a></li>
</ul>
</li>
</ul>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/resources/juneau-doc.css
----------------------------------------------------------------------
diff --git a/content/site/apidocs/resources/juneau-doc.css b/content/site/apidocs/resources/juneau-doc.css
index 572b253..1bc7c23 100644
--- a/content/site/apidocs/resources/juneau-doc.css
+++ b/content/site/apidocs/resources/juneau-doc.css
@@ -343,6 +343,7 @@ l {
p.severe, p.warn, p.info {
background-repeat: no-repeat;
background-position: left center;
+ background-size: 16px;
padding-left: 30px;
min-height: 24px;
}
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/serialized-form.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/serialized-form.html b/content/site/apidocs/serialized-form.html
index 31ca7c2..f70d536 100644
--- a/content/site/apidocs/serialized-form.html
+++ b/content/site/apidocs/serialized-form.html
@@ -477,10 +477,10 @@
</li>
</ul>
</li>
-<li class="blockList"><a name="org.apache.juneau.rest.RequestPathParams">
+<li class="blockList"><a name="org.apache.juneau.rest.RequestPathMatch">
<!-- -->
</a>
-<h3>Class <a href="org/apache/juneau/rest/RequestPathParams.html" title="class in org.apache.juneau.rest">org.apache.juneau.rest.RequestPathParams</a> extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true" title="class or interface in java.util">TreeMap</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> implements Serializable</h3>
+<h3>Class <a href="org/apache/juneau/rest/RequestPathMatch.html" title="class in org.apache.juneau.rest">org.apache.juneau.rest.RequestPathMatch</a> extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true" title="class or interface in java.util">TreeMap</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> implements Serializable</h3>
<dl class="nameValue">
<dt>serialVersionUID:</dt>
<dd>1L</dd>
@@ -493,10 +493,14 @@
<h4>parser</h4>
<pre><a href="org/apache/juneau/urlencoding/UrlEncodingParser.html" title="class in org.apache.juneau.urlencoding">UrlEncodingParser</a> parser</pre>
</li>
-<li class="blockListLast">
+<li class="blockList">
<h4>beanSession</h4>
<pre><a href="org/apache/juneau/BeanSession.html" title="class in org.apache.juneau">BeanSession</a> beanSession</pre>
</li>
+<li class="blockListLast">
+<h4>remainder</h4>
+<pre><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> remainder</pre>
+</li>
</ul>
</li>
</ul>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/src-html/org/apache/juneau/http/ContentMD5.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/http/ContentMD5.html b/content/site/apidocs/src-html/org/apache/juneau/http/ContentMD5.html
deleted file mode 100644
index 76fa567..0000000
--- a/content/site/apidocs/src-html/org/apache/juneau/http/ContentMD5.html
+++ /dev/null
@@ -1,160 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html lang="en">
-<head>
-<title>Source code</title>
-<link rel="stylesheet" type="text/css" href="../../../../../javadoc.css" title="Style">
-</head>
-<body>
-<div class="sourceContainer">
-<pre><span class="sourceLineNo">001</span>// ***************************************************************************************************************************<a name="line.1"></a>
-<span class="sourceLineNo">002</span>// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file *<a name="line.2"></a>
-<span class="sourceLineNo">003</span>// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file *<a name="line.3"></a>
-<span class="sourceLineNo">004</span>// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance *<a name="line.4"></a>
-<span class="sourceLineNo">005</span>// * with the License. You may obtain a copy of the License at *<a name="line.5"></a>
-<span class="sourceLineNo">006</span>// * *<a name="line.6"></a>
-<span class="sourceLineNo">007</span>// * http://www.apache.org/licenses/LICENSE-2.0 *<a name="line.7"></a>
-<span class="sourceLineNo">008</span>// * *<a name="line.8"></a>
-<span class="sourceLineNo">009</span>// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an *<a name="line.9"></a>
-<span class="sourceLineNo">010</span>// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the *<a name="line.10"></a>
-<span class="sourceLineNo">011</span>// * specific language governing permissions and limitations under the License. *<a name="line.11"></a>
-<span class="sourceLineNo">012</span>// ***************************************************************************************************************************<a name="line.12"></a>
-<span class="sourceLineNo">013</span>package org.apache.juneau.http;<a name="line.13"></a>
-<span class="sourceLineNo">014</span><a name="line.14"></a>
-<span class="sourceLineNo">015</span>import java.util.concurrent.*;<a name="line.15"></a>
-<span class="sourceLineNo">016</span><a name="line.16"></a>
-<span class="sourceLineNo">017</span>/**<a name="line.17"></a>
-<span class="sourceLineNo">018</span> * Represents a parsed <code>XXX:</code> HTTP header.<a name="line.18"></a>
-<span class="sourceLineNo">019</span> * <p><a name="line.19"></a>
-<span class="sourceLineNo">020</span> * <h6 class='topic>RFC2616 Specification</h6><a name="line.20"></a>
-<span class="sourceLineNo">021</span> * <p class='bcode'><a name="line.21"></a>
-<span class="sourceLineNo">022</span>The Content-MD5 entity-header field, as defined in RFC 1864 [23], is an MD5 digest of the entity-body for the purpose of providing an end-to-end message integrity check (MIC) of the entity-body. (Note: a MIC is good for detecting accidental modification of the entity-body in transit, but is not proof against malicious attacks.)<a name="line.22"></a>
-<span class="sourceLineNo">023</span><a name="line.23"></a>
-<span class="sourceLineNo">024</span> Content-MD5 = "Content-MD5" ":" md5-digest<a name="line.24"></a>
-<span class="sourceLineNo">025</span> md5-digest = <base64 of 128 bit MD5 digest as per RFC 1864><a name="line.25"></a>
-<span class="sourceLineNo">026</span>The Content-MD5 header field MAY be generated by an origin server or client to function as an integrity check of the entity-body. Only origin servers or clients MAY generate the Content-MD5 header field; proxies and gateways MUST NOT generate it, as this would defeat its value as an end-to-end integrity check. Any recipient of the entity- body, including gateways and proxies, MAY check that the digest value in this header field matches that of the entity-body as received.<a name="line.26"></a>
-<span class="sourceLineNo">027</span><a name="line.27"></a>
-<span class="sourceLineNo">028</span>The MD5 digest is computed based on the content of the entity-body, including any content-coding that has been applied, but not including any transfer-encoding applied to the message-body. If the message is received with a transfer-encoding, that encoding MUST be removed prior to checking the Content-MD5 value against the received entity.<a name="line.28"></a>
-<span class="sourceLineNo">029</span><a name="line.29"></a>
-<span class="sourceLineNo">030</span>This has the result that the digest is computed on the octets of the entity-body exactly as, and in the order that, they would be sent if no transfer-encoding were being applied.<a name="line.30"></a>
-<span class="sourceLineNo">031</span><a name="line.31"></a>
-<span class="sourceLineNo">032</span>HTTP extends RFC 1864 to permit the digest to be computed for MIME composite media-types (e.g., multipart/* and message/rfc822), but this does not change how the digest is computed as defined in the preceding paragraph.<a name="line.32"></a>
-<span class="sourceLineNo">033</span><a name="line.33"></a>
-<span class="sourceLineNo">034</span>There are several consequences of this. The entity-body for composite types MAY contain many body-parts, each with its own MIME and HTTP headers (including Content-MD5, Content-Transfer-Encoding, and Content-Encoding headers). If a body-part has a Content-Transfer- Encoding or Content-Encoding header, it is assumed that the content of the body-part has had the encoding applied, and the body-part is included in the Content-MD5 digest as is -- i.e., after the application. The Transfer-Encoding header field is not allowed within body-parts.<a name="line.34"></a>
-<span class="sourceLineNo">035</span><a name="line.35"></a>
-<span class="sourceLineNo">036</span>Conversion of all line breaks to CRLF MUST NOT be done before computing or checking the digest: the line break convention used in the text actually transmitted MUST be left unaltered when computing the digest.<a name="line.36"></a>
-<span class="sourceLineNo">037</span><a name="line.37"></a>
-<span class="sourceLineNo">038</span> Note: while the definition of Content-MD5 is exactly the same for<a name="line.38"></a>
-<span class="sourceLineNo">039</span> HTTP as in RFC 1864 for MIME entity-bodies, there are several ways<a name="line.39"></a>
-<span class="sourceLineNo">040</span> in which the application of Content-MD5 to HTTP entity-bodies<a name="line.40"></a>
-<span class="sourceLineNo">041</span> differs from its application to MIME entity-bodies. One is that<a name="line.41"></a>
-<span class="sourceLineNo">042</span> HTTP, unlike MIME, does not use Content-Transfer-Encoding, and<a name="line.42"></a>
-<span class="sourceLineNo">043</span> does use Transfer-Encoding and Content-Encoding. Another is that<a name="line.43"></a>
-<span class="sourceLineNo">044</span> HTTP more frequently uses binary content types than MIME, so it is<a name="line.44"></a>
-<span class="sourceLineNo">045</span> worth noting that, in such cases, the byte order used to compute<a name="line.45"></a>
-<span class="sourceLineNo">046</span> the digest is the transmission byte order defined for the type.<a name="line.46"></a>
-<span class="sourceLineNo">047</span> Lastly, HTTP allows transmission of text types with any of several<a name="line.47"></a>
-<span class="sourceLineNo">048</span> line break conventions and not just the canonical form using CRLF.<a name="line.48"></a>
-<span class="sourceLineNo">049</span> * </p><a name="line.49"></a>
-<span class="sourceLineNo">050</span> */<a name="line.50"></a>
-<span class="sourceLineNo">051</span>public final class ContentMD5 {<a name="line.51"></a>
-<span class="sourceLineNo">052</span><a name="line.52"></a>
-<span class="sourceLineNo">053</span> private static final boolean nocache = Boolean.getBoolean("juneau.http.Accept.nocache");<a name="line.53"></a>
-<span class="sourceLineNo">054</span> private static final ConcurrentHashMap<String,ContentMD5> cache = new ConcurrentHashMap<String,ContentMD5>();<a name="line.54"></a>
-<span class="sourceLineNo">055</span><a name="line.55"></a>
-<span class="sourceLineNo">056</span> /**<a name="line.56"></a>
-<span class="sourceLineNo">057</span> * Returns a parsed <code>Accept</code> header.<a name="line.57"></a>
-<span class="sourceLineNo">058</span> *<a name="line.58"></a>
-<span class="sourceLineNo">059</span> * @param s The <code>Accept</code> header string.<a name="line.59"></a>
-<span class="sourceLineNo">060</span> * @return The parsed <code>Accept</code> header, or <jk>null</jk> if the string was null.<a name="line.60"></a>
-<span class="sourceLineNo">061</span> */<a name="line.61"></a>
-<span class="sourceLineNo">062</span> public static ContentMD5 forString(String s) {<a name="line.62"></a>
-<span class="sourceLineNo">063</span> if (s == null)<a name="line.63"></a>
-<span class="sourceLineNo">064</span> return null;<a name="line.64"></a>
-<span class="sourceLineNo">065</span><a name="line.65"></a>
-<span class="sourceLineNo">066</span> // Prevent OOM in case of DDOS<a name="line.66"></a>
-<span class="sourceLineNo">067</span> if (cache.size() > 1000)<a name="line.67"></a>
-<span class="sourceLineNo">068</span> cache.clear();<a name="line.68"></a>
-<span class="sourceLineNo">069</span><a name="line.69"></a>
-<span class="sourceLineNo">070</span> while (true) {<a name="line.70"></a>
-<span class="sourceLineNo">071</span> ContentMD5 a = cache.get(s);<a name="line.71"></a>
-<span class="sourceLineNo">072</span> if (a != null)<a name="line.72"></a>
-<span class="sourceLineNo">073</span> return a;<a name="line.73"></a>
-<span class="sourceLineNo">074</span> a = new ContentMD5(s);<a name="line.74"></a>
-<span class="sourceLineNo">075</span> if (nocache)<a name="line.75"></a>
-<span class="sourceLineNo">076</span> return a;<a name="line.76"></a>
-<span class="sourceLineNo">077</span> cache.putIfAbsent(s, a);<a name="line.77"></a>
-<span class="sourceLineNo">078</span> }<a name="line.78"></a>
-<span class="sourceLineNo">079</span> }<a name="line.79"></a>
-<span class="sourceLineNo">080</span><a name="line.80"></a>
-<span class="sourceLineNo">081</span> private ContentMD5(String raw) {<a name="line.81"></a>
-<span class="sourceLineNo">082</span> }<a name="line.82"></a>
-<span class="sourceLineNo">083</span><a name="line.83"></a>
-<span class="sourceLineNo">084</span> @Override /* Object */<a name="line.84"></a>
-<span class="sourceLineNo">085</span> public String toString() {<a name="line.85"></a>
-<span class="sourceLineNo">086</span> return null;<a name="line.86"></a>
-<span class="sourceLineNo">087</span> }<a name="line.87"></a>
-<span class="sourceLineNo">088</span>}<a name="line.88"></a>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-</pre>
-</div>
-</body>
-</html>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/src-html/org/apache/juneau/http/HeaderTimestamp.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/http/HeaderTimestamp.html b/content/site/apidocs/src-html/org/apache/juneau/http/HeaderTimestamp.html
deleted file mode 100644
index a426458..0000000
--- a/content/site/apidocs/src-html/org/apache/juneau/http/HeaderTimestamp.html
+++ /dev/null
@@ -1,123 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html lang="en">
-<head>
-<title>Source code</title>
-<link rel="stylesheet" type="text/css" href="../../../../../javadoc.css" title="Style">
-</head>
-<body>
-<div class="sourceContainer">
-<pre><span class="sourceLineNo">001</span>// ***************************************************************************************************************************<a name="line.1"></a>
-<span class="sourceLineNo">002</span>// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file *<a name="line.2"></a>
-<span class="sourceLineNo">003</span>// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file *<a name="line.3"></a>
-<span class="sourceLineNo">004</span>// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance *<a name="line.4"></a>
-<span class="sourceLineNo">005</span>// * with the License. You may obtain a copy of the License at *<a name="line.5"></a>
-<span class="sourceLineNo">006</span>// * *<a name="line.6"></a>
-<span class="sourceLineNo">007</span>// * http://www.apache.org/licenses/LICENSE-2.0 *<a name="line.7"></a>
-<span class="sourceLineNo">008</span>// * *<a name="line.8"></a>
-<span class="sourceLineNo">009</span>// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an *<a name="line.9"></a>
-<span class="sourceLineNo">010</span>// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the *<a name="line.10"></a>
-<span class="sourceLineNo">011</span>// * specific language governing permissions and limitations under the License. *<a name="line.11"></a>
-<span class="sourceLineNo">012</span>// ***************************************************************************************************************************<a name="line.12"></a>
-<span class="sourceLineNo">013</span>package org.apache.juneau.http;<a name="line.13"></a>
-<span class="sourceLineNo">014</span><a name="line.14"></a>
-<span class="sourceLineNo">015</span>import org.apache.juneau.internal.*;<a name="line.15"></a>
-<span class="sourceLineNo">016</span><a name="line.16"></a>
-<span class="sourceLineNo">017</span>/**<a name="line.17"></a>
-<span class="sourceLineNo">018</span> * Category of headers that consist of a single HTTP-date.<a name="line.18"></a>
-<span class="sourceLineNo">019</span> * <p><a name="line.19"></a>
-<span class="sourceLineNo">020</span> * <h6 class='figure'>Example</h6><a name="line.20"></a>
-<span class="sourceLineNo">021</span> * <p class='bcode'><a name="line.21"></a>
-<span class="sourceLineNo">022</span> * If-Modified-Since: Sat, 29 Oct 1994 19:43:31 GMT<a name="line.22"></a>
-<span class="sourceLineNo">023</span> * </p><a name="line.23"></a>
-<span class="sourceLineNo">024</span> */<a name="line.24"></a>
-<span class="sourceLineNo">025</span>public class HeaderTimestamp {<a name="line.25"></a>
-<span class="sourceLineNo">026</span><a name="line.26"></a>
-<span class="sourceLineNo">027</span> private final java.util.Date date;<a name="line.27"></a>
-<span class="sourceLineNo">028</span> private final String raw;<a name="line.28"></a>
-<span class="sourceLineNo">029</span><a name="line.29"></a>
-<span class="sourceLineNo">030</span> /**<a name="line.30"></a>
-<span class="sourceLineNo">031</span> * Constructor.<a name="line.31"></a>
-<span class="sourceLineNo">032</span> * @param raw The raw header value.<a name="line.32"></a>
-<span class="sourceLineNo">033</span> */<a name="line.33"></a>
-<span class="sourceLineNo">034</span> protected HeaderTimestamp(String raw) {<a name="line.34"></a>
-<span class="sourceLineNo">035</span> this.raw = raw;<a name="line.35"></a>
-<span class="sourceLineNo">036</span> this.date = DateUtils.parseDate(raw);<a name="line.36"></a>
-<span class="sourceLineNo">037</span> }<a name="line.37"></a>
-<span class="sourceLineNo">038</span><a name="line.38"></a>
-<span class="sourceLineNo">039</span> /**<a name="line.39"></a>
-<span class="sourceLineNo">040</span> * Returns this header value as a {@link java.util.Date}.<a name="line.40"></a>
-<span class="sourceLineNo">041</span> * @return This header value as a {@link java.util.Date}, or <jk>null</jk> if the header could not be parsed.<a name="line.41"></a>
-<span class="sourceLineNo">042</span> */<a name="line.42"></a>
-<span class="sourceLineNo">043</span> public java.util.Date asDate() {<a name="line.43"></a>
-<span class="sourceLineNo">044</span> return date;<a name="line.44"></a>
-<span class="sourceLineNo">045</span> }<a name="line.45"></a>
-<span class="sourceLineNo">046</span><a name="line.46"></a>
-<span class="sourceLineNo">047</span> @Override /* Object */<a name="line.47"></a>
-<span class="sourceLineNo">048</span> public String toString() {<a name="line.48"></a>
-<span class="sourceLineNo">049</span> return raw;<a name="line.49"></a>
-<span class="sourceLineNo">050</span> }<a name="line.50"></a>
-<span class="sourceLineNo">051</span>}<a name="line.51"></a>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-</pre>
-</div>
-</body>
-</html>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/src-html/org/apache/juneau/http/HeaderUrl.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/http/HeaderUrl.html b/content/site/apidocs/src-html/org/apache/juneau/http/HeaderUrl.html
deleted file mode 100644
index 0a8189a..0000000
--- a/content/site/apidocs/src-html/org/apache/juneau/http/HeaderUrl.html
+++ /dev/null
@@ -1,134 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html lang="en">
-<head>
-<title>Source code</title>
-<link rel="stylesheet" type="text/css" href="../../../../../javadoc.css" title="Style">
-</head>
-<body>
-<div class="sourceContainer">
-<pre><span class="sourceLineNo">001</span>// ***************************************************************************************************************************<a name="line.1"></a>
-<span class="sourceLineNo">002</span>// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file *<a name="line.2"></a>
-<span class="sourceLineNo">003</span>// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file *<a name="line.3"></a>
-<span class="sourceLineNo">004</span>// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance *<a name="line.4"></a>
-<span class="sourceLineNo">005</span>// * with the License. You may obtain a copy of the License at *<a name="line.5"></a>
-<span class="sourceLineNo">006</span>// * *<a name="line.6"></a>
-<span class="sourceLineNo">007</span>// * http://www.apache.org/licenses/LICENSE-2.0 *<a name="line.7"></a>
-<span class="sourceLineNo">008</span>// * *<a name="line.8"></a>
-<span class="sourceLineNo">009</span>// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an *<a name="line.9"></a>
-<span class="sourceLineNo">010</span>// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the *<a name="line.10"></a>
-<span class="sourceLineNo">011</span>// * specific language governing permissions and limitations under the License. *<a name="line.11"></a>
-<span class="sourceLineNo">012</span>// ***************************************************************************************************************************<a name="line.12"></a>
-<span class="sourceLineNo">013</span>package org.apache.juneau.http;<a name="line.13"></a>
-<span class="sourceLineNo">014</span><a name="line.14"></a>
-<span class="sourceLineNo">015</span>import java.net.*;<a name="line.15"></a>
-<span class="sourceLineNo">016</span><a name="line.16"></a>
-<span class="sourceLineNo">017</span>import org.apache.juneau.internal.*;<a name="line.17"></a>
-<span class="sourceLineNo">018</span><a name="line.18"></a>
-<span class="sourceLineNo">019</span>/**<a name="line.19"></a>
-<span class="sourceLineNo">020</span> * Category of headers that consist of a single URL value.<a name="line.20"></a>
-<span class="sourceLineNo">021</span> * <p><a name="line.21"></a>
-<span class="sourceLineNo">022</span> * <h6 class='figure'>Example</h6><a name="line.22"></a>
-<span class="sourceLineNo">023</span> * <p class='bcode'><a name="line.23"></a>
-<span class="sourceLineNo">024</span> * Location: http://www.w3.org/pub/WWW/People.html<a name="line.24"></a>
-<span class="sourceLineNo">025</span> * </p><a name="line.25"></a>
-<span class="sourceLineNo">026</span> */<a name="line.26"></a>
-<span class="sourceLineNo">027</span>public class HeaderUrl{<a name="line.27"></a>
-<span class="sourceLineNo">028</span><a name="line.28"></a>
-<span class="sourceLineNo">029</span> final String value;<a name="line.29"></a>
-<span class="sourceLineNo">030</span><a name="line.30"></a>
-<span class="sourceLineNo">031</span> /**<a name="line.31"></a>
-<span class="sourceLineNo">032</span> * Constructor.<a name="line.32"></a>
-<span class="sourceLineNo">033</span> * @param value The raw header value.<a name="line.33"></a>
-<span class="sourceLineNo">034</span> */<a name="line.34"></a>
-<span class="sourceLineNo">035</span> protected HeaderUrl(String value) {<a name="line.35"></a>
-<span class="sourceLineNo">036</span> this.value = StringUtils.trim(value);<a name="line.36"></a>
-<span class="sourceLineNo">037</span> }<a name="line.37"></a>
-<span class="sourceLineNo">038</span><a name="line.38"></a>
-<span class="sourceLineNo">039</span> /**<a name="line.39"></a>
-<span class="sourceLineNo">040</span> * Returns this header as a {@link URI}.<a name="line.40"></a>
-<span class="sourceLineNo">041</span> * @return This header as a {@link URI}.<a name="line.41"></a>
-<span class="sourceLineNo">042</span> */<a name="line.42"></a>
-<span class="sourceLineNo">043</span> public URI asURI() {<a name="line.43"></a>
-<span class="sourceLineNo">044</span> return URI.create(toString());<a name="line.44"></a>
-<span class="sourceLineNo">045</span> }<a name="line.45"></a>
-<span class="sourceLineNo">046</span><a name="line.46"></a>
-<span class="sourceLineNo">047</span> /**<a name="line.47"></a>
-<span class="sourceLineNo">048</span> * Returns this header as a simple string value.<a name="line.48"></a>
-<span class="sourceLineNo">049</span> * <p><a name="line.49"></a>
-<span class="sourceLineNo">050</span> * Functionally equivalent to calling {@link #toString()}.<a name="line.50"></a>
-<span class="sourceLineNo">051</span> *<a name="line.51"></a>
-<span class="sourceLineNo">052</span> * @return This header as a simple string.<a name="line.52"></a>
-<span class="sourceLineNo">053</span> */<a name="line.53"></a>
-<span class="sourceLineNo">054</span> public String asString() {<a name="line.54"></a>
-<span class="sourceLineNo">055</span> return value;<a name="line.55"></a>
-<span class="sourceLineNo">056</span> }<a name="line.56"></a>
-<span class="sourceLineNo">057</span><a name="line.57"></a>
-<span class="sourceLineNo">058</span> @Override /* Object */<a name="line.58"></a>
-<span class="sourceLineNo">059</span> public String toString() {<a name="line.59"></a>
-<span class="sourceLineNo">060</span> return value == null ? "" : value;<a name="line.60"></a>
-<span class="sourceLineNo">061</span> }<a name="line.61"></a>
-<span class="sourceLineNo">062</span>}<a name="line.62"></a>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-</pre>
-</div>
-</body>
-</html>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/src-html/org/apache/juneau/http/HeaderValidator.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/http/HeaderValidator.html b/content/site/apidocs/src-html/org/apache/juneau/http/HeaderValidator.html
deleted file mode 100644
index 555a5f0..0000000
--- a/content/site/apidocs/src-html/org/apache/juneau/http/HeaderValidator.html
+++ /dev/null
@@ -1,119 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html lang="en">
-<head>
-<title>Source code</title>
-<link rel="stylesheet" type="text/css" href="../../../../../javadoc.css" title="Style">
-</head>
-<body>
-<div class="sourceContainer">
-<pre><span class="sourceLineNo">001</span>// ***************************************************************************************************************************<a name="line.1"></a>
-<span class="sourceLineNo">002</span>// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file *<a name="line.2"></a>
-<span class="sourceLineNo">003</span>// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file *<a name="line.3"></a>
-<span class="sourceLineNo">004</span>// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance *<a name="line.4"></a>
-<span class="sourceLineNo">005</span>// * with the License. You may obtain a copy of the License at *<a name="line.5"></a>
-<span class="sourceLineNo">006</span>// * *<a name="line.6"></a>
-<span class="sourceLineNo">007</span>// * http://www.apache.org/licenses/LICENSE-2.0 *<a name="line.7"></a>
-<span class="sourceLineNo">008</span>// * *<a name="line.8"></a>
-<span class="sourceLineNo">009</span>// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an *<a name="line.9"></a>
-<span class="sourceLineNo">010</span>// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the *<a name="line.10"></a>
-<span class="sourceLineNo">011</span>// * specific language governing permissions and limitations under the License. *<a name="line.11"></a>
-<span class="sourceLineNo">012</span>// ***************************************************************************************************************************<a name="line.12"></a>
-<span class="sourceLineNo">013</span>package org.apache.juneau.http;<a name="line.13"></a>
-<span class="sourceLineNo">014</span><a name="line.14"></a>
-<span class="sourceLineNo">015</span>/**<a name="line.15"></a>
-<span class="sourceLineNo">016</span> * Category of headers that consist of a single validator value.<a name="line.16"></a>
-<span class="sourceLineNo">017</span> * <p><a name="line.17"></a>
-<span class="sourceLineNo">018</span> * <h6 class='figure'>Example</h6><a name="line.18"></a>
-<span class="sourceLineNo">019</span> * <p class='bcode'><a name="line.19"></a>
-<span class="sourceLineNo">020</span> * ETag: "xyzzy"<a name="line.20"></a>
-<span class="sourceLineNo">021</span> * </p><a name="line.21"></a>
-<span class="sourceLineNo">022</span> */<a name="line.22"></a>
-<span class="sourceLineNo">023</span>public class HeaderValidator {<a name="line.23"></a>
-<span class="sourceLineNo">024</span><a name="line.24"></a>
-<span class="sourceLineNo">025</span> private final EntityValidator value;<a name="line.25"></a>
-<span class="sourceLineNo">026</span><a name="line.26"></a>
-<span class="sourceLineNo">027</span> /**<a name="line.27"></a>
-<span class="sourceLineNo">028</span> * Constructor.<a name="line.28"></a>
-<span class="sourceLineNo">029</span> * @param value The raw header value.<a name="line.29"></a>
-<span class="sourceLineNo">030</span> */<a name="line.30"></a>
-<span class="sourceLineNo">031</span> protected HeaderValidator(String value) {<a name="line.31"></a>
-<span class="sourceLineNo">032</span> this.value = new EntityValidator(value);<a name="line.32"></a>
-<span class="sourceLineNo">033</span> }<a name="line.33"></a>
-<span class="sourceLineNo">034</span><a name="line.34"></a>
-<span class="sourceLineNo">035</span> /**<a name="line.35"></a>
-<span class="sourceLineNo">036</span> * Returns this header value as a {@link EntityValidator} object.<a name="line.36"></a>
-<span class="sourceLineNo">037</span> * @return this header value as a {@link EntityValidator} object.<a name="line.37"></a>
-<span class="sourceLineNo">038</span> */<a name="line.38"></a>
-<span class="sourceLineNo">039</span> public EntityValidator asValidator() {<a name="line.39"></a>
-<span class="sourceLineNo">040</span> return value;<a name="line.40"></a>
-<span class="sourceLineNo">041</span> }<a name="line.41"></a>
-<span class="sourceLineNo">042</span><a name="line.42"></a>
-<span class="sourceLineNo">043</span> @Override /* Object */<a name="line.43"></a>
-<span class="sourceLineNo">044</span> public String toString() {<a name="line.44"></a>
-<span class="sourceLineNo">045</span> return value.toString();<a name="line.45"></a>
-<span class="sourceLineNo">046</span> }<a name="line.46"></a>
-<span class="sourceLineNo">047</span>}<a name="line.47"></a>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-</pre>
-</div>
-</body>
-</html>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/src-html/org/apache/juneau/http/HeaderValidatorArray.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/http/HeaderValidatorArray.html b/content/site/apidocs/src-html/org/apache/juneau/http/HeaderValidatorArray.html
deleted file mode 100644
index 648866f..0000000
--- a/content/site/apidocs/src-html/org/apache/juneau/http/HeaderValidatorArray.html
+++ /dev/null
@@ -1,127 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html lang="en">
-<head>
-<title>Source code</title>
-<link rel="stylesheet" type="text/css" href="../../../../../javadoc.css" title="Style">
-</head>
-<body>
-<div class="sourceContainer">
-<pre><span class="sourceLineNo">001</span>// ***************************************************************************************************************************<a name="line.1"></a>
-<span class="sourceLineNo">002</span>// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file *<a name="line.2"></a>
-<span class="sourceLineNo">003</span>// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file *<a name="line.3"></a>
-<span class="sourceLineNo">004</span>// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance *<a name="line.4"></a>
-<span class="sourceLineNo">005</span>// * with the License. You may obtain a copy of the License at *<a name="line.5"></a>
-<span class="sourceLineNo">006</span>// * *<a name="line.6"></a>
-<span class="sourceLineNo">007</span>// * http://www.apache.org/licenses/LICENSE-2.0 *<a name="line.7"></a>
-<span class="sourceLineNo">008</span>// * *<a name="line.8"></a>
-<span class="sourceLineNo">009</span>// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an *<a name="line.9"></a>
-<span class="sourceLineNo">010</span>// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the *<a name="line.10"></a>
-<span class="sourceLineNo">011</span>// * specific language governing permissions and limitations under the License. *<a name="line.11"></a>
-<span class="sourceLineNo">012</span>// ***************************************************************************************************************************<a name="line.12"></a>
-<span class="sourceLineNo">013</span>package org.apache.juneau.http;<a name="line.13"></a>
-<span class="sourceLineNo">014</span><a name="line.14"></a>
-<span class="sourceLineNo">015</span>import org.apache.juneau.internal.*;<a name="line.15"></a>
-<span class="sourceLineNo">016</span><a name="line.16"></a>
-<span class="sourceLineNo">017</span>/**<a name="line.17"></a>
-<span class="sourceLineNo">018</span> * Category of headers that consist of a comma-delimited list of validator values.<a name="line.18"></a>
-<span class="sourceLineNo">019</span> * <p><a name="line.19"></a>
-<span class="sourceLineNo">020</span> * <h6 class='figure'>Example</h6><a name="line.20"></a>
-<span class="sourceLineNo">021</span> * <p class='bcode'><a name="line.21"></a>
-<span class="sourceLineNo">022</span> * If-Match: "xyzzy"<a name="line.22"></a>
-<span class="sourceLineNo">023</span> * If-Match: "xyzzy", "r2d2xxxx", "c3piozzzz"<a name="line.23"></a>
-<span class="sourceLineNo">024</span> * If-Match: *<a name="line.24"></a>
-<span class="sourceLineNo">025</span> * </p><a name="line.25"></a>
-<span class="sourceLineNo">026</span> */<a name="line.26"></a>
-<span class="sourceLineNo">027</span>public class HeaderValidatorArray {<a name="line.27"></a>
-<span class="sourceLineNo">028</span><a name="line.28"></a>
-<span class="sourceLineNo">029</span> private final EntityValidator[] value;<a name="line.29"></a>
-<span class="sourceLineNo">030</span><a name="line.30"></a>
-<span class="sourceLineNo">031</span> /**<a name="line.31"></a>
-<span class="sourceLineNo">032</span> * Constructor.<a name="line.32"></a>
-<span class="sourceLineNo">033</span> * @param value The raw header value.<a name="line.33"></a>
-<span class="sourceLineNo">034</span> */<a name="line.34"></a>
-<span class="sourceLineNo">035</span> protected HeaderValidatorArray(String value) {<a name="line.35"></a>
-<span class="sourceLineNo">036</span> String[] s = StringUtils.split(value, ',');<a name="line.36"></a>
-<span class="sourceLineNo">037</span> this.value = new EntityValidator[s.length];<a name="line.37"></a>
-<span class="sourceLineNo">038</span> for (int i = 0; i < s.length; i++) {<a name="line.38"></a>
-<span class="sourceLineNo">039</span> this.value[i] = new EntityValidator(s[i]);<a name="line.39"></a>
-<span class="sourceLineNo">040</span> }<a name="line.40"></a>
-<span class="sourceLineNo">041</span> }<a name="line.41"></a>
-<span class="sourceLineNo">042</span><a name="line.42"></a>
-<span class="sourceLineNo">043</span> /**<a name="line.43"></a>
-<span class="sourceLineNo">044</span> * Returns this header value as an array of {@link EntityValidator} objects.<a name="line.44"></a>
-<span class="sourceLineNo">045</span> * @return this header value as an array of {@link EntityValidator} objects.<a name="line.45"></a>
-<span class="sourceLineNo">046</span> */<a name="line.46"></a>
-<span class="sourceLineNo">047</span> public EntityValidator[] asValidators() {<a name="line.47"></a>
-<span class="sourceLineNo">048</span> return value;<a name="line.48"></a>
-<span class="sourceLineNo">049</span> }<a name="line.49"></a>
-<span class="sourceLineNo">050</span><a name="line.50"></a>
-<span class="sourceLineNo">051</span> @Override /* Object */<a name="line.51"></a>
-<span class="sourceLineNo">052</span> public String toString() {<a name="line.52"></a>
-<span class="sourceLineNo">053</span> return StringUtils.join(value, ", ");<a name="line.53"></a>
-<span class="sourceLineNo">054</span> }<a name="line.54"></a>
-<span class="sourceLineNo">055</span>}<a name="line.55"></a>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-</pre>
-</div>
-</body>
-</html>
[06/15] incubator-juneau-website git commit: Update javadocs.
Posted by ja...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/src-html/org/apache/juneau/rest/RequestFormData.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/rest/RequestFormData.html b/content/site/apidocs/src-html/org/apache/juneau/rest/RequestFormData.html
index 2a41e35..7bfb679 100644
--- a/content/site/apidocs/src-html/org/apache/juneau/rest/RequestFormData.html
+++ b/content/site/apidocs/src-html/org/apache/juneau/rest/RequestFormData.html
@@ -49,234 +49,254 @@
<span class="sourceLineNo">041</span> }<a name="line.41"></a>
<span class="sourceLineNo">042</span><a name="line.42"></a>
<span class="sourceLineNo">043</span> /**<a name="line.43"></a>
-<span class="sourceLineNo">044</span> * Sets a request form data parameter value.<a name="line.44"></a>
-<span class="sourceLineNo">045</span> *<a name="line.45"></a>
-<span class="sourceLineNo">046</span> * @param name The parameter name.<a name="line.46"></a>
-<span class="sourceLineNo">047</span> * @param value The parameter value.<a name="line.47"></a>
-<span class="sourceLineNo">048</span> */<a name="line.48"></a>
-<span class="sourceLineNo">049</span> public void put(String name, Object value) {<a name="line.49"></a>
-<span class="sourceLineNo">050</span> super.put(name, new String[]{StringUtils.toString(value)});<a name="line.50"></a>
-<span class="sourceLineNo">051</span> }<a name="line.51"></a>
-<span class="sourceLineNo">052</span><a name="line.52"></a>
-<span class="sourceLineNo">053</span> /**<a name="line.53"></a>
-<span class="sourceLineNo">054</span> * Returns a form data parameter value.<a name="line.54"></a>
-<span class="sourceLineNo">055</span> * <p><a name="line.55"></a>
-<span class="sourceLineNo">056</span> * Parameter lookup is case-insensitive (consistent with WAS, but differs from Tomcat).<a name="line.56"></a>
-<span class="sourceLineNo">057</span> * <p><a name="line.57"></a>
-<span class="sourceLineNo">058</span> * <h5 class='section'>Notes:</h5><a name="line.58"></a>
-<span class="sourceLineNo">059</span> * <ul><a name="line.59"></a>
-<span class="sourceLineNo">060</span> * <li>Calling this method on URL-Encoded FORM posts causes the body content to be loaded and parsed by the underlying servlet API.<a name="line.60"></a>
-<span class="sourceLineNo">061</span> * <li>This method returns the raw unparsed value, and differs from calling <code>getFormDataParameter(name, String.<jk>class</js>)</code><a name="line.61"></a>
-<span class="sourceLineNo">062</span> * which will convert the value from UON notation:<a name="line.62"></a>
-<span class="sourceLineNo">063</span> * <ul><a name="line.63"></a>
-<span class="sourceLineNo">064</span> * <li><js>"null"</js> =&gt; <jk>null</jk><a name="line.64"></a>
-<span class="sourceLineNo">065</span> * <li><js>"'null'"</js> =&gt; <js>"null"</js><a name="line.65"></a>
-<span class="sourceLineNo">066</span> * <li><js>"'foo bar'"</js> =&gt; <js>"foo bar"</js><a name="line.66"></a>
-<span class="sourceLineNo">067</span> * <li><js>"foo~~bar"</js> =&gt; <js>"foo~bar"</js><a name="line.67"></a>
-<span class="sourceLineNo">068</span> * </ul><a name="line.68"></a>
-<span class="sourceLineNo">069</span> * </ul><a name="line.69"></a>
-<span class="sourceLineNo">070</span> *<a name="line.70"></a>
-<span class="sourceLineNo">071</span> * @param name The form data parameter name.<a name="line.71"></a>
-<span class="sourceLineNo">072</span> * @return The parameter value, or <jk>null</jk> if parameter does not exist.<a name="line.72"></a>
-<span class="sourceLineNo">073</span> */<a name="line.73"></a>
-<span class="sourceLineNo">074</span> public String getFirst(String name) {<a name="line.74"></a>
-<span class="sourceLineNo">075</span> String[] v = get(name);<a name="line.75"></a>
-<span class="sourceLineNo">076</span> if (v == null || v.length == 0)<a name="line.76"></a>
-<span class="sourceLineNo">077</span> return null;<a name="line.77"></a>
-<span class="sourceLineNo">078</span> if (v.length == 1 && v[0] != null && v[0].isEmpty()) {<a name="line.78"></a>
-<span class="sourceLineNo">079</span> // Fix for behavior difference between Tomcat and WAS.<a name="line.79"></a>
-<span class="sourceLineNo">080</span> // getParameter("foo") on "&foo" in Tomcat returns "".<a name="line.80"></a>
-<span class="sourceLineNo">081</span> // getParameter("foo") on "&foo" in WAS returns null.<a name="line.81"></a>
-<span class="sourceLineNo">082</span> if (containsKey(name))<a name="line.82"></a>
-<span class="sourceLineNo">083</span> return null;<a name="line.83"></a>
-<span class="sourceLineNo">084</span> }<a name="line.84"></a>
-<span class="sourceLineNo">085</span> return v[0];<a name="line.85"></a>
-<span class="sourceLineNo">086</span> }<a name="line.86"></a>
-<span class="sourceLineNo">087</span><a name="line.87"></a>
-<span class="sourceLineNo">088</span> /**<a name="line.88"></a>
-<span class="sourceLineNo">089</span> * Same as {@link #getFirst(String)} except returns a default value if <jk>null</jk> or empty.<a name="line.89"></a>
+<span class="sourceLineNo">044</span> * Adds default entries to these form-data parameters.<a name="line.44"></a>
+<span class="sourceLineNo">045</span> * <p><a name="line.45"></a>
+<span class="sourceLineNo">046</span> * This includes the default form-data parameters defined on the servlet and method levels.<a name="line.46"></a>
+<span class="sourceLineNo">047</span> *<a name="line.47"></a>
+<span class="sourceLineNo">048</span> * @param defaultEntries The default entries. Can be <jk>null</jk>.<a name="line.48"></a>
+<span class="sourceLineNo">049</span> * @return This object (for method chaining).<a name="line.49"></a>
+<span class="sourceLineNo">050</span> */<a name="line.50"></a>
+<span class="sourceLineNo">051</span> public RequestFormData addDefault(Map<String,String> defaultEntries) {<a name="line.51"></a>
+<span class="sourceLineNo">052</span> if (defaultEntries != null) {<a name="line.52"></a>
+<span class="sourceLineNo">053</span> for (Map.Entry<String,String> e : defaultEntries.entrySet()) {<a name="line.53"></a>
+<span class="sourceLineNo">054</span> String key = e.getKey(), value = e.getValue();<a name="line.54"></a>
+<span class="sourceLineNo">055</span> String[] v = get(key);<a name="line.55"></a>
+<span class="sourceLineNo">056</span> if (v == null)<a name="line.56"></a>
+<span class="sourceLineNo">057</span> put(key, new String[]{value});<a name="line.57"></a>
+<span class="sourceLineNo">058</span> }<a name="line.58"></a>
+<span class="sourceLineNo">059</span> }<a name="line.59"></a>
+<span class="sourceLineNo">060</span> return this;<a name="line.60"></a>
+<span class="sourceLineNo">061</span> }<a name="line.61"></a>
+<span class="sourceLineNo">062</span><a name="line.62"></a>
+<span class="sourceLineNo">063</span> /**<a name="line.63"></a>
+<span class="sourceLineNo">064</span> * Sets a request form data parameter value.<a name="line.64"></a>
+<span class="sourceLineNo">065</span> *<a name="line.65"></a>
+<span class="sourceLineNo">066</span> * @param name The parameter name.<a name="line.66"></a>
+<span class="sourceLineNo">067</span> * @param value The parameter value.<a name="line.67"></a>
+<span class="sourceLineNo">068</span> */<a name="line.68"></a>
+<span class="sourceLineNo">069</span> public void put(String name, Object value) {<a name="line.69"></a>
+<span class="sourceLineNo">070</span> super.put(name, new String[]{StringUtils.toString(value)});<a name="line.70"></a>
+<span class="sourceLineNo">071</span> }<a name="line.71"></a>
+<span class="sourceLineNo">072</span><a name="line.72"></a>
+<span class="sourceLineNo">073</span> /**<a name="line.73"></a>
+<span class="sourceLineNo">074</span> * Returns a form data parameter value.<a name="line.74"></a>
+<span class="sourceLineNo">075</span> * <p><a name="line.75"></a>
+<span class="sourceLineNo">076</span> * Parameter lookup is case-insensitive (consistent with WAS, but differs from Tomcat).<a name="line.76"></a>
+<span class="sourceLineNo">077</span> * <p><a name="line.77"></a>
+<span class="sourceLineNo">078</span> * <h5 class='section'>Notes:</h5><a name="line.78"></a>
+<span class="sourceLineNo">079</span> * <ul><a name="line.79"></a>
+<span class="sourceLineNo">080</span> * <li>Calling this method on URL-Encoded FORM posts causes the body content to be loaded and parsed by the underlying servlet API.<a name="line.80"></a>
+<span class="sourceLineNo">081</span> * <li>This method returns the raw unparsed value, and differs from calling <code>getFormDataParameter(name, String.<jk>class</js>)</code><a name="line.81"></a>
+<span class="sourceLineNo">082</span> * which will convert the value from UON notation:<a name="line.82"></a>
+<span class="sourceLineNo">083</span> * <ul><a name="line.83"></a>
+<span class="sourceLineNo">084</span> * <li><js>"null"</js> =&gt; <jk>null</jk><a name="line.84"></a>
+<span class="sourceLineNo">085</span> * <li><js>"'null'"</js> =&gt; <js>"null"</js><a name="line.85"></a>
+<span class="sourceLineNo">086</span> * <li><js>"'foo bar'"</js> =&gt; <js>"foo bar"</js><a name="line.86"></a>
+<span class="sourceLineNo">087</span> * <li><js>"foo~~bar"</js> =&gt; <js>"foo~bar"</js><a name="line.87"></a>
+<span class="sourceLineNo">088</span> * </ul><a name="line.88"></a>
+<span class="sourceLineNo">089</span> * </ul><a name="line.89"></a>
<span class="sourceLineNo">090</span> *<a name="line.90"></a>
<span class="sourceLineNo">091</span> * @param name The form data parameter name.<a name="line.91"></a>
-<span class="sourceLineNo">092</span> * @param def The default value.<a name="line.92"></a>
-<span class="sourceLineNo">093</span> * @return The parameter value, or the default value if <jk>null</jk> or empty.<a name="line.93"></a>
-<span class="sourceLineNo">094</span> */<a name="line.94"></a>
-<span class="sourceLineNo">095</span> public String getFirst(String name, String def) {<a name="line.95"></a>
-<span class="sourceLineNo">096</span> String val = getFirst(name);<a name="line.96"></a>
-<span class="sourceLineNo">097</span> if (val == null || val.isEmpty())<a name="line.97"></a>
-<span class="sourceLineNo">098</span> return def;<a name="line.98"></a>
-<span class="sourceLineNo">099</span> return val;<a name="line.99"></a>
-<span class="sourceLineNo">100</span> }<a name="line.100"></a>
-<span class="sourceLineNo">101</span><a name="line.101"></a>
-<span class="sourceLineNo">102</span> /**<a name="line.102"></a>
-<span class="sourceLineNo">103</span> * Returns the specified form data parameter value converted to a POJO using the<a name="line.103"></a>
-<span class="sourceLineNo">104</span> * {@link UrlEncodingParser} registered with this servlet.<a name="line.104"></a>
-<span class="sourceLineNo">105</span> * <p><a name="line.105"></a>
-<span class="sourceLineNo">106</span> * <h5 class='section'>Examples:</h5><a name="line.106"></a>
-<span class="sourceLineNo">107</span> * <p class='bcode'><a name="line.107"></a>
-<span class="sourceLineNo">108</span> * <jc>// Parse into an integer.</jc><a name="line.108"></a>
-<span class="sourceLineNo">109</span> * <jk>int</jk> myparam = req.getFormDataParameter(<js>"myparam"</js>, <jk>int</jk>.<jk>class</jk>);<a name="line.109"></a>
+<span class="sourceLineNo">092</span> * @return The parameter value, or <jk>null</jk> if parameter does not exist.<a name="line.92"></a>
+<span class="sourceLineNo">093</span> */<a name="line.93"></a>
+<span class="sourceLineNo">094</span> public String getFirst(String name) {<a name="line.94"></a>
+<span class="sourceLineNo">095</span> String[] v = get(name);<a name="line.95"></a>
+<span class="sourceLineNo">096</span> if (v == null || v.length == 0)<a name="line.96"></a>
+<span class="sourceLineNo">097</span> return null;<a name="line.97"></a>
+<span class="sourceLineNo">098</span> if (v.length == 1 && v[0] != null && v[0].isEmpty()) {<a name="line.98"></a>
+<span class="sourceLineNo">099</span> // Fix for behavior difference between Tomcat and WAS.<a name="line.99"></a>
+<span class="sourceLineNo">100</span> // getParameter("foo") on "&foo" in Tomcat returns "".<a name="line.100"></a>
+<span class="sourceLineNo">101</span> // getParameter("foo") on "&foo" in WAS returns null.<a name="line.101"></a>
+<span class="sourceLineNo">102</span> if (containsKey(name))<a name="line.102"></a>
+<span class="sourceLineNo">103</span> return null;<a name="line.103"></a>
+<span class="sourceLineNo">104</span> }<a name="line.104"></a>
+<span class="sourceLineNo">105</span> return v[0];<a name="line.105"></a>
+<span class="sourceLineNo">106</span> }<a name="line.106"></a>
+<span class="sourceLineNo">107</span><a name="line.107"></a>
+<span class="sourceLineNo">108</span> /**<a name="line.108"></a>
+<span class="sourceLineNo">109</span> * Same as {@link #getFirst(String)} except returns a default value if <jk>null</jk> or empty.<a name="line.109"></a>
<span class="sourceLineNo">110</span> *<a name="line.110"></a>
-<span class="sourceLineNo">111</span> * <jc>// Parse into an int array.</jc><a name="line.111"></a>
-<span class="sourceLineNo">112</span> * <jk>int</jk>[] myparam = req.getFormDataParameter(<js>"myparam"</js>, <jk>int</jk>[].<jk>class</jk>);<a name="line.112"></a>
-<span class="sourceLineNo">113</span><a name="line.113"></a>
-<span class="sourceLineNo">114</span> * <jc>// Parse into a bean.</jc><a name="line.114"></a>
-<span class="sourceLineNo">115</span> * MyBean myparam = req.getFormDataParameter(<js>"myparam"</js>, MyBean.<jk>class</jk>);<a name="line.115"></a>
-<span class="sourceLineNo">116</span> *<a name="line.116"></a>
-<span class="sourceLineNo">117</span> * <jc>// Parse into a linked-list of objects.</jc><a name="line.117"></a>
-<span class="sourceLineNo">118</span> * List myparam = req.getFormDataParameter(<js>"myparam"</js>, LinkedList.<jk>class</jk>);<a name="line.118"></a>
-<span class="sourceLineNo">119</span> *<a name="line.119"></a>
-<span class="sourceLineNo">120</span> * <jc>// Parse into a map of object keys/values.</jc><a name="line.120"></a>
-<span class="sourceLineNo">121</span> * Map myparam = req.getFormDataParameter(<js>"myparam"</js>, TreeMap.<jk>class</jk>);<a name="line.121"></a>
-<span class="sourceLineNo">122</span> * </p><a name="line.122"></a>
-<span class="sourceLineNo">123</span> * <p><a name="line.123"></a>
-<span class="sourceLineNo">124</span> * <h5 class='section'>Notes:</h5><a name="line.124"></a>
-<span class="sourceLineNo">125</span> * <ul><a name="line.125"></a>
-<span class="sourceLineNo">126</span> * <li>Calling this method on URL-Encoded FORM posts causes the body content to be loaded and parsed by the underlying servlet API.<a name="line.126"></a>
-<span class="sourceLineNo">127</span> * </ul><a name="line.127"></a>
-<span class="sourceLineNo">128</span> *<a name="line.128"></a>
-<span class="sourceLineNo">129</span> * @param name The parameter name.<a name="line.129"></a>
-<span class="sourceLineNo">130</span> * @param type The class type to convert the parameter value to.<a name="line.130"></a>
-<span class="sourceLineNo">131</span> * @param <T> The class type to convert the parameter value to.<a name="line.131"></a>
-<span class="sourceLineNo">132</span> * @return The parameter value converted to the specified class type.<a name="line.132"></a>
-<span class="sourceLineNo">133</span> * @throws ParseException<a name="line.133"></a>
-<span class="sourceLineNo">134</span> */<a name="line.134"></a>
-<span class="sourceLineNo">135</span> public <T> T get(String name, Class<T> type) throws ParseException {<a name="line.135"></a>
-<span class="sourceLineNo">136</span> return parse(name, beanSession.getClassMeta(type));<a name="line.136"></a>
-<span class="sourceLineNo">137</span> }<a name="line.137"></a>
-<span class="sourceLineNo">138</span><a name="line.138"></a>
-<span class="sourceLineNo">139</span> /**<a name="line.139"></a>
-<span class="sourceLineNo">140</span> * Same as {@link #get(String, Class)} except returns a default value if not specified.<a name="line.140"></a>
-<span class="sourceLineNo">141</span> *<a name="line.141"></a>
-<span class="sourceLineNo">142</span> * @param name The parameter name.<a name="line.142"></a>
-<span class="sourceLineNo">143</span> * @param def The default value if the parameter was not specified or is <jk>null</jk>.<a name="line.143"></a>
-<span class="sourceLineNo">144</span> * @param type The class type to convert the parameter value to.<a name="line.144"></a>
-<span class="sourceLineNo">145</span> * @param <T> The class type to convert the parameter value to.<a name="line.145"></a>
-<span class="sourceLineNo">146</span> * @return The parameter value converted to the specified class type.<a name="line.146"></a>
-<span class="sourceLineNo">147</span> * @throws ParseException<a name="line.147"></a>
-<span class="sourceLineNo">148</span> */<a name="line.148"></a>
-<span class="sourceLineNo">149</span> public <T> T get(String name, T def, Class<T> type) throws ParseException {<a name="line.149"></a>
-<span class="sourceLineNo">150</span> return parse(name, def, beanSession.getClassMeta(type));<a name="line.150"></a>
-<span class="sourceLineNo">151</span> }<a name="line.151"></a>
-<span class="sourceLineNo">152</span><a name="line.152"></a>
-<span class="sourceLineNo">153</span> /**<a name="line.153"></a>
-<span class="sourceLineNo">154</span> * Same as {@link #get(String, Class)} except for use on multi-part parameters<a name="line.154"></a>
-<span class="sourceLineNo">155</span> * (e.g. <js>"key=1&amp;key=2&amp;key=3"</js> instead of <js>"key=(1,2,3)"</js>)<a name="line.155"></a>
-<span class="sourceLineNo">156</span> * <p><a name="line.156"></a>
-<span class="sourceLineNo">157</span> * This method must only be called when parsing into classes of type Collection or array.<a name="line.157"></a>
-<span class="sourceLineNo">158</span> *<a name="line.158"></a>
-<span class="sourceLineNo">159</span> * @param name The parameter name.<a name="line.159"></a>
-<span class="sourceLineNo">160</span> * @param type The class type to convert the parameter value to.<a name="line.160"></a>
-<span class="sourceLineNo">161</span> * @return The parameter value converted to the specified class type.<a name="line.161"></a>
-<span class="sourceLineNo">162</span> * @throws ParseException<a name="line.162"></a>
-<span class="sourceLineNo">163</span> */<a name="line.163"></a>
-<span class="sourceLineNo">164</span> public <T> T getAll(String name, Class<T> type) throws ParseException {<a name="line.164"></a>
-<span class="sourceLineNo">165</span> return parseAll(name, beanSession.getClassMeta(type));<a name="line.165"></a>
-<span class="sourceLineNo">166</span> }<a name="line.166"></a>
-<span class="sourceLineNo">167</span><a name="line.167"></a>
-<span class="sourceLineNo">168</span> /**<a name="line.168"></a>
-<span class="sourceLineNo">169</span> * Returns the specified form data parameter value converted to a POJO using the<a name="line.169"></a>
-<span class="sourceLineNo">170</span> * {@link UrlEncodingParser} registered with this servlet.<a name="line.170"></a>
-<span class="sourceLineNo">171</span> * <p><a name="line.171"></a>
-<span class="sourceLineNo">172</span> * <h5 class='section'>Notes:</h5><a name="line.172"></a>
-<span class="sourceLineNo">173</span> * <ul><a name="line.173"></a>
-<span class="sourceLineNo">174</span> * <li>Calling this method on URL-Encoded FORM posts causes the body content to be loaded and parsed by the underlying servlet API.<a name="line.174"></a>
-<span class="sourceLineNo">175</span> * <li>Use this method if you want to parse into a parameterized <code>Map</code>/<code>Collection</code> object.<a name="line.175"></a>
-<span class="sourceLineNo">176</span> * </ul><a name="line.176"></a>
-<span class="sourceLineNo">177</span> * <p><a name="line.177"></a>
-<span class="sourceLineNo">178</span> * <h5 class='section'>Examples:</h5><a name="line.178"></a>
-<span class="sourceLineNo">179</span> * <p class='bcode'><a name="line.179"></a>
-<span class="sourceLineNo">180</span> * <jc>// Parse into a linked-list of strings.</jc><a name="line.180"></a>
-<span class="sourceLineNo">181</span> * List&lt;String&gt; myparam = req.getFormDataParameter(<js>"myparam"</js>, LinkedList.<jk>class</jk>, String.<jk>class</jk>);<a name="line.181"></a>
-<span class="sourceLineNo">182</span> *<a name="line.182"></a>
-<span class="sourceLineNo">183</span> * <jc>// Parse into a linked-list of linked-lists of strings.</jc><a name="line.183"></a>
-<span class="sourceLineNo">184</span> * List&lt;List&lt;String&gt;&gt; myparam = req.getFormDataParameter(<js>"myparam"</js>, LinkedList.<jk>class</jk>, LinkedList.<jk>class</jk>, String.<jk>class</jk>);<a name="line.184"></a>
-<span class="sourceLineNo">185</span> *<a name="line.185"></a>
-<span class="sourceLineNo">186</span> * <jc>// Parse into a map of string keys/values.</jc><a name="line.186"></a>
-<span class="sourceLineNo">187</span> * Map&lt;String,String&gt; myparam = req.getFormDataParameter(<js>"myparam"</js>, TreeMap.<jk>class</jk>, String.<jk>class</jk>, String.<jk>class</jk>);<a name="line.187"></a>
-<span class="sourceLineNo">188</span> *<a name="line.188"></a>
-<span class="sourceLineNo">189</span> * <jc>// Parse into a map containing string keys and values of lists containing beans.</jc><a name="line.189"></a>
-<span class="sourceLineNo">190</span> * Map&lt;String,List&lt;MyBean&gt;&gt; myparam = req.getFormDataParameter(<js>"myparam"</js>, TreeMap.<jk>class</jk>, String.<jk>class</jk>, List.<jk>class</jk>, MyBean.<jk>class</jk>);<a name="line.190"></a>
-<span class="sourceLineNo">191</span> * </p><a name="line.191"></a>
-<span class="sourceLineNo">192</span> *<a name="line.192"></a>
-<span class="sourceLineNo">193</span> * @param name The parameter name.<a name="line.193"></a>
-<span class="sourceLineNo">194</span> * @param type The type of object to create.<a name="line.194"></a>
-<span class="sourceLineNo">195</span> * <br>Can be any of the following: {@link ClassMeta}, {@link Class}, {@link ParameterizedType}, {@link GenericArrayType}<a name="line.195"></a>
-<span class="sourceLineNo">196</span> * @param args The type arguments of the class if it's a collection or map.<a name="line.196"></a>
-<span class="sourceLineNo">197</span> * <br>Can be any of the following: {@link ClassMeta}, {@link Class}, {@link ParameterizedType}, {@link GenericArrayType}<a name="line.197"></a>
-<span class="sourceLineNo">198</span> * <br>Ignored if the main type is not a map or collection.<a name="line.198"></a>
-<span class="sourceLineNo">199</span> * @return The parameter value converted to the specified class type.<a name="line.199"></a>
-<span class="sourceLineNo">200</span> * @throws ParseException<a name="line.200"></a>
-<span class="sourceLineNo">201</span> */<a name="line.201"></a>
-<span class="sourceLineNo">202</span> public <T> T get(String name, Type type, Type...args) throws ParseException {<a name="line.202"></a>
-<span class="sourceLineNo">203</span> return (T)parse(name, beanSession.getClassMeta(type, args));<a name="line.203"></a>
-<span class="sourceLineNo">204</span> }<a name="line.204"></a>
-<span class="sourceLineNo">205</span><a name="line.205"></a>
-<span class="sourceLineNo">206</span> /**<a name="line.206"></a>
-<span class="sourceLineNo">207</span> * Same as {@link #get(String, Type, Type...)} except for use on multi-part parameters<a name="line.207"></a>
-<span class="sourceLineNo">208</span> * (e.g. <js>"key=1&amp;key=2&amp;key=3"</js> instead of <js>"key=(1,2,3)"</js>)<a name="line.208"></a>
-<span class="sourceLineNo">209</span> * <p><a name="line.209"></a>
-<span class="sourceLineNo">210</span> * This method must only be called when parsing into classes of type Collection or array.<a name="line.210"></a>
-<span class="sourceLineNo">211</span> *<a name="line.211"></a>
-<span class="sourceLineNo">212</span> * @param name The parameter name.<a name="line.212"></a>
-<span class="sourceLineNo">213</span> * @param type The type of object to create.<a name="line.213"></a>
-<span class="sourceLineNo">214</span> * <br>Can be any of the following: {@link ClassMeta}, {@link Class}, {@link ParameterizedType}, {@link GenericArrayType}<a name="line.214"></a>
-<span class="sourceLineNo">215</span> * @param args The type arguments of the class if it's a collection or map.<a name="line.215"></a>
-<span class="sourceLineNo">216</span> * <br>Can be any of the following: {@link ClassMeta}, {@link Class}, {@link ParameterizedType}, {@link GenericArrayType}<a name="line.216"></a>
-<span class="sourceLineNo">217</span> * <br>Ignored if the main type is not a map or collection.<a name="line.217"></a>
-<span class="sourceLineNo">218</span> * @return The parameter value converted to the specified class type.<a name="line.218"></a>
-<span class="sourceLineNo">219</span> * @throws ParseException<a name="line.219"></a>
-<span class="sourceLineNo">220</span> */<a name="line.220"></a>
-<span class="sourceLineNo">221</span> public <T> T getAll(String name, Type type, Type...args) throws ParseException {<a name="line.221"></a>
-<span class="sourceLineNo">222</span> return (T)parseAll(name, beanSession.getClassMeta(type, args));<a name="line.222"></a>
-<span class="sourceLineNo">223</span> }<a name="line.223"></a>
-<span class="sourceLineNo">224</span><a name="line.224"></a>
-<span class="sourceLineNo">225</span> /* Workhorse method */<a name="line.225"></a>
-<span class="sourceLineNo">226</span> <T> T parse(String name, T def, ClassMeta<T> cm) throws ParseException {<a name="line.226"></a>
-<span class="sourceLineNo">227</span> String val = getFirst(name);<a name="line.227"></a>
-<span class="sourceLineNo">228</span> if (val == null)<a name="line.228"></a>
-<span class="sourceLineNo">229</span> return def;<a name="line.229"></a>
-<span class="sourceLineNo">230</span> return parseValue(val, cm);<a name="line.230"></a>
-<span class="sourceLineNo">231</span> }<a name="line.231"></a>
-<span class="sourceLineNo">232</span><a name="line.232"></a>
-<span class="sourceLineNo">233</span> /* Workhorse method */<a name="line.233"></a>
-<span class="sourceLineNo">234</span> <T> T parse(String name, ClassMeta<T> cm) throws ParseException {<a name="line.234"></a>
-<span class="sourceLineNo">235</span> String val = getFirst(name);<a name="line.235"></a>
-<span class="sourceLineNo">236</span> if (cm.isPrimitive() && (val == null || val.isEmpty()))<a name="line.236"></a>
-<span class="sourceLineNo">237</span> return cm.getPrimitiveDefault();<a name="line.237"></a>
-<span class="sourceLineNo">238</span> return parseValue(val, cm);<a name="line.238"></a>
-<span class="sourceLineNo">239</span> }<a name="line.239"></a>
-<span class="sourceLineNo">240</span><a name="line.240"></a>
-<span class="sourceLineNo">241</span> /* Workhorse method */<a name="line.241"></a>
-<span class="sourceLineNo">242</span> @SuppressWarnings("rawtypes")<a name="line.242"></a>
-<span class="sourceLineNo">243</span> <T> T parseAll(String name, ClassMeta<T> cm) throws ParseException {<a name="line.243"></a>
-<span class="sourceLineNo">244</span> String[] p = get(name);<a name="line.244"></a>
-<span class="sourceLineNo">245</span> if (p == null)<a name="line.245"></a>
-<span class="sourceLineNo">246</span> return null;<a name="line.246"></a>
-<span class="sourceLineNo">247</span> if (cm.isArray()) {<a name="line.247"></a>
-<span class="sourceLineNo">248</span> List c = new ArrayList();<a name="line.248"></a>
-<span class="sourceLineNo">249</span> for (int i = 0; i < p.length; i++)<a name="line.249"></a>
-<span class="sourceLineNo">250</span> c.add(parseValue(p[i], cm.getElementType()));<a name="line.250"></a>
-<span class="sourceLineNo">251</span> return (T)ArrayUtils.toArray(c, cm.getElementType().getInnerClass());<a name="line.251"></a>
-<span class="sourceLineNo">252</span> } else if (cm.isCollection()) {<a name="line.252"></a>
-<span class="sourceLineNo">253</span> try {<a name="line.253"></a>
-<span class="sourceLineNo">254</span> Collection c = (Collection)(cm.canCreateNewInstance() ? cm.newInstance() : new ObjectList());<a name="line.254"></a>
-<span class="sourceLineNo">255</span> for (int i = 0; i < p.length; i++)<a name="line.255"></a>
-<span class="sourceLineNo">256</span> c.add(parseValue(p[i], cm.getElementType()));<a name="line.256"></a>
-<span class="sourceLineNo">257</span> return (T)c;<a name="line.257"></a>
-<span class="sourceLineNo">258</span> } catch (ParseException e) {<a name="line.258"></a>
-<span class="sourceLineNo">259</span> throw e;<a name="line.259"></a>
-<span class="sourceLineNo">260</span> } catch (Exception e) {<a name="line.260"></a>
-<span class="sourceLineNo">261</span> // Typically an instantiation exception.<a name="line.261"></a>
-<span class="sourceLineNo">262</span> throw new ParseException(e);<a name="line.262"></a>
-<span class="sourceLineNo">263</span> }<a name="line.263"></a>
-<span class="sourceLineNo">264</span> }<a name="line.264"></a>
-<span class="sourceLineNo">265</span> throw new ParseException("Invalid call to getParameters(String, ClassMeta). Class type must be a Collection or array.");<a name="line.265"></a>
-<span class="sourceLineNo">266</span> }<a name="line.266"></a>
-<span class="sourceLineNo">267</span><a name="line.267"></a>
-<span class="sourceLineNo">268</span> private <T> T parseValue(String val, ClassMeta<T> c) throws ParseException {<a name="line.268"></a>
-<span class="sourceLineNo">269</span> return parser.parsePart(val, c);<a name="line.269"></a>
-<span class="sourceLineNo">270</span> }<a name="line.270"></a>
-<span class="sourceLineNo">271</span>}<a name="line.271"></a>
+<span class="sourceLineNo">111</span> * @param name The form data parameter name.<a name="line.111"></a>
+<span class="sourceLineNo">112</span> * @param def The default value.<a name="line.112"></a>
+<span class="sourceLineNo">113</span> * @return The parameter value, or the default value if <jk>null</jk> or empty.<a name="line.113"></a>
+<span class="sourceLineNo">114</span> */<a name="line.114"></a>
+<span class="sourceLineNo">115</span> public String getFirst(String name, String def) {<a name="line.115"></a>
+<span class="sourceLineNo">116</span> String val = getFirst(name);<a name="line.116"></a>
+<span class="sourceLineNo">117</span> if (val == null || val.isEmpty())<a name="line.117"></a>
+<span class="sourceLineNo">118</span> return def;<a name="line.118"></a>
+<span class="sourceLineNo">119</span> return val;<a name="line.119"></a>
+<span class="sourceLineNo">120</span> }<a name="line.120"></a>
+<span class="sourceLineNo">121</span><a name="line.121"></a>
+<span class="sourceLineNo">122</span> /**<a name="line.122"></a>
+<span class="sourceLineNo">123</span> * Returns the specified form data parameter value converted to a POJO using the<a name="line.123"></a>
+<span class="sourceLineNo">124</span> * {@link UrlEncodingParser} registered with this servlet.<a name="line.124"></a>
+<span class="sourceLineNo">125</span> * <p><a name="line.125"></a>
+<span class="sourceLineNo">126</span> * <h5 class='section'>Examples:</h5><a name="line.126"></a>
+<span class="sourceLineNo">127</span> * <p class='bcode'><a name="line.127"></a>
+<span class="sourceLineNo">128</span> * <jc>// Parse into an integer.</jc><a name="line.128"></a>
+<span class="sourceLineNo">129</span> * <jk>int</jk> myparam = req.getFormDataParameter(<js>"myparam"</js>, <jk>int</jk>.<jk>class</jk>);<a name="line.129"></a>
+<span class="sourceLineNo">130</span> *<a name="line.130"></a>
+<span class="sourceLineNo">131</span> * <jc>// Parse into an int array.</jc><a name="line.131"></a>
+<span class="sourceLineNo">132</span> * <jk>int</jk>[] myparam = req.getFormDataParameter(<js>"myparam"</js>, <jk>int</jk>[].<jk>class</jk>);<a name="line.132"></a>
+<span class="sourceLineNo">133</span><a name="line.133"></a>
+<span class="sourceLineNo">134</span> * <jc>// Parse into a bean.</jc><a name="line.134"></a>
+<span class="sourceLineNo">135</span> * MyBean myparam = req.getFormDataParameter(<js>"myparam"</js>, MyBean.<jk>class</jk>);<a name="line.135"></a>
+<span class="sourceLineNo">136</span> *<a name="line.136"></a>
+<span class="sourceLineNo">137</span> * <jc>// Parse into a linked-list of objects.</jc><a name="line.137"></a>
+<span class="sourceLineNo">138</span> * List myparam = req.getFormDataParameter(<js>"myparam"</js>, LinkedList.<jk>class</jk>);<a name="line.138"></a>
+<span class="sourceLineNo">139</span> *<a name="line.139"></a>
+<span class="sourceLineNo">140</span> * <jc>// Parse into a map of object keys/values.</jc><a name="line.140"></a>
+<span class="sourceLineNo">141</span> * Map myparam = req.getFormDataParameter(<js>"myparam"</js>, TreeMap.<jk>class</jk>);<a name="line.141"></a>
+<span class="sourceLineNo">142</span> * </p><a name="line.142"></a>
+<span class="sourceLineNo">143</span> * <p><a name="line.143"></a>
+<span class="sourceLineNo">144</span> * <h5 class='section'>Notes:</h5><a name="line.144"></a>
+<span class="sourceLineNo">145</span> * <ul><a name="line.145"></a>
+<span class="sourceLineNo">146</span> * <li>Calling this method on URL-Encoded FORM posts causes the body content to be loaded and parsed by the underlying servlet API.<a name="line.146"></a>
+<span class="sourceLineNo">147</span> * </ul><a name="line.147"></a>
+<span class="sourceLineNo">148</span> *<a name="line.148"></a>
+<span class="sourceLineNo">149</span> * @param name The parameter name.<a name="line.149"></a>
+<span class="sourceLineNo">150</span> * @param type The class type to convert the parameter value to.<a name="line.150"></a>
+<span class="sourceLineNo">151</span> * @param <T> The class type to convert the parameter value to.<a name="line.151"></a>
+<span class="sourceLineNo">152</span> * @return The parameter value converted to the specified class type.<a name="line.152"></a>
+<span class="sourceLineNo">153</span> * @throws ParseException<a name="line.153"></a>
+<span class="sourceLineNo">154</span> */<a name="line.154"></a>
+<span class="sourceLineNo">155</span> public <T> T get(String name, Class<T> type) throws ParseException {<a name="line.155"></a>
+<span class="sourceLineNo">156</span> return parse(name, beanSession.getClassMeta(type));<a name="line.156"></a>
+<span class="sourceLineNo">157</span> }<a name="line.157"></a>
+<span class="sourceLineNo">158</span><a name="line.158"></a>
+<span class="sourceLineNo">159</span> /**<a name="line.159"></a>
+<span class="sourceLineNo">160</span> * Same as {@link #get(String, Class)} except returns a default value if not specified.<a name="line.160"></a>
+<span class="sourceLineNo">161</span> *<a name="line.161"></a>
+<span class="sourceLineNo">162</span> * @param name The parameter name.<a name="line.162"></a>
+<span class="sourceLineNo">163</span> * @param def The default value if the parameter was not specified or is <jk>null</jk>.<a name="line.163"></a>
+<span class="sourceLineNo">164</span> * @param type The class type to convert the parameter value to.<a name="line.164"></a>
+<span class="sourceLineNo">165</span> * @param <T> The class type to convert the parameter value to.<a name="line.165"></a>
+<span class="sourceLineNo">166</span> * @return The parameter value converted to the specified class type.<a name="line.166"></a>
+<span class="sourceLineNo">167</span> * @throws ParseException<a name="line.167"></a>
+<span class="sourceLineNo">168</span> */<a name="line.168"></a>
+<span class="sourceLineNo">169</span> public <T> T get(String name, T def, Class<T> type) throws ParseException {<a name="line.169"></a>
+<span class="sourceLineNo">170</span> return parse(name, def, beanSession.getClassMeta(type));<a name="line.170"></a>
+<span class="sourceLineNo">171</span> }<a name="line.171"></a>
+<span class="sourceLineNo">172</span><a name="line.172"></a>
+<span class="sourceLineNo">173</span> /**<a name="line.173"></a>
+<span class="sourceLineNo">174</span> * Same as {@link #get(String, Class)} except for use on multi-part parameters<a name="line.174"></a>
+<span class="sourceLineNo">175</span> * (e.g. <js>"key=1&amp;key=2&amp;key=3"</js> instead of <js>"key=(1,2,3)"</js>)<a name="line.175"></a>
+<span class="sourceLineNo">176</span> * <p><a name="line.176"></a>
+<span class="sourceLineNo">177</span> * This method must only be called when parsing into classes of type Collection or array.<a name="line.177"></a>
+<span class="sourceLineNo">178</span> *<a name="line.178"></a>
+<span class="sourceLineNo">179</span> * @param name The parameter name.<a name="line.179"></a>
+<span class="sourceLineNo">180</span> * @param type The class type to convert the parameter value to.<a name="line.180"></a>
+<span class="sourceLineNo">181</span> * @return The parameter value converted to the specified class type.<a name="line.181"></a>
+<span class="sourceLineNo">182</span> * @throws ParseException<a name="line.182"></a>
+<span class="sourceLineNo">183</span> */<a name="line.183"></a>
+<span class="sourceLineNo">184</span> public <T> T getAll(String name, Class<T> type) throws ParseException {<a name="line.184"></a>
+<span class="sourceLineNo">185</span> return parseAll(name, beanSession.getClassMeta(type));<a name="line.185"></a>
+<span class="sourceLineNo">186</span> }<a name="line.186"></a>
+<span class="sourceLineNo">187</span><a name="line.187"></a>
+<span class="sourceLineNo">188</span> /**<a name="line.188"></a>
+<span class="sourceLineNo">189</span> * Returns the specified form data parameter value converted to a POJO using the<a name="line.189"></a>
+<span class="sourceLineNo">190</span> * {@link UrlEncodingParser} registered with this servlet.<a name="line.190"></a>
+<span class="sourceLineNo">191</span> * <p><a name="line.191"></a>
+<span class="sourceLineNo">192</span> * <h5 class='section'>Notes:</h5><a name="line.192"></a>
+<span class="sourceLineNo">193</span> * <ul><a name="line.193"></a>
+<span class="sourceLineNo">194</span> * <li>Calling this method on URL-Encoded FORM posts causes the body content to be loaded and parsed by the underlying servlet API.<a name="line.194"></a>
+<span class="sourceLineNo">195</span> * <li>Use this method if you want to parse into a parameterized <code>Map</code>/<code>Collection</code> object.<a name="line.195"></a>
+<span class="sourceLineNo">196</span> * </ul><a name="line.196"></a>
+<span class="sourceLineNo">197</span> * <p><a name="line.197"></a>
+<span class="sourceLineNo">198</span> * <h5 class='section'>Examples:</h5><a name="line.198"></a>
+<span class="sourceLineNo">199</span> * <p class='bcode'><a name="line.199"></a>
+<span class="sourceLineNo">200</span> * <jc>// Parse into a linked-list of strings.</jc><a name="line.200"></a>
+<span class="sourceLineNo">201</span> * List&lt;String&gt; myparam = req.getFormDataParameter(<js>"myparam"</js>, LinkedList.<jk>class</jk>, String.<jk>class</jk>);<a name="line.201"></a>
+<span class="sourceLineNo">202</span> *<a name="line.202"></a>
+<span class="sourceLineNo">203</span> * <jc>// Parse into a linked-list of linked-lists of strings.</jc><a name="line.203"></a>
+<span class="sourceLineNo">204</span> * List&lt;List&lt;String&gt;&gt; myparam = req.getFormDataParameter(<js>"myparam"</js>, LinkedList.<jk>class</jk>, LinkedList.<jk>class</jk>, String.<jk>class</jk>);<a name="line.204"></a>
+<span class="sourceLineNo">205</span> *<a name="line.205"></a>
+<span class="sourceLineNo">206</span> * <jc>// Parse into a map of string keys/values.</jc><a name="line.206"></a>
+<span class="sourceLineNo">207</span> * Map&lt;String,String&gt; myparam = req.getFormDataParameter(<js>"myparam"</js>, TreeMap.<jk>class</jk>, String.<jk>class</jk>, String.<jk>class</jk>);<a name="line.207"></a>
+<span class="sourceLineNo">208</span> *<a name="line.208"></a>
+<span class="sourceLineNo">209</span> * <jc>// Parse into a map containing string keys and values of lists containing beans.</jc><a name="line.209"></a>
+<span class="sourceLineNo">210</span> * Map&lt;String,List&lt;MyBean&gt;&gt; myparam = req.getFormDataParameter(<js>"myparam"</js>, TreeMap.<jk>class</jk>, String.<jk>class</jk>, List.<jk>class</jk>, MyBean.<jk>class</jk>);<a name="line.210"></a>
+<span class="sourceLineNo">211</span> * </p><a name="line.211"></a>
+<span class="sourceLineNo">212</span> *<a name="line.212"></a>
+<span class="sourceLineNo">213</span> * @param name The parameter name.<a name="line.213"></a>
+<span class="sourceLineNo">214</span> * @param type The type of object to create.<a name="line.214"></a>
+<span class="sourceLineNo">215</span> * <br>Can be any of the following: {@link ClassMeta}, {@link Class}, {@link ParameterizedType}, {@link GenericArrayType}<a name="line.215"></a>
+<span class="sourceLineNo">216</span> * @param args The type arguments of the class if it's a collection or map.<a name="line.216"></a>
+<span class="sourceLineNo">217</span> * <br>Can be any of the following: {@link ClassMeta}, {@link Class}, {@link ParameterizedType}, {@link GenericArrayType}<a name="line.217"></a>
+<span class="sourceLineNo">218</span> * <br>Ignored if the main type is not a map or collection.<a name="line.218"></a>
+<span class="sourceLineNo">219</span> * @return The parameter value converted to the specified class type.<a name="line.219"></a>
+<span class="sourceLineNo">220</span> * @throws ParseException<a name="line.220"></a>
+<span class="sourceLineNo">221</span> */<a name="line.221"></a>
+<span class="sourceLineNo">222</span> public <T> T get(String name, Type type, Type...args) throws ParseException {<a name="line.222"></a>
+<span class="sourceLineNo">223</span> return (T)parse(name, beanSession.getClassMeta(type, args));<a name="line.223"></a>
+<span class="sourceLineNo">224</span> }<a name="line.224"></a>
+<span class="sourceLineNo">225</span><a name="line.225"></a>
+<span class="sourceLineNo">226</span> /**<a name="line.226"></a>
+<span class="sourceLineNo">227</span> * Same as {@link #get(String, Type, Type...)} except for use on multi-part parameters<a name="line.227"></a>
+<span class="sourceLineNo">228</span> * (e.g. <js>"key=1&amp;key=2&amp;key=3"</js> instead of <js>"key=(1,2,3)"</js>)<a name="line.228"></a>
+<span class="sourceLineNo">229</span> * <p><a name="line.229"></a>
+<span class="sourceLineNo">230</span> * This method must only be called when parsing into classes of type Collection or array.<a name="line.230"></a>
+<span class="sourceLineNo">231</span> *<a name="line.231"></a>
+<span class="sourceLineNo">232</span> * @param name The parameter name.<a name="line.232"></a>
+<span class="sourceLineNo">233</span> * @param type The type of object to create.<a name="line.233"></a>
+<span class="sourceLineNo">234</span> * <br>Can be any of the following: {@link ClassMeta}, {@link Class}, {@link ParameterizedType}, {@link GenericArrayType}<a name="line.234"></a>
+<span class="sourceLineNo">235</span> * @param args The type arguments of the class if it's a collection or map.<a name="line.235"></a>
+<span class="sourceLineNo">236</span> * <br>Can be any of the following: {@link ClassMeta}, {@link Class}, {@link ParameterizedType}, {@link GenericArrayType}<a name="line.236"></a>
+<span class="sourceLineNo">237</span> * <br>Ignored if the main type is not a map or collection.<a name="line.237"></a>
+<span class="sourceLineNo">238</span> * @return The parameter value converted to the specified class type.<a name="line.238"></a>
+<span class="sourceLineNo">239</span> * @throws ParseException<a name="line.239"></a>
+<span class="sourceLineNo">240</span> */<a name="line.240"></a>
+<span class="sourceLineNo">241</span> public <T> T getAll(String name, Type type, Type...args) throws ParseException {<a name="line.241"></a>
+<span class="sourceLineNo">242</span> return (T)parseAll(name, beanSession.getClassMeta(type, args));<a name="line.242"></a>
+<span class="sourceLineNo">243</span> }<a name="line.243"></a>
+<span class="sourceLineNo">244</span><a name="line.244"></a>
+<span class="sourceLineNo">245</span> /* Workhorse method */<a name="line.245"></a>
+<span class="sourceLineNo">246</span> <T> T parse(String name, T def, ClassMeta<T> cm) throws ParseException {<a name="line.246"></a>
+<span class="sourceLineNo">247</span> String val = getFirst(name);<a name="line.247"></a>
+<span class="sourceLineNo">248</span> if (val == null)<a name="line.248"></a>
+<span class="sourceLineNo">249</span> return def;<a name="line.249"></a>
+<span class="sourceLineNo">250</span> return parseValue(val, cm);<a name="line.250"></a>
+<span class="sourceLineNo">251</span> }<a name="line.251"></a>
+<span class="sourceLineNo">252</span><a name="line.252"></a>
+<span class="sourceLineNo">253</span> /* Workhorse method */<a name="line.253"></a>
+<span class="sourceLineNo">254</span> <T> T parse(String name, ClassMeta<T> cm) throws ParseException {<a name="line.254"></a>
+<span class="sourceLineNo">255</span> String val = getFirst(name);<a name="line.255"></a>
+<span class="sourceLineNo">256</span> if (cm.isPrimitive() && (val == null || val.isEmpty()))<a name="line.256"></a>
+<span class="sourceLineNo">257</span> return cm.getPrimitiveDefault();<a name="line.257"></a>
+<span class="sourceLineNo">258</span> return parseValue(val, cm);<a name="line.258"></a>
+<span class="sourceLineNo">259</span> }<a name="line.259"></a>
+<span class="sourceLineNo">260</span><a name="line.260"></a>
+<span class="sourceLineNo">261</span> /* Workhorse method */<a name="line.261"></a>
+<span class="sourceLineNo">262</span> @SuppressWarnings("rawtypes")<a name="line.262"></a>
+<span class="sourceLineNo">263</span> <T> T parseAll(String name, ClassMeta<T> cm) throws ParseException {<a name="line.263"></a>
+<span class="sourceLineNo">264</span> String[] p = get(name);<a name="line.264"></a>
+<span class="sourceLineNo">265</span> if (p == null)<a name="line.265"></a>
+<span class="sourceLineNo">266</span> return null;<a name="line.266"></a>
+<span class="sourceLineNo">267</span> if (cm.isArray()) {<a name="line.267"></a>
+<span class="sourceLineNo">268</span> List c = new ArrayList();<a name="line.268"></a>
+<span class="sourceLineNo">269</span> for (int i = 0; i < p.length; i++)<a name="line.269"></a>
+<span class="sourceLineNo">270</span> c.add(parseValue(p[i], cm.getElementType()));<a name="line.270"></a>
+<span class="sourceLineNo">271</span> return (T)ArrayUtils.toArray(c, cm.getElementType().getInnerClass());<a name="line.271"></a>
+<span class="sourceLineNo">272</span> } else if (cm.isCollection()) {<a name="line.272"></a>
+<span class="sourceLineNo">273</span> try {<a name="line.273"></a>
+<span class="sourceLineNo">274</span> Collection c = (Collection)(cm.canCreateNewInstance() ? cm.newInstance() : new ObjectList());<a name="line.274"></a>
+<span class="sourceLineNo">275</span> for (int i = 0; i < p.length; i++)<a name="line.275"></a>
+<span class="sourceLineNo">276</span> c.add(parseValue(p[i], cm.getElementType()));<a name="line.276"></a>
+<span class="sourceLineNo">277</span> return (T)c;<a name="line.277"></a>
+<span class="sourceLineNo">278</span> } catch (ParseException e) {<a name="line.278"></a>
+<span class="sourceLineNo">279</span> throw e;<a name="line.279"></a>
+<span class="sourceLineNo">280</span> } catch (Exception e) {<a name="line.280"></a>
+<span class="sourceLineNo">281</span> // Typically an instantiation exception.<a name="line.281"></a>
+<span class="sourceLineNo">282</span> throw new ParseException(e);<a name="line.282"></a>
+<span class="sourceLineNo">283</span> }<a name="line.283"></a>
+<span class="sourceLineNo">284</span> }<a name="line.284"></a>
+<span class="sourceLineNo">285</span> throw new ParseException("Invalid call to getParameters(String, ClassMeta). Class type must be a Collection or array.");<a name="line.285"></a>
+<span class="sourceLineNo">286</span> }<a name="line.286"></a>
+<span class="sourceLineNo">287</span><a name="line.287"></a>
+<span class="sourceLineNo">288</span> private <T> T parseValue(String val, ClassMeta<T> c) throws ParseException {<a name="line.288"></a>
+<span class="sourceLineNo">289</span> return parser.parsePart(val, c);<a name="line.289"></a>
+<span class="sourceLineNo">290</span> }<a name="line.290"></a>
+<span class="sourceLineNo">291</span>}<a name="line.291"></a>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/src-html/org/apache/juneau/rest/RequestPathMatch.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/rest/RequestPathMatch.html b/content/site/apidocs/src-html/org/apache/juneau/rest/RequestPathMatch.html
new file mode 100644
index 0000000..28260b0
--- /dev/null
+++ b/content/site/apidocs/src-html/org/apache/juneau/rest/RequestPathMatch.html
@@ -0,0 +1,285 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+<head>
+<title>Source code</title>
+<link rel="stylesheet" type="text/css" href="../../../../../javadoc.css" title="Style">
+</head>
+<body>
+<div class="sourceContainer">
+<pre><span class="sourceLineNo">001</span>// ***************************************************************************************************************************<a name="line.1"></a>
+<span class="sourceLineNo">002</span>// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file *<a name="line.2"></a>
+<span class="sourceLineNo">003</span>// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file *<a name="line.3"></a>
+<span class="sourceLineNo">004</span>// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance *<a name="line.4"></a>
+<span class="sourceLineNo">005</span>// * with the License. You may obtain a copy of the License at *<a name="line.5"></a>
+<span class="sourceLineNo">006</span>// * *<a name="line.6"></a>
+<span class="sourceLineNo">007</span>// * http://www.apache.org/licenses/LICENSE-2.0 *<a name="line.7"></a>
+<span class="sourceLineNo">008</span>// * *<a name="line.8"></a>
+<span class="sourceLineNo">009</span>// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an *<a name="line.9"></a>
+<span class="sourceLineNo">010</span>// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the *<a name="line.10"></a>
+<span class="sourceLineNo">011</span>// * specific language governing permissions and limitations under the License. *<a name="line.11"></a>
+<span class="sourceLineNo">012</span>// ***************************************************************************************************************************<a name="line.12"></a>
+<span class="sourceLineNo">013</span>package org.apache.juneau.rest;<a name="line.13"></a>
+<span class="sourceLineNo">014</span><a name="line.14"></a>
+<span class="sourceLineNo">015</span>import static org.apache.juneau.internal.StringUtils.*;<a name="line.15"></a>
+<span class="sourceLineNo">016</span><a name="line.16"></a>
+<span class="sourceLineNo">017</span>import java.lang.reflect.*;<a name="line.17"></a>
+<span class="sourceLineNo">018</span>import java.util.*;<a name="line.18"></a>
+<span class="sourceLineNo">019</span><a name="line.19"></a>
+<span class="sourceLineNo">020</span>import org.apache.juneau.*;<a name="line.20"></a>
+<span class="sourceLineNo">021</span>import org.apache.juneau.parser.*;<a name="line.21"></a>
+<span class="sourceLineNo">022</span>import org.apache.juneau.urlencoding.*;<a name="line.22"></a>
+<span class="sourceLineNo">023</span><a name="line.23"></a>
+<span class="sourceLineNo">024</span>/**<a name="line.24"></a>
+<span class="sourceLineNo">025</span> * Contains information about the matched path on the HTTP request.<a name="line.25"></a>
+<span class="sourceLineNo">026</span> * <p><a name="line.26"></a>
+<span class="sourceLineNo">027</span> * Provides access to the matched path variables and path match remainder.<a name="line.27"></a>
+<span class="sourceLineNo">028</span> */<a name="line.28"></a>
+<span class="sourceLineNo">029</span>@SuppressWarnings("unchecked")<a name="line.29"></a>
+<span class="sourceLineNo">030</span>public class RequestPathMatch extends TreeMap<String,String> {<a name="line.30"></a>
+<span class="sourceLineNo">031</span> private static final long serialVersionUID = 1L;<a name="line.31"></a>
+<span class="sourceLineNo">032</span><a name="line.32"></a>
+<span class="sourceLineNo">033</span> private UrlEncodingParser parser;<a name="line.33"></a>
+<span class="sourceLineNo">034</span> private BeanSession beanSession;<a name="line.34"></a>
+<span class="sourceLineNo">035</span> private String remainder;<a name="line.35"></a>
+<span class="sourceLineNo">036</span><a name="line.36"></a>
+<span class="sourceLineNo">037</span> RequestPathMatch() {<a name="line.37"></a>
+<span class="sourceLineNo">038</span> super(String.CASE_INSENSITIVE_ORDER);<a name="line.38"></a>
+<span class="sourceLineNo">039</span> }<a name="line.39"></a>
+<span class="sourceLineNo">040</span><a name="line.40"></a>
+<span class="sourceLineNo">041</span> RequestPathMatch setParser(UrlEncodingParser parser) {<a name="line.41"></a>
+<span class="sourceLineNo">042</span> this.parser = parser;<a name="line.42"></a>
+<span class="sourceLineNo">043</span> return this;<a name="line.43"></a>
+<span class="sourceLineNo">044</span> }<a name="line.44"></a>
+<span class="sourceLineNo">045</span><a name="line.45"></a>
+<span class="sourceLineNo">046</span> RequestPathMatch setBeanSession(BeanSession beanSession) {<a name="line.46"></a>
+<span class="sourceLineNo">047</span> this.beanSession = beanSession;<a name="line.47"></a>
+<span class="sourceLineNo">048</span> return this;<a name="line.48"></a>
+<span class="sourceLineNo">049</span> }<a name="line.49"></a>
+<span class="sourceLineNo">050</span><a name="line.50"></a>
+<span class="sourceLineNo">051</span> RequestPathMatch setRemainder(String remainder) {<a name="line.51"></a>
+<span class="sourceLineNo">052</span> this.remainder = remainder;<a name="line.52"></a>
+<span class="sourceLineNo">053</span> return this;<a name="line.53"></a>
+<span class="sourceLineNo">054</span> }<a name="line.54"></a>
+<span class="sourceLineNo">055</span><a name="line.55"></a>
+<span class="sourceLineNo">056</span> /**<a name="line.56"></a>
+<span class="sourceLineNo">057</span> * Sets a request query parameter value.<a name="line.57"></a>
+<span class="sourceLineNo">058</span> *<a name="line.58"></a>
+<span class="sourceLineNo">059</span> * @param name The parameter name.<a name="line.59"></a>
+<span class="sourceLineNo">060</span> * @param value The parameter value.<a name="line.60"></a>
+<span class="sourceLineNo">061</span> */<a name="line.61"></a>
+<span class="sourceLineNo">062</span> public void put(String name, Object value) {<a name="line.62"></a>
+<span class="sourceLineNo">063</span> put(name, value);<a name="line.63"></a>
+<span class="sourceLineNo">064</span> }<a name="line.64"></a>
+<span class="sourceLineNo">065</span><a name="line.65"></a>
+<span class="sourceLineNo">066</span> /**<a name="line.66"></a>
+<span class="sourceLineNo">067</span> * Returns the specified path parameter converted to a POJO.<a name="line.67"></a>
+<span class="sourceLineNo">068</span> * <p><a name="line.68"></a>
+<span class="sourceLineNo">069</span> * The type can be any POJO type convertable from a <code>String</code> (See <a class="doclink"<a name="line.69"></a>
+<span class="sourceLineNo">070</span> * href="package-summary.html#PojosConvertableFromString">POJOs Convertable From Strings</a>).<a name="line.70"></a>
+<span class="sourceLineNo">071</span> * <p><a name="line.71"></a>
+<span class="sourceLineNo">072</span> * <h5 class='section'>Examples:</h5><a name="line.72"></a>
+<span class="sourceLineNo">073</span> * <p class='bcode'><a name="line.73"></a>
+<span class="sourceLineNo">074</span> * <jc>// Parse into an integer.</jc><a name="line.74"></a>
+<span class="sourceLineNo">075</span> * <jk>int</jk> myparam = req.getPathParameter(<js>"myparam"</js>, <jk>int</jk>.<jk>class</jk>);<a name="line.75"></a>
+<span class="sourceLineNo">076</span> *<a name="line.76"></a>
+<span class="sourceLineNo">077</span> * <jc>// Parse into an int array.</jc><a name="line.77"></a>
+<span class="sourceLineNo">078</span> * <jk>int</jk>[] myparam = req.getPathParameter(<js>"myparam"</js>, <jk>int</jk>[].<jk>class</jk>);<a name="line.78"></a>
+<span class="sourceLineNo">079</span><a name="line.79"></a>
+<span class="sourceLineNo">080</span> * <jc>// Parse into a bean.</jc><a name="line.80"></a>
+<span class="sourceLineNo">081</span> * MyBean myparam = req.getPathParameter(<js>"myparam"</js>, MyBean.<jk>class</jk>);<a name="line.81"></a>
+<span class="sourceLineNo">082</span> *<a name="line.82"></a>
+<span class="sourceLineNo">083</span> * <jc>// Parse into a linked-list of objects.</jc><a name="line.83"></a>
+<span class="sourceLineNo">084</span> * List myparam = req.getPathParameter(<js>"myparam"</js>, LinkedList.<jk>class</jk>);<a name="line.84"></a>
+<span class="sourceLineNo">085</span> *<a name="line.85"></a>
+<span class="sourceLineNo">086</span> * <jc>// Parse into a map of object keys/values.</jc><a name="line.86"></a>
+<span class="sourceLineNo">087</span> * Map myparam = req.getPathParameter(<js>"myparam"</js>, TreeMap.<jk>class</jk>);<a name="line.87"></a>
+<span class="sourceLineNo">088</span> * </p><a name="line.88"></a>
+<span class="sourceLineNo">089</span> *<a name="line.89"></a>
+<span class="sourceLineNo">090</span> * @param name The attribute name.<a name="line.90"></a>
+<span class="sourceLineNo">091</span> * @param type The class type to convert the attribute value to.<a name="line.91"></a>
+<span class="sourceLineNo">092</span> * @param <T> The class type to convert the attribute value to.<a name="line.92"></a>
+<span class="sourceLineNo">093</span> * @return The attribute value converted to the specified class type.<a name="line.93"></a>
+<span class="sourceLineNo">094</span> * @throws ParseException<a name="line.94"></a>
+<span class="sourceLineNo">095</span> */<a name="line.95"></a>
+<span class="sourceLineNo">096</span> public <T> T get(String name, Class<T> type) throws ParseException {<a name="line.96"></a>
+<span class="sourceLineNo">097</span> return parse(name, beanSession.getClassMeta(type));<a name="line.97"></a>
+<span class="sourceLineNo">098</span> }<a name="line.98"></a>
+<span class="sourceLineNo">099</span><a name="line.99"></a>
+<span class="sourceLineNo">100</span> /**<a name="line.100"></a>
+<span class="sourceLineNo">101</span> * Returns the specified path parameter converted to a POJO.<a name="line.101"></a>
+<span class="sourceLineNo">102</span> * <p><a name="line.102"></a>
+<span class="sourceLineNo">103</span> * The type can be any POJO type convertable from a <code>String</code> (See <a class="doclink" href="package-summary.html#PojosConvertableFromString">POJOs Convertable From Strings</a>).<a name="line.103"></a>
+<span class="sourceLineNo">104</span> * <p><a name="line.104"></a>
+<span class="sourceLineNo">105</span> * Use this method if you want to parse into a parameterized <code>Map</code>/<code>Collection</code> object.<a name="line.105"></a>
+<span class="sourceLineNo">106</span> * <p><a name="line.106"></a>
+<span class="sourceLineNo">107</span> * <h5 class='section'>Examples:</h5><a name="line.107"></a>
+<span class="sourceLineNo">108</span> * <p class='bcode'><a name="line.108"></a>
+<span class="sourceLineNo">109</span> * <jc>// Parse into a linked-list of strings.</jc><a name="line.109"></a>
+<span class="sourceLineNo">110</span> * List&lt;String&gt; myparam = req.getPathParameter(<js>"myparam"</js>, LinkedList.<jk>class</jk>, String.<jk>class</jk>);<a name="line.110"></a>
+<span class="sourceLineNo">111</span> *<a name="line.111"></a>
+<span class="sourceLineNo">112</span> * <jc>// Parse into a linked-list of linked-lists of strings.</jc><a name="line.112"></a>
+<span class="sourceLineNo">113</span> * List&lt;List&lt;String&gt;&gt; myparam = req.getPathParameter(<js>"myparam"</js>, LinkedList.<jk>class</jk>, LinkedList.<jk>class</jk>, String.<jk>class</jk>);<a name="line.113"></a>
+<span class="sourceLineNo">114</span> *<a name="line.114"></a>
+<span class="sourceLineNo">115</span> * <jc>// Parse into a map of string keys/values.</jc><a name="line.115"></a>
+<span class="sourceLineNo">116</span> * Map&lt;String,String&gt; myparam = req.getPathParameter(<js>"myparam"</js>, TreeMap.<jk>class</jk>, String.<jk>class</jk>, String.<jk>class</jk>);<a name="line.116"></a>
+<span class="sourceLineNo">117</span> *<a name="line.117"></a>
+<span class="sourceLineNo">118</span> * <jc>// Parse into a map containing string keys and values of lists containing beans.</jc><a name="line.118"></a>
+<span class="sourceLineNo">119</span> * Map&lt;String,List&lt;MyBean&gt;&gt; myparam = req.getPathParameter(<js>"myparam"</js>, TreeMap.<jk>class</jk>, String.<jk>class</jk>, List.<jk>class</jk>, MyBean.<jk>class</jk>);<a name="line.119"></a>
+<span class="sourceLineNo">120</span> * </p><a name="line.120"></a>
+<span class="sourceLineNo">121</span> *<a name="line.121"></a>
+<span class="sourceLineNo">122</span> * @param name The attribute name.<a name="line.122"></a>
+<span class="sourceLineNo">123</span> * @param type The type of object to create.<a name="line.123"></a>
+<span class="sourceLineNo">124</span> * <br>Can be any of the following: {@link ClassMeta}, {@link Class}, {@link ParameterizedType}, {@link GenericArrayType}<a name="line.124"></a>
+<span class="sourceLineNo">125</span> * @param args The type arguments of the class if it's a collection or map.<a name="line.125"></a>
+<span class="sourceLineNo">126</span> * <br>Can be any of the following: {@link ClassMeta}, {@link Class}, {@link ParameterizedType}, {@link GenericArrayType}<a name="line.126"></a>
+<span class="sourceLineNo">127</span> * <br>Ignored if the main type is not a map or collection.<a name="line.127"></a>
+<span class="sourceLineNo">128</span> * @param <T> The class type to convert the attribute value to.<a name="line.128"></a>
+<span class="sourceLineNo">129</span> * @return The attribute value converted to the specified class type.<a name="line.129"></a>
+<span class="sourceLineNo">130</span> * @throws ParseException<a name="line.130"></a>
+<span class="sourceLineNo">131</span> */<a name="line.131"></a>
+<span class="sourceLineNo">132</span> public <T> T get(String name, Type type, Type...args) throws ParseException {<a name="line.132"></a>
+<span class="sourceLineNo">133</span> return (T)parse(name, beanSession.getClassMeta(type, args));<a name="line.133"></a>
+<span class="sourceLineNo">134</span> }<a name="line.134"></a>
+<span class="sourceLineNo">135</span><a name="line.135"></a>
+<span class="sourceLineNo">136</span> /* Workhorse method */<a name="line.136"></a>
+<span class="sourceLineNo">137</span> <T> T parse(String name, ClassMeta<T> cm) throws ParseException {<a name="line.137"></a>
+<span class="sourceLineNo">138</span> Object attr = get(name);<a name="line.138"></a>
+<span class="sourceLineNo">139</span> T t = null;<a name="line.139"></a>
+<span class="sourceLineNo">140</span> if (attr != null)<a name="line.140"></a>
+<span class="sourceLineNo">141</span> t = parser.parsePart(attr.toString(), cm);<a name="line.141"></a>
+<span class="sourceLineNo">142</span> if (t == null && cm.isPrimitive())<a name="line.142"></a>
+<span class="sourceLineNo">143</span> return cm.getPrimitiveDefault();<a name="line.143"></a>
+<span class="sourceLineNo">144</span> return t;<a name="line.144"></a>
+<span class="sourceLineNo">145</span> }<a name="line.145"></a>
+<span class="sourceLineNo">146</span><a name="line.146"></a>
+<span class="sourceLineNo">147</span> /**<a name="line.147"></a>
+<span class="sourceLineNo">148</span> * Returns the decoded remainder of the URL following any path pattern matches.<a name="line.148"></a>
+<span class="sourceLineNo">149</span> * <p><a name="line.149"></a>
+<span class="sourceLineNo">150</span> * The behavior of path remainder is shown below given the path pattern "/foo/*":<a name="line.150"></a>
+<span class="sourceLineNo">151</span> * <p><a name="line.151"></a>
+<span class="sourceLineNo">152</span> * <table class='styled'><a name="line.152"></a>
+<span class="sourceLineNo">153</span> * <tr><a name="line.153"></a>
+<span class="sourceLineNo">154</span> * <th>URL</th><a name="line.154"></a>
+<span class="sourceLineNo">155</span> * <th>Path Remainder</th><a name="line.155"></a>
+<span class="sourceLineNo">156</span> * </tr><a name="line.156"></a>
+<span class="sourceLineNo">157</span> * <tr><a name="line.157"></a>
+<span class="sourceLineNo">158</span> * <td><code>/foo</code></td><a name="line.158"></a>
+<span class="sourceLineNo">159</span> * <td><jk>null</jk></td><a name="line.159"></a>
+<span class="sourceLineNo">160</span> * </tr><a name="line.160"></a>
+<span class="sourceLineNo">161</span> * <tr><a name="line.161"></a>
+<span class="sourceLineNo">162</span> * <td><code>/foo/</code></td><a name="line.162"></a>
+<span class="sourceLineNo">163</span> * <td><js>""</js></td><a name="line.163"></a>
+<span class="sourceLineNo">164</span> * </tr><a name="line.164"></a>
+<span class="sourceLineNo">165</span> * <tr><a name="line.165"></a>
+<span class="sourceLineNo">166</span> * <td><code>/foo//</code></td><a name="line.166"></a>
+<span class="sourceLineNo">167</span> * <td><js>"/"</js></td><a name="line.167"></a>
+<span class="sourceLineNo">168</span> * </tr><a name="line.168"></a>
+<span class="sourceLineNo">169</span> * <tr><a name="line.169"></a>
+<span class="sourceLineNo">170</span> * <td><code>/foo///</code></td><a name="line.170"></a>
+<span class="sourceLineNo">171</span> * <td><js>"//"</js></td><a name="line.171"></a>
+<span class="sourceLineNo">172</span> * </tr><a name="line.172"></a>
+<span class="sourceLineNo">173</span> * <tr><a name="line.173"></a>
+<span class="sourceLineNo">174</span> * <td><code>/foo/a/b</code></td><a name="line.174"></a>
+<span class="sourceLineNo">175</span> * <td><js>"a/b"</js></td><a name="line.175"></a>
+<span class="sourceLineNo">176</span> * </tr><a name="line.176"></a>
+<span class="sourceLineNo">177</span> * <tr><a name="line.177"></a>
+<span class="sourceLineNo">178</span> * <td><code>/foo//a/b/</code></td><a name="line.178"></a>
+<span class="sourceLineNo">179</span> * <td><js>"/a/b/"</js></td><a name="line.179"></a>
+<span class="sourceLineNo">180</span> * </tr><a name="line.180"></a>
+<span class="sourceLineNo">181</span> * <tr><a name="line.181"></a>
+<span class="sourceLineNo">182</span> * <td><code>/foo/a%2Fb</code></td><a name="line.182"></a>
+<span class="sourceLineNo">183</span> * <td><js>"a/b"</js></td><a name="line.183"></a>
+<span class="sourceLineNo">184</span> * </tr><a name="line.184"></a>
+<span class="sourceLineNo">185</span> * </table><a name="line.185"></a>
+<span class="sourceLineNo">186</span> *<a name="line.186"></a>
+<span class="sourceLineNo">187</span> * <h5 class='section'>Example:</h5><a name="line.187"></a>
+<span class="sourceLineNo">188</span> * <p class='bcode'><a name="line.188"></a>
+<span class="sourceLineNo">189</span> * <jc>// REST method</jc><a name="line.189"></a>
+<span class="sourceLineNo">190</span> * <ja>@RestMethod</ja>(name=<js>"GET"</js>,path=<js>"/foo/{bar}/*"</js>)<a name="line.190"></a>
+<span class="sourceLineNo">191</span> * <jk>public</jk> String doGetById(RequestPathParams pathParams, <jk>int</jk> bar) {<a name="line.191"></a>
+<span class="sourceLineNo">192</span> * <jk>return</jk> pathParams.getRemainder();<a name="line.192"></a>
+<span class="sourceLineNo">193</span> * }<a name="line.193"></a>
+<span class="sourceLineNo">194</span> *<a name="line.194"></a>
+<span class="sourceLineNo">195</span> * <jc>// Prints "path/remainder"</jc><a name="line.195"></a>
+<span class="sourceLineNo">196</span> * <jk>new</jk> RestCall(servletPath + <js>"/foo/123/path/remainder"</js>).connect();<a name="line.196"></a>
+<span class="sourceLineNo">197</span> * </p><a name="line.197"></a>
+<span class="sourceLineNo">198</span> *<a name="line.198"></a>
+<span class="sourceLineNo">199</span> * @return The path remainder string.<a name="line.199"></a>
+<span class="sourceLineNo">200</span> */<a name="line.200"></a>
+<span class="sourceLineNo">201</span> public String getRemainder() {<a name="line.201"></a>
+<span class="sourceLineNo">202</span> return urlDecode(remainder);<a name="line.202"></a>
+<span class="sourceLineNo">203</span> }<a name="line.203"></a>
+<span class="sourceLineNo">204</span><a name="line.204"></a>
+<span class="sourceLineNo">205</span> /**<a name="line.205"></a>
+<span class="sourceLineNo">206</span> * Same as {@link #getRemainder()} but doesn't decode characters.<a name="line.206"></a>
+<span class="sourceLineNo">207</span> *<a name="line.207"></a>
+<span class="sourceLineNo">208</span> * @return The undecoded path remainder.<a name="line.208"></a>
+<span class="sourceLineNo">209</span> */<a name="line.209"></a>
+<span class="sourceLineNo">210</span> public String getRemainderUndecoded() {<a name="line.210"></a>
+<span class="sourceLineNo">211</span> return remainder;<a name="line.211"></a>
+<span class="sourceLineNo">212</span> }<a name="line.212"></a>
+<span class="sourceLineNo">213</span>}<a name="line.213"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
[15/15] incubator-juneau-website git commit: Update javadocs.
Posted by ja...@apache.org.
Update javadocs.
Project: http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/commit/0c968486
Tree: http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/tree/0c968486
Diff: http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/diff/0c968486
Branch: refs/heads/asf-site
Commit: 0c968486d93f201081b717a0a7ff46940714061b
Parents: 7ae6e29
Author: JamesBognar <ja...@apache.org>
Authored: Fri May 12 17:29:23 2017 -0400
Committer: JamesBognar <ja...@apache.org>
Committed: Fri May 12 17:29:23 2017 -0400
----------------------------------------------------------------------
content/site/apidocs/allclasses-frame.html | 2 +-
content/site/apidocs/allclasses-noframe.html | 2 +-
content/site/apidocs/index-all.html | 82 +-
.../org/apache/juneau/http/ContentMD5.html | 294 ---
.../org/apache/juneau/http/HeaderTimestamp.html | 313 ---
.../org/apache/juneau/http/HeaderUrl.html | 335 ----
.../org/apache/juneau/http/HeaderValidator.html | 309 ---
.../juneau/http/HeaderValidatorArray.html | 315 ---
.../org/apache/juneau/http/SimpleRange.html | 468 -----
.../org/apache/juneau/http/TypeRange.html | 468 -----
.../juneau/microservice/package-summary.html | 8 +-
.../org/apache/juneau/rest/RequestBody.html | 34 +-
.../org/apache/juneau/rest/RequestFormData.html | 56 +-
.../org/apache/juneau/rest/RequestHeaders.html | 4 +-
.../apache/juneau/rest/RequestPathMatch.html | 498 +++++
.../apache/juneau/rest/RequestPathParams.html | 407 ----
.../org/apache/juneau/rest/RequestQuery.html | 68 +-
.../org/apache/juneau/rest/RestCallHandler.html | 16 +-
.../org/apache/juneau/rest/RestRequest.html | 505 ++---
.../org/apache/juneau/rest/RestResponse.html | 120 +-
.../org/apache/juneau/rest/annotation/Body.html | 2 +-
.../apache/juneau/rest/annotation/FormData.html | 27 +-
.../apache/juneau/rest/annotation/Header.html | 43 +-
.../apache/juneau/rest/annotation/Query.html | 27 +-
.../juneau/rest/annotation/RestMethod.html | 105 +-
.../org/apache/juneau/rest/client/RestCall.html | 190 +-
.../org/apache/juneau/rest/package-frame.html | 2 +-
.../org/apache/juneau/rest/package-summary.html | 30 +-
.../org/apache/juneau/rest/package-tree.html | 2 +-
content/site/apidocs/overview-summary.html | 246 +--
content/site/apidocs/overview-tree.html | 2 +-
content/site/apidocs/resources/juneau-doc.css | 1 +
content/site/apidocs/serialized-form.html | 10 +-
.../org/apache/juneau/http/ContentMD5.html | 160 --
.../org/apache/juneau/http/HeaderTimestamp.html | 123 --
.../org/apache/juneau/http/HeaderUrl.html | 134 --
.../org/apache/juneau/http/HeaderValidator.html | 119 --
.../juneau/http/HeaderValidatorArray.html | 127 --
.../org/apache/juneau/http/SimpleRange.html | 348 ----
.../org/apache/juneau/http/TypeRange.html | 348 ----
.../org/apache/juneau/rest/RequestBody.html | 34 +-
.../org/apache/juneau/rest/RequestFormData.html | 470 ++---
.../apache/juneau/rest/RequestPathMatch.html | 285 +++
.../apache/juneau/rest/RequestPathParams.html | 209 --
.../org/apache/juneau/rest/RequestQuery.html | 482 ++---
.../org/apache/juneau/rest/RestCallHandler.html | 355 ++--
.../org/apache/juneau/rest/RestRequest.html | 1846 ++++++++----------
.../org/apache/juneau/rest/RestResponse.html | 847 ++++----
.../org/apache/juneau/rest/RestUtils.html | 19 +-
.../org/apache/juneau/rest/annotation/Body.html | 2 +-
.../apache/juneau/rest/annotation/FormData.html | 7 +-
.../apache/juneau/rest/annotation/Header.html | 7 +-
.../apache/juneau/rest/annotation/Query.html | 7 +-
.../juneau/rest/annotation/RestMethod.html | 549 +++---
.../org/apache/juneau/rest/client/RestCall.html | 17 +-
.../juneau/rest/converters/Introspectable.html | 4 +-
.../juneau/rest/converters/Traversable.html | 4 +-
.../juneau/rest/response/DefaultHandler.html | 4 +-
.../org/apache/juneau/rest/vars/RequestVar.html | 8 +-
59 files changed, 3895 insertions(+), 7611 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/allclasses-frame.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/allclasses-frame.html b/content/site/apidocs/allclasses-frame.html
index feed9ef..fe1007b 100644
--- a/content/site/apidocs/allclasses-frame.html
+++ b/content/site/apidocs/allclasses-frame.html
@@ -517,7 +517,7 @@
<li><a href="org/apache/juneau/rest/RequestBody.html" title="class in org.apache.juneau.rest" target="classFrame">RequestBody</a></li>
<li><a href="org/apache/juneau/rest/RequestFormData.html" title="class in org.apache.juneau.rest" target="classFrame">RequestFormData</a></li>
<li><a href="org/apache/juneau/rest/RequestHeaders.html" title="class in org.apache.juneau.rest" target="classFrame">RequestHeaders</a></li>
-<li><a href="org/apache/juneau/rest/RequestPathParams.html" title="class in org.apache.juneau.rest" target="classFrame">RequestPathParams</a></li>
+<li><a href="org/apache/juneau/rest/RequestPathMatch.html" title="class in org.apache.juneau.rest" target="classFrame">RequestPathMatch</a></li>
<li><a href="org/apache/juneau/rest/RequestQuery.html" title="class in org.apache.juneau.rest" target="classFrame">RequestQuery</a></li>
<li><a href="org/apache/juneau/rest/vars/RequestVar.html" title="class in org.apache.juneau.rest.vars" target="classFrame">RequestVar</a></li>
<li><a href="org/apache/juneau/microservice/Resource.html" title="class in org.apache.juneau.microservice" target="classFrame">Resource</a></li>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/allclasses-noframe.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/allclasses-noframe.html b/content/site/apidocs/allclasses-noframe.html
index 51b5c48..190676a 100644
--- a/content/site/apidocs/allclasses-noframe.html
+++ b/content/site/apidocs/allclasses-noframe.html
@@ -517,7 +517,7 @@
<li><a href="org/apache/juneau/rest/RequestBody.html" title="class in org.apache.juneau.rest">RequestBody</a></li>
<li><a href="org/apache/juneau/rest/RequestFormData.html" title="class in org.apache.juneau.rest">RequestFormData</a></li>
<li><a href="org/apache/juneau/rest/RequestHeaders.html" title="class in org.apache.juneau.rest">RequestHeaders</a></li>
-<li><a href="org/apache/juneau/rest/RequestPathParams.html" title="class in org.apache.juneau.rest">RequestPathParams</a></li>
+<li><a href="org/apache/juneau/rest/RequestPathMatch.html" title="class in org.apache.juneau.rest">RequestPathMatch</a></li>
<li><a href="org/apache/juneau/rest/RequestQuery.html" title="class in org.apache.juneau.rest">RequestQuery</a></li>
<li><a href="org/apache/juneau/rest/vars/RequestVar.html" title="class in org.apache.juneau.rest.vars">RequestVar</a></li>
<li><a href="org/apache/juneau/microservice/Resource.html" title="class in org.apache.juneau.microservice">Resource</a></li>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/index-all.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/index-all.html b/content/site/apidocs/index-all.html
index 9b80015..5283a9a 100644
--- a/content/site/apidocs/index-all.html
+++ b/content/site/apidocs/index-all.html
@@ -413,10 +413,18 @@
<dd>
<div class="block">Adds class-level encoders to this resource.</div>
</dd>
+<dt><span class="memberNameLink"><a href="org/apache/juneau/rest/RequestFormData.html#addDefault-java.util.Map-">addDefault(Map<String, String>)</a></span> - Method in class org.apache.juneau.rest.<a href="org/apache/juneau/rest/RequestFormData.html" title="class in org.apache.juneau.rest">RequestFormData</a></dt>
+<dd>
+<div class="block">Adds default entries to these form-data parameters.</div>
+</dd>
<dt><span class="memberNameLink"><a href="org/apache/juneau/rest/RequestHeaders.html#addDefault-java.util.Map-">addDefault(Map<String, String>)</a></span> - Method in class org.apache.juneau.rest.<a href="org/apache/juneau/rest/RequestHeaders.html" title="class in org.apache.juneau.rest">RequestHeaders</a></dt>
<dd>
<div class="block">Adds default entries to these headers.</div>
</dd>
+<dt><span class="memberNameLink"><a href="org/apache/juneau/rest/RequestQuery.html#addDefault-java.util.Map-">addDefault(Map<String, String>)</a></span> - Method in class org.apache.juneau.rest.<a href="org/apache/juneau/rest/RequestQuery.html" title="class in org.apache.juneau.rest">RequestQuery</a></dt>
+<dd>
+<div class="block">Adds default entries to these query parameters.</div>
+</dd>
<dt><span class="memberNameLink"><a href="org/apache/juneau/rest/RestConfig.html#addDefaultRequestHeader-java.lang.String-java.lang.Object-">addDefaultRequestHeader(String, Object)</a></span> - Method in class org.apache.juneau.rest.<a href="org/apache/juneau/rest/RestConfig.html" title="class in org.apache.juneau.rest">RestConfig</a></dt>
<dd>
<div class="block">Adds class-level default HTTP request headers to this resource.</div>
@@ -5400,6 +5408,10 @@
<dd> </dd>
<dt><span class="memberNameLink"><a href="org/apache/juneau/plaintext/PlainTextSerializerBuilder.html#debug-boolean-">debug(boolean)</a></span> - Method in class org.apache.juneau.plaintext.<a href="org/apache/juneau/plaintext/PlainTextSerializerBuilder.html" title="class in org.apache.juneau.plaintext">PlainTextSerializerBuilder</a></dt>
<dd> </dd>
+<dt><span class="memberNameLink"><a href="org/apache/juneau/rest/client/RestCall.html#debug-boolean-">debug(boolean)</a></span> - Method in class org.apache.juneau.rest.client.<a href="org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></dt>
+<dd>
+<div class="block">Sets <code>Debug: value</code> header on this request.</div>
+</dd>
<dt><span class="memberNameLink"><a href="org/apache/juneau/rest/client/RestClientBuilder.html#debug-boolean-">debug(boolean)</a></span> - Method in class org.apache.juneau.rest.client.<a href="org/apache/juneau/rest/client/RestClientBuilder.html" title="class in org.apache.juneau.rest.client">RestClientBuilder</a></dt>
<dd> </dd>
<dt><span class="memberNameLink"><a href="org/apache/juneau/serializer/SerializerBuilder.html#debug-boolean-">debug(boolean)</a></span> - Method in class org.apache.juneau.serializer.<a href="org/apache/juneau/serializer/SerializerBuilder.html" title="class in org.apache.juneau.serializer">SerializerBuilder</a></dt>
@@ -7069,6 +7081,8 @@
<dd> </dd>
<dt><span class="memberNameLink"><a href="org/apache/juneau/serializer/SerializerWriter.html#flush--">flush()</a></span> - Method in class org.apache.juneau.serializer.<a href="org/apache/juneau/serializer/SerializerWriter.html" title="class in org.apache.juneau.serializer">SerializerWriter</a></dt>
<dd> </dd>
+<dt><span class="memberNameLink"><a href="org/apache/juneau/rest/RestResponse.html#flushBuffer--">flushBuffer()</a></span> - Method in class org.apache.juneau.rest.<a href="org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a></dt>
+<dd> </dd>
<dt><span class="memberNameLink"><a href="org/apache/juneau/dto/html5/Article.html#footer-java.lang.Object...-">footer(Object...)</a></span> - Method in class org.apache.juneau.dto.html5.<a href="org/apache/juneau/dto/html5/Article.html" title="class in org.apache.juneau.dto.html5">Article</a></dt>
<dd>
<div class="block">Adds a footer node to this element.</div>
@@ -7641,11 +7655,11 @@
<dd>
<div class="block">Returns the specified header value converted to a POJO.</div>
</dd>
-<dt><span class="memberNameLink"><a href="org/apache/juneau/rest/RequestPathParams.html#get-java.lang.String-java.lang.Class-">get(String, Class<T>)</a></span> - Method in class org.apache.juneau.rest.<a href="org/apache/juneau/rest/RequestPathParams.html" title="class in org.apache.juneau.rest">RequestPathParams</a></dt>
+<dt><span class="memberNameLink"><a href="org/apache/juneau/rest/RequestPathMatch.html#get-java.lang.String-java.lang.Class-">get(String, Class<T>)</a></span> - Method in class org.apache.juneau.rest.<a href="org/apache/juneau/rest/RequestPathMatch.html" title="class in org.apache.juneau.rest">RequestPathMatch</a></dt>
<dd>
<div class="block">Returns the specified path parameter converted to a POJO.</div>
</dd>
-<dt><span class="memberNameLink"><a href="org/apache/juneau/rest/RequestPathParams.html#get-java.lang.String-java.lang.reflect.Type-java.lang.reflect.Type...-">get(String, Type, Type...)</a></span> - Method in class org.apache.juneau.rest.<a href="org/apache/juneau/rest/RequestPathParams.html" title="class in org.apache.juneau.rest">RequestPathParams</a></dt>
+<dt><span class="memberNameLink"><a href="org/apache/juneau/rest/RequestPathMatch.html#get-java.lang.String-java.lang.reflect.Type-java.lang.reflect.Type...-">get(String, Type, Type...)</a></span> - Method in class org.apache.juneau.rest.<a href="org/apache/juneau/rest/RequestPathMatch.html" title="class in org.apache.juneau.rest">RequestPathMatch</a></dt>
<dd>
<div class="block">Returns the specified path parameter converted to a POJO.</div>
</dd>
@@ -8886,11 +8900,7 @@
</dd>
<dt><span class="memberNameLink"><a href="org/apache/juneau/rest/RestRequest.html#getFormData-java.lang.String-">getFormData(String)</a></span> - Method in class org.apache.juneau.rest.<a href="org/apache/juneau/rest/RestRequest.html" title="class in org.apache.juneau.rest">RestRequest</a></dt>
<dd>
-<div class="block">Convenience method for calling <code>getFormData().getFirst(name);</code>.</div>
-</dd>
-<dt><span class="memberNameLink"><a href="org/apache/juneau/rest/RestRequest.html#getFormData-java.lang.String-java.lang.String-">getFormData(String, String)</a></span> - Method in class org.apache.juneau.rest.<a href="org/apache/juneau/rest/RestRequest.html" title="class in org.apache.juneau.rest">RestRequest</a></dt>
-<dd>
-<div class="block">Convenience method for calling <code>getFormData().getFirst(name, def);</code>.</div>
+<div class="block">Shortcut for calling <code>getFormData().getFirst(name)</code>.</div>
</dd>
<dt><span class="memberNameLink"><a href="org/apache/juneau/remoteable/RemoteableMethodMeta.html#getFormDataArgs--">getFormDataArgs()</a></span> - Method in class org.apache.juneau.remoteable.<a href="org/apache/juneau/remoteable/RemoteableMethodMeta.html" title="class in org.apache.juneau.remoteable">RemoteableMethodMeta</a></dt>
<dd>
@@ -8925,13 +8935,7 @@
<div class="block">Returns the guards associated with this resource at the class level.</div>
</dd>
<dt><span class="memberNameLink"><a href="org/apache/juneau/rest/RestRequest.html#getHeader-java.lang.String-">getHeader(String)</a></span> - Method in class org.apache.juneau.rest.<a href="org/apache/juneau/rest/RestRequest.html" title="class in org.apache.juneau.rest">RestRequest</a></dt>
-<dd>
-<div class="block">Convenience method for calling <code>getHeaders().getFirst(name);</code></div>
-</dd>
-<dt><span class="memberNameLink"><a href="org/apache/juneau/rest/RestRequest.html#getHeader-java.lang.String-java.lang.String-">getHeader(String, String)</a></span> - Method in class org.apache.juneau.rest.<a href="org/apache/juneau/rest/RestRequest.html" title="class in org.apache.juneau.rest">RestRequest</a></dt>
-<dd>
-<div class="block">Convenience method for calling <code>getHeaders().getFirst(name, def);</code></div>
-</dd>
+<dd> </dd>
<dt><span class="memberNameLink"><a href="org/apache/juneau/remoteable/RemoteableMethodMeta.html#getHeaderArgs--">getHeaderArgs()</a></span> - Method in class org.apache.juneau.remoteable.<a href="org/apache/juneau/remoteable/RemoteableMethodMeta.html" title="class in org.apache.juneau.remoteable">RemoteableMethodMeta</a></dt>
<dd>
<div class="block">Returns the <a href="org/apache/juneau/remoteable/Header.html" title="annotation in org.apache.juneau.remoteable"><code>@Header</code></a> annotated arguments on this Java method.</div>
@@ -10133,22 +10137,10 @@
<dd>
<div class="block">Identical to <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServletRequest.html?is-external=true#getPathInfo--" title="class or interface in javax.servlet.http"><code>HttpServletRequest.getPathInfo()</code></a> but doesn't decode encoded characters.</div>
</dd>
-<dt><span class="memberNameLink"><a href="org/apache/juneau/rest/RestRequest.html#getPathParameter-java.lang.String-">getPathParameter(String)</a></span> - Method in class org.apache.juneau.rest.<a href="org/apache/juneau/rest/RestRequest.html" title="class in org.apache.juneau.rest">RestRequest</a></dt>
-<dd>
-<div class="block">Convenience method for calling <code>getPathParams().get(name);</code>.</div>
-</dd>
-<dt><span class="memberNameLink"><a href="org/apache/juneau/rest/RestRequest.html#getPathParams--">getPathParams()</a></span> - Method in class org.apache.juneau.rest.<a href="org/apache/juneau/rest/RestRequest.html" title="class in org.apache.juneau.rest">RestRequest</a></dt>
+<dt><span class="memberNameLink"><a href="org/apache/juneau/rest/RestRequest.html#getPathMatch--">getPathMatch()</a></span> - Method in class org.apache.juneau.rest.<a href="org/apache/juneau/rest/RestRequest.html" title="class in org.apache.juneau.rest">RestRequest</a></dt>
<dd>
<div class="block">Retrieves the URL-encoded form data from the request if the body has already been cached locally.</div>
</dd>
-<dt><span class="memberNameLink"><a href="org/apache/juneau/rest/RestRequest.html#getPathRemainder--">getPathRemainder()</a></span> - Method in class org.apache.juneau.rest.<a href="org/apache/juneau/rest/RestRequest.html" title="class in org.apache.juneau.rest">RestRequest</a></dt>
-<dd>
-<div class="block">Returns the decoded remainder of the URL following any path pattern matches.</div>
-</dd>
-<dt><span class="memberNameLink"><a href="org/apache/juneau/rest/RestRequest.html#getPathRemainderUndecoded--">getPathRemainderUndecoded()</a></span> - Method in class org.apache.juneau.rest.<a href="org/apache/juneau/rest/RestRequest.html" title="class in org.apache.juneau.rest">RestRequest</a></dt>
-<dd>
-<div class="block">Same as <a href="org/apache/juneau/rest/RestRequest.html#getPathRemainder--"><code>RestRequest.getPathRemainder()</code></a> but doesn't decode characters.</div>
-</dd>
<dt><span class="memberNameLink"><a href="org/apache/juneau/dto/swagger/Swagger.html#getPaths--">getPaths()</a></span> - Method in class org.apache.juneau.dto.swagger.<a href="org/apache/juneau/dto/swagger/Swagger.html" title="class in org.apache.juneau.dto.swagger">Swagger</a></dt>
<dd>
<div class="block">Bean property getter: <property>paths</property>.</div>
@@ -10367,11 +10359,7 @@
</dd>
<dt><span class="memberNameLink"><a href="org/apache/juneau/rest/RestRequest.html#getQuery-java.lang.String-">getQuery(String)</a></span> - Method in class org.apache.juneau.rest.<a href="org/apache/juneau/rest/RestRequest.html" title="class in org.apache.juneau.rest">RestRequest</a></dt>
<dd>
-<div class="block">Convenience method for calling <code>getQueryParams().getFirst(name);</code></div>
-</dd>
-<dt><span class="memberNameLink"><a href="org/apache/juneau/rest/RestRequest.html#getQuery-java.lang.String-java.lang.String-">getQuery(String, String)</a></span> - Method in class org.apache.juneau.rest.<a href="org/apache/juneau/rest/RestRequest.html" title="class in org.apache.juneau.rest">RestRequest</a></dt>
-<dd>
-<div class="block">Convenience method for calling <code>getQueryParams().getFirst(name, def);</code></div>
+<div class="block">Shortcut for calling <code>getQuery().getFirst(name)</code>.</div>
</dd>
<dt><span class="memberNameLink"><a href="org/apache/juneau/remoteable/RemoteableMethodMeta.html#getQueryArgs--">getQueryArgs()</a></span> - Method in class org.apache.juneau.remoteable.<a href="org/apache/juneau/remoteable/RemoteableMethodMeta.html" title="class in org.apache.juneau.remoteable">RemoteableMethodMeta</a></dt>
<dd>
@@ -10496,6 +10484,14 @@
<dd>
<div class="block">Returns the <a href="org/apache/juneau/serializer/SerializerContext.html#SERIALIZER_relativeUriBase"><code>SerializerContext.SERIALIZER_relativeUriBase</code></a> setting value for this session.</div>
</dd>
+<dt><span class="memberNameLink"><a href="org/apache/juneau/rest/RequestPathMatch.html#getRemainder--">getRemainder()</a></span> - Method in class org.apache.juneau.rest.<a href="org/apache/juneau/rest/RequestPathMatch.html" title="class in org.apache.juneau.rest">RequestPathMatch</a></dt>
+<dd>
+<div class="block">Returns the decoded remainder of the URL following any path pattern matches.</div>
+</dd>
+<dt><span class="memberNameLink"><a href="org/apache/juneau/rest/RequestPathMatch.html#getRemainderUndecoded--">getRemainderUndecoded()</a></span> - Method in class org.apache.juneau.rest.<a href="org/apache/juneau/rest/RequestPathMatch.html" title="class in org.apache.juneau.rest">RequestPathMatch</a></dt>
+<dd>
+<div class="block">Same as <a href="org/apache/juneau/rest/RequestPathMatch.html#getRemainder--"><code>RequestPathMatch.getRemainder()</code></a> but doesn't decode characters.</div>
+</dd>
<dt><span class="memberNameLink"><a href="org/apache/juneau/ClassMeta.html#getRemoteableMethods--">getRemoteableMethods()</a></span> - Method in class org.apache.juneau.<a href="org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a></dt>
<dd>
<div class="block">All methods on this class annotated with <a href="org/apache/juneau/remoteable/Remoteable.html" title="annotation in org.apache.juneau.remoteable"><code>@Remotable</code></a>, or all public methods if class is annotated.</div>
@@ -18442,7 +18438,7 @@
<dd>
<div class="block">Sets a request header value.</div>
</dd>
-<dt><span class="memberNameLink"><a href="org/apache/juneau/rest/RequestPathParams.html#put-java.lang.String-java.lang.Object-">put(String, Object)</a></span> - Method in class org.apache.juneau.rest.<a href="org/apache/juneau/rest/RequestPathParams.html" title="class in org.apache.juneau.rest">RequestPathParams</a></dt>
+<dt><span class="memberNameLink"><a href="org/apache/juneau/rest/RequestPathMatch.html#put-java.lang.String-java.lang.Object-">put(String, Object)</a></span> - Method in class org.apache.juneau.rest.<a href="org/apache/juneau/rest/RequestPathMatch.html" title="class in org.apache.juneau.rest">RequestPathMatch</a></dt>
<dd>
<div class="block">Sets a request query parameter value.</div>
</dd>
@@ -20247,9 +20243,9 @@
<dd>
<div class="block">Represents the headers in an HTTP request.</div>
</dd>
-<dt><a href="org/apache/juneau/rest/RequestPathParams.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">RequestPathParams</span></a> - Class in <a href="org/apache/juneau/rest/package-summary.html">org.apache.juneau.rest</a></dt>
+<dt><a href="org/apache/juneau/rest/RequestPathMatch.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">RequestPathMatch</span></a> - Class in <a href="org/apache/juneau/rest/package-summary.html">org.apache.juneau.rest</a></dt>
<dd>
-<div class="block">Represents the path parameters on an HTTP request.</div>
+<div class="block">Contains information about the matched path on the HTTP request.</div>
</dd>
<dt><a href="org/apache/juneau/rest/RequestQuery.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">RequestQuery</span></a> - Class in <a href="org/apache/juneau/rest/package-summary.html">org.apache.juneau.rest</a></dt>
<dd>
@@ -22253,14 +22249,6 @@
<dd>
<div class="block">Bean property setter: <property>format</property>.</div>
</dd>
-<dt><span class="memberNameLink"><a href="org/apache/juneau/rest/RestRequest.html#setFormData-java.lang.String-java.lang.Object-">setFormData(String, Object)</a></span> - Method in class org.apache.juneau.rest.<a href="org/apache/juneau/rest/RestRequest.html" title="class in org.apache.juneau.rest">RestRequest</a></dt>
-<dd>
-<div class="block">Convenience method for calling <code>getFormData().put(name, value);</code>.</div>
-</dd>
-<dt><span class="memberNameLink"><a href="org/apache/juneau/rest/RestRequest.html#setHeader-java.lang.String-java.lang.Object-">setHeader(String, Object)</a></span> - Method in class org.apache.juneau.rest.<a href="org/apache/juneau/rest/RestRequest.html" title="class in org.apache.juneau.rest">RestRequest</a></dt>
-<dd>
-<div class="block">Convenience method for calling <code>getHeaders().put(name, value);</code></div>
-</dd>
<dt><span class="memberNameLink"><a href="org/apache/juneau/rest/RestResponse.html#setHeader-java.lang.String-java.lang.String-">setHeader(String, String)</a></span> - Method in class org.apache.juneau.rest.<a href="org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a></dt>
<dd> </dd>
<dt><span class="memberNameLink"><a href="org/apache/juneau/dto/swagger/ResponseInfo.html#setHeaders-java.util.Map-">setHeaders(Map<String, HeaderInfo>)</a></span> - Method in class org.apache.juneau.dto.swagger.<a href="org/apache/juneau/dto/swagger/ResponseInfo.html" title="class in org.apache.juneau.dto.swagger">ResponseInfo</a></dt>
@@ -22933,10 +22921,6 @@
<dd>
<div class="block">Sets the URL path of the resource <js>"/foobar"</js>.</div>
</dd>
-<dt><span class="memberNameLink"><a href="org/apache/juneau/rest/RestRequest.html#setPathParameter-java.lang.String-java.lang.String-">setPathParameter(String, String)</a></span> - Method in class org.apache.juneau.rest.<a href="org/apache/juneau/rest/RestRequest.html" title="class in org.apache.juneau.rest">RestRequest</a></dt>
-<dd>
-<div class="block">Convenience method for calling <code>getPathParams().put(name, value);</code>.</div>
-</dd>
<dt><span class="memberNameLink"><a href="org/apache/juneau/dto/swagger/Swagger.html#setPaths-java.util.Map-">setPaths(Map<String, Map<String, Operation>>)</a></span> - Method in class org.apache.juneau.dto.swagger.<a href="org/apache/juneau/dto/swagger/Swagger.html" title="class in org.apache.juneau.dto.swagger">Swagger</a></dt>
<dd>
<div class="block">Bean property setter: <property>paths</property>.</div>
@@ -23151,10 +23135,6 @@
<dd> </dd>
<dt><span class="memberNameLink"><a href="org/apache/juneau/rest/client/RestClientBuilder.html#setPublicSuffixMatcher-org.apache.http.conn.util.PublicSuffixMatcher-">setPublicSuffixMatcher(PublicSuffixMatcher)</a></span> - Method in class org.apache.juneau.rest.client.<a href="org/apache/juneau/rest/client/RestClientBuilder.html" title="class in org.apache.juneau.rest.client">RestClientBuilder</a></dt>
<dd> </dd>
-<dt><span class="memberNameLink"><a href="org/apache/juneau/rest/RestRequest.html#setQuery-java.lang.String-java.lang.Object-">setQuery(String, Object)</a></span> - Method in class org.apache.juneau.rest.<a href="org/apache/juneau/rest/RestRequest.html" title="class in org.apache.juneau.rest">RestRequest</a></dt>
-<dd>
-<div class="block">Convenience method for calling <code>getQueryParams().put(name, value);</code>.</div>
-</dd>
<dt><span class="memberNameLink"><a href="org/apache/juneau/dto/swagger/SchemaInfo.html#setReadOnly-java.lang.Boolean-">setReadOnly(Boolean)</a></span> - Method in class org.apache.juneau.dto.swagger.<a href="org/apache/juneau/dto/swagger/SchemaInfo.html" title="class in org.apache.juneau.dto.swagger">SchemaInfo</a></dt>
<dd>
<div class="block">Bean property setter: <property>readOnly</property>.</div>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/org/apache/juneau/http/ContentMD5.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/org/apache/juneau/http/ContentMD5.html b/content/site/apidocs/org/apache/juneau/http/ContentMD5.html
deleted file mode 100644
index a62326a..0000000
--- a/content/site/apidocs/org/apache/juneau/http/ContentMD5.html
+++ /dev/null
@@ -1,294 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<!-- NewPage -->
-<html lang="en">
-<head>
-<!-- Generated by javadoc -->
-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-<title>ContentMD5 (Apache Juneau (incubating) 6.2.1-incubating-SNAPSHOT)</title>
-<link rel="stylesheet" type="text/css" href="../../../../javadoc.css" title="Style">
-<script type="text/javascript" src="../../../../script.js"></script>
-</head>
-<body>
-<script type="text/javascript"><!--
- try {
- if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="ContentMD5 (Apache Juneau (incubating) 6.2.1-incubating-SNAPSHOT)";
- }
- }
- catch(err) {
- }
-//-->
-var methods = {"i0":9,"i1":10};
-var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
-var altColor = "altColor";
-var rowColor = "rowColor";
-var tableTab = "tableTab";
-var activeTableTab = "activeTableTab";
-</script>
-<noscript>
-<div>JavaScript is disabled on your browser.</div>
-</noscript>
-<!-- ========= START OF TOP NAVBAR ======= -->
-<div class="topNav"><a name="navbar.top">
-<!-- -->
-</a>
-<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
-<a name="navbar.top.firstrow">
-<!-- -->
-</a>
-<ul class="navList" title="Navigation">
-<li><a href="../../../../overview-summary.html">Overview</a></li>
-<li><a href="package-summary.html">Package</a></li>
-<li class="navBarCell1Rev">Class</li>
-<li><a href="package-tree.html">Tree</a></li>
-<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
-<li><a href="../../../../index-all.html">Index</a></li>
-<li><a href="../../../../help-doc.html">Help</a></li>
-</ul>
-</div>
-<div class="subNav">
-<ul class="navList">
-<li><a href="../../../../org/apache/juneau/http/ContentLocation.html" title="class in org.apache.juneau.http"><span class="typeNameLink">Prev Class</span></a></li>
-<li><a href="../../../../org/apache/juneau/http/ContentRange.html" title="class in org.apache.juneau.http"><span class="typeNameLink">Next Class</span></a></li>
-</ul>
-<ul class="navList">
-<li><a href="../../../../index.html?org/apache/juneau/http/ContentMD5.html" target="_top">Frames</a></li>
-<li><a href="ContentMD5.html" target="_top">No Frames</a></li>
-</ul>
-<ul class="navList" id="allclasses_navbar_top">
-<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
-</ul>
-<div>
-<script type="text/javascript"><!--
- allClassesLink = document.getElementById("allclasses_navbar_top");
- if(window==top) {
- allClassesLink.style.display = "block";
- }
- else {
- allClassesLink.style.display = "none";
- }
- //-->
-</script>
-</div>
-<div>
-<ul class="subNavList">
-<li>Summary: </li>
-<li>Nested | </li>
-<li>Field | </li>
-<li>Constr | </li>
-<li><a href="#method.summary">Method</a></li>
-</ul>
-<ul class="subNavList">
-<li>Detail: </li>
-<li>Field | </li>
-<li>Constr | </li>
-<li><a href="#method.detail">Method</a></li>
-</ul>
-</div>
-<a name="skip.navbar.top">
-<!-- -->
-</a></div>
-<!-- ========= END OF TOP NAVBAR ========= -->
-<!-- ======== START OF CLASS DATA ======== -->
-<div class="header">
-<div class="subTitle">org.apache.juneau.http</div>
-<h2 title="Class ContentMD5" class="title">Class ContentMD5</h2>
-</div>
-<div class="contentContainer">
-<ul class="inheritance">
-<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
-<li>
-<ul class="inheritance">
-<li>org.apache.juneau.http.ContentMD5</li>
-</ul>
-</li>
-</ul>
-<div class="description">
-<ul class="blockList">
-<li class="blockList">
-<hr>
-<br>
-<pre>public final class <a href="../../../../src-html/org/apache/juneau/http/ContentMD5.html#line.51">ContentMD5</a>
-extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
-<div class="block">Represents a parsed <code>XXX:</code> HTTP header.
- <p>
- <h6 class='topic>RFC2616 Specification</h6>
- <p class='bcode'>
-The Content-MD5 entity-header field, as defined in RFC 1864 [23], is an MD5 digest of the entity-body for the purpose of providing an end-to-end message integrity check (MIC) of the entity-body. (Note: a MIC is good for detecting accidental modification of the entity-body in transit, but is not proof against malicious attacks.)
-
- Content-MD5 = "Content-MD5" ":" md5-digest
- md5-digest = <base64 of 128 bit MD5 digest as per RFC 1864>
-The Content-MD5 header field MAY be generated by an origin server or client to function as an integrity check of the entity-body. Only origin servers or clients MAY generate the Content-MD5 header field; proxies and gateways MUST NOT generate it, as this would defeat its value as an end-to-end integrity check. Any recipient of the entity- body, including gateways and proxies, MAY check that the digest value in this header field matches that of the entity-body as received.
-
-The MD5 digest is computed based on the content of the entity-body, including any content-coding that has been applied, but not including any transfer-encoding applied to the message-body. If the message is received with a transfer-encoding, that encoding MUST be removed prior to checking the Content-MD5 value against the received entity.
-
-This has the result that the digest is computed on the octets of the entity-body exactly as, and in the order that, they would be sent if no transfer-encoding were being applied.
-
-HTTP extends RFC 1864 to permit the digest to be computed for MIME composite media-types (e.g., multipart/* and message/rfc822), but this does not change how the digest is computed as defined in the preceding paragraph.
-
-There are several consequences of this. The entity-body for composite types MAY contain many body-parts, each with its own MIME and HTTP headers (including Content-MD5, Content-Transfer-Encoding, and Content-Encoding headers). If a body-part has a Content-Transfer- Encoding or Content-Encoding header, it is assumed that the content of the body-part has had the encoding applied, and the body-part is included in the Content-MD5 digest as is -- i.e., after the application. The Transfer-Encoding header field is not allowed within body-parts.
-
-Conversion of all line breaks to CRLF MUST NOT be done before computing or checking the digest: the line break convention used in the text actually transmitted MUST be left unaltered when computing the digest.
-
- Note: while the definition of Content-MD5 is exactly the same for
- HTTP as in RFC 1864 for MIME entity-bodies, there are several ways
- in which the application of Content-MD5 to HTTP entity-bodies
- differs from its application to MIME entity-bodies. One is that
- HTTP, unlike MIME, does not use Content-Transfer-Encoding, and
- does use Transfer-Encoding and Content-Encoding. Another is that
- HTTP more frequently uses binary content types than MIME, so it is
- worth noting that, in such cases, the byte order used to compute
- the digest is the transmission byte order defined for the type.
- Lastly, HTTP allows transmission of text types with any of several
- line break conventions and not just the canonical form using CRLF.
- </p></div>
-</li>
-</ul>
-</div>
-<div class="summary">
-<ul class="blockList">
-<li class="blockList">
-<!-- ========== METHOD SUMMARY =========== -->
-<ul class="blockList">
-<li class="blockList"><a name="method.summary">
-<!-- -->
-</a>
-<h3>Method Summary</h3>
-<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
-<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
-<tr>
-<th class="colFirst" scope="col">Modifier and Type</th>
-<th class="colLast" scope="col">Method and Description</th>
-</tr>
-<tr id="i0" class="altColor">
-<td class="colFirst"><code>static <a href="../../../../org/apache/juneau/http/ContentMD5.html" title="class in org.apache.juneau.http">ContentMD5</a></code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/ContentMD5.html#forString-java.lang.String-">forString</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> s)</code>
-<div class="block">Returns a parsed <code>Accept</code> header.</div>
-</td>
-</tr>
-<tr id="i1" class="rowColor">
-<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/ContentMD5.html#toString--">toString</a></span>()</code> </td>
-</tr>
-</table>
-<ul class="blockList">
-<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
-<!-- -->
-</a>
-<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
-<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang
/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
-</ul>
-</li>
-</ul>
-</li>
-</ul>
-</div>
-<div class="details">
-<ul class="blockList">
-<li class="blockList">
-<!-- ============ METHOD DETAIL ========== -->
-<ul class="blockList">
-<li class="blockList"><a name="method.detail">
-<!-- -->
-</a>
-<h3>Method Detail</h3>
-<a name="forString-java.lang.String-">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>forString</h4>
-<pre>public static <a href="../../../../org/apache/juneau/http/ContentMD5.html" title="class in org.apache.juneau.http">ContentMD5</a> <a href="../../../../src-html/org/apache/juneau/http/ContentMD5.html#line.62">forString</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> s)</pre>
-<div class="block">Returns a parsed <code>Accept</code> header.</div>
-<dl>
-<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>s</code> - The <code>Accept</code> header string.</dd>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd>The parsed <code>Accept</code> header, or <jk>null</jk> if the string was null.</dd>
-</dl>
-</li>
-</ul>
-<a name="toString--">
-<!-- -->
-</a>
-<ul class="blockListLast">
-<li class="blockList">
-<h4>toString</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/http/ContentMD5.html#line.85">toString</a>()</pre>
-<dl>
-<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
-<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a></code> in class <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
-</dl>
-</li>
-</ul>
-</li>
-</ul>
-</li>
-</ul>
-</div>
-</div>
-<!-- ========= END OF CLASS DATA ========= -->
-<!-- ======= START OF BOTTOM NAVBAR ====== -->
-<div class="bottomNav"><a name="navbar.bottom">
-<!-- -->
-</a>
-<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
-<a name="navbar.bottom.firstrow">
-<!-- -->
-</a>
-<ul class="navList" title="Navigation">
-<li><a href="../../../../overview-summary.html">Overview</a></li>
-<li><a href="package-summary.html">Package</a></li>
-<li class="navBarCell1Rev">Class</li>
-<li><a href="package-tree.html">Tree</a></li>
-<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
-<li><a href="../../../../index-all.html">Index</a></li>
-<li><a href="../../../../help-doc.html">Help</a></li>
-</ul>
-</div>
-<div class="subNav">
-<ul class="navList">
-<li><a href="../../../../org/apache/juneau/http/ContentLocation.html" title="class in org.apache.juneau.http"><span class="typeNameLink">Prev Class</span></a></li>
-<li><a href="../../../../org/apache/juneau/http/ContentRange.html" title="class in org.apache.juneau.http"><span class="typeNameLink">Next Class</span></a></li>
-</ul>
-<ul class="navList">
-<li><a href="../../../../index.html?org/apache/juneau/http/ContentMD5.html" target="_top">Frames</a></li>
-<li><a href="ContentMD5.html" target="_top">No Frames</a></li>
-</ul>
-<ul class="navList" id="allclasses_navbar_bottom">
-<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
-</ul>
-<div>
-<script type="text/javascript"><!--
- allClassesLink = document.getElementById("allclasses_navbar_bottom");
- if(window==top) {
- allClassesLink.style.display = "block";
- }
- else {
- allClassesLink.style.display = "none";
- }
- //-->
-</script>
-</div>
-<div>
-<ul class="subNavList">
-<li>Summary: </li>
-<li>Nested | </li>
-<li>Field | </li>
-<li>Constr | </li>
-<li><a href="#method.summary">Method</a></li>
-</ul>
-<ul class="subNavList">
-<li>Detail: </li>
-<li>Field | </li>
-<li>Constr | </li>
-<li><a href="#method.detail">Method</a></li>
-</ul>
-</div>
-<a name="skip.navbar.bottom">
-<!-- -->
-</a></div>
-<!-- ======== END OF BOTTOM NAVBAR ======= -->
-<p class="legalCopy"><small>Copyright © 2017 <a href="http://www.apache.org/">Apache</a>. All rights reserved.</small></p>
-</body>
-</html>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/org/apache/juneau/http/HeaderTimestamp.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/org/apache/juneau/http/HeaderTimestamp.html b/content/site/apidocs/org/apache/juneau/http/HeaderTimestamp.html
deleted file mode 100644
index b4d070c..0000000
--- a/content/site/apidocs/org/apache/juneau/http/HeaderTimestamp.html
+++ /dev/null
@@ -1,313 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<!-- NewPage -->
-<html lang="en">
-<head>
-<!-- Generated by javadoc -->
-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-<title>HeaderTimestamp (Apache Juneau (incubating) 6.2.1-incubating-SNAPSHOT)</title>
-<link rel="stylesheet" type="text/css" href="../../../../javadoc.css" title="Style">
-<script type="text/javascript" src="../../../../script.js"></script>
-</head>
-<body>
-<script type="text/javascript"><!--
- try {
- if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="HeaderTimestamp (Apache Juneau (incubating) 6.2.1-incubating-SNAPSHOT)";
- }
- }
- catch(err) {
- }
-//-->
-var methods = {"i0":10,"i1":10};
-var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
-var altColor = "altColor";
-var rowColor = "rowColor";
-var tableTab = "tableTab";
-var activeTableTab = "activeTableTab";
-</script>
-<noscript>
-<div>JavaScript is disabled on your browser.</div>
-</noscript>
-<!-- ========= START OF TOP NAVBAR ======= -->
-<div class="topNav"><a name="navbar.top">
-<!-- -->
-</a>
-<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
-<a name="navbar.top.firstrow">
-<!-- -->
-</a>
-<ul class="navList" title="Navigation">
-<li><a href="../../../../overview-summary.html">Overview</a></li>
-<li><a href="package-summary.html">Package</a></li>
-<li class="navBarCell1Rev">Class</li>
-<li><a href="package-tree.html">Tree</a></li>
-<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
-<li><a href="../../../../index-all.html">Index</a></li>
-<li><a href="../../../../help-doc.html">Help</a></li>
-</ul>
-</div>
-<div class="subNav">
-<ul class="navList">
-<li><a href="../../../../org/apache/juneau/http/HeaderStringArray.html" title="class in org.apache.juneau.http"><span class="typeNameLink">Prev Class</span></a></li>
-<li><a href="../../../../org/apache/juneau/http/HeaderUrl.html" title="class in org.apache.juneau.http"><span class="typeNameLink">Next Class</span></a></li>
-</ul>
-<ul class="navList">
-<li><a href="../../../../index.html?org/apache/juneau/http/HeaderTimestamp.html" target="_top">Frames</a></li>
-<li><a href="HeaderTimestamp.html" target="_top">No Frames</a></li>
-</ul>
-<ul class="navList" id="allclasses_navbar_top">
-<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
-</ul>
-<div>
-<script type="text/javascript"><!--
- allClassesLink = document.getElementById("allclasses_navbar_top");
- if(window==top) {
- allClassesLink.style.display = "block";
- }
- else {
- allClassesLink.style.display = "none";
- }
- //-->
-</script>
-</div>
-<div>
-<ul class="subNavList">
-<li>Summary: </li>
-<li>Nested | </li>
-<li>Field | </li>
-<li><a href="#constructor.summary">Constr</a> | </li>
-<li><a href="#method.summary">Method</a></li>
-</ul>
-<ul class="subNavList">
-<li>Detail: </li>
-<li>Field | </li>
-<li><a href="#constructor.detail">Constr</a> | </li>
-<li><a href="#method.detail">Method</a></li>
-</ul>
-</div>
-<a name="skip.navbar.top">
-<!-- -->
-</a></div>
-<!-- ========= END OF TOP NAVBAR ========= -->
-<!-- ======== START OF CLASS DATA ======== -->
-<div class="header">
-<div class="subTitle">org.apache.juneau.http</div>
-<h2 title="Class HeaderTimestamp" class="title">Class HeaderTimestamp</h2>
-</div>
-<div class="contentContainer">
-<ul class="inheritance">
-<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
-<li>
-<ul class="inheritance">
-<li>org.apache.juneau.http.HeaderTimestamp</li>
-</ul>
-</li>
-</ul>
-<div class="description">
-<ul class="blockList">
-<li class="blockList">
-<dl>
-<dt>Direct Known Subclasses:</dt>
-<dd><a href="../../../../org/apache/juneau/http/Date.html" title="class in org.apache.juneau.http">Date</a>, <a href="../../../../org/apache/juneau/http/Expires.html" title="class in org.apache.juneau.http">Expires</a>, <a href="../../../../org/apache/juneau/http/IfModifiedSince.html" title="class in org.apache.juneau.http">IfModifiedSince</a>, <a href="../../../../org/apache/juneau/http/IfUnmodifiedSince.html" title="class in org.apache.juneau.http">IfUnmodifiedSince</a>, <a href="../../../../org/apache/juneau/http/LastModified.html" title="class in org.apache.juneau.http">LastModified</a></dd>
-</dl>
-<hr>
-<br>
-<pre>public class <a href="../../../../src-html/org/apache/juneau/http/HeaderTimestamp.html#line.25">HeaderTimestamp</a>
-extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
-<div class="block">Category of headers that consist of a single HTTP-date.
- <p>
- <h6 class='figure'>Example</h6>
- <p class='bcode'>
- If-Modified-Since: Sat, 29 Oct 1994 19:43:31 GMT
- </p></div>
-</li>
-</ul>
-</div>
-<div class="summary">
-<ul class="blockList">
-<li class="blockList">
-<!-- ======== CONSTRUCTOR SUMMARY ======== -->
-<ul class="blockList">
-<li class="blockList"><a name="constructor.summary">
-<!-- -->
-</a>
-<h3>Constructor Summary</h3>
-<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
-<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
-<tr>
-<th class="colFirst" scope="col">Modifier</th>
-<th class="colLast" scope="col">Constructor and Description</th>
-</tr>
-<tr class="altColor">
-<td class="colFirst"><code>protected </code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/HeaderTimestamp.html#HeaderTimestamp-java.lang.String-">HeaderTimestamp</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> raw)</code>
-<div class="block">Constructor.</div>
-</td>
-</tr>
-</table>
-</li>
-</ul>
-<!-- ========== METHOD SUMMARY =========== -->
-<ul class="blockList">
-<li class="blockList"><a name="method.summary">
-<!-- -->
-</a>
-<h3>Method Summary</h3>
-<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
-<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
-<tr>
-<th class="colFirst" scope="col">Modifier and Type</th>
-<th class="colLast" scope="col">Method and Description</th>
-</tr>
-<tr id="i0" class="altColor">
-<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</a></code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/HeaderTimestamp.html#asDate--">asDate</a></span>()</code>
-<div class="block">Returns this header value as a <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util"><code>Date</code></a>.</div>
-</td>
-</tr>
-<tr id="i1" class="rowColor">
-<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/HeaderTimestamp.html#toString--">toString</a></span>()</code> </td>
-</tr>
-</table>
-<ul class="blockList">
-<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
-<!-- -->
-</a>
-<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
-<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang
/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
-</ul>
-</li>
-</ul>
-</li>
-</ul>
-</div>
-<div class="details">
-<ul class="blockList">
-<li class="blockList">
-<!-- ========= CONSTRUCTOR DETAIL ======== -->
-<ul class="blockList">
-<li class="blockList"><a name="constructor.detail">
-<!-- -->
-</a>
-<h3>Constructor Detail</h3>
-<a name="HeaderTimestamp-java.lang.String-">
-<!-- -->
-</a>
-<ul class="blockListLast">
-<li class="blockList">
-<h4>HeaderTimestamp</h4>
-<pre>protected <a href="../../../../src-html/org/apache/juneau/http/HeaderTimestamp.html#line.34">HeaderTimestamp</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> raw)</pre>
-<div class="block">Constructor.</div>
-<dl>
-<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>raw</code> - The raw header value.</dd>
-</dl>
-</li>
-</ul>
-</li>
-</ul>
-<!-- ============ METHOD DETAIL ========== -->
-<ul class="blockList">
-<li class="blockList"><a name="method.detail">
-<!-- -->
-</a>
-<h3>Method Detail</h3>
-<a name="asDate--">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>asDate</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</a> <a href="../../../../src-html/org/apache/juneau/http/HeaderTimestamp.html#line.43">asDate</a>()</pre>
-<div class="block">Returns this header value as a <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util"><code>Date</code></a>.</div>
-<dl>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd>This header value as a <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util"><code>Date</code></a>, or <jk>null</jk> if the header could not be parsed.</dd>
-</dl>
-</li>
-</ul>
-<a name="toString--">
-<!-- -->
-</a>
-<ul class="blockListLast">
-<li class="blockList">
-<h4>toString</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/http/HeaderTimestamp.html#line.48">toString</a>()</pre>
-<dl>
-<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
-<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a></code> in class <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
-</dl>
-</li>
-</ul>
-</li>
-</ul>
-</li>
-</ul>
-</div>
-</div>
-<!-- ========= END OF CLASS DATA ========= -->
-<!-- ======= START OF BOTTOM NAVBAR ====== -->
-<div class="bottomNav"><a name="navbar.bottom">
-<!-- -->
-</a>
-<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
-<a name="navbar.bottom.firstrow">
-<!-- -->
-</a>
-<ul class="navList" title="Navigation">
-<li><a href="../../../../overview-summary.html">Overview</a></li>
-<li><a href="package-summary.html">Package</a></li>
-<li class="navBarCell1Rev">Class</li>
-<li><a href="package-tree.html">Tree</a></li>
-<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
-<li><a href="../../../../index-all.html">Index</a></li>
-<li><a href="../../../../help-doc.html">Help</a></li>
-</ul>
-</div>
-<div class="subNav">
-<ul class="navList">
-<li><a href="../../../../org/apache/juneau/http/HeaderStringArray.html" title="class in org.apache.juneau.http"><span class="typeNameLink">Prev Class</span></a></li>
-<li><a href="../../../../org/apache/juneau/http/HeaderUrl.html" title="class in org.apache.juneau.http"><span class="typeNameLink">Next Class</span></a></li>
-</ul>
-<ul class="navList">
-<li><a href="../../../../index.html?org/apache/juneau/http/HeaderTimestamp.html" target="_top">Frames</a></li>
-<li><a href="HeaderTimestamp.html" target="_top">No Frames</a></li>
-</ul>
-<ul class="navList" id="allclasses_navbar_bottom">
-<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
-</ul>
-<div>
-<script type="text/javascript"><!--
- allClassesLink = document.getElementById("allclasses_navbar_bottom");
- if(window==top) {
- allClassesLink.style.display = "block";
- }
- else {
- allClassesLink.style.display = "none";
- }
- //-->
-</script>
-</div>
-<div>
-<ul class="subNavList">
-<li>Summary: </li>
-<li>Nested | </li>
-<li>Field | </li>
-<li><a href="#constructor.summary">Constr</a> | </li>
-<li><a href="#method.summary">Method</a></li>
-</ul>
-<ul class="subNavList">
-<li>Detail: </li>
-<li>Field | </li>
-<li><a href="#constructor.detail">Constr</a> | </li>
-<li><a href="#method.detail">Method</a></li>
-</ul>
-</div>
-<a name="skip.navbar.bottom">
-<!-- -->
-</a></div>
-<!-- ======== END OF BOTTOM NAVBAR ======= -->
-<p class="legalCopy"><small>Copyright © 2017 <a href="http://www.apache.org/">Apache</a>. All rights reserved.</small></p>
-</body>
-</html>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/org/apache/juneau/http/HeaderUrl.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/org/apache/juneau/http/HeaderUrl.html b/content/site/apidocs/org/apache/juneau/http/HeaderUrl.html
deleted file mode 100644
index b5e87e0..0000000
--- a/content/site/apidocs/org/apache/juneau/http/HeaderUrl.html
+++ /dev/null
@@ -1,335 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<!-- NewPage -->
-<html lang="en">
-<head>
-<!-- Generated by javadoc -->
-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-<title>HeaderUrl (Apache Juneau (incubating) 6.2.1-incubating-SNAPSHOT)</title>
-<link rel="stylesheet" type="text/css" href="../../../../javadoc.css" title="Style">
-<script type="text/javascript" src="../../../../script.js"></script>
-</head>
-<body>
-<script type="text/javascript"><!--
- try {
- if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="HeaderUrl (Apache Juneau (incubating) 6.2.1-incubating-SNAPSHOT)";
- }
- }
- catch(err) {
- }
-//-->
-var methods = {"i0":10,"i1":10,"i2":10};
-var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
-var altColor = "altColor";
-var rowColor = "rowColor";
-var tableTab = "tableTab";
-var activeTableTab = "activeTableTab";
-</script>
-<noscript>
-<div>JavaScript is disabled on your browser.</div>
-</noscript>
-<!-- ========= START OF TOP NAVBAR ======= -->
-<div class="topNav"><a name="navbar.top">
-<!-- -->
-</a>
-<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
-<a name="navbar.top.firstrow">
-<!-- -->
-</a>
-<ul class="navList" title="Navigation">
-<li><a href="../../../../overview-summary.html">Overview</a></li>
-<li><a href="package-summary.html">Package</a></li>
-<li class="navBarCell1Rev">Class</li>
-<li><a href="package-tree.html">Tree</a></li>
-<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
-<li><a href="../../../../index-all.html">Index</a></li>
-<li><a href="../../../../help-doc.html">Help</a></li>
-</ul>
-</div>
-<div class="subNav">
-<ul class="navList">
-<li><a href="../../../../org/apache/juneau/http/HeaderTimestamp.html" title="class in org.apache.juneau.http"><span class="typeNameLink">Prev Class</span></a></li>
-<li><a href="../../../../org/apache/juneau/http/HeaderValidator.html" title="class in org.apache.juneau.http"><span class="typeNameLink">Next Class</span></a></li>
-</ul>
-<ul class="navList">
-<li><a href="../../../../index.html?org/apache/juneau/http/HeaderUrl.html" target="_top">Frames</a></li>
-<li><a href="HeaderUrl.html" target="_top">No Frames</a></li>
-</ul>
-<ul class="navList" id="allclasses_navbar_top">
-<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
-</ul>
-<div>
-<script type="text/javascript"><!--
- allClassesLink = document.getElementById("allclasses_navbar_top");
- if(window==top) {
- allClassesLink.style.display = "block";
- }
- else {
- allClassesLink.style.display = "none";
- }
- //-->
-</script>
-</div>
-<div>
-<ul class="subNavList">
-<li>Summary: </li>
-<li>Nested | </li>
-<li>Field | </li>
-<li><a href="#constructor.summary">Constr</a> | </li>
-<li><a href="#method.summary">Method</a></li>
-</ul>
-<ul class="subNavList">
-<li>Detail: </li>
-<li>Field | </li>
-<li><a href="#constructor.detail">Constr</a> | </li>
-<li><a href="#method.detail">Method</a></li>
-</ul>
-</div>
-<a name="skip.navbar.top">
-<!-- -->
-</a></div>
-<!-- ========= END OF TOP NAVBAR ========= -->
-<!-- ======== START OF CLASS DATA ======== -->
-<div class="header">
-<div class="subTitle">org.apache.juneau.http</div>
-<h2 title="Class HeaderUrl" class="title">Class HeaderUrl</h2>
-</div>
-<div class="contentContainer">
-<ul class="inheritance">
-<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
-<li>
-<ul class="inheritance">
-<li>org.apache.juneau.http.HeaderUrl</li>
-</ul>
-</li>
-</ul>
-<div class="description">
-<ul class="blockList">
-<li class="blockList">
-<dl>
-<dt>Direct Known Subclasses:</dt>
-<dd><a href="../../../../org/apache/juneau/http/ContentLocation.html" title="class in org.apache.juneau.http">ContentLocation</a>, <a href="../../../../org/apache/juneau/http/Location.html" title="class in org.apache.juneau.http">Location</a>, <a href="../../../../org/apache/juneau/http/Referer.html" title="class in org.apache.juneau.http">Referer</a></dd>
-</dl>
-<hr>
-<br>
-<pre>public class <a href="../../../../src-html/org/apache/juneau/http/HeaderUrl.html#line.27">HeaderUrl</a>
-extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
-<div class="block">Category of headers that consist of a single URL value.
- <p>
- <h6 class='figure'>Example</h6>
- <p class='bcode'>
- Location: http://www.w3.org/pub/WWW/People.html
- </p></div>
-</li>
-</ul>
-</div>
-<div class="summary">
-<ul class="blockList">
-<li class="blockList">
-<!-- ======== CONSTRUCTOR SUMMARY ======== -->
-<ul class="blockList">
-<li class="blockList"><a name="constructor.summary">
-<!-- -->
-</a>
-<h3>Constructor Summary</h3>
-<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
-<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
-<tr>
-<th class="colFirst" scope="col">Modifier</th>
-<th class="colLast" scope="col">Constructor and Description</th>
-</tr>
-<tr class="altColor">
-<td class="colFirst"><code>protected </code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/HeaderUrl.html#HeaderUrl-java.lang.String-">HeaderUrl</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</code>
-<div class="block">Constructor.</div>
-</td>
-</tr>
-</table>
-</li>
-</ul>
-<!-- ========== METHOD SUMMARY =========== -->
-<ul class="blockList">
-<li class="blockList"><a name="method.summary">
-<!-- -->
-</a>
-<h3>Method Summary</h3>
-<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
-<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
-<tr>
-<th class="colFirst" scope="col">Modifier and Type</th>
-<th class="colLast" scope="col">Method and Description</th>
-</tr>
-<tr id="i0" class="altColor">
-<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/HeaderUrl.html#asString--">asString</a></span>()</code>
-<div class="block">Returns this header as a simple string value.</div>
-</td>
-</tr>
-<tr id="i1" class="rowColor">
-<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</a></code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/HeaderUrl.html#asURI--">asURI</a></span>()</code>
-<div class="block">Returns this header as a <a href="http://docs.oracle.com/javase/7/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net"><code>URI</code></a>.</div>
-</td>
-</tr>
-<tr id="i2" class="altColor">
-<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/HeaderUrl.html#toString--">toString</a></span>()</code> </td>
-</tr>
-</table>
-<ul class="blockList">
-<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
-<!-- -->
-</a>
-<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
-<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang
/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
-</ul>
-</li>
-</ul>
-</li>
-</ul>
-</div>
-<div class="details">
-<ul class="blockList">
-<li class="blockList">
-<!-- ========= CONSTRUCTOR DETAIL ======== -->
-<ul class="blockList">
-<li class="blockList"><a name="constructor.detail">
-<!-- -->
-</a>
-<h3>Constructor Detail</h3>
-<a name="HeaderUrl-java.lang.String-">
-<!-- -->
-</a>
-<ul class="blockListLast">
-<li class="blockList">
-<h4>HeaderUrl</h4>
-<pre>protected <a href="../../../../src-html/org/apache/juneau/http/HeaderUrl.html#line.35">HeaderUrl</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</pre>
-<div class="block">Constructor.</div>
-<dl>
-<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>value</code> - The raw header value.</dd>
-</dl>
-</li>
-</ul>
-</li>
-</ul>
-<!-- ============ METHOD DETAIL ========== -->
-<ul class="blockList">
-<li class="blockList"><a name="method.detail">
-<!-- -->
-</a>
-<h3>Method Detail</h3>
-<a name="asURI--">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>asURI</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</a> <a href="../../../../src-html/org/apache/juneau/http/HeaderUrl.html#line.43">asURI</a>()</pre>
-<div class="block">Returns this header as a <a href="http://docs.oracle.com/javase/7/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net"><code>URI</code></a>.</div>
-<dl>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd>This header as a <a href="http://docs.oracle.com/javase/7/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net"><code>URI</code></a>.</dd>
-</dl>
-</li>
-</ul>
-<a name="asString--">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>asString</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/http/HeaderUrl.html#line.54">asString</a>()</pre>
-<div class="block">Returns this header as a simple string value.
- <p>
- Functionally equivalent to calling <a href="../../../../org/apache/juneau/http/HeaderUrl.html#toString--"><code>toString()</code></a>.</div>
-<dl>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd>This header as a simple string.</dd>
-</dl>
-</li>
-</ul>
-<a name="toString--">
-<!-- -->
-</a>
-<ul class="blockListLast">
-<li class="blockList">
-<h4>toString</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/http/HeaderUrl.html#line.59">toString</a>()</pre>
-<dl>
-<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
-<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a></code> in class <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
-</dl>
-</li>
-</ul>
-</li>
-</ul>
-</li>
-</ul>
-</div>
-</div>
-<!-- ========= END OF CLASS DATA ========= -->
-<!-- ======= START OF BOTTOM NAVBAR ====== -->
-<div class="bottomNav"><a name="navbar.bottom">
-<!-- -->
-</a>
-<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
-<a name="navbar.bottom.firstrow">
-<!-- -->
-</a>
-<ul class="navList" title="Navigation">
-<li><a href="../../../../overview-summary.html">Overview</a></li>
-<li><a href="package-summary.html">Package</a></li>
-<li class="navBarCell1Rev">Class</li>
-<li><a href="package-tree.html">Tree</a></li>
-<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
-<li><a href="../../../../index-all.html">Index</a></li>
-<li><a href="../../../../help-doc.html">Help</a></li>
-</ul>
-</div>
-<div class="subNav">
-<ul class="navList">
-<li><a href="../../../../org/apache/juneau/http/HeaderTimestamp.html" title="class in org.apache.juneau.http"><span class="typeNameLink">Prev Class</span></a></li>
-<li><a href="../../../../org/apache/juneau/http/HeaderValidator.html" title="class in org.apache.juneau.http"><span class="typeNameLink">Next Class</span></a></li>
-</ul>
-<ul class="navList">
-<li><a href="../../../../index.html?org/apache/juneau/http/HeaderUrl.html" target="_top">Frames</a></li>
-<li><a href="HeaderUrl.html" target="_top">No Frames</a></li>
-</ul>
-<ul class="navList" id="allclasses_navbar_bottom">
-<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
-</ul>
-<div>
-<script type="text/javascript"><!--
- allClassesLink = document.getElementById("allclasses_navbar_bottom");
- if(window==top) {
- allClassesLink.style.display = "block";
- }
- else {
- allClassesLink.style.display = "none";
- }
- //-->
-</script>
-</div>
-<div>
-<ul class="subNavList">
-<li>Summary: </li>
-<li>Nested | </li>
-<li>Field | </li>
-<li><a href="#constructor.summary">Constr</a> | </li>
-<li><a href="#method.summary">Method</a></li>
-</ul>
-<ul class="subNavList">
-<li>Detail: </li>
-<li>Field | </li>
-<li><a href="#constructor.detail">Constr</a> | </li>
-<li><a href="#method.detail">Method</a></li>
-</ul>
-</div>
-<a name="skip.navbar.bottom">
-<!-- -->
-</a></div>
-<!-- ======== END OF BOTTOM NAVBAR ======= -->
-<p class="legalCopy"><small>Copyright © 2017 <a href="http://www.apache.org/">Apache</a>. All rights reserved.</small></p>
-</body>
-</html>
[11/15] incubator-juneau-website git commit: Update javadocs.
Posted by ja...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/org/apache/juneau/rest/RestRequest.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/org/apache/juneau/rest/RestRequest.html b/content/site/apidocs/org/apache/juneau/rest/RestRequest.html
index 3195912..0bf0cd5 100644
--- a/content/site/apidocs/org/apache/juneau/rest/RestRequest.html
+++ b/content/site/apidocs/org/apache/juneau/rest/RestRequest.html
@@ -18,7 +18,7 @@
catch(err) {
}
//-->
-var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":10,"i48":10,"i49":10,"i50":10,"i51":10,"i52":10,"i53":10,"i54":10,"i55":10,"i56":10,"i57":10,"i58":10,"i59":10,"i60":10,"i61":10,"i62":10,"i63":10,"i64":10};
+var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":10,"i48":10,"i49":10,"i50":10,"i51":10,"i52":10,"i53":10,"i54":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
@@ -224,188 +224,147 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getFormData-java.lang.String-">getFormData</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</code>
-<div class="block">Convenience method for calling <code>getFormData().getFirst(name);</code>.</div>
+<div class="block">Shortcut for calling <code>getFormData().getFirst(name)</code>.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getFormData-java.lang.String-java.lang.String-">getFormData</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> def)</code>
-<div class="block">Convenience method for calling <code>getFormData().getFirst(name, def);</code>.</div>
-</td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getHeader-java.lang.String-">getHeader</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</code> </td>
</tr>
<tr id="i10" class="altColor">
-<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getHeader-java.lang.String-">getHeader</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</code>
-<div class="block">Convenience method for calling <code>getHeaders().getFirst(name);</code></div>
-</td>
-</tr>
-<tr id="i11" class="rowColor">
-<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getHeader-java.lang.String-java.lang.String-">getHeader</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> def)</code>
-<div class="block">Convenience method for calling <code>getHeaders().getFirst(name, def);</code></div>
-</td>
-</tr>
-<tr id="i12" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/rest/RequestHeaders.html" title="class in org.apache.juneau.rest">RequestHeaders</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getHeaders--">getHeaders</a></span>()</code>
<div class="block">Returns the headers on this request.</div>
</td>
</tr>
-<tr id="i13" class="rowColor">
+<tr id="i11" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Enumeration.html?is-external=true" title="class or interface in java.util">Enumeration</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getHeaders-java.lang.String-">getHeaders</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</code> </td>
</tr>
-<tr id="i14" class="altColor">
+<tr id="i12" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/http/HttpMethod.html" title="enum in org.apache.juneau.http">HttpMethod</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getHttpMethod--">getHttpMethod</a></span>()</code>
<div class="block">Returns the HTTP 1.1 method name of the request as an enum.</div>
</td>
</tr>
-<tr id="i15" class="rowColor">
+<tr id="i13" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletInputStream.html?is-external=true" title="class or interface in javax.servlet">ServletInputStream</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getInputStream--">getInputStream</a></span>()</code>
<div class="block">Returns the HTTP body content as an <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io"><code>InputStream</code></a>.</div>
</td>
</tr>
-<tr id="i16" class="altColor">
+<tr id="i14" class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect">Method</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getJavaMethod--">getJavaMethod</a></span>()</code>
<div class="block">Returns the java method handling the request.</div>
</td>
</tr>
-<tr id="i17" class="rowColor">
+<tr id="i15" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Locale.html?is-external=true" title="class or interface in java.util">Locale</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getLocale--">getLocale</a></span>()</code> </td>
</tr>
-<tr id="i18" class="altColor">
+<tr id="i16" class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Enumeration.html?is-external=true" title="class or interface in java.util">Enumeration</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Locale.html?is-external=true" title="class or interface in java.util">Locale</a>></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getLocales--">getLocales</a></span>()</code> </td>
</tr>
-<tr id="i19" class="rowColor">
+<tr id="i17" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getMessage-java.lang.String-java.lang.Object...-">getMessage</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>... args)</code>
<div class="block">Shortcut method for calling <a href="../../../../org/apache/juneau/utils/MessageBundle.html#getString-java.util.Locale-java.lang.String-java.lang.Object...-"><code>MessageBundle.getString(Locale, String, Object...)</code></a> based on the request locale.</div>
</td>
</tr>
-<tr id="i20" class="altColor">
+<tr id="i18" class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getMethod--">getMethod</a></span>()</code>
<div class="block">Returns the method of this request.</div>
</td>
</tr>
-<tr id="i21" class="rowColor">
+<tr id="i19" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getMethodDescription--">getMethodDescription</a></span>()</code>
<div class="block">Returns the localized method description.</div>
</td>
</tr>
-<tr id="i22" class="altColor">
+<tr id="i20" class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getMethodSummary--">getMethodSummary</a></span>()</code>
<div class="block">Returns the localized method summary.</div>
</td>
</tr>
-<tr id="i23" class="rowColor">
+<tr id="i21" class="rowColor">
<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getPageLinks--">getPageLinks</a></span>()</code>
<div class="block">Returns the localized page links for HTML views.</div>
</td>
</tr>
-<tr id="i24" class="altColor">
+<tr id="i22" class="altColor">
<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getPageText--">getPageText</a></span>()</code>
<div class="block">Returns the localized page text for HTML views.</div>
</td>
</tr>
-<tr id="i25" class="rowColor">
+<tr id="i23" class="rowColor">
<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getPageTitle--">getPageTitle</a></span>()</code>
<div class="block">Returns the localized page title for HTML views.</div>
</td>
</tr>
-<tr id="i26" class="altColor">
+<tr id="i24" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/parser/ParserGroup.html" title="class in org.apache.juneau.parser">ParserGroup</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getParserGroup--">getParserGroup</a></span>()</code>
<div class="block">Returns the parsers associated with this request.</div>
</td>
</tr>
-<tr id="i27" class="rowColor">
+<tr id="i25" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getPathInfoParts--">getPathInfoParts</a></span>()</code>
<div class="block">Returns the value <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServletRequestWrapper.html?is-external=true#getPathInfo--" title="class or interface in javax.servlet.http"><code>HttpServletRequestWrapper.getPathInfo()</code></a> split on the <js>'/'</js> character.</div>
</td>
</tr>
-<tr id="i28" class="altColor">
+<tr id="i26" class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getPathInfoUndecoded--">getPathInfoUndecoded</a></span>()</code>
<div class="block">Same as <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServletRequest.html?is-external=true#getPathInfo--" title="class or interface in javax.servlet.http"><code>HttpServletRequest.getPathInfo()</code></a> except returns the path undecoded.</div>
</td>
</tr>
-<tr id="i29" class="rowColor">
-<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getPathParameter-java.lang.String-">getPathParameter</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</code>
-<div class="block">Convenience method for calling <code>getPathParams().get(name);</code>.</div>
-</td>
-</tr>
-<tr id="i30" class="altColor">
-<td class="colFirst"><code><a href="../../../../org/apache/juneau/rest/RequestPathParams.html" title="class in org.apache.juneau.rest">RequestPathParams</a></code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getPathParams--">getPathParams</a></span>()</code>
+<tr id="i27" class="rowColor">
+<td class="colFirst"><code><a href="../../../../org/apache/juneau/rest/RequestPathMatch.html" title="class in org.apache.juneau.rest">RequestPathMatch</a></code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getPathMatch--">getPathMatch</a></span>()</code>
<div class="block">Retrieves the URL-encoded form data from the request if the body has already been cached locally.</div>
</td>
</tr>
-<tr id="i31" class="rowColor">
-<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getPathRemainder--">getPathRemainder</a></span>()</code>
-<div class="block">Returns the decoded remainder of the URL following any path pattern matches.</div>
-</td>
-</tr>
-<tr id="i32" class="altColor">
-<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getPathRemainderUndecoded--">getPathRemainderUndecoded</a></span>()</code>
-<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RestRequest.html#getPathRemainder--"><code>getPathRemainder()</code></a> but doesn't decode characters.</div>
-</td>
-</tr>
-<tr id="i33" class="rowColor">
+<tr id="i28" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau">ObjectMap</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getProperties--">getProperties</a></span>()</code>
<div class="block">Retrieve the properties active for this request.</div>
</td>
</tr>
-<tr id="i34" class="altColor">
+<tr id="i29" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/rest/RequestQuery.html" title="class in org.apache.juneau.rest">RequestQuery</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getQuery--">getQuery</a></span>()</code>
<div class="block">Equivalent to <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletRequestWrapper.html?is-external=true#getParameterMap--" title="class or interface in javax.servlet"><code>ServletRequestWrapper.getParameterMap()</code></a>, but only looks for query parameters in the URL, not form posts.</div>
</td>
</tr>
-<tr id="i35" class="rowColor">
+<tr id="i30" class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getQuery-java.lang.String-">getQuery</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</code>
-<div class="block">Convenience method for calling <code>getQueryParams().getFirst(name);</code></div>
-</td>
-</tr>
-<tr id="i36" class="altColor">
-<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getQuery-java.lang.String-java.lang.String-">getQuery</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> def)</code>
-<div class="block">Convenience method for calling <code>getQueryParams().getFirst(name, def);</code></div>
+<div class="block">Shortcut for calling <code>getQuery().getFirst(name)</code>.</div>
</td>
</tr>
-<tr id="i37" class="rowColor">
+<tr id="i31" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/BufferedReader.html?is-external=true" title="class or interface in java.io">BufferedReader</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getReader--">getReader</a></span>()</code>
<div class="block">Returns the HTTP body content as a <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io"><code>Reader</code></a>.</div>
</td>
</tr>
-<tr id="i38" class="altColor">
+<tr id="i32" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/rest/ReaderResource.html" title="class in org.apache.juneau.rest">ReaderResource</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getReaderResource-java.lang.String-">getReaderResource</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</code>
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RestRequest.html#getReaderResource-java.lang.String-boolean-"><code>getReaderResource(String, boolean)</code></a> with <code>resolveVars == <jk>false</jk></code></div>
</td>
</tr>
-<tr id="i39" class="rowColor">
+<tr id="i33" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/rest/ReaderResource.html" title="class in org.apache.juneau.rest">ReaderResource</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getReaderResource-java.lang.String-boolean-">getReaderResource</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
boolean resolveVars)</code>
@@ -413,7 +372,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
constructed using <a href="../../../../org/apache/juneau/rest/RestConfig.html#addMimeTypes-java.lang.String...-"><code>RestConfig.addMimeTypes(String...)</code></a> to determine the media type.</div>
</td>
</tr>
-<tr id="i40" class="altColor">
+<tr id="i34" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/rest/ReaderResource.html" title="class in org.apache.juneau.rest">ReaderResource</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getReaderResource-java.lang.String-boolean-org.apache.juneau.http.MediaType-">getReaderResource</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
boolean resolveVars,
@@ -421,149 +380,121 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<div class="block">Returns an instance of a <a href="../../../../org/apache/juneau/rest/ReaderResource.html" title="class in org.apache.juneau.rest"><code>ReaderResource</code></a> that represents the contents of a resource text file from the classpath.</div>
</td>
</tr>
-<tr id="i41" class="rowColor">
+<tr id="i35" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getRelativeServletURI--">getRelativeServletURI</a></span>()</code>
<div class="block">Gets the path-absolute relative URI of the servlet (e.g.</div>
</td>
</tr>
-<tr id="i42" class="altColor">
+<tr id="i36" class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getRequestParentURI--">getRequestParentURI</a></span>()</code>
<div class="block">Returns the URI of the parent resource.</div>
</td>
</tr>
-<tr id="i43" class="rowColor">
+<tr id="i37" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/utils/MessageBundle.html" title="class in org.apache.juneau.utils">MessageBundle</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getResourceBundle--">getResourceBundle</a></span>()</code>
<div class="block">Returns the resource bundle for the request locale.</div>
</td>
</tr>
-<tr id="i44" class="altColor">
+<tr id="i38" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/serializer/SerializerGroup.html" title="class in org.apache.juneau.serializer">SerializerGroup</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getSerializerGroup--">getSerializerGroup</a></span>()</code>
<div class="block">Returns the serializers associated with this request.</div>
</td>
</tr>
-<tr id="i45" class="rowColor">
+<tr id="i39" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getServletDescription--">getServletDescription</a></span>()</code>
<div class="block">Returns the localized servlet description.</div>
</td>
</tr>
-<tr id="i46" class="altColor">
+<tr id="i40" class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getServletParentURI--">getServletParentURI</a></span>()</code>
<div class="block">Returns the URI of the parent of this servlet.</div>
</td>
</tr>
-<tr id="i47" class="rowColor">
+<tr id="i41" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getServletTitle--">getServletTitle</a></span>()</code>
<div class="block">Returns the localized servlet title.</div>
</td>
</tr>
-<tr id="i48" class="altColor">
+<tr id="i42" class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getServletURI--">getServletURI</a></span>()</code>
<div class="block">Gets the URI of the servlet (e.g.</div>
</td>
</tr>
-<tr id="i49" class="rowColor">
+<tr id="i43" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/StringBuffer.html?is-external=true" title="class or interface in java.lang">StringBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getServletURIBuilder--">getServletURIBuilder</a></span>()</code>
<div class="block">Returns a <code>StringBuffer</code> prefilled with the string <code><js>"/[contextPath]/[servletPath]"</js></code>.</div>
</td>
</tr>
-<tr id="i50" class="altColor">
+<tr id="i44" class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a>></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getSupportedMediaTypes--">getSupportedMediaTypes</a></span>()</code>
<div class="block">Returns the media types that are valid for <code>Content-Type</code> headers on the request.</div>
</td>
</tr>
-<tr id="i51" class="rowColor">
+<tr id="i45" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/dto/swagger/Swagger.html" title="class in org.apache.juneau.dto.swagger">Swagger</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getSwagger--">getSwagger</a></span>()</code>
<div class="block">Returns the localized swagger associated with the servlet.</div>
</td>
</tr>
-<tr id="i52" class="altColor">
+<tr id="i46" class="altColor">
<td class="colFirst"><code>protected <a href="../../../../org/apache/juneau/dto/swagger/Swagger.html" title="class in org.apache.juneau.dto.swagger">Swagger</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getSwaggerFromFile--">getSwaggerFromFile</a></span>()</code>
<div class="block">Returns the localized Swagger from the file system.</div>
</td>
</tr>
-<tr id="i53" class="rowColor">
+<tr id="i47" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getTrimmedRequestURI--">getTrimmedRequestURI</a></span>()</code>
<div class="block">Same as <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServletRequestWrapper.html?is-external=true#getRequestURI--" title="class or interface in javax.servlet.http"><code>HttpServletRequestWrapper.getRequestURI()</code></a> but trims trailing slashes from the result.</div>
</td>
</tr>
-<tr id="i54" class="altColor">
+<tr id="i48" class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/StringBuffer.html?is-external=true" title="class or interface in java.lang">StringBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getTrimmedRequestURL--">getTrimmedRequestURL</a></span>()</code>
<div class="block">Same as <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServletRequestWrapper.html?is-external=true#getRequestURL--" title="class or interface in javax.servlet.http"><code>HttpServletRequestWrapper.getRequestURL()</code></a> but trims trailing slashes from the result.</div>
</td>
</tr>
-<tr id="i55" class="rowColor">
+<tr id="i49" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getURL-java.lang.String-">getURL</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path)</code>
<div class="block">Returns a resolved URL.</div>
</td>
</tr>
-<tr id="i56" class="altColor">
+<tr id="i50" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/svl/VarResolverSession.html" title="class in org.apache.juneau.svl">VarResolverSession</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#getVarResolverSession--">getVarResolverSession</a></span>()</code>
<div class="block">Returns the variable resolver session for this request using session objects created by <a href="../../../../org/apache/juneau/rest/RestCallHandler.html#getSessionObjects-org.apache.juneau.rest.RestRequest-"><code>RestCallHandler.getSessionObjects(RestRequest)</code></a>.</div>
</td>
</tr>
-<tr id="i57" class="rowColor">
+<tr id="i51" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#isPlainText--">isPlainText</a></span>()</code>
<div class="block">Returns <jk>true</jk> if <code>&plainText=true</code> was specified as a URL parameter.</div>
</td>
</tr>
-<tr id="i58" class="altColor">
+<tr id="i52" class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#resolveVars-java.lang.String-">resolveVars</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> input)</code>
<div class="block">Shortcut for calling <code>getVarResolverSession().resolve(input)</code>.</div>
</td>
</tr>
-<tr id="i59" class="rowColor">
+<tr id="i53" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#setCharacterEncoding-java.lang.String-">setCharacterEncoding</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> charset)</code>
<div class="block">Sets the charset to expect on the request body.</div>
</td>
</tr>
-<tr id="i60" class="altColor">
-<td class="colFirst"><code>void</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#setFormData-java.lang.String-java.lang.Object-">setFormData</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
-<div class="block">Convenience method for calling <code>getFormData().put(name, value);</code>.</div>
-</td>
-</tr>
-<tr id="i61" class="rowColor">
-<td class="colFirst"><code>void</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#setHeader-java.lang.String-java.lang.Object-">setHeader</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
-<div class="block">Convenience method for calling <code>getHeaders().put(name, value);</code></div>
-</td>
-</tr>
-<tr id="i62" class="altColor">
-<td class="colFirst"><code>void</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#setPathParameter-java.lang.String-java.lang.String-">setPathParameter</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</code>
-<div class="block">Convenience method for calling <code>getPathParams().put(name, value);</code>.</div>
-</td>
-</tr>
-<tr id="i63" class="rowColor">
-<td class="colFirst"><code>void</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#setQuery-java.lang.String-java.lang.Object-">setQuery</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
-<div class="block">Convenience method for calling <code>getQueryParams().put(name, value);</code>.</div>
-</td>
-</tr>
-<tr id="i64" class="altColor">
+<tr id="i54" class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestRequest.html#toString--">toString</a></span>()</code> </td>
</tr>
@@ -616,7 +547,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getDescription</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.198">getDescription</a>()</pre>
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.202">getDescription</a>()</pre>
<div class="block">Returns a string of the form <js>"HTTP method-name full-url"</js></div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -630,7 +561,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getProperties</h4>
-<pre>public <a href="../../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau">ObjectMap</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.223">getProperties</a>()</pre>
+<pre>public <a href="../../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau">ObjectMap</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.227">getProperties</a>()</pre>
<div class="block">Retrieve the properties active for this request.
<p>
These properties can be modified by the request.</div>
@@ -646,7 +577,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getHeaders</h4>
-<pre>public <a href="../../../../org/apache/juneau/rest/RequestHeaders.html" title="class in org.apache.juneau.rest">RequestHeaders</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.237">getHeaders</a>()</pre>
+<pre>public <a href="../../../../org/apache/juneau/rest/RequestHeaders.html" title="class in org.apache.juneau.rest">RequestHeaders</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.241">getHeaders</a>()</pre>
<div class="block">Returns the headers on this request.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -654,30 +585,13 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
</dl>
</li>
</ul>
-<a name="setHeader-java.lang.String-java.lang.Object-">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>setHeader</h4>
-<pre>public void <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.247">setHeader</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</pre>
-<div class="block">Convenience method for calling <code>getHeaders().put(name, value);</code></div>
-<dl>
-<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>name</code> - The header name.</dd>
-<dd><code>value</code> - The header value.</dd>
-</dl>
-</li>
-</ul>
<a name="getHeader-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHeader</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.255">getHeader</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre>
-<div class="block">Convenience method for calling <code>getHeaders().getFirst(name);</code></div>
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.246">getHeader</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServletRequest.html?is-external=true#getHeader-java.lang.String-" title="class or interface in javax.servlet.http">getHeader</a></code> in interface <code><a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServletRequest.html?is-external=true" title="class or interface in javax.servlet.http">HttpServletRequest</a></code></dd>
@@ -686,31 +600,13 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
</dl>
</li>
</ul>
-<a name="getHeader-java.lang.String-java.lang.String-">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>getHeader</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.266">getHeader</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> def)</pre>
-<div class="block">Convenience method for calling <code>getHeaders().getFirst(name, def);</code></div>
-<dl>
-<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>name</code> - The HTTP header name.</dd>
-<dd><code>def</code> - The default value to return if the header value isn't found.</dd>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd>The header value, or the default value if the header isn't present.</dd>
-</dl>
-</li>
-</ul>
<a name="getHeaders-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHeaders</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Enumeration.html?is-external=true" title="class or interface in java.util">Enumeration</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.271">getHeaders</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre>
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Enumeration.html?is-external=true" title="class or interface in java.util">Enumeration</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.251">getHeaders</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServletRequest.html?is-external=true#getHeaders-java.lang.String-" title="class or interface in javax.servlet.http">getHeaders</a></code> in interface <code><a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServletRequest.html?is-external=true" title="class or interface in javax.servlet.http">HttpServletRequest</a></code></dd>
@@ -725,7 +621,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getSupportedMediaTypes</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a>> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.283">getSupportedMediaTypes</a>()</pre>
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a>> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.263">getSupportedMediaTypes</a>()</pre>
<div class="block">Returns the media types that are valid for <code>Content-Type</code> headers on the request.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -739,7 +635,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>setCharacterEncoding</h4>
-<pre>public void <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.291">setCharacterEncoding</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> charset)</pre>
+<pre>public void <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.271">setCharacterEncoding</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> charset)</pre>
<div class="block">Sets the charset to expect on the request body.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
@@ -755,7 +651,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getCharacterEncoding</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.299">getCharacterEncoding</a>()</pre>
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.279">getCharacterEncoding</a>()</pre>
<div class="block">Returns the charset specified on the <code>Content-Type</code> header, or <js>"UTF-8"</js> if not specified.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
@@ -771,7 +667,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getLocale</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Locale.html?is-external=true" title="class or interface in java.util">Locale</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.319">getLocale</a>()</pre>
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Locale.html?is-external=true" title="class or interface in java.util">Locale</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.299">getLocale</a>()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletRequest.html?is-external=true#getLocale--" title="class or interface in javax.servlet">getLocale</a></code> in interface <code><a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletRequest.html?is-external=true" title="class or interface in javax.servlet">ServletRequest</a></code></dd>
@@ -786,7 +682,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getLocales</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Enumeration.html?is-external=true" title="class or interface in java.util">Enumeration</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Locale.html?is-external=true" title="class or interface in java.util">Locale</a>> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.330">getLocales</a>()</pre>
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Enumeration.html?is-external=true" title="class or interface in java.util">Enumeration</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Locale.html?is-external=true" title="class or interface in java.util">Locale</a>> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.310">getLocales</a>()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletRequest.html?is-external=true#getLocales--" title="class or interface in javax.servlet">getLocales</a></code> in interface <code><a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletRequest.html?is-external=true" title="class or interface in javax.servlet">ServletRequest</a></code></dd>
@@ -801,7 +697,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getQuery</h4>
-<pre>public <a href="../../../../org/apache/juneau/rest/RequestQuery.html" title="class in org.apache.juneau.rest">RequestQuery</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.358">getQuery</a>()</pre>
+<pre>public <a href="../../../../org/apache/juneau/rest/RequestQuery.html" title="class in org.apache.juneau.rest">RequestQuery</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.338">getQuery</a>()</pre>
<div class="block">Equivalent to <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletRequestWrapper.html?is-external=true#getParameterMap--" title="class or interface in javax.servlet"><code>ServletRequestWrapper.getParameterMap()</code></a>, but only looks for query parameters in the URL, not form posts.
<p>
This method can be used to retrieve query parameters without triggering the underlying servlet API to load and parse the request body.
@@ -813,53 +709,19 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
</dl>
</li>
</ul>
-<a name="setQuery-java.lang.String-java.lang.Object-">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>setQuery</h4>
-<pre>public void <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.368">setQuery</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</pre>
-<div class="block">Convenience method for calling <code>getQueryParams().put(name, value);</code>.</div>
-<dl>
-<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>name</code> - The parameter name.</dd>
-<dd><code>value</code> - The parameter value.</dd>
-</dl>
-</li>
-</ul>
<a name="getQuery-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getQuery</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.378">getQuery</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre>
-<div class="block">Convenience method for calling <code>getQueryParams().getFirst(name);</code></div>
-<dl>
-<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>name</code> - The URL parameter name.</dd>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd>The parameter value, or <jk>null</jk> if parameter not specified or has no value (e.g. <js>"&foo"</js>.</dd>
-</dl>
-</li>
-</ul>
-<a name="getQuery-java.lang.String-java.lang.String-">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>getQuery</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.389">getQuery</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> def)</pre>
-<div class="block">Convenience method for calling <code>getQueryParams().getFirst(name, def);</code></div>
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.347">getQuery</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre>
+<div class="block">Shortcut for calling <code>getQuery().getFirst(name)</code>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>name</code> - The URL parameter name.</dd>
-<dd><code>def</code> - The default value.</dd>
+<dd><code>name</code> - The query parameter name.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
-<dd>The parameter value, or the default value if parameter not specified or has no value (e.g. <js>"&foo"</js>.</dd>
+<dd>The query parameter value, or <jk>null<jk> if not found.</dd>
</dl>
</li>
</ul>
@@ -869,7 +731,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getFormData</h4>
-<pre>public <a href="../../../../org/apache/juneau/rest/RequestFormData.html" title="class in org.apache.juneau.rest">RequestFormData</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.403">getFormData</a>()</pre>
+<pre>public <a href="../../../../org/apache/juneau/rest/RequestFormData.html" title="class in org.apache.juneau.rest">RequestFormData</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.361">getFormData</a>()</pre>
<div class="block">Retrieves the URL-encoded form data from the request if the body has already been cached locally.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -877,63 +739,29 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
</dl>
</li>
</ul>
-<a name="setFormData-java.lang.String-java.lang.Object-">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>setFormData</h4>
-<pre>public void <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.429">setFormData</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</pre>
-<div class="block">Convenience method for calling <code>getFormData().put(name, value);</code>.</div>
-<dl>
-<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>name</code> - The parameter name.</dd>
-<dd><code>value</code> - The parameter value.</dd>
-</dl>
-</li>
-</ul>
<a name="getFormData-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFormData</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.439">getFormData</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre>
-<div class="block">Convenience method for calling <code>getFormData().getFirst(name);</code>.</div>
-<dl>
-<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>name</code> - The form data parameter name.</dd>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd>The parameter value, or <jk>null</jk> if parameter does not exist.</dd>
-</dl>
-</li>
-</ul>
-<a name="getFormData-java.lang.String-java.lang.String-">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>getFormData</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.450">getFormData</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> def)</pre>
-<div class="block">Convenience method for calling <code>getFormData().getFirst(name, def);</code>.</div>
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.387">getFormData</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre>
+<div class="block">Shortcut for calling <code>getFormData().getFirst(name)</code>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>name</code> - The form data parameter name.</dd>
-<dd><code>def</code> - The default value.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
-<dd>The parameter value, or the default value if <jk>null</jk> or empty.</dd>
+<dd>The form data parameter value, or <jk>null<jk> if not found.</dd>
</dl>
</li>
</ul>
-<a name="getPathParams--">
+<a name="getPathMatch--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
-<h4>getPathParams</h4>
-<pre>public <a href="../../../../org/apache/juneau/rest/RequestPathParams.html" title="class in org.apache.juneau.rest">RequestPathParams</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.464">getPathParams</a>()</pre>
+<h4>getPathMatch</h4>
+<pre>public <a href="../../../../org/apache/juneau/rest/RequestPathMatch.html" title="class in org.apache.juneau.rest">RequestPathMatch</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.401">getPathMatch</a>()</pre>
<div class="block">Retrieves the URL-encoded form data from the request if the body has already been cached locally.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -941,45 +769,13 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
</dl>
</li>
</ul>
-<a name="setPathParameter-java.lang.String-java.lang.String-">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>setPathParameter</h4>
-<pre>public void <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.474">setPathParameter</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</pre>
-<div class="block">Convenience method for calling <code>getPathParams().put(name, value);</code>.</div>
-<dl>
-<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>name</code> - The parameter name.</dd>
-<dd><code>value</code> - The parameter value.</dd>
-</dl>
-</li>
-</ul>
-<a name="getPathParameter-java.lang.String-">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>getPathParameter</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.484">getPathParameter</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre>
-<div class="block">Convenience method for calling <code>getPathParams().get(name);</code>.</div>
-<dl>
-<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>name</code> - The parameter name.</dd>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd>The parameter value, or <jk>null</jk> if path parameter not specified.</dd>
-</dl>
-</li>
-</ul>
<a name="getBody--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBody</h4>
-<pre>public <a href="../../../../org/apache/juneau/rest/RequestBody.html" title="class in org.apache.juneau.rest">RequestBody</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.498">getBody</a>()</pre>
+<pre>public <a href="../../../../org/apache/juneau/rest/RequestBody.html" title="class in org.apache.juneau.rest">RequestBody</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.415">getBody</a>()</pre>
<div class="block">Returns the body of this HTTP request.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -993,7 +789,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getReader</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/io/BufferedReader.html?is-external=true" title="class or interface in java.io">BufferedReader</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.510">getReader</a>()
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/io/BufferedReader.html?is-external=true" title="class or interface in java.io">BufferedReader</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.427">getReader</a>()
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Returns the HTTP body content as a <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io"><code>Reader</code></a>.
<p>
@@ -1016,7 +812,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getInputStream</h4>
-<pre>public <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletInputStream.html?is-external=true" title="class or interface in javax.servlet">ServletInputStream</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.524">getInputStream</a>()
+<pre>public <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletInputStream.html?is-external=true" title="class or interface in javax.servlet">ServletInputStream</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.441">getInputStream</a>()
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Returns the HTTP body content as an <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io"><code>InputStream</code></a>.
<p>
@@ -1040,7 +836,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getPathInfoUndecoded</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.542">getPathInfoUndecoded</a>()</pre>
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.459">getPathInfoUndecoded</a>()</pre>
<div class="block">Same as <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServletRequest.html?is-external=true#getPathInfo--" title="class or interface in javax.servlet.http"><code>HttpServletRequest.getPathInfo()</code></a> except returns the path undecoded.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -1054,7 +850,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getPathInfoParts</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.555">getPathInfoParts</a>()</pre>
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.472">getPathInfoParts</a>()</pre>
<div class="block">Returns the value <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServletRequestWrapper.html?is-external=true#getPathInfo--" title="class or interface in javax.servlet.http"><code>HttpServletRequestWrapper.getPathInfo()</code></a> split on the <js>'/'</js> character.
<p>
If path info is <jk>null</jk>, returns an empty list.
@@ -1072,7 +868,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getURL</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.587">getURL</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path)
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.504">getURL</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path)
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/net/MalformedURLException.html?is-external=true" title="class or interface in java.net">MalformedURLException</a></pre>
<div class="block">Returns a resolved URL.
<p>
@@ -1097,7 +893,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getServletParentURI</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.600">getServletParentURI</a>()</pre>
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.517">getServletParentURI</a>()</pre>
<div class="block">Returns the URI of the parent of this servlet.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -1105,90 +901,13 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
</dl>
</li>
</ul>
-<a name="getPathRemainder--">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>getPathRemainder</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.659">getPathRemainder</a>()</pre>
-<div class="block">Returns the decoded remainder of the URL following any path pattern matches.
- <p>
- The behavior of path remainder is shown below given the path pattern "/foo/*":
- <p>
- <table class='styled'>
- <tr>
- <th>URL</th>
- <th>Path Remainder</th>
- </tr>
- <tr>
- <td><code>/foo</code></td>
- <td><jk>null</jk></td>
- </tr>
- <tr>
- <td><code>/foo/</code></td>
- <td><js>""</js></td>
- </tr>
- <tr>
- <td><code>/foo//</code></td>
- <td><js>"/"</js></td>
- </tr>
- <tr>
- <td><code>/foo///</code></td>
- <td><js>"//"</js></td>
- </tr>
- <tr>
- <td><code>/foo/a/b</code></td>
- <td><js>"a/b"</js></td>
- </tr>
- <tr>
- <td><code>/foo//a/b/</code></td>
- <td><js>"/a/b/"</js></td>
- </tr>
- <tr>
- <td><code>/foo/a%2Fb</code></td>
- <td><js>"a/b"</js></td>
- </tr>
- </table>
-
- <h5 class='section'>Example:</h5>
- <p class='bcode'>
- <jc>// REST method</jc>
- <ja>@RestMethod</ja>(name=<js>"GET"</js>,path=<js>"/foo/{bar}/*"</js>)
- <jk>public</jk> doGetById(RestServlet res, RestResponse res, <jk>int</jk> bar) {
- System.<jsm>err</jsm>.println(res.getRemainder());
- }
-
- <jc>// Prints "path/remainder"</jc>
- <jk>new</jk> RestCall(servletPath + <js>"/foo/123/path/remainder"</js>).connect();
- </p></div>
-<dl>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd>The path remainder string.</dd>
-</dl>
-</li>
-</ul>
-<a name="getPathRemainderUndecoded--">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>getPathRemainderUndecoded</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.668">getPathRemainderUndecoded</a>()</pre>
-<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RestRequest.html#getPathRemainder--"><code>getPathRemainder()</code></a> but doesn't decode characters.</div>
-<dl>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd>The undecoded path remainder.</dd>
-</dl>
-</li>
-</ul>
<a name="getRequestParentURI--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRequestParentURI</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.711">getRequestParentURI</a>()</pre>
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.561">getRequestParentURI</a>()</pre>
<div class="block">Returns the URI of the parent resource.
<p>
Trailing slashes in the path are ignored by this method.
@@ -1236,7 +955,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getTrimmedRequestURI</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.726">getTrimmedRequestURI</a>()</pre>
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.576">getTrimmedRequestURI</a>()</pre>
<div class="block">Same as <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServletRequestWrapper.html?is-external=true#getRequestURI--" title="class or interface in javax.servlet.http"><code>HttpServletRequestWrapper.getRequestURI()</code></a> but trims trailing slashes from the result.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -1250,7 +969,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getTrimmedRequestURL</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/StringBuffer.html?is-external=true" title="class or interface in java.lang">StringBuffer</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.735">getTrimmedRequestURL</a>()</pre>
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/StringBuffer.html?is-external=true" title="class or interface in java.lang">StringBuffer</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.585">getTrimmedRequestURL</a>()</pre>
<div class="block">Same as <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServletRequestWrapper.html?is-external=true#getRequestURL--" title="class or interface in javax.servlet.http"><code>HttpServletRequestWrapper.getRequestURL()</code></a> but trims trailing slashes from the result.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -1264,7 +983,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getServletURI</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.744">getServletURI</a>()</pre>
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.594">getServletURI</a>()</pre>
<div class="block">Gets the URI of the servlet (e.g. <js>"https://localhost:9080/contextPath/servletPath"</js>).</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -1278,7 +997,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getRelativeServletURI</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.759">getRelativeServletURI</a>()</pre>
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.609">getRelativeServletURI</a>()</pre>
<div class="block">Gets the path-absolute relative URI of the servlet (e.g. <js>"/contextPath/servletPath"</js>).</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -1292,7 +1011,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getServletURIBuilder</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/StringBuffer.html?is-external=true" title="class or interface in java.lang">StringBuffer</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.770">getServletURIBuilder</a>()</pre>
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/StringBuffer.html?is-external=true" title="class or interface in java.lang">StringBuffer</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.620">getServletURIBuilder</a>()</pre>
<div class="block">Returns a <code>StringBuffer</code> prefilled with the string <code><js>"/[contextPath]/[servletPath]"</js></code>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -1306,7 +1025,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getServletTitle</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.786">getServletTitle</a>()</pre>
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.636">getServletTitle</a>()</pre>
<div class="block">Returns the localized servlet title.
<p>
Equivalent to calling <a href="../../../../org/apache/juneau/rest/RestInfoProvider.html#getTitle-org.apache.juneau.rest.RestRequest-"><code>RestInfoProvider.getTitle(RestRequest)</code></a> with this object.</div>
@@ -1322,7 +1041,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getServletDescription</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.797">getServletDescription</a>()</pre>
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.647">getServletDescription</a>()</pre>
<div class="block">Returns the localized servlet description.
<p>
Equivalent to calling <a href="../../../../org/apache/juneau/rest/RestInfoProvider.html#getDescription-org.apache.juneau.rest.RestRequest-"><code>RestInfoProvider.getDescription(RestRequest)</code></a> with this object.</div>
@@ -1338,7 +1057,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getMethodSummary</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.808">getMethodSummary</a>()</pre>
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.658">getMethodSummary</a>()</pre>
<div class="block">Returns the localized method summary.
<p>
Equivalent to calling <a href="../../../../org/apache/juneau/rest/RestInfoProvider.html#getMethodSummary-java.lang.String-org.apache.juneau.rest.RestRequest-"><code>RestInfoProvider.getMethodSummary(String, RestRequest)</code></a> with this object.</div>
@@ -1354,7 +1073,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getMethodDescription</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.819">getMethodDescription</a>()</pre>
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.669">getMethodDescription</a>()</pre>
<div class="block">Returns the localized method description.
<p>
Equivalent to calling <a href="../../../../org/apache/juneau/rest/RestInfoProvider.html#getMethodDescription-java.lang.String-org.apache.juneau.rest.RestRequest-"><code>RestInfoProvider.getMethodDescription(String, RestRequest)</code></a> with this object.</div>
@@ -1370,7 +1089,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getPageTitle</h4>
-<pre>protected <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.828">getPageTitle</a>()</pre>
+<pre>protected <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.678">getPageTitle</a>()</pre>
<div class="block">Returns the localized page title for HTML views.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -1384,7 +1103,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getPageText</h4>
-<pre>protected <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.845">getPageText</a>()</pre>
+<pre>protected <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.695">getPageText</a>()</pre>
<div class="block">Returns the localized page text for HTML views.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -1398,7 +1117,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getPageLinks</h4>
-<pre>protected <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.864">getPageLinks</a>()</pre>
+<pre>protected <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.714">getPageLinks</a>()</pre>
<div class="block">Returns the localized page links for HTML views.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -1412,7 +1131,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getSerializerGroup</h4>
-<pre>public <a href="../../../../org/apache/juneau/serializer/SerializerGroup.html" title="class in org.apache.juneau.serializer">SerializerGroup</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.883">getSerializerGroup</a>()</pre>
+<pre>public <a href="../../../../org/apache/juneau/serializer/SerializerGroup.html" title="class in org.apache.juneau.serializer">SerializerGroup</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.733">getSerializerGroup</a>()</pre>
<div class="block">Returns the serializers associated with this request.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -1426,7 +1145,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getParserGroup</h4>
-<pre>public <a href="../../../../org/apache/juneau/parser/ParserGroup.html" title="class in org.apache.juneau.parser">ParserGroup</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.892">getParserGroup</a>()</pre>
+<pre>public <a href="../../../../org/apache/juneau/parser/ParserGroup.html" title="class in org.apache.juneau.parser">ParserGroup</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.742">getParserGroup</a>()</pre>
<div class="block">Returns the parsers associated with this request.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -1440,7 +1159,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getMethod</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.903">getMethod</a>()</pre>
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestRequest.html#line.753">getMethod</a>()</pre>
<div class="block">Returns the method of this request.
<p>
If <code>allowHeaderParams</code> init parameter is <jk>true</jk>, then first looks for <code>&method=xxx</code> in the URL query string.</div>
@@ -1458,7 +1177,7 @@ extends <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServ
<ul class="blockList">
<li class="blockList">
<h4>getHttpMethod</h4>
-<pre>public <a href="../../../..
<TRUNCATED>
[09/15] incubator-juneau-website git commit: Update javadocs.
Posted by ja...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/org/apache/juneau/rest/client/RestCall.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/org/apache/juneau/rest/client/RestCall.html b/content/site/apidocs/org/apache/juneau/rest/client/RestCall.html
index a6a1c4c..33634fe 100644
--- a/content/site/apidocs/org/apache/juneau/rest/client/RestCall.html
+++ b/content/site/apidocs/org/apache/juneau/rest/client/RestCall.html
@@ -18,7 +18,7 @@
catch(err) {
}
//-->
-var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":42,"i14":10,"i15":10,"i16":10,"i17":42,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":10,"i48":10,"i49":10,"i50":10,"i51":10,"i52":10,"i53":10,"i54":10,"i55":10,"i56":10,"i57":10,"i58":10,"i59":10,"i60":10,"i61":10,"i62":10,"i63":10,"i64":10,"i65":10,"i66":10,"i67":10,"i68":10,"i69":10,"i70":10,"i71":10,"i72":10,"i73":10,"i74":10,"i75":10,"i76":10,"i77":10,"i78":10,"i79":10,"i80":10,"i81":10,"i82":10,"i83":10,"i84":10,"i85":10,"i86":10,"i87":10,"i88":10,"i89":10,"i90":10,"i91":10,"i92":10,"i93":10,"i94":10,"i95":10,"i96":10,"i97":10,"i98":10,"i99":10};
+var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":42,"i14":10,"i15":10,"i16":10,"i17":10,"i18":42,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":10,"i48":10,"i49":10,"i50":10,"i51":10,"i52":10,"i53":10,"i54":10,"i55":10,"i56":10,"i57":10,"i58":10,"i59":10,"i60":10,"i61":10,"i62":10,"i63":10,"i64":10,"i65":10,"i66":10,"i67":10,"i68":10,"i69":10,"i70":10,"i71":10,"i72":10,"i73":10,"i74":10,"i75":10,"i76":10,"i77":10,"i78":10,"i79":10,"i80":10,"i81":10,"i82":10,"i83":10,"i84":10,"i85":10,"i86":10,"i87":10,"i88":10,"i89":10,"i90":10,"i91":10,"i92":10,"i93":10,"i94":10,"i95":10,"i96":10,"i97":10,"i98":10,"i99":10,"i100":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
@@ -273,6 +273,12 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?
</td>
</tr>
<tr id="i17" class="rowColor">
+<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#debug-boolean-">debug</a></span>(boolean value)</code>
+<div class="block">Sets <code>Debug: value</code> header on this request.</div>
+</td>
+</tr>
+<tr id="i18" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#execute--">execute</a></span>()</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
@@ -280,38 +286,38 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?
</div>
</td>
</tr>
-<tr id="i18" class="altColor">
+<tr id="i19" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#expect-java.lang.Object-">expect</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
<div class="block">Sets the value for the <code>Expect</code> request header.</div>
</td>
</tr>
-<tr id="i19" class="rowColor">
+<tr id="i20" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#failurePattern-java.lang.String-">failurePattern</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> errorPattern)</code>
<div class="block">Look for the specified regular expression pattern in the response output.</div>
</td>
</tr>
-<tr id="i20" class="altColor">
+<tr id="i21" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#formData-java.util.Map-">formData</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> params)</code>
<div class="block">Adds form data pairs to this request to perform a URL-encoded form post.</div>
</td>
</tr>
-<tr id="i21" class="rowColor">
+<tr id="i22" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#formData-org.apache.juneau.rest.client.NameValuePairs-">formData</a></span>(<a href="../../../../../org/apache/juneau/rest/client/NameValuePairs.html" title="class in org.apache.juneau.rest.client">NameValuePairs</a> nameValuePairs)</code>
<div class="block">Adds form data pairs to this request to perform a URL-encoded form post.</div>
</td>
</tr>
-<tr id="i22" class="altColor">
+<tr id="i23" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#formData-java.lang.String-java.lang.Object-">formData</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
<div class="block">Adds a form data pair to this request to perform a URL-encoded form post.</div>
</td>
</tr>
-<tr id="i23" class="rowColor">
+<tr id="i24" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#formData-java.lang.String-java.lang.Object-boolean-">formData</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value,
@@ -319,155 +325,155 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?
<div class="block">Adds a form data pair to this request to perform a URL-encoded form post.</div>
</td>
</tr>
-<tr id="i24" class="altColor">
+<tr id="i25" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#formDataIfNE-java.util.Map-">formDataIfNE</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> params)</code>
<div class="block">Adds form data parameters to the request for any parameters that aren't null/empty.</div>
</td>
</tr>
-<tr id="i25" class="rowColor">
+<tr id="i26" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#formDataIfNE-java.lang.String-java.lang.Object-">formDataIfNE</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
<div class="block">Adds a form data pair to the request if the parameter value is not <jk>null</jk> or an empty string.</div>
</td>
</tr>
-<tr id="i26" class="altColor">
+<tr id="i27" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#forwarded-java.lang.Object-">forwarded</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
<div class="block">Sets the value for the <code>Forwarded</code> request header.</div>
</td>
</tr>
-<tr id="i27" class="rowColor">
+<tr id="i28" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#from-java.lang.Object-">from</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
<div class="block">Sets the value for the <code>From</code> request header.</div>
</td>
</tr>
-<tr id="i28" class="altColor">
+<tr id="i29" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#getCapturedResponse--">getCapturedResponse</a></span>()</code>
<div class="block">Returns the response text as a string if <a href="../../../../../org/apache/juneau/rest/client/RestCall.html#captureResponse--"><code>captureResponse()</code></a> was called on this object.</div>
</td>
</tr>
-<tr id="i29" class="rowColor">
+<tr id="i30" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#getContentLength--">getContentLength</a></span>()</code>
<div class="block">Returns the value of the <code>Content-Length</code> header.</div>
</td>
</tr>
-<tr id="i30" class="altColor">
+<tr id="i31" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#getInputStream--">getInputStream</a></span>()</code>
<div class="block">Connects to the remote resource (if <code>connect()</code> hasn't already been called) and returns the HTTP response message body as an input stream.</div>
</td>
</tr>
-<tr id="i31" class="rowColor">
+<tr id="i32" class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#getOutputStream-java.lang.String-">getOutputStream</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> id)</code>
<div class="block">Retrieves an output stream associated with an ID via <a href="../../../../../org/apache/juneau/rest/client/RestCall.html#pipeTo-java.lang.String-java.io.OutputStream-boolean-"><code>pipeTo(String, OutputStream, boolean)</code></a></div>
</td>
</tr>
-<tr id="i32" class="altColor">
+<tr id="i33" class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#getParser--">getParser</a></span>()</code>
<div class="block">Returns the parser specified on the client to use for parsing HTTP response bodies.</div>
</td>
</tr>
-<tr id="i33" class="rowColor">
+<tr id="i34" class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#getReader--">getReader</a></span>()</code>
<div class="block">Connects to the remote resource (if <code>connect()</code> hasn't already been called) and returns the HTTP response message body as a reader.</div>
</td>
</tr>
-<tr id="i34" class="altColor">
+<tr id="i35" class="rowColor">
<td class="colFirst"><code>org.apache.http.client.methods.HttpUriRequest</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#getRequest--">getRequest</a></span>()</code>
<div class="block">Returns access to the <code>HttpUriRequest</code> passed to <code>HttpClient.execute(HttpUriRequest)</code>.</div>
</td>
</tr>
-<tr id="i35" class="rowColor">
+<tr id="i36" class="altColor">
<td class="colFirst"><code>org.apache.http.HttpResponse</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#getResponse--">getResponse</a></span>()</code>
<div class="block">Returns access to the <code>HttpResponse</code> returned by <code>HttpClient.execute(HttpUriRequest)</code>.</div>
</td>
</tr>
-<tr id="i36" class="altColor">
+<tr id="i37" class="rowColor">
<td class="colFirst"><code><T> T</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#getResponse-java.lang.Class-">getResponse</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type)</code>
<div class="block">Same as <a href="../../../../../org/apache/juneau/rest/client/RestCall.html#getResponse-java.lang.reflect.Type-java.lang.reflect.Type...-"><code>getResponse(Type, Type...)</code></a> except optimized for a non-parameterized class.</div>
</td>
</tr>
-<tr id="i37" class="rowColor">
+<tr id="i38" class="altColor">
<td class="colFirst"><code><T> T</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#getResponse-java.lang.reflect.Type-java.lang.reflect.Type...-">getResponse</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> type,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>... args)</code>
<div class="block">Parses HTTP body into the specified object type.</div>
</td>
</tr>
-<tr id="i38" class="altColor">
+<tr id="i39" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#getResponseAsString--">getResponseAsString</a></span>()</code>
<div class="block">Connects to the remote resource (if <code>connect()</code> hasn't already been called) and returns the HTTP response message body as plain text.</div>
</td>
</tr>
-<tr id="i39" class="rowColor">
+<tr id="i40" class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Future.html?is-external=true" title="class or interface in java.util.concurrent">Future</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#getResponseAsStringFuture--">getResponseAsStringFuture</a></span>()</code>
<div class="block">Same as <a href="../../../../../org/apache/juneau/rest/client/RestCall.html#getResponse-java.lang.Class-"><code>getResponse(Class)</code></a> but allows you to run the call asynchronously.</div>
</td>
</tr>
-<tr id="i40" class="altColor">
+<tr id="i41" class="rowColor">
<td class="colFirst"><code><T> <a href="http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Future.html?is-external=true" title="class or interface in java.util.concurrent">Future</a><T></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#getResponseFuture-java.lang.Class-">getResponseFuture</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type)</code>
<div class="block">Same as <a href="../../../../../org/apache/juneau/rest/client/RestCall.html#getResponse-java.lang.Class-"><code>getResponse(Class)</code></a> but allows you to run the call asynchronously.</div>
</td>
</tr>
-<tr id="i41" class="rowColor">
+<tr id="i42" class="altColor">
<td class="colFirst"><code><T> <a href="http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Future.html?is-external=true" title="class or interface in java.util.concurrent">Future</a><T></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#getResponseFuture-java.lang.reflect.Type-java.lang.reflect.Type...-">getResponseFuture</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> type,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>... args)</code>
<div class="block">Same as <a href="../../../../../org/apache/juneau/rest/client/RestCall.html#getResponse-java.lang.Class-"><code>getResponse(Class)</code></a> but allows you to run the call asynchronously.</div>
</td>
</tr>
-<tr id="i42" class="altColor">
+<tr id="i43" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/utils/PojoRest.html" title="class in org.apache.juneau.utils">PojoRest</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#getResponsePojoRest--">getResponsePojoRest</a></span>()</code>
<div class="block">Converts the output from the connection into an <a href="../../../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau"><code>ObjectMap</code></a> and then wraps that in a <a href="../../../../../org/apache/juneau/utils/PojoRest.html" title="class in org.apache.juneau.utils"><code>PojoRest</code></a>.</div>
</td>
</tr>
-<tr id="i43" class="rowColor">
+<tr id="i44" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/utils/PojoRest.html" title="class in org.apache.juneau.utils">PojoRest</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#getResponsePojoRest-java.lang.Class-">getResponsePojoRest</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> innerType)</code>
<div class="block">Parses the output from the connection into the specified type and then wraps that in a <a href="../../../../../org/apache/juneau/utils/PojoRest.html" title="class in org.apache.juneau.utils"><code>PojoRest</code></a>.</div>
</td>
</tr>
-<tr id="i44" class="altColor">
+<tr id="i45" class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../../org/apache/juneau/serializer/Serializer.html" title="class in org.apache.juneau.serializer">Serializer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#getSerializer--">getSerializer</a></span>()</code>
<div class="block">Returns the serializer specified on the client to use for serializing HTTP request bodies.</div>
</td>
</tr>
-<tr id="i45" class="rowColor">
+<tr id="i46" class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#getWriter-java.lang.String-">getWriter</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> id)</code>
<div class="block">Retrieves a writer associated with an ID via <a href="../../../../../org/apache/juneau/rest/client/RestCall.html#pipeTo-java.lang.String-java.io.Writer-boolean-"><code>pipeTo(String, Writer, boolean)</code></a></div>
</td>
</tr>
-<tr id="i46" class="altColor">
+<tr id="i47" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#header-org.apache.http.Header-">header</a></span>(org.apache.http.Header header)</code>
<div class="block">Shortcut for calling <code>getRequest().setHeader(header)</code></div>
</td>
</tr>
-<tr id="i47" class="rowColor">
+<tr id="i48" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#header-java.lang.String-java.lang.Object-">header</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
<div class="block">Sets a header on the request.</div>
</td>
</tr>
-<tr id="i48" class="altColor">
+<tr id="i49" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#header-java.lang.String-java.lang.Object-boolean-">header</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value,
@@ -475,124 +481,124 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?
<div class="block">Sets a header on the request.</div>
</td>
</tr>
-<tr id="i49" class="rowColor">
+<tr id="i50" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#headerIfNE-java.lang.String-java.lang.Object-">headerIfNE</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
<div class="block">Sets a header on the request if the value is not null/empty.</div>
</td>
</tr>
-<tr id="i50" class="altColor">
+<tr id="i51" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#headers-java.util.Map-">headers</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> values)</code>
<div class="block">Sets headers on the request.</div>
</td>
</tr>
-<tr id="i51" class="rowColor">
+<tr id="i52" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#headersIfNE-java.util.Map-">headersIfNE</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> values)</code>
<div class="block">Sets headers on the request if the values are not null/empty.</div>
</td>
</tr>
-<tr id="i52" class="altColor">
+<tr id="i53" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#host-java.lang.Object-">host</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
<div class="block">Sets the value for the <code>Host</code> request header.</div>
</td>
</tr>
-<tr id="i53" class="rowColor">
+<tr id="i54" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#host-java.lang.String-">host</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> host)</code>
<div class="block">Sets the URI host.</div>
</td>
</tr>
-<tr id="i54" class="altColor">
+<tr id="i55" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#ifMatch-java.lang.Object-">ifMatch</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
<div class="block">Sets the value for the <code>If-Match</code> request header.</div>
</td>
</tr>
-<tr id="i55" class="rowColor">
+<tr id="i56" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#ifModifiedSince-java.lang.Object-">ifModifiedSince</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
<div class="block">Sets the value for the <code>If-Modified-Since</code> request header.</div>
</td>
</tr>
-<tr id="i56" class="altColor">
+<tr id="i57" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#ifNoneMatch-java.lang.Object-">ifNoneMatch</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
<div class="block">Sets the value for the <code>If-None-Match</code> request header.</div>
</td>
</tr>
-<tr id="i57" class="rowColor">
+<tr id="i58" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#ifRange-java.lang.Object-">ifRange</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
<div class="block">Sets the value for the <code>If-Range</code> request header.</div>
</td>
</tr>
-<tr id="i58" class="altColor">
+<tr id="i59" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#ifUnmodifiedSince-java.lang.Object-">ifUnmodifiedSince</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
<div class="block">Sets the value for the <code>If-Unmodified-Since</code> request header.</div>
</td>
</tr>
-<tr id="i59" class="rowColor">
+<tr id="i60" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#ignoreErrors--">ignoreErrors</a></span>()</code>
<div class="block">Prevent <a href="../../../../../org/apache/juneau/rest/client/RestCallException.html" title="class in org.apache.juneau.rest.client"><code>RestCallExceptions</code></a> from being thrown when HTTP status 400+ is encountered.</div>
</td>
</tr>
-<tr id="i60" class="altColor">
+<tr id="i61" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#input-java.lang.Object-">input</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> input)</code>
<div class="block">Sets the input for this REST call.</div>
</td>
</tr>
-<tr id="i61" class="rowColor">
+<tr id="i62" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#interceptor-org.apache.juneau.rest.client.RestCallInterceptor-">interceptor</a></span>(<a href="../../../../../org/apache/juneau/rest/client/RestCallInterceptor.html" title="class in org.apache.juneau.rest.client">RestCallInterceptor</a> interceptor)</code>
<div class="block">Add an interceptor for this call only.</div>
</td>
</tr>
-<tr id="i62" class="altColor">
+<tr id="i63" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#logTo-java.util.logging.Level-java.util.logging.Logger-">logTo</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/logging/Level.html?is-external=true" title="class or interface in java.util.logging">Level</a> level,
<a href="http://docs.oracle.com/javase/7/docs/api/java/util/logging/Logger.html?is-external=true" title="class or interface in java.util.logging">Logger</a> log)</code>
<div class="block">Adds a <a href="../../../../../org/apache/juneau/rest/client/RestCallLogger.html" title="class in org.apache.juneau.rest.client"><code>RestCallLogger</code></a> to the list of interceptors on this class.</div>
</td>
</tr>
-<tr id="i63" class="rowColor">
+<tr id="i64" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#maxForwards-java.lang.Object-">maxForwards</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
<div class="block">Sets the value for the <code>Max-Forwards</code> request header.</div>
</td>
</tr>
-<tr id="i64" class="altColor">
+<tr id="i65" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#origin-java.lang.Object-">origin</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
<div class="block">Sets the value for the <code>Origin</code> request header.</div>
</td>
</tr>
-<tr id="i65" class="rowColor">
+<tr id="i66" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#parser-org.apache.juneau.parser.Parser-">parser</a></span>(<a href="../../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a> parser)</code>
<div class="block">Specifies the parser to use on this call.</div>
</td>
</tr>
-<tr id="i66" class="altColor">
+<tr id="i67" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#pipeTo-java.io.OutputStream-">pipeTo</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> os)</code>
<div class="block">Pipes the request output to the specified output stream when <a href="../../../../../org/apache/juneau/rest/client/RestCall.html#run--"><code>run()</code></a> is called.</div>
</td>
</tr>
-<tr id="i67" class="rowColor">
+<tr id="i68" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#pipeTo-java.io.OutputStream-boolean-">pipeTo</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> os,
boolean close)</code>
<div class="block">Pipe output from response to the specified output stream when <a href="../../../../../org/apache/juneau/rest/client/RestCall.html#run--"><code>run()</code></a> is called.</div>
</td>
</tr>
-<tr id="i68" class="altColor">
+<tr id="i69" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#pipeTo-java.lang.String-java.io.OutputStream-boolean-">pipeTo</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> id,
<a href="http://docs.oracle.com/javase/7/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> os,
@@ -601,7 +607,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?
that output stream with an ID so it can be retrieved through <a href="../../../../../org/apache/juneau/rest/client/RestCall.html#getOutputStream-java.lang.String-"><code>getOutputStream(String)</code></a>.</div>
</td>
</tr>
-<tr id="i69" class="rowColor">
+<tr id="i70" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#pipeTo-java.lang.String-java.io.Writer-boolean-">pipeTo</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> id,
<a href="http://docs.oracle.com/javase/7/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a> w,
@@ -610,57 +616,57 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?
that writer with an ID so it can be retrieved through <a href="../../../../../org/apache/juneau/rest/client/RestCall.html#getWriter-java.lang.String-"><code>getWriter(String)</code></a>.</div>
</td>
</tr>
-<tr id="i70" class="altColor">
+<tr id="i71" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#pipeTo-java.io.Writer-">pipeTo</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a> w)</code>
<div class="block">Pipes the request output to the specified writer when <a href="../../../../../org/apache/juneau/rest/client/RestCall.html#run--"><code>run()</code></a> is called.</div>
</td>
</tr>
-<tr id="i71" class="rowColor">
+<tr id="i72" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#pipeTo-java.io.Writer-boolean-">pipeTo</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a> w,
boolean close)</code>
<div class="block">Pipe output from response to the specified writer when <a href="../../../../../org/apache/juneau/rest/client/RestCall.html#run--"><code>run()</code></a> is called.</div>
</td>
</tr>
-<tr id="i72" class="altColor">
+<tr id="i73" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#port-int-">port</a></span>(int port)</code>
<div class="block">Sets the URI port.</div>
</td>
</tr>
-<tr id="i73" class="rowColor">
+<tr id="i74" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#pragma-java.lang.Object-">pragma</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
<div class="block">Sets the value for the <code>Pragma</code> request header.</div>
</td>
</tr>
-<tr id="i74" class="altColor">
+<tr id="i75" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#proxyAuthorization-java.lang.Object-">proxyAuthorization</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
<div class="block">Sets the value for the <code>Proxy-Authorization</code> request header.</div>
</td>
</tr>
-<tr id="i75" class="rowColor">
+<tr id="i76" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#query-java.util.Map-">query</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> params)</code>
<div class="block">Adds query parameters to the URI query.</div>
</td>
</tr>
-<tr id="i76" class="altColor">
+<tr id="i77" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#query-java.lang.String-">query</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> query)</code>
<div class="block">Sets a custom URI query.</div>
</td>
</tr>
-<tr id="i77" class="rowColor">
+<tr id="i78" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#query-java.lang.String-java.lang.Object-">query</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
<div class="block">Adds a query parameter to the URI query.</div>
</td>
</tr>
-<tr id="i78" class="altColor">
+<tr id="i79" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#query-java.lang.String-java.lang.Object-boolean-">query</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value,
@@ -668,44 +674,44 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?
<div class="block">Adds a query parameter to the URI query.</div>
</td>
</tr>
-<tr id="i79" class="rowColor">
+<tr id="i80" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#queryIfNE-java.util.Map-">queryIfNE</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> params)</code>
<div class="block">Adds query parameters to the URI for any parameters that aren't null/empty.</div>
</td>
</tr>
-<tr id="i80" class="altColor">
+<tr id="i81" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#queryIfNE-java.lang.String-java.lang.Object-">queryIfNE</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
<div class="block">Adds a query parameter to the URI query if the parameter value is not <jk>null</jk> or an empty string.</div>
</td>
</tr>
-<tr id="i81" class="rowColor">
+<tr id="i82" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#range-java.lang.Object-">range</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
<div class="block">Sets the value for the <code>Range</code> request header.</div>
</td>
</tr>
-<tr id="i82" class="altColor">
+<tr id="i83" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#redirectMaxAttempts-int-">redirectMaxAttempts</a></span>(int maxAttempts)</code>
<div class="block">Specify the number of redirects to follow before throwing an exception.</div>
</td>
</tr>
-<tr id="i83" class="rowColor">
+<tr id="i84" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#referer-java.lang.Object-">referer</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
<div class="block">Sets the value for the <code>Referer</code> request header.</div>
</td>
</tr>
-<tr id="i84" class="altColor">
+<tr id="i85" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#responsePattern-org.apache.juneau.rest.client.ResponsePattern-">responsePattern</a></span>(<a href="../../../../../org/apache/juneau/rest/client/ResponsePattern.html" title="class in org.apache.juneau.rest.client">ResponsePattern</a> responsePattern)</code>
<div class="block">Adds a response pattern finder to look for regular expression matches in the response output.</div>
</td>
</tr>
-<tr id="i85" class="rowColor">
+<tr id="i86" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#retryable-int-long-org.apache.juneau.rest.client.RetryOn-">retryable</a></span>(int retries,
long interval,
@@ -713,86 +719,86 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?
<div class="block">Make this call retryable if an error response (>=400) is received.</div>
</td>
</tr>
-<tr id="i86" class="altColor">
+<tr id="i87" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#run--">run</a></span>()</code>
<div class="block">Method used to execute an HTTP response where you're only interested in the HTTP response code.</div>
</td>
</tr>
-<tr id="i87" class="rowColor">
+<tr id="i88" class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Future.html?is-external=true" title="class or interface in java.util.concurrent">Future</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#runFuture--">runFuture</a></span>()</code>
<div class="block">Same as <a href="../../../../../org/apache/juneau/rest/client/RestCall.html#run--"><code>run()</code></a> but allows you to run the call asynchronously.</div>
</td>
</tr>
-<tr id="i88" class="altColor">
+<tr id="i89" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#scheme-java.lang.String-">scheme</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> scheme)</code>
<div class="block">Sets the URI scheme.</div>
</td>
</tr>
-<tr id="i89" class="rowColor">
+<tr id="i90" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#serializer-org.apache.juneau.serializer.Serializer-">serializer</a></span>(<a href="../../../../../org/apache/juneau/serializer/Serializer.html" title="class in org.apache.juneau.serializer">Serializer</a> serializer)</code>
<div class="block">Specifies the serializer to use on this call.</div>
</td>
</tr>
-<tr id="i90" class="altColor">
+<tr id="i91" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#setConfig-org.apache.http.client.config.RequestConfig-">setConfig</a></span>(org.apache.http.client.config.RequestConfig config)</code>
<div class="block">Set configuration settings on this request.</div>
</td>
</tr>
-<tr id="i91" class="rowColor">
+<tr id="i92" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#successPattern-java.lang.String-">successPattern</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> successPattern)</code>
<div class="block">Look for the specified regular expression pattern in the response output.</div>
</td>
</tr>
-<tr id="i92" class="altColor">
+<tr id="i93" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#te-java.lang.Object-">te</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
<div class="block">Sets the value for the <code>TE</code> request header.</div>
</td>
</tr>
-<tr id="i93" class="rowColor">
+<tr id="i94" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#upgrade-java.lang.Object-">upgrade</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
<div class="block">Sets the value for the <code>Upgrade</code> request header.</div>
</td>
</tr>
-<tr id="i94" class="altColor">
+<tr id="i95" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#uri-java.lang.Object-">uri</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> uri)</code>
<div class="block">Sets the URI for this call.</div>
</td>
</tr>
-<tr id="i95" class="rowColor">
+<tr id="i96" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#userAgent-java.lang.Object-">userAgent</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
<div class="block">Sets the value for the <code>User-Agent</code> request header.</div>
</td>
</tr>
-<tr id="i96" class="altColor">
+<tr id="i97" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#userInfo-java.lang.String-">userInfo</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> userInfo)</code>
<div class="block">Sets the URI user info.</div>
</td>
</tr>
-<tr id="i97" class="rowColor">
+<tr id="i98" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#userInfo-java.lang.String-java.lang.String-">userInfo</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> username,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> password)</code>
<div class="block">Sets the URI user info.</div>
</td>
</tr>
-<tr id="i98" class="altColor">
+<tr id="i99" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#via-java.lang.Object-">via</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
<div class="block">Sets the value for the <code>Via</code> request header.</div>
</td>
</tr>
-<tr id="i99" class="rowColor">
+<tr id="i100" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/rest/client/RestCall.html#warning-java.lang.Object-">warning</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
<div class="block">Sets the value for the <code>Warning</code> request header.</div>
@@ -2846,7 +2852,7 @@ public void <a href="../../../../../src-html/org/apache/juneau/rest/cl
<a name="logTo-java.util.logging.Level-java.util.logging.Logger-">
<!-- -->
</a>
-<ul class="blockListLast">
+<ul class="blockList">
<li class="blockList">
<h4>logTo</h4>
<pre>public <a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCall.html#line.1820">logTo</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/logging/Level.html?is-external=true" title="class or interface in java.util.logging">Level</a> level,
@@ -2861,6 +2867,22 @@ public void <a href="../../../../../src-html/org/apache/juneau/rest/cl
</dl>
</li>
</ul>
+<a name="debug-boolean-">
+<!-- -->
+</a>
+<ul class="blockListLast">
+<li class="blockList">
+<h4>debug</h4>
+<pre>public <a href="../../../../../org/apache/juneau/rest/client/RestCall.html" title="class in org.apache.juneau.rest.client">RestCall</a> <a href="../../../../../src-html/org/apache/juneau/rest/client/RestCall.html#line.1831">debug</a>(boolean value)</pre>
+<div class="block">Sets <code>Debug: value</code> header on this request.</div>
+<dl>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>value</code> - The debug value.</dd>
+<dt><span class="returnLabel">Returns:</span></dt>
+<dd>This object (for method chaining).</dd>
+</dl>
+</li>
+</ul>
</li>
</ul>
</li>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/org/apache/juneau/rest/package-frame.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/org/apache/juneau/rest/package-frame.html b/content/site/apidocs/org/apache/juneau/rest/package-frame.html
index dc20b30..7167f18 100644
--- a/content/site/apidocs/org/apache/juneau/rest/package-frame.html
+++ b/content/site/apidocs/org/apache/juneau/rest/package-frame.html
@@ -25,7 +25,7 @@
<li><a href="RequestBody.html" title="class in org.apache.juneau.rest" target="classFrame">RequestBody</a></li>
<li><a href="RequestFormData.html" title="class in org.apache.juneau.rest" target="classFrame">RequestFormData</a></li>
<li><a href="RequestHeaders.html" title="class in org.apache.juneau.rest" target="classFrame">RequestHeaders</a></li>
-<li><a href="RequestPathParams.html" title="class in org.apache.juneau.rest" target="classFrame">RequestPathParams</a></li>
+<li><a href="RequestPathMatch.html" title="class in org.apache.juneau.rest" target="classFrame">RequestPathMatch</a></li>
<li><a href="RequestQuery.html" title="class in org.apache.juneau.rest" target="classFrame">RequestQuery</a></li>
<li><a href="RestCallHandler.html" title="class in org.apache.juneau.rest" target="classFrame">RestCallHandler</a></li>
<li><a href="RestConfig.html" title="class in org.apache.juneau.rest" target="classFrame">RestConfig</a></li>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/org/apache/juneau/rest/package-summary.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/org/apache/juneau/rest/package-summary.html b/content/site/apidocs/org/apache/juneau/rest/package-summary.html
index 52b93b7..761f09c 100644
--- a/content/site/apidocs/org/apache/juneau/rest/package-summary.html
+++ b/content/site/apidocs/org/apache/juneau/rest/package-summary.html
@@ -152,9 +152,9 @@
</td>
</tr>
<tr class="rowColor">
-<td class="colFirst"><a href="../../../../org/apache/juneau/rest/RequestPathParams.html" title="class in org.apache.juneau.rest">RequestPathParams</a></td>
+<td class="colFirst"><a href="../../../../org/apache/juneau/rest/RequestPathMatch.html" title="class in org.apache.juneau.rest">RequestPathMatch</a></td>
<td class="colLast">
-<div class="block">Represents the path parameters on an HTTP request.</div>
+<div class="block">Contains information about the matched path on the HTTP request.</div>
</td>
</tr>
<tr class="altColor">
@@ -945,7 +945,7 @@
<li><a href="../../../../org/apache/juneau/rest/RequestHeaders.html" title="class in org.apache.juneau.rest"><code>RequestHeaders</code></a> - API for accessing request headers.
<li><a href="../../../../org/apache/juneau/rest/RequestQuery.html" title="class in org.apache.juneau.rest"><code>RequestQuery</code></a> - API for accessing request query parameters.
<li><a href="../../../../org/apache/juneau/rest/RequestFormData.html" title="class in org.apache.juneau.rest"><code>RequestFormData</code></a> - API for accessing request form data.
- <li><a href="../../../../org/apache/juneau/rest/RequestPathParams.html" title="class in org.apache.juneau.rest"><code>RequestPathParams</code></a> - API for accessing path variables.
+ <li><a href="../../../../org/apache/juneau/rest/RequestPathMatch.html" title="class in org.apache.juneau.rest"><code>RequestPathMatch</code></a> - API for accessing path variables.
<li><a href="../../../../org/apache/juneau/rest/RequestBody.html" title="class in org.apache.juneau.rest"><code>RequestBody</code></a> - API for accessing request body.
</ul>
<li>Other:
@@ -1085,7 +1085,7 @@
</p>
<p>
Paths that end with <js>"/*"</js> will do a prefix match on the incoming URL.
- Any remainder after the match can be accessed through <a href="../../../../org/apache/juneau/rest/RestRequest.html#getPathRemainder--"><code>RestRequest.getPathRemainder()</code></a>
+ Any remainder after the match can be accessed through <a href="../../../../org/apache/juneau/rest/RequestPathMatch.html#getRemainder--"><code>RequestPathMatch.getRemainder()</code></a>
or parameters with the <a href="../../../../org/apache/juneau/rest/annotation/PathRemainder.html" title="annotation in org.apache.juneau.rest.annotation"><code>@PathRemainder</code></a> annotation.
On the other hand, paths that don't end with <js>"/*"</js> (e.g. <js>"/"</js> or <js>"/foo"</js>) will require
an exact URL match, and if any remainder exists, a 404 (not found) error will be thrown.
@@ -2395,14 +2395,14 @@
<ul>
<li><ck>$R{attribute.X}</ck> - Value returned by <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletRequestWrapper.html?is-external=true#getAttribute-java.lang.String-" title="class or interface in javax.servlet"><code>ServletRequestWrapper.getAttribute(String)</code></a> converted to a string.
<li><ck>$R{contextPath}</ck> - Value returned by <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServletRequestWrapper.html?is-external=true#getContextPath--" title="class or interface in javax.servlet.http"><code>HttpServletRequestWrapper.getContextPath()</code></a>.
- <li><ck>$R{formData.X}</ck> - Value returned by <a href="../../../../org/apache/juneau/rest/RestRequest.html#getFormData-java.lang.String-"><code>RestRequest.getFormData(String)</code></a>.
- <li><ck>$R{header.X}</ck> - Value returned by <a href="../../../../org/apache/juneau/rest/RestRequest.html#getHeader-java.lang.String-"><code>RestRequest.getHeader(String)</code></a>.
+ <li><ck>$R{formData.X}</ck> - Value returned by <a href="../../../../org/apache/juneau/rest/RequestFormData.html#getFirst-java.lang.String-"><code>RequestFormData.getFirst(String)</code></a>.
+ <li><ck>$R{header.X}</ck> - Value returned by <a href="../../../../org/apache/juneau/rest/RequestHeaders.html#getFirst-java.lang.String-"><code>RequestHeaders.getFirst(String)</code></a>.
<li><ck>$R{method}</ck> - Value returned by <a href="../../../../org/apache/juneau/rest/RestRequest.html#getMethod--"><code>RestRequest.getMethod()</code></a>.
<li><ck>$R{methodSummary}</ck> - Value returned by <a href="../../../../org/apache/juneau/rest/RestRequest.html#getMethodSummary--"><code>RestRequest.getMethodSummary()</code></a>.
<li><ck>$R{methodDescription}</ck> - Value returned by <a href="../../../../org/apache/juneau/rest/RestRequest.html#getMethodDescription--"><code>RestRequest.getMethodDescription()</code></a>.
- <li><ck>$R{path.X}</ck> - Value returned by <a href="../../../../org/apache/juneau/rest/RestRequest.html#getPathParameter-java.lang.String-"><code>RestRequest.getPathParameter(String)</code></a>.
+ <li><ck>$R{path.X}</ck> - Value returned by <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#get-java.lang.Object-" title="class or interface in java.util"><code>TreeMap.get(Object)</code></a>.
<li><ck>$R{pathInfo}</ck> - Value returned by <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServletRequestWrapper.html?is-external=true#getPathInfo--" title="class or interface in javax.servlet.http"><code>HttpServletRequestWrapper.getPathInfo()</code></a>.
- <li><ck>$R{query.X}</ck> - Value returned by <a href="../../../../org/apache/juneau/rest/RestRequest.html#getQuery-java.lang.String-"><code>RestRequest.getQuery(String)</code></a>.
+ <li><ck>$R{query.X}</ck> - Value returned by <a href="../../../../org/apache/juneau/rest/RequestQuery.html#getFirst-java.lang.String-"><code>RequestQuery.getFirst(String)</code></a>.
<li><ck>$R{requestParentURI}</ck> - Value returned by <a href="../../../../org/apache/juneau/rest/RestRequest.html#getRequestParentURI--"><code>RestRequest.getRequestParentURI()</code></a>.
<li><ck>$R{requestURI}</ck> - Value returned by <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServletRequestWrapper.html?is-external=true#getRequestURI--" title="class or interface in javax.servlet.http"><code>HttpServletRequestWrapper.getRequestURI()</code></a>.
<li><ck>$R{servletDescription}</ck> - Value returned by <a href="../../../../org/apache/juneau/rest/RestRequest.html#getServletDescription--"><code>RestRequest.getServletDescription()</code></a>.
@@ -3473,7 +3473,7 @@
<div class='topic'>
<p>
Certain methods in the REST server API allow you to specify class types that can be convertable
- from <l>Strings</l> (e.g. <a href="../../../../org/apache/juneau/rest/RestRequest.html#getPathParameter-java.lang.String-"><code>RestRequest.getPathParameter(String)</code></a>).
+ from <l>Strings</l> (e.g. <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#get-java.lang.Object-" title="class or interface in java.util"><code>TreeMap.get(Object)</code></a>).
</p>
<p>
POJOs convertable from <l>Strings</l> have one of the following:
@@ -3694,13 +3694,12 @@
<ja>@RestMethod</ja>(name=<js>"PUT"</js>, path=<js>"/people/{id}/*"</js>,
guards=AdminGuard.<jk>class</jk>
)
- <jk>public</jk> String updatePerson(RestRequest req, <ja>@Path</ja> <jk>int</jk> id) <jk>throws</jk> Exception {
+ <jk>public</jk> String updatePerson(RestRequest req, <ja>@Path</ja> <jk>int</jk> id, <ja>@PathRemainder</ja> String pathRemainder) <jk>throws</jk> Exception {
<jk>try</jk> {
Person p = findPerson(id);
- String pathRemainder = req.getPathRemainder();
PojoRest r = <jk>new</jk> PojoRest(p);
ClassMeta<?> cm = r.getClassMeta(pathRemainder);
- Object in = req.getBody(cm);
+ Object in = req.getBody().asType(cm);
r.put(pathRemainder, in);
<jk>return</jk> <js>"PUT successful"</js>;
} <jk>catch</jk> (Exception e) {
@@ -3715,13 +3714,12 @@
<ja>@RestMethod</ja>(name=<js>"PUT"</js>, path=<js>"/addresses/{id}/*"</js>,
guards=AdminGuard.<jk>class</jk>
)
- <jk>public</jk> String updateAddress(RestRequest req, <ja>@Path</ja> <jk>int</jk> id) <jk>throws</jk> Exception {
+ <jk>public</jk> String updateAddress(RestRequest req, <ja>@Path</ja> <jk>int</jk> id, <ja>@PathRemainder</ja> String pathRemainder) <jk>throws</jk> Exception {
<jk>try</jk> {
Address a = findAddress(id);
- String pathInfo = req.getPathInfo();
PojoRest r = <jk>new</jk> PojoRest(a);
- ClassMeta<?> cm = r.getClassMeta(pathInfo);
- Object in = req.getBody(cm);
+ ClassMeta<?> cm = r.getClassMeta(pathRemainder);
+ Object in = req.getBody().asType(pathRemainder);
r.put(pathInfo, in);
<jk>return</jk> <js>"PUT successful"</js>;
} <jk>catch</jk> (Exception e) {
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/org/apache/juneau/rest/package-tree.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/org/apache/juneau/rest/package-tree.html b/content/site/apidocs/org/apache/juneau/rest/package-tree.html
index d15eee9..267a664 100644
--- a/content/site/apidocs/org/apache/juneau/rest/package-tree.html
+++ b/content/site/apidocs/org/apache/juneau/rest/package-tree.html
@@ -95,7 +95,7 @@
<li type="circle">java.util.<a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true" title="class or interface in java.util"><span class="typeNameLink">TreeMap</span></a><K,V> (implements java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang">Cloneable</a>, java.util.<a href="http://docs.oracle.com/javase/7/docs/api/java/util/NavigableMap.html?is-external=true" title="class or interface in java.util">NavigableMap</a><K,V>, java.io.<a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>)
<ul>
<li type="circle">org.apache.juneau.rest.<a href="../../../../org/apache/juneau/rest/RequestHeaders.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">RequestHeaders</span></a></li>
-<li type="circle">org.apache.juneau.rest.<a href="../../../../org/apache/juneau/rest/RequestPathParams.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">RequestPathParams</span></a></li>
+<li type="circle">org.apache.juneau.rest.<a href="../../../../org/apache/juneau/rest/RequestPathMatch.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">RequestPathMatch</span></a></li>
</ul>
</li>
</ul>
[12/15] incubator-juneau-website git commit: Update javadocs.
Posted by ja...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/org/apache/juneau/rest/RequestPathParams.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/org/apache/juneau/rest/RequestPathParams.html b/content/site/apidocs/org/apache/juneau/rest/RequestPathParams.html
deleted file mode 100644
index 0f3b72a..0000000
--- a/content/site/apidocs/org/apache/juneau/rest/RequestPathParams.html
+++ /dev/null
@@ -1,407 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<!-- NewPage -->
-<html lang="en">
-<head>
-<!-- Generated by javadoc -->
-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-<title>RequestPathParams (Apache Juneau (incubating) 6.2.1-incubating-SNAPSHOT)</title>
-<link rel="stylesheet" type="text/css" href="../../../../javadoc.css" title="Style">
-<script type="text/javascript" src="../../../../script.js"></script>
-</head>
-<body>
-<script type="text/javascript"><!--
- try {
- if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="RequestPathParams (Apache Juneau (incubating) 6.2.1-incubating-SNAPSHOT)";
- }
- }
- catch(err) {
- }
-//-->
-var methods = {"i0":10,"i1":10,"i2":10};
-var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
-var altColor = "altColor";
-var rowColor = "rowColor";
-var tableTab = "tableTab";
-var activeTableTab = "activeTableTab";
-</script>
-<noscript>
-<div>JavaScript is disabled on your browser.</div>
-</noscript>
-<!-- ========= START OF TOP NAVBAR ======= -->
-<div class="topNav"><a name="navbar.top">
-<!-- -->
-</a>
-<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
-<a name="navbar.top.firstrow">
-<!-- -->
-</a>
-<ul class="navList" title="Navigation">
-<li><a href="../../../../overview-summary.html">Overview</a></li>
-<li><a href="package-summary.html">Package</a></li>
-<li class="navBarCell1Rev">Class</li>
-<li><a href="package-tree.html">Tree</a></li>
-<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
-<li><a href="../../../../index-all.html">Index</a></li>
-<li><a href="../../../../help-doc.html">Help</a></li>
-</ul>
-</div>
-<div class="subNav">
-<ul class="navList">
-<li><a href="../../../../org/apache/juneau/rest/RequestHeaders.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">Prev Class</span></a></li>
-<li><a href="../../../../org/apache/juneau/rest/RequestQuery.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">Next Class</span></a></li>
-</ul>
-<ul class="navList">
-<li><a href="../../../../index.html?org/apache/juneau/rest/RequestPathParams.html" target="_top">Frames</a></li>
-<li><a href="RequestPathParams.html" target="_top">No Frames</a></li>
-</ul>
-<ul class="navList" id="allclasses_navbar_top">
-<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
-</ul>
-<div>
-<script type="text/javascript"><!--
- allClassesLink = document.getElementById("allclasses_navbar_top");
- if(window==top) {
- allClassesLink.style.display = "block";
- }
- else {
- allClassesLink.style.display = "none";
- }
- //-->
-</script>
-</div>
-<div>
-<ul class="subNavList">
-<li>Summary: </li>
-<li><a href="#nested.classes.inherited.from.class.java.util.AbstractMap">Nested</a> | </li>
-<li>Field | </li>
-<li>Constr | </li>
-<li><a href="#method.summary">Method</a></li>
-</ul>
-<ul class="subNavList">
-<li>Detail: </li>
-<li>Field | </li>
-<li>Constr | </li>
-<li><a href="#method.detail">Method</a></li>
-</ul>
-</div>
-<a name="skip.navbar.top">
-<!-- -->
-</a></div>
-<!-- ========= END OF TOP NAVBAR ========= -->
-<!-- ======== START OF CLASS DATA ======== -->
-<div class="header">
-<div class="subTitle">org.apache.juneau.rest</div>
-<h2 title="Class RequestPathParams" class="title">Class RequestPathParams</h2>
-</div>
-<div class="contentContainer">
-<ul class="inheritance">
-<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
-<li>
-<ul class="inheritance">
-<li><a href="http://docs.oracle.com/javase/7/docs/api/java/util/AbstractMap.html?is-external=true" title="class or interface in java.util">java.util.AbstractMap</a><K,V></li>
-<li>
-<ul class="inheritance">
-<li><a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true" title="class or interface in java.util">java.util.TreeMap</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></li>
-<li>
-<ul class="inheritance">
-<li>org.apache.juneau.rest.RequestPathParams</li>
-</ul>
-</li>
-</ul>
-</li>
-</ul>
-</li>
-</ul>
-<div class="description">
-<ul class="blockList">
-<li class="blockList">
-<dl>
-<dt>All Implemented Interfaces:</dt>
-<dd><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang">Cloneable</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/NavigableMap.html?is-external=true" title="class or interface in java.util">NavigableMap</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interfac
e in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/SortedMap.html?is-external=true" title="class or interface in java.util">SortedMap</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></dd>
-</dl>
-<hr>
-<br>
-<pre>public class <a href="../../../../src-html/org/apache/juneau/rest/RequestPathParams.html#line.26">RequestPathParams</a>
-extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true" title="class or interface in java.util">TreeMap</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></pre>
-<div class="block">Represents the path parameters on an HTTP request.</div>
-<dl>
-<dt><span class="seeLabel">See Also:</span></dt>
-<dd><a href="../../../../serialized-form.html#org.apache.juneau.rest.RequestPathParams">Serialized Form</a></dd>
-</dl>
-</li>
-</ul>
-</div>
-<div class="summary">
-<ul class="blockList">
-<li class="blockList">
-<!-- ======== NESTED CLASS SUMMARY ======== -->
-<ul class="blockList">
-<li class="blockList"><a name="nested.class.summary">
-<!-- -->
-</a>
-<h3>Nested Class Summary</h3>
-<ul class="blockList">
-<li class="blockList"><a name="nested.classes.inherited.from.class.java.util.AbstractMap">
-<!-- -->
-</a>
-<h3>Nested classes/interfaces inherited from class java.util.<a href="http://docs.oracle.com/javase/7/docs/api/java/util/AbstractMap.html?is-external=true" title="class or interface in java.util">AbstractMap</a></h3>
-<code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/AbstractMap.SimpleEntry.html?is-external=true" title="class or interface in java.util">AbstractMap.SimpleEntry</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/util/AbstractMap.SimpleEntry.html?is-external=true" title="class or interface in java.util">K</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/util/AbstractMap.SimpleEntry.html?is-external=true" title="class or interface in java.util">V</a>>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/AbstractMap.SimpleImmutableEntry.html?is-external=true" title="class or interface in java.util">AbstractMap.SimpleImmutableEntry</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/util/AbstractMap.SimpleImmutableEntry.html?is-external=true" title="class or interface in java.util">K</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/util/AbstractMap.SimpleImmutableEntry.html?is-external=true" title="class or interface in
java.util">V</a>></code></li>
-</ul>
-</li>
-</ul>
-<!-- ========== METHOD SUMMARY =========== -->
-<ul class="blockList">
-<li class="blockList"><a name="method.summary">
-<!-- -->
-</a>
-<h3>Method Summary</h3>
-<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
-<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
-<tr>
-<th class="colFirst" scope="col">Modifier and Type</th>
-<th class="colLast" scope="col">Method and Description</th>
-</tr>
-<tr id="i0" class="altColor">
-<td class="colFirst"><code><T> T</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestPathParams.html#get-java.lang.String-java.lang.Class-">get</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type)</code>
-<div class="block">Returns the specified path parameter converted to a POJO.</div>
-</td>
-</tr>
-<tr id="i1" class="rowColor">
-<td class="colFirst"><code><T> T</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestPathParams.html#get-java.lang.String-java.lang.reflect.Type-java.lang.reflect.Type...-">get</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> type,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>... args)</code>
-<div class="block">Returns the specified path parameter converted to a POJO.</div>
-</td>
-</tr>
-<tr id="i2" class="altColor">
-<td class="colFirst"><code>void</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestPathParams.html#put-java.lang.String-java.lang.Object-">put</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
-<div class="block">Sets a request query parameter value.</div>
-</td>
-</tr>
-</table>
-<ul class="blockList">
-<li class="blockList"><a name="methods.inherited.from.class.java.util.TreeMap">
-<!-- -->
-</a>
-<h3>Methods inherited from class java.util.<a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true" title="class or interface in java.util">TreeMap</a></h3>
-<code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#ceilingEntry-K-" title="class or interface in java.util">ceilingEntry</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#ceilingKey-K-" title="class or interface in java.util">ceilingKey</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#clear--" title="class or interface in java.util">clear</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#clone--" title="class or interface in java.util">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#comparator--" title="class or interface in java.util">comparator</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#containsKey-java.lang.Object-" title="class or interface in java.util">containsKey</a>, <a href="http://docs.oracle
.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#containsValue-java.lang.Object-" title="class or interface in java.util">containsValue</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#descendingKeySet--" title="class or interface in java.util">descendingKeySet</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#descendingMap--" title="class or interface in java.util">descendingMap</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#entrySet--" title="class or interface in java.util">entrySet</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#firstEntry--" title="class or interface in java.util">firstEntry</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#firstKey--" title="class or interface in java.util">firstKey</a>, <a href="http://docs.oracle.com/
javase/7/docs/api/java/util/TreeMap.html?is-external=true#floorEntry-K-" title="class or interface in java.util">floorEntry</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#floorKey-K-" title="class or interface in java.util">floorKey</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#forEach-java.util.function.BiConsumer-" title="class or interface in java.util">forEach</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#get-java.lang.Object-" title="class or interface in java.util">get</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#headMap-K-" title="class or interface in java.util">headMap</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#headMap-K-boolean-" title="class or interface in java.util">headMap</a>, <a href="http://docs.oracle.com/javase/7/docs/ap
i/java/util/TreeMap.html?is-external=true#higherEntry-K-" title="class or interface in java.util">higherEntry</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#higherKey-K-" title="class or interface in java.util">higherKey</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#keySet--" title="class or interface in java.util">keySet</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#lastEntry--" title="class or interface in java.util">lastEntry</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#lastKey--" title="class or interface in java.util">lastKey</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#lowerEntry-K-" title="class or interface in java.util">lowerEntry</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#lowerKey
-K-" title="class or interface in java.util">lowerKey</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#navigableKeySet--" title="class or interface in java.util">navigableKeySet</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#pollFirstEntry--" title="class or interface in java.util">pollFirstEntry</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#pollLastEntry--" title="class or interface in java.util">pollLastEntry</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#put-K-V-" title="class or interface in java.util">put</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#putAll-java.util.Map-" title="class or interface in java.util">putAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#remove-java.lang.Object-" titl
e="class or interface in java.util">remove</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#replace-K-V-" title="class or interface in java.util">replace</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#replace-K-V-V-" title="class or interface in java.util">replace</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#replaceAll-java.util.function.BiFunction-" title="class or interface in java.util">replaceAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#size--" title="class or interface in java.util">size</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#subMap-K-boolean-K-boolean-" title="class or interface in java.util">subMap</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#subMap-K-K-" title="class or interf
ace in java.util">subMap</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#tailMap-K-" title="class or interface in java.util">tailMap</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#tailMap-K-boolean-" title="class or interface in java.util">tailMap</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html?is-external=true#values--" title="class or interface in java.util">values</a></code></li>
-</ul>
-<ul class="blockList">
-<li class="blockList"><a name="methods.inherited.from.class.java.util.AbstractMap">
-<!-- -->
-</a>
-<h3>Methods inherited from class java.util.<a href="http://docs.oracle.com/javase/7/docs/api/java/util/AbstractMap.html?is-external=true" title="class or interface in java.util">AbstractMap</a></h3>
-<code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/AbstractMap.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.util">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/AbstractMap.html?is-external=true#hashCode--" title="class or interface in java.util">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/AbstractMap.html?is-external=true#isEmpty--" title="class or interface in java.util">isEmpty</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/AbstractMap.html?is-external=true#toString--" title="class or interface in java.util">toString</a></code></li>
-</ul>
-<ul class="blockList">
-<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
-<!-- -->
-</a>
-<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
-<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-
external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
-</ul>
-<ul class="blockList">
-<li class="blockList"><a name="methods.inherited.from.class.java.util.Map">
-<!-- -->
-</a>
-<h3>Methods inherited from interface java.util.<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a></h3>
-<code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#compute-K-java.util.function.BiFunction-" title="class or interface in java.util">compute</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#computeIfAbsent-K-java.util.function.Function-" title="class or interface in java.util">computeIfAbsent</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#computeIfPresent-K-java.util.function.BiFunction-" title="class or interface in java.util">computeIfPresent</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.util">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#getOrDefault-java.lang.Object-V-" title="class or interface in java.util">getOrDefault</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-ex
ternal=true#hashCode--" title="class or interface in java.util">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#isEmpty--" title="class or interface in java.util">isEmpty</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#merge-K-V-java.util.function.BiFunction-" title="class or interface in java.util">merge</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#putIfAbsent-K-V-" title="class or interface in java.util">putIfAbsent</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#remove-java.lang.Object-java.lang.Object-" title="class or interface in java.util">remove</a></code></li>
-</ul>
-</li>
-</ul>
-</li>
-</ul>
-</div>
-<div class="details">
-<ul class="blockList">
-<li class="blockList">
-<!-- ============ METHOD DETAIL ========== -->
-<ul class="blockList">
-<li class="blockList"><a name="method.detail">
-<!-- -->
-</a>
-<h3>Method Detail</h3>
-<a name="put-java.lang.String-java.lang.Object-">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>put</h4>
-<pre>public void <a href="../../../../src-html/org/apache/juneau/rest/RequestPathParams.html#line.52">put</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</pre>
-<div class="block">Sets a request query parameter value.</div>
-<dl>
-<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>name</code> - The parameter name.</dd>
-<dd><code>value</code> - The parameter value.</dd>
-</dl>
-</li>
-</ul>
-<a name="get-java.lang.String-java.lang.Class-">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>get</h4>
-<pre>public <T> T <a href="../../../../src-html/org/apache/juneau/rest/RequestPathParams.html#line.86">get</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type)
- throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre>
-<div class="block">Returns the specified path parameter converted to a POJO.
- <p>
- The type can be any POJO type convertable from a <code>String</code> (See <a class="doclink"
- href="package-summary.html#PojosConvertableFromString">POJOs Convertable From Strings</a>).
- <p>
- <h5 class='section'>Examples:</h5>
- <p class='bcode'>
- <jc>// Parse into an integer.</jc>
- <jk>int</jk> myparam = req.getPathParameter(<js>"myparam"</js>, <jk>int</jk>.<jk>class</jk>);
-
- <jc>// Parse into an int array.</jc>
- <jk>int</jk>[] myparam = req.getPathParameter(<js>"myparam"</js>, <jk>int</jk>[].<jk>class</jk>);
-
- <jc>// Parse into a bean.</jc>
- MyBean myparam = req.getPathParameter(<js>"myparam"</js>, MyBean.<jk>class</jk>);
-
- <jc>// Parse into a linked-list of objects.</jc>
- List myparam = req.getPathParameter(<js>"myparam"</js>, LinkedList.<jk>class</jk>);
-
- <jc>// Parse into a map of object keys/values.</jc>
- Map myparam = req.getPathParameter(<js>"myparam"</js>, TreeMap.<jk>class</jk>);
- </p></div>
-<dl>
-<dt><span class="paramLabel">Type Parameters:</span></dt>
-<dd><code>T</code> - The class type to convert the attribute value to.</dd>
-<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>name</code> - The attribute name.</dd>
-<dd><code>type</code> - The class type to convert the attribute value to.</dd>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd>The attribute value converted to the specified class type.</dd>
-<dt><span class="throwsLabel">Throws:</span></dt>
-<dd><code><a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></code></dd>
-</dl>
-</li>
-</ul>
-<a name="get-java.lang.String-java.lang.reflect.Type-java.lang.reflect.Type...-">
-<!-- -->
-</a>
-<ul class="blockListLast">
-<li class="blockList">
-<h4>get</h4>
-<pre>public <T> T <a href="../../../../src-html/org/apache/juneau/rest/RequestPathParams.html#line.122">get</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> type,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>... args)
- throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre>
-<div class="block">Returns the specified path parameter converted to a POJO.
- <p>
- The type can be any POJO type convertable from a <code>String</code> (See <a class="doclink" href="package-summary.html#PojosConvertableFromString">POJOs Convertable From Strings</a>).
- <p>
- Use this method if you want to parse into a parameterized <code>Map</code>/<code>Collection</code> object.
- <p>
- <h5 class='section'>Examples:</h5>
- <p class='bcode'>
- <jc>// Parse into a linked-list of strings.</jc>
- List<String> myparam = req.getPathParameter(<js>"myparam"</js>, LinkedList.<jk>class</jk>, String.<jk>class</jk>);
-
- <jc>// Parse into a linked-list of linked-lists of strings.</jc>
- List<List<String>> myparam = req.getPathParameter(<js>"myparam"</js>, LinkedList.<jk>class</jk>, LinkedList.<jk>class</jk>, String.<jk>class</jk>);
-
- <jc>// Parse into a map of string keys/values.</jc>
- Map<String,String> myparam = req.getPathParameter(<js>"myparam"</js>, TreeMap.<jk>class</jk>, String.<jk>class</jk>, String.<jk>class</jk>);
-
- <jc>// Parse into a map containing string keys and values of lists containing beans.</jc>
- Map<String,List<MyBean>> myparam = req.getPathParameter(<js>"myparam"</js>, TreeMap.<jk>class</jk>, String.<jk>class</jk>, List.<jk>class</jk>, MyBean.<jk>class</jk>);
- </p></div>
-<dl>
-<dt><span class="paramLabel">Type Parameters:</span></dt>
-<dd><code>T</code> - The class type to convert the attribute value to.</dd>
-<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>name</code> - The attribute name.</dd>
-<dd><code>type</code> - The type of object to create.
- <br>Can be any of the following: <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau"><code>ClassMeta</code></a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang"><code>Class</code></a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/ParameterizedType.html?is-external=true" title="class or interface in java.lang.reflect"><code>ParameterizedType</code></a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/GenericArrayType.html?is-external=true" title="class or interface in java.lang.reflect"><code>GenericArrayType</code></a></dd>
-<dd><code>args</code> - The type arguments of the class if it's a collection or map.
- <br>Can be any of the following: <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau"><code>ClassMeta</code></a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang"><code>Class</code></a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/ParameterizedType.html?is-external=true" title="class or interface in java.lang.reflect"><code>ParameterizedType</code></a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/GenericArrayType.html?is-external=true" title="class or interface in java.lang.reflect"><code>GenericArrayType</code></a>
- <br>Ignored if the main type is not a map or collection.</dd>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd>The attribute value converted to the specified class type.</dd>
-<dt><span class="throwsLabel">Throws:</span></dt>
-<dd><code><a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></code></dd>
-</dl>
-</li>
-</ul>
-</li>
-</ul>
-</li>
-</ul>
-</div>
-</div>
-<!-- ========= END OF CLASS DATA ========= -->
-<!-- ======= START OF BOTTOM NAVBAR ====== -->
-<div class="bottomNav"><a name="navbar.bottom">
-<!-- -->
-</a>
-<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
-<a name="navbar.bottom.firstrow">
-<!-- -->
-</a>
-<ul class="navList" title="Navigation">
-<li><a href="../../../../overview-summary.html">Overview</a></li>
-<li><a href="package-summary.html">Package</a></li>
-<li class="navBarCell1Rev">Class</li>
-<li><a href="package-tree.html">Tree</a></li>
-<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
-<li><a href="../../../../index-all.html">Index</a></li>
-<li><a href="../../../../help-doc.html">Help</a></li>
-</ul>
-</div>
-<div class="subNav">
-<ul class="navList">
-<li><a href="../../../../org/apache/juneau/rest/RequestHeaders.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">Prev Class</span></a></li>
-<li><a href="../../../../org/apache/juneau/rest/RequestQuery.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">Next Class</span></a></li>
-</ul>
-<ul class="navList">
-<li><a href="../../../../index.html?org/apache/juneau/rest/RequestPathParams.html" target="_top">Frames</a></li>
-<li><a href="RequestPathParams.html" target="_top">No Frames</a></li>
-</ul>
-<ul class="navList" id="allclasses_navbar_bottom">
-<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
-</ul>
-<div>
-<script type="text/javascript"><!--
- allClassesLink = document.getElementById("allclasses_navbar_bottom");
- if(window==top) {
- allClassesLink.style.display = "block";
- }
- else {
- allClassesLink.style.display = "none";
- }
- //-->
-</script>
-</div>
-<div>
-<ul class="subNavList">
-<li>Summary: </li>
-<li><a href="#nested.classes.inherited.from.class.java.util.AbstractMap">Nested</a> | </li>
-<li>Field | </li>
-<li>Constr | </li>
-<li><a href="#method.summary">Method</a></li>
-</ul>
-<ul class="subNavList">
-<li>Detail: </li>
-<li>Field | </li>
-<li>Constr | </li>
-<li><a href="#method.detail">Method</a></li>
-</ul>
-</div>
-<a name="skip.navbar.bottom">
-<!-- -->
-</a></div>
-<!-- ======== END OF BOTTOM NAVBAR ======= -->
-<p class="legalCopy"><small>Copyright © 2017 <a href="http://www.apache.org/">Apache</a>. All rights reserved.</small></p>
-</body>
-</html>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/org/apache/juneau/rest/RequestQuery.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/org/apache/juneau/rest/RequestQuery.html b/content/site/apidocs/org/apache/juneau/rest/RequestQuery.html
index f589fd5..3063752 100644
--- a/content/site/apidocs/org/apache/juneau/rest/RequestQuery.html
+++ b/content/site/apidocs/org/apache/juneau/rest/RequestQuery.html
@@ -18,7 +18,7 @@
catch(err) {
}
//-->
-var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10};
+var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
@@ -48,7 +48,7 @@ var activeTableTab = "activeTableTab";
</div>
<div class="subNav">
<ul class="navList">
-<li><a href="../../../../org/apache/juneau/rest/RequestPathParams.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">Prev Class</span></a></li>
+<li><a href="../../../../org/apache/juneau/rest/RequestPathMatch.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">Prev Class</span></a></li>
<li><a href="../../../../org/apache/juneau/rest/ResponseHandler.html" title="interface in org.apache.juneau.rest"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
@@ -185,19 +185,25 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
+<td class="colFirst"><code><a href="../../../../org/apache/juneau/rest/RequestQuery.html" title="class in org.apache.juneau.rest">RequestQuery</a></code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestQuery.html#addDefault-java.util.Map-">addDefault</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> defaultEntries)</code>
+<div class="block">Adds default entries to these query parameters.</div>
+</td>
+</tr>
+<tr id="i1" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestQuery.html#containsAnyKeys-java.lang.String...-">containsAnyKeys</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>... params)</code>
<div class="block">Returns <jk>true</jk> if the request contains any of the specified query parameters.</div>
</td>
</tr>
-<tr id="i1" class="rowColor">
+<tr id="i2" class="altColor">
<td class="colFirst"><code><T> T</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestQuery.html#get-java.lang.String-java.lang.Class-">get</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type)</code>
<div class="block">Returns the specified query parameter value converted to a POJO.</div>
</td>
</tr>
-<tr id="i2" class="altColor">
+<tr id="i3" class="rowColor">
<td class="colFirst"><code><T> T</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestQuery.html#get-java.lang.String-java.lang.Object-java.lang.reflect.Type-java.lang.reflect.Type...-">get</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> def,
@@ -206,7 +212,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestQuery.html#get-java.lang.String-java.lang.Class-"><code>get(String, Class)</code></a> except returns a default value if not found.</div>
</td>
</tr>
-<tr id="i3" class="rowColor">
+<tr id="i4" class="altColor">
<td class="colFirst"><code><T> T</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestQuery.html#get-java.lang.String-T-java.lang.Class-">get</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
T def,
@@ -214,7 +220,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestQuery.html#get-java.lang.String-java.lang.Class-"><code>get(String, Class)</code></a> except returns a default value if not found.</div>
</td>
</tr>
-<tr id="i4" class="altColor">
+<tr id="i5" class="rowColor">
<td class="colFirst"><code><T> T</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestQuery.html#get-java.lang.String-java.lang.reflect.Type-java.lang.reflect.Type...-">get</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> type,
@@ -222,7 +228,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa
<div class="block">Returns the specified query parameter value converted to a POJO.</div>
</td>
</tr>
-<tr id="i5" class="rowColor">
+<tr id="i6" class="altColor">
<td class="colFirst"><code><T> T</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestQuery.html#getAll-java.lang.String-java.lang.Class-">getAll</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> c)</code>
@@ -230,7 +236,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa
(e.g.</div>
</td>
</tr>
-<tr id="i6" class="altColor">
+<tr id="i7" class="rowColor">
<td class="colFirst"><code><T> T</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestQuery.html#getAll-java.lang.String-java.lang.reflect.Type-java.lang.reflect.Type...-">getAll</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> type,
@@ -239,20 +245,20 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa
(e.g.</div>
</td>
</tr>
-<tr id="i7" class="rowColor">
+<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestQuery.html#getFirst-java.lang.String-">getFirst</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</code>
<div class="block">Returns a query parameter value.</div>
</td>
</tr>
-<tr id="i8" class="altColor">
+<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestQuery.html#getFirst-java.lang.String-java.lang.String-">getFirst</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> def)</code>
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestQuery.html#getFirst-java.lang.String-"><code>getFirst(String)</code></a> but returns the specified default value if the query parameter was not specified.</div>
</td>
</tr>
-<tr id="i9" class="rowColor">
+<tr id="i10" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestQuery.html#put-java.lang.String-java.lang.Object-">put</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
@@ -326,13 +332,31 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa
<!-- -->
</a>
<h3>Method Detail</h3>
+<a name="addDefault-java.util.Map-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>addDefault</h4>
+<pre>public <a href="../../../../org/apache/juneau/rest/RequestQuery.html" title="class in org.apache.juneau.rest">RequestQuery</a> <a href="../../../../src-html/org/apache/juneau/rest/RequestQuery.html#line.53">addDefault</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> defaultEntries)</pre>
+<div class="block">Adds default entries to these query parameters.
+ <p>
+ This includes the default queries defined on the servlet and method levels.</div>
+<dl>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>defaultEntries</code> - The default entries. Can be <jk>null</jk>.</dd>
+<dt><span class="returnLabel">Returns:</span></dt>
+<dd>This object (for method chaining).</dd>
+</dl>
+</li>
+</ul>
<a name="put-java.lang.String-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
-<pre>public void <a href="../../../../src-html/org/apache/juneau/rest/RequestQuery.html#line.51">put</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
+<pre>public void <a href="../../../../src-html/org/apache/juneau/rest/RequestQuery.html#line.71">put</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</pre>
<div class="block">Sets a request query parameter value.</div>
<dl>
@@ -348,7 +372,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa
<ul class="blockList">
<li class="blockList">
<h4>getFirst</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RequestQuery.html#line.65">getFirst</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre>
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RequestQuery.html#line.85">getFirst</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre>
<div class="block">Returns a query parameter value.
<p>
Same as <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletRequest.html?is-external=true#getParameter-java.lang.String-" title="class or interface in javax.servlet"><code>ServletRequest.getParameter(String)</code></a> except only looks in the URL string, not parameters from URL-Encoded FORM posts.
@@ -368,7 +392,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa
<ul class="blockList">
<li class="blockList">
<h4>getFirst</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RequestQuery.html#line.86">getFirst</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RequestQuery.html#line.106">getFirst</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> def)</pre>
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestQuery.html#getFirst-java.lang.String-"><code>getFirst(String)</code></a> but returns the specified default value if the query parameter was not specified.</div>
<dl>
@@ -386,7 +410,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
-<pre>public <T> T <a href="../../../../src-html/org/apache/juneau/rest/RequestQuery.html#line.120">get</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
+<pre>public <T> T <a href="../../../../src-html/org/apache/juneau/rest/RequestQuery.html#line.140">get</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type)
throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre>
<div class="block">Returns the specified query parameter value converted to a POJO.
@@ -431,7 +455,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
-<pre>public <T> T <a href="../../../../src-html/org/apache/juneau/rest/RequestQuery.html#line.134">get</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
+<pre>public <T> T <a href="../../../../src-html/org/apache/juneau/rest/RequestQuery.html#line.154">get</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
T def,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type)
throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre>
@@ -456,7 +480,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
-<pre>public <T> T <a href="../../../../src-html/org/apache/juneau/rest/RequestQuery.html#line.170">get</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
+<pre>public <T> T <a href="../../../../src-html/org/apache/juneau/rest/RequestQuery.html#line.190">get</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> type,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>... args)
throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre>
@@ -503,7 +527,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
-<pre>public <T> T <a href="../../../../src-html/org/apache/juneau/rest/RequestQuery.html#line.188">get</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
+<pre>public <T> T <a href="../../../../src-html/org/apache/juneau/rest/RequestQuery.html#line.208">get</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> def,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> type,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>... args)
@@ -533,7 +557,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa
<ul class="blockList">
<li class="blockList">
<h4>getAll</h4>
-<pre>public <T> T <a href="../../../../src-html/org/apache/juneau/rest/RequestQuery.html#line.204">getAll</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
+<pre>public <T> T <a href="../../../../src-html/org/apache/juneau/rest/RequestQuery.html#line.224">getAll</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> c)
throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre>
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestQuery.html#get-java.lang.String-java.lang.Class-"><code>get(String, Class)</code></a> except for use on multi-part parameters
@@ -559,7 +583,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa
<ul class="blockList">
<li class="blockList">
<h4>getAll</h4>
-<pre>public <T> T <a href="../../../../src-html/org/apache/juneau/rest/RequestQuery.html#line.224">getAll</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
+<pre>public <T> T <a href="../../../../src-html/org/apache/juneau/rest/RequestQuery.html#line.244">getAll</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> type,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>... args)
throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre>
@@ -590,7 +614,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa
<ul class="blockListLast">
<li class="blockList">
<h4>containsAnyKeys</h4>
-<pre>public boolean <a href="../../../../src-html/org/apache/juneau/rest/RequestQuery.html#line.234">containsAnyKeys</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>... params)</pre>
+<pre>public boolean <a href="../../../../src-html/org/apache/juneau/rest/RequestQuery.html#line.254">containsAnyKeys</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>... params)</pre>
<div class="block">Returns <jk>true</jk> if the request contains any of the specified query parameters.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
@@ -627,7 +651,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa
</div>
<div class="subNav">
<ul class="navList">
-<li><a href="../../../../org/apache/juneau/rest/RequestPathParams.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">Prev Class</span></a></li>
+<li><a href="../../../../org/apache/juneau/rest/RequestPathMatch.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">Prev Class</span></a></li>
<li><a href="../../../../org/apache/juneau/rest/ResponseHandler.html" title="interface in org.apache.juneau.rest"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/0c968486/content/site/apidocs/org/apache/juneau/rest/RestCallHandler.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/org/apache/juneau/rest/RestCallHandler.html b/content/site/apidocs/org/apache/juneau/rest/RestCallHandler.html
index c00a364..62d2126 100644
--- a/content/site/apidocs/org/apache/juneau/rest/RestCallHandler.html
+++ b/content/site/apidocs/org/apache/juneau/rest/RestCallHandler.html
@@ -357,7 +357,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?
<ul class="blockList">
<li class="blockList">
<h4>handleResponse</h4>
-<pre>protected void <a href="../../../../src-html/org/apache/juneau/rest/RestCallHandler.html#line.203">handleResponse</a>(<a href="../../../../org/apache/juneau/rest/RestRequest.html" title="class in org.apache.juneau.rest">RestRequest</a> req,
+<pre>protected void <a href="../../../../src-html/org/apache/juneau/rest/RestCallHandler.html#line.206">handleResponse</a>(<a href="../../../../org/apache/juneau/rest/RestRequest.html" title="class in org.apache.juneau.rest">RestRequest</a> req,
<a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a> res,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> output)
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>,
@@ -387,7 +387,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?
<ul class="blockList">
<li class="blockList">
<h4>handleNotFound</h4>
-<pre>protected void <a href="../../../../src-html/org/apache/juneau/rest/RestCallHandler.html#line.222">handleNotFound</a>(int rc,
+<pre>protected void <a href="../../../../src-html/org/apache/juneau/rest/RestCallHandler.html#line.225">handleNotFound</a>(int rc,
<a href="../../../../org/apache/juneau/rest/RestRequest.html" title="class in org.apache.juneau.rest">RestRequest</a> req,
<a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a> res)
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
@@ -411,7 +411,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?
<ul class="blockList">
<li class="blockList">
<h4>handleError</h4>
-<pre>protected void <a href="../../../../src-html/org/apache/juneau/rest/RestCallHandler.html#line.248">handleError</a>(<a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServletRequest.html?is-external=true" title="class or interface in javax.servlet.http">HttpServletRequest</a> req,
+<pre>protected void <a href="../../../../src-html/org/apache/juneau/rest/RestCallHandler.html#line.251">handleError</a>(<a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServletRequest.html?is-external=true" title="class or interface in javax.servlet.http">HttpServletRequest</a> req,
<a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServletResponse.html?is-external=true" title="class or interface in javax.servlet.http">HttpServletResponse</a> res,
<a href="../../../../org/apache/juneau/rest/RestException.html" title="class in org.apache.juneau.rest">RestException</a> e)
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
@@ -436,7 +436,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?
<ul class="blockList">
<li class="blockList">
<h4>renderError</h4>
-<pre>protected void <a href="../../../../src-html/org/apache/juneau/rest/RestCallHandler.html#line.267">renderError</a>(<a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServletRequest.html?is-external=true" title="class or interface in javax.servlet.http">HttpServletRequest</a> req,
+<pre>protected void <a href="../../../../src-html/org/apache/juneau/rest/RestCallHandler.html#line.270">renderError</a>(<a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServletRequest.html?is-external=true" title="class or interface in javax.servlet.http">HttpServletRequest</a> req,
<a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServletResponse.html?is-external=true" title="class or interface in javax.servlet.http">HttpServletResponse</a> res,
<a href="../../../../org/apache/juneau/rest/RestException.html" title="class in org.apache.juneau.rest">RestException</a> e)
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
@@ -462,7 +462,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?
<ul class="blockList">
<li class="blockList">
<h4>onSuccess</h4>
-<pre>protected void <a href="../../../../src-html/org/apache/juneau/rest/RestCallHandler.html#line.308">onSuccess</a>(<a href="../../../../org/apache/juneau/rest/RestRequest.html" title="class in org.apache.juneau.rest">RestRequest</a> req,
+<pre>protected void <a href="../../../../src-html/org/apache/juneau/rest/RestCallHandler.html#line.311">onSuccess</a>(<a href="../../../../org/apache/juneau/rest/RestRequest.html" title="class in org.apache.juneau.rest">RestRequest</a> req,
<a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a> res,
long time)</pre>
<div class="block">Callback method for listening for successful completion of requests.
@@ -484,7 +484,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?
<ul class="blockList">
<li class="blockList">
<h4>onPreCall</h4>
-<pre>protected void <a href="../../../../src-html/org/apache/juneau/rest/RestCallHandler.html#line.322">onPreCall</a>(<a href="../../../../org/apache/juneau/rest/RestRequest.html" title="class in org.apache.juneau.rest">RestRequest</a> req)
+<pre>protected void <a href="../../../../src-html/org/apache/juneau/rest/RestCallHandler.html#line.325">onPreCall</a>(<a href="../../../../org/apache/juneau/rest/RestRequest.html" title="class in org.apache.juneau.rest">RestRequest</a> req)
throws <a href="../../../../org/apache/juneau/rest/RestException.html" title="class in org.apache.juneau.rest">RestException</a></pre>
<div class="block">Callback method that gets invoked right before the REST Java method is invoked.
<p>
@@ -504,7 +504,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?
<ul class="blockList">
<li class="blockList">
<h4>onPostCall</h4>
-<pre>protected void <a href="../../../../src-html/org/apache/juneau/rest/RestCallHandler.html#line.338">onPostCall</a>(<a href="../../../../org/apache/juneau/rest/RestRequest.html" title="class in org.apache.juneau.rest">RestRequest</a> req,
+<pre>protected void <a href="../../../../src-html/org/apache/juneau/rest/RestCallHandler.html#line.341">onPostCall</a>(<a href="../../../../org/apache/juneau/rest/RestRequest.html" title="class in org.apache.juneau.rest">RestRequest</a> req,
<a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a> res)
throws <a href="../../../../org/apache/juneau/rest/RestException.html" title="class in org.apache.juneau.rest">RestException</a></pre>
<div class="block">Callback method that gets invoked right after the REST Java method is invoked, but before
@@ -527,7 +527,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?
<ul class="blockListLast">
<li class="blockList">
<h4>getSessionObjects</h4>
-<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> <a href="../../../../src-html/org/apache/juneau/rest/RestCallHandler.html#line.351">getSessionObjects</a>(<a href="../../../../org/apache/juneau/rest/RestRequest.html" title="class in org.apache.juneau.rest">RestRequest</a> req)</pre>
+<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> <a href="../../../../src-html/org/apache/juneau/rest/RestCallHandler.html#line.354">getSessionObjects</a>(<a href="../../../../org/apache/juneau/rest/RestRequest.html" title="class in org.apache.juneau.rest">RestRequest</a> req)</pre>
<div class="block">Returns the session objects for the specified request.
<p>
The default implementation simply returns a single map containing <code>{'req':req}</code>.</div>