http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/62afb533/content/site/apidocs/org/apache/juneau/http/MediaType.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/http/MediaType.html b/content/site/apidocs/org/apache/juneau/http/MediaType.html index fb8c4b8..34e256c 100644 --- a/content/site/apidocs/org/apache/juneau/http/MediaType.html +++ b/content/site/apidocs/org/apache/juneau/http/MediaType.html @@ -18,7 +18,7 @@ catch(err) { } //--> -var methods = {"i0":10,"i1":10,"i2":9,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10}; +var methods = {"i0":10,"i1":10,"i2":9,"i3":9,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":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"; @@ -117,7 +117,7 @@ var activeTableTab = "activeTableTab"; <hr> <br> <pre><a href="../../../../org/apache/juneau/annotation/BeanIgnore.html" title="annotation in org.apache.juneau.annotation">@BeanIgnore</a> -public class <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.38">MediaType</a> +public class <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.40">MediaType</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/MediaType.html" title="class in org.apache.juneau.http">MediaType</a>></pre> <div class="block">Describes a single media type used in content negotiation between an HTTP client and server, as described in @@ -263,52 +263,60 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparabl </td> </tr> <tr id="i3" class="rowColor"> +<td class="colFirst"><code>static <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/http/MediaType.html#forStrings-java.lang.String...-">forStrings</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">Same as <a href="../../../../org/apache/juneau/http/MediaType.html#forString-java.lang.String-"><code>forString(String)</code></a> but allows you to construct an array of <code>MediaTypes</code> from an + array of strings.</div> +</td> +</tr> +<tr id="i4" 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/MediaType.html#getParameters--">getParameters</a></span>()</code> <div class="block">Returns the additional parameters on this media type.</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/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/MediaType.html#getSubType--">getSubType</a></span>()</code> <div class="block">Returns the <js>'subType'</js> fragment of the <js>'type/subType'</js> string.</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/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/http/MediaType.html#getSubTypes--">getSubTypes</a></span>()</code> <div class="block">Returns the subtypes broken down by fragments delimited by <js>"'"</js>.</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/http/MediaType.html#getType--">getType</a></span>()</code> <div class="block">Returns the <js>'type'</js> fragment of the <js>'type/subType'</js> string.</div> </td> </tr> -<tr id="i7" class="rowColor"> +<tr id="i8" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/MediaType.html#hashCode--">hashCode</a></span>()</code> </td> </tr> -<tr id="i8" class="altColor"> +<tr id="i9" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/MediaType.html#hasSubType-java.lang.String-">hasSubType</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> st)</code> <div class="block">Returns <jk>true</jk> if the subtype contains the specified <js>'+'</js> delimited subtype value.</div> </td> </tr> -<tr id="i9" class="rowColor"> -<td class="colFirst"><code>int</code></td> -<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/MediaType.html#match-org.apache.juneau.http.MediaType-">match</a></span>(<a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> o)</code> -<div class="block">Returns a match metric against the specified media type where a larger number represents a better match.</div> -</td> -</tr> <tr id="i10" class="altColor"> <td class="colFirst"><code>boolean</code></td> -<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/MediaType.html#matches-org.apache.juneau.http.MediaType-">matches</a></span>(<a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> o)</code> -<div class="block">Returns <jk>true</jk> if this media type is a match for the specified media type.</div> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/MediaType.html#isMeta--">isMeta</a></span>()</code> +<div class="block">Returns <jk>true</jk> if this media type contains the <js>'*'</js> meta character.</div> </td> </tr> <tr id="i11" class="rowColor"> +<td class="colFirst"><code>int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/MediaType.html#match-org.apache.juneau.http.MediaType-boolean-">match</a></span>(<a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> o, + boolean allowExtraSubTypes)</code> +<div class="block">Returns a match metric against the specified media type where a larger number represents a better match.</div> +</td> +</tr> +<tr id="i12" 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/MediaType.html#toString--">toString</a></span>()</code> </td> </tr> @@ -340,7 +348,7 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparabl <ul class="blockList"> <li class="blockList"> <h4>CSV</h4> -<pre>public static final <a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.46">CSV</a></pre> +<pre>public static final <a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.48">CSV</a></pre> <div class="block">Reusable predefined media type</div> </li> </ul> @@ -350,7 +358,7 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparabl <ul class="blockList"> <li class="blockList"> <h4>HTML</h4> -<pre>public static final <a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.47">HTML</a></pre> +<pre>public static final <a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.49">HTML</a></pre> <div class="block">Reusable predefined media type</div> </li> </ul> @@ -360,7 +368,7 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparabl <ul class="blockList"> <li class="blockList"> <h4>JSON</h4> -<pre>public static final <a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.48">JSON</a></pre> +<pre>public static final <a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.50">JSON</a></pre> <div class="block">Reusable predefined media type</div> </li> </ul> @@ -370,7 +378,7 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparabl <ul class="blockList"> <li class="blockList"> <h4>MSGPACK</h4> -<pre>public static final <a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.49">MSGPACK</a></pre> +<pre>public static final <a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.51">MSGPACK</a></pre> <div class="block">Reusable predefined media type</div> </li> </ul> @@ -380,7 +388,7 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparabl <ul class="blockList"> <li class="blockList"> <h4>PLAIN</h4> -<pre>public static final <a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.50">PLAIN</a></pre> +<pre>public static final <a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.52">PLAIN</a></pre> <div class="block">Reusable predefined media type</div> </li> </ul> @@ -390,7 +398,7 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparabl <ul class="blockList"> <li class="blockList"> <h4>UON</h4> -<pre>public static final <a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.51">UON</a></pre> +<pre>public static final <a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.53">UON</a></pre> <div class="block">Reusable predefined media type</div> </li> </ul> @@ -400,7 +408,7 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparabl <ul class="blockList"> <li class="blockList"> <h4>URLENCODING</h4> -<pre>public static final <a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.52">URLENCODING</a></pre> +<pre>public static final <a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.54">URLENCODING</a></pre> <div class="block">Reusable predefined media type</div> </li> </ul> @@ -410,7 +418,7 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparabl <ul class="blockList"> <li class="blockList"> <h4>XML</h4> -<pre>public static final <a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.53">XML</a></pre> +<pre>public static final <a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.55">XML</a></pre> <div class="block">Reusable predefined media type</div> </li> </ul> @@ -420,7 +428,7 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparabl <ul class="blockList"> <li class="blockList"> <h4>XMLSOAP</h4> -<pre>public static final <a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.54">XMLSOAP</a></pre> +<pre>public static final <a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.56">XMLSOAP</a></pre> <div class="block">Reusable predefined media type</div> </li> </ul> @@ -430,7 +438,7 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparabl <ul class="blockList"> <li class="blockList"> <h4>RDF</h4> -<pre>public static final <a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.56">RDF</a></pre> +<pre>public static final <a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.58">RDF</a></pre> <div class="block">Reusable predefined media type</div> </li> </ul> @@ -440,7 +448,7 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparabl <ul class="blockList"> <li class="blockList"> <h4>RDFABBREV</h4> -<pre>public static final <a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.57">RDFABBREV</a></pre> +<pre>public static final <a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.59">RDFABBREV</a></pre> <div class="block">Reusable predefined media type</div> </li> </ul> @@ -450,7 +458,7 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparabl <ul class="blockList"> <li class="blockList"> <h4>NTRIPLE</h4> -<pre>public static final <a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.58">NTRIPLE</a></pre> +<pre>public static final <a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.60">NTRIPLE</a></pre> <div class="block">Reusable predefined media type</div> </li> </ul> @@ -460,7 +468,7 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparabl <ul class="blockList"> <li class="blockList"> <h4>TURTLE</h4> -<pre>public static final <a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.59">TURTLE</a></pre> +<pre>public static final <a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.61">TURTLE</a></pre> <div class="block">Reusable predefined media type</div> </li> </ul> @@ -470,7 +478,7 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparabl <ul class="blockListLast"> <li class="blockList"> <h4>N3</h4> -<pre>public static final <a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.60">N3</a></pre> +<pre>public static final <a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.62">N3</a></pre> <div class="block">Reusable predefined media type</div> </li> </ul> @@ -488,7 +496,7 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparabl <ul class="blockList"> <li class="blockList"> <h4>forString</h4> -<pre>public static <a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.93">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> +<pre>public static <a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.96">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 the media type for the specified string. The same media type strings always return the same objects so that these objects can be compared for equality using '=='. @@ -507,19 +515,37 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparabl <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>s</code> - The media type string. Will be lowercased. - Returns <jk>null</jk> if input is null.</dd> + Returns <jk>null</jk> if input is null or empty.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>A cached media type object.</dd> </dl> </li> </ul> +<a name="forStrings-java.lang.String...-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>forStrings</h4> +<pre>public static <a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a>[] <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.119">forStrings</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">Same as <a href="../../../../org/apache/juneau/http/MediaType.html#forString-java.lang.String-"><code>forString(String)</code></a> but allows you to construct an array of <code>MediaTypes</code> from an + array of strings.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>s</code> - The media type strings.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>An array of <code>MediaType</code> objects. + <br>Always the same length as the input string array.</dd> +</dl> +</li> +</ul> <a name="getType--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getType</h4> -<pre>public final <a href="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/MediaType.html#line.160">getType</a>()</pre> +<pre>public final <a href="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/MediaType.html#line.186">getType</a>()</pre> <div class="block">Returns the <js>'type'</js> fragment of the <js>'type/subType'</js> string.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> @@ -533,7 +559,7 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparabl <ul class="blockList"> <li class="blockList"> <h4>getSubType</h4> -<pre>public final <a href="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/MediaType.html#line.169">getSubType</a>()</pre> +<pre>public final <a href="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/MediaType.html#line.195">getSubType</a>()</pre> <div class="block">Returns the <js>'subType'</js> fragment of the <js>'type/subType'</js> string.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> @@ -547,7 +573,7 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparabl <ul class="blockList"> <li class="blockList"> <h4>hasSubType</h4> -<pre>public final boolean <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.181">hasSubType</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> st)</pre> +<pre>public final boolean <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.207">hasSubType</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> st)</pre> <div class="block">Returns <jk>true</jk> if the subtype contains the specified <js>'+'</js> delimited subtype value.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> @@ -564,7 +590,7 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparabl <ul class="blockList"> <li class="blockList"> <h4>getSubTypes</h4> -<pre>public final <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/http/MediaType.html#line.198">getSubTypes</a>()</pre> +<pre>public final <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/http/MediaType.html#line.224">getSubTypes</a>()</pre> <div class="block">Returns the subtypes broken down by fragments delimited by <js>"'"</js>. <P> @@ -576,56 +602,68 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparabl </dl> </li> </ul> -<a name="matches-org.apache.juneau.http.MediaType-"> +<a name="isMeta--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> -<h4>matches</h4> -<pre>public final boolean <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.217">matches</a>(<a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> o)</pre> -<div class="block">Returns <jk>true</jk> if this media type is a match for the specified media type. - - <p> - Matches if any of the following is true: - <ul> - <li>Both type and subtype are the same. - <li>One or both types are <js>'*'</js> and the subtypes are the same. - <li>One or both subtypes are <js>'*'</js> and the types are the same. - <li>Either is <js>'*\/*'</js>. - </ul></div> +<h4>isMeta</h4> +<pre>public final boolean <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.233">isMeta</a>()</pre> +<div class="block">Returns <jk>true</jk> if this media type contains the <js>'*'</js> meta character.</div> <dl> -<dt><span class="paramLabel">Parameters:</span></dt> -<dd><code>o</code> - The media type to compare with.</dd> <dt><span class="returnLabel">Returns:</span></dt> -<dd><jk>true</jk> if the media types match.</dd> +<dd><jk>true</jk> if this media type contains the <js>'*'</js> meta character.</dd> </dl> </li> </ul> -<a name="match-org.apache.juneau.http.MediaType-"> +<a name="match-org.apache.juneau.http.MediaType-boolean-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>match</h4> -<pre>public final int <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.241">match</a>(<a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> o)</pre> +<pre>public final int <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.279">match</a>(<a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> o, + boolean allowExtraSubTypes)</pre> <div class="block">Returns a match metric against the specified media type where a larger number represents a better match. + <p> + This media type can contain <js>'*'</js> metacharacters. + <br>The comparison media type must not. + <ul> <li>Exact matches (e.g. <js>"text/json"<js>/</js>"text/json"</js>) should match better than meta-character matches (e.g. <js>"text/*"<js>/</js>"text/json"</js>) <li>The comparison media type can have additional subtype tokens (e.g. <js>"text/json+foo"</js>) - that will not prevent a match. The reverse is not true, e.g. the comparison media type - must contain all subtype tokens found in the comparing media type. + that will not prevent a match if the <code>allowExtraSubTypes</code> flag is set. + The reverse is not true, e.g. the comparison media type must contain all subtype tokens found in the + comparing media type. <ul> <li>We want the <a href="../../../../org/apache/juneau/json/JsonSerializer.html" title="class in org.apache.juneau.json"><code>JsonSerializer</code></a> (<js>"text/json"</js>) class to be able to handle requests for <js>"text/json+foo"</js>. <li>We want to make sure <a href="../../../../org/apache/juneau/json/JsonSerializer.Simple.html" title="class in org.apache.juneau.json"><code>JsonSerializer.Simple</code></a> (<js>"text/json+simple"</js>) does not handle requests for <js>"text/json"</js>. </ul> More token matches should result in a higher match number. + </ul> + + The formula is as follows for <code>type/subTypes</code>: + <ul> + <li>An exact match is <code>100,000</code>. + <li>Add the following for type (assuming subtype match is <0): + <ul> + <li><code>10,000</code> for an exact match (e.g. <js>"text"</js>==<js>"text"</js>). + <li><code>5,000</code> for a meta match (e.g. <js>"*"</js>==<js>"text"</js>). + <ul> + <li>Add the following for subtype (assuming type match is <0): + <ul> + <li><code>7,500</code> for an exact match (e.g. <js>"json+foo"</js>==<js>"json+foo"</js> or <js>"json+foo"</js>==<js>"foo+json"</js>) + <li><code>100</code> for every subtype entry match (e.g. <js>"json"</js>/<js>"json+foo"</js>) + <li><code>10</code> for a subtype entry meta match (e.g. <js>"*"</js>/<js>"json"</js> or <js>"json+*"</js>/<js>"json+foo"</js>) + </ul> </ul></div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>o</code> - The media type to compare with.</dd> +<dd><code>allowExtraSubTypes</code> - If <jk>true</jk>,</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd><jk>true</jk> if the media types match.</dd> </dl> @@ -637,7 +675,7 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparabl <ul class="blockList"> <li class="blockList"> <h4>getParameters</h4> -<pre>public final <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/MediaType.html#line.286">getParameters</a>()</pre> +<pre>public final <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/MediaType.html#line.334">getParameters</a>()</pre> <div class="block">Returns the additional parameters on this media type. <p> @@ -655,7 +693,7 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparabl <ul class="blockList"> <li class="blockList"> <h4>toString</h4> -<pre>public final <a href="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/MediaType.html#line.291">toString</a>()</pre> +<pre>public final <a href="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/MediaType.html#line.339">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> @@ -668,7 +706,7 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparabl <ul class="blockList"> <li class="blockList"> <h4>hashCode</h4> -<pre>public final int <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.302">hashCode</a>()</pre> +<pre>public final int <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.350">hashCode</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#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> @@ -681,7 +719,7 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparabl <ul class="blockList"> <li class="blockList"> <h4>equals</h4> -<pre>public final boolean <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.307">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> +<pre>public final boolean <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.355">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> <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> @@ -694,7 +732,7 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparabl <ul class="blockListLast"> <li class="blockList"> <h4>compareTo</h4> -<pre>public final int <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.312">compareTo</a>(<a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> o)</pre> +<pre>public final int <a href="../../../../src-html/org/apache/juneau/http/MediaType.html#line.360">compareTo</a>(<a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> o)</pre> <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/MediaType.html" title="class in org.apache.juneau.http">MediaType</a>></code></dd>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/62afb533/content/site/apidocs/org/apache/juneau/http/MediaTypeRange.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/http/MediaTypeRange.html b/content/site/apidocs/org/apache/juneau/http/MediaTypeRange.html index 529bde3..03bd570 100644 --- a/content/site/apidocs/org/apache/juneau/http/MediaTypeRange.html +++ b/content/site/apidocs/org/apache/juneau/http/MediaTypeRange.html @@ -18,7 +18,7 @@ catch(err) { } //--> -var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":9,"i8":10}; +var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":9,"i7":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"; @@ -183,19 +183,12 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparabl </td> </tr> <tr id="i6" class="altColor"> -<td class="colFirst"><code>float</code></td> -<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/MediaTypeRange.html#matches-org.apache.juneau.http.MediaType-">matches</a></span>(<a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> o)</code> -<div class="block">Matches the specified media type against this range and returns a q-value between 0 and 1 indicating the - quality of the match.</div> -</td> -</tr> -<tr id="i7" class="rowColor"> <td class="colFirst"><code>static <a href="../../../../org/apache/juneau/http/MediaTypeRange.html" title="class in org.apache.juneau.http">MediaTypeRange</a>[]</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/http/MediaTypeRange.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 an <code>Accept</code> header value into an array of media ranges.</div> </td> </tr> -<tr id="i8" 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/http/MediaTypeRange.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> @@ -375,7 +368,7 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparabl <a name="compareTo-org.apache.juneau.http.MediaTypeRange-"> <!-- --> </a> -<ul class="blockList"> +<ul class="blockListLast"> <li class="blockList"> <h4>compareTo</h4> <pre>public int <a href="../../../../src-html/org/apache/juneau/http/MediaTypeRange.html#line.269">compareTo</a>(<a href="../../../../org/apache/juneau/http/MediaTypeRange.html" title="class in org.apache.juneau.http">MediaTypeRange</a> o)</pre> @@ -397,23 +390,6 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparabl </dl> </li> </ul> -<a name="matches-org.apache.juneau.http.MediaType-"> -<!-- --> -</a> -<ul class="blockListLast"> -<li class="blockList"> -<h4>matches</h4> -<pre>public float <a href="../../../../src-html/org/apache/juneau/http/MediaTypeRange.html#line.289">matches</a>(<a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> o)</pre> -<div class="block">Matches the specified media type against this range and returns a q-value between 0 and 1 indicating the - quality of the match.</div> -<dl> -<dt><span class="paramLabel">Parameters:</span></dt> -<dd><code>o</code> - The media type to match against.</dd> -<dt><span class="returnLabel">Returns:</span></dt> -<dd>A float between 0 and 1. 1 is a perfect match. 0 is no match at all.</dd> -</dl> -</li> -</ul> </li> </ul> </li> http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/62afb533/content/site/apidocs/org/apache/juneau/internal/ArrayUtils.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/internal/ArrayUtils.html b/content/site/apidocs/org/apache/juneau/internal/ArrayUtils.html index 8093002..46190c3 100644 --- a/content/site/apidocs/org/apache/juneau/internal/ArrayUtils.html +++ b/content/site/apidocs/org/apache/juneau/internal/ArrayUtils.html @@ -18,7 +18,7 @@ catch(err) { } //--> -var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9}; +var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9}; var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -196,77 +196,84 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? </td> </tr> <tr id="i7" class="rowColor"> +<td class="colFirst"><code>static boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/internal/ArrayUtils.html#equals-java.lang.String:A-java.lang.String:A-">equals</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>[] a1, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] a2)</code> +<div class="block">Returns <jk>true</jk> if the following sorted arrays are equals.</div> +</td> +</tr> +<tr id="i8" class="altColor"> <td class="colFirst"><code>static <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/internal/ArrayUtils.html#getFirst-java.lang.Object-">getFirst</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> val)</code> <div class="block">Returns the first object in the specified collection or array.</div> </td> </tr> -<tr id="i8" class="altColor"> +<tr id="i9" class="rowColor"> <td class="colFirst"><code>static int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/internal/ArrayUtils.html#indexOf-java.lang.String-java.lang.String:A-">indexOf</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> element, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] array)</code> <div class="block">Returns the index position of the element in the specified array using the <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang"><code>String.equals(Object)</code></a> method.</div> </td> </tr> -<tr id="i9" class="rowColor"> +<tr id="i10" class="altColor"> <td class="colFirst"><code>static <T> int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/internal/ArrayUtils.html#indexOf-T-T:A-">indexOf</a></span>(T element, T[] array)</code> <div class="block">Returns the index position of the element in the specified array using the <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"><code>Object.equals(Object)</code></a> method.</div> </td> </tr> -<tr id="i10" class="altColor"> +<tr id="i11" class="rowColor"> <td class="colFirst"><code>static boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/internal/ArrayUtils.html#isArray-java.lang.Object-">isArray</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> array)</code> <div class="block">Returns <jk>true</jk> if the specified object is an array.</div> </td> </tr> -<tr id="i11" class="rowColor"> +<tr id="i12" class="altColor"> <td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</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>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/internal/ArrayUtils.html#iterator-java.lang.Object-">iterator</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> array)</code> <div class="block">Returns an iterator against an array.</div> </td> </tr> -<tr id="i12" class="altColor"> +<tr id="i13" class="rowColor"> <td class="colFirst"><code>static <T> T[]</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/internal/ArrayUtils.html#reverse-T:A-">reverse</a></span>(T[] array)</code> <div class="block">Creates a new array with reversed entries.</div> </td> </tr> -<tr id="i13" class="rowColor"> +<tr id="i14" class="altColor"> <td class="colFirst"><code>static <T> <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/internal/ArrayUtils.html#toArray-java.util.Collection-java.lang.Class-">toArray</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><?> c, <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> componentType)</code> <div class="block">Converts the specified collection to an array.</div> </td> </tr> -<tr id="i14" class="altColor"> +<tr id="i15" class="rowColor"> <td class="colFirst"><code>static <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><?></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/internal/ArrayUtils.html#toList-java.lang.Iterable-">toList</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><?> i)</code> <div class="block">Converts an Iterable to a list.</div> </td> </tr> -<tr id="i15" class="rowColor"> +<tr id="i16" class="altColor"> <td class="colFirst"><code>static <T> <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><T></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/internal/ArrayUtils.html#toList-java.lang.Object-java.lang.Class-">toList</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> array, <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> componentType)</code> <div class="block">Converts the specified array to an <code>ArrayList</code></div> </td> </tr> -<tr id="i16" class="altColor"> +<tr id="i17" class="rowColor"> <td class="colFirst"><code>static <T> T[]</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/internal/ArrayUtils.html#toObjectArray-java.util.Collection-java.lang.Class-">toObjectArray</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><?> c, <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> componentType)</code> <div class="block">Shortcut for calling <code>myList.toArray(new T[myList.size()]);</code></div> </td> </tr> -<tr id="i17" class="rowColor"> +<tr id="i18" class="altColor"> <td class="colFirst"><code>static <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/internal/ArrayUtils.html#toPrimitiveArray-java.lang.Object-">toPrimitiveArray</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">Converts a primitive wrapper array (e.g.</div> </td> </tr> -<tr id="i18" class="altColor"> +<tr id="i19" class="rowColor"> <td class="colFirst"><code>static <a href="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/internal/ArrayUtils.html#toStringArray-java.util.Collection-">toStringArray</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><?> c)</code> <div class="block">Converts the specified collection to an array of strings.</div> @@ -667,7 +674,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <a name="toStringArray-java.util.Collection-"> <!-- --> </a> -<ul class="blockListLast"> +<ul class="blockList"> <li class="blockList"> <h4>toStringArray</h4> <pre>public static <a href="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/internal/ArrayUtils.html#line.412">toStringArray</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><?> c)</pre> @@ -684,6 +691,24 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? </dl> </li> </ul> +<a name="equals-java.lang.String:A-java.lang.String:A-"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>equals</h4> +<pre>public static boolean <a href="../../../../src-html/org/apache/juneau/internal/ArrayUtils.html#line.427">equals</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>[] a1, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] a2)</pre> +<div class="block">Returns <jk>true</jk> if the following sorted arrays are equals.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>a1</code> - Array #1.</dd> +<dd><code>a2</code> - Array #2.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd><jk>true</jk> if the following sorted arrays are equals.</dd> +</dl> +</li> +</ul> </li> </ul> </li> http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/62afb533/content/site/apidocs/org/apache/juneau/internal/ClassUtils.MethodInfo.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/internal/ClassUtils.MethodInfo.html b/content/site/apidocs/org/apache/juneau/internal/ClassUtils.MethodInfo.html index aea5aea..7213011 100644 --- a/content/site/apidocs/org/apache/juneau/internal/ClassUtils.MethodInfo.html +++ b/content/site/apidocs/org/apache/juneau/internal/ClassUtils.MethodInfo.html @@ -106,7 +106,7 @@ </dl> <hr> <br> -<pre>public static class <a href="../../../../src-html/org/apache/juneau/internal/ClassUtils.html#line.760">ClassUtils.MethodInfo</a> +<pre>public static class <a href="../../../../src-html/org/apache/juneau/internal/ClassUtils.html#line.766">ClassUtils.MethodInfo</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">Simple bean that shows the name, parameter types, and return type of a method.</div> </li> @@ -175,7 +175,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>methodName</h4> -<pre>public final <a href="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/internal/ClassUtils.MethodInfo.html#line.761">methodName</a></pre> +<pre>public final <a href="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/internal/ClassUtils.MethodInfo.html#line.767">methodName</a></pre> </li> </ul> <a name="parameterTypes"> @@ -184,7 +184,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>parameterTypes</h4> -<pre>public final <a href="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/internal/ClassUtils.MethodInfo.html#line.762">parameterTypes</a></pre> +<pre>public final <a href="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/internal/ClassUtils.MethodInfo.html#line.768">parameterTypes</a></pre> </li> </ul> <a name="returnType"> @@ -193,7 +193,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockListLast"> <li class="blockList"> <h4>returnType</h4> -<pre>public final <a href="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/internal/ClassUtils.MethodInfo.html#line.763">returnType</a></pre> +<pre>public final <a href="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/internal/ClassUtils.MethodInfo.html#line.769">returnType</a></pre> </li> </ul> </li> http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/62afb533/content/site/apidocs/org/apache/juneau/internal/ClassUtils.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/internal/ClassUtils.html b/content/site/apidocs/org/apache/juneau/internal/ClassUtils.html index eec364a..b1a9144 100644 --- a/content/site/apidocs/org/apache/juneau/internal/ClassUtils.html +++ b/content/site/apidocs/org/apache/juneau/internal/ClassUtils.html @@ -967,7 +967,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>findPublicMethod</h4> -<pre>public static <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> <a href="../../../../src-html/org/apache/juneau/internal/ClassUtils.html#line.544">findPublicMethod</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">Class</a><?> c, +<pre>public static <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> <a href="../../../../src-html/org/apache/juneau/internal/ClassUtils.html#line.550">findPublicMethod</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">Class</a><?> c, <a href="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><?> returnType, <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><?>... parameterTypes)</pre> @@ -995,7 +995,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>findPublicConstructor</h4> -<pre>public static <T> <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Constructor.html?is-external=true" title="class or interface in java.lang.reflect">Constructor</a><T> <a href="../../../../src-html/org/apache/juneau/internal/ClassUtils.html#line.577">findPublicConstructor</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">Class</a><T> c, +<pre>public static <T> <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Constructor.html?is-external=true" title="class or interface in java.lang.reflect">Constructor</a><T> <a href="../../../../src-html/org/apache/juneau/internal/ClassUtils.html#line.583">findPublicConstructor</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">Class</a><T> c, <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><?>... parameterTypes)</pre> <div class="block">Finds a public constructor with the specified parameters without throwing an exception.</div> <dl> @@ -1014,7 +1014,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>findPublicConstructor</h4> -<pre>public static <T> <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Constructor.html?is-external=true" title="class or interface in java.lang.reflect">Constructor</a><T> <a href="../../../../src-html/org/apache/juneau/internal/ClassUtils.html#line.606">findPublicConstructor</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">Class</a><T> c, +<pre>public static <T> <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Constructor.html?is-external=true" title="class or interface in java.lang.reflect">Constructor</a><T> <a href="../../../../src-html/org/apache/juneau/internal/ClassUtils.html#line.612">findPublicConstructor</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">Class</a><T> c, <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)</pre> <div class="block">Finds the public constructor that can take in the specified arguments.</div> <dl> @@ -1033,7 +1033,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>getClasses</h4> -<pre>public static <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><?>[] <a href="../../../../src-html/org/apache/juneau/internal/ClassUtils.html#line.616">getClasses</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>... args)</pre> +<pre>public static <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><?>[] <a href="../../../../src-html/org/apache/juneau/internal/ClassUtils.html#line.622">getClasses</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>... args)</pre> <div class="block">Returns the class types for the specified arguments.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> @@ -1049,7 +1049,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>getMethodInfo</h4> -<pre>public static <a href="../../../../org/apache/juneau/internal/ClassUtils.MethodInfo.html" title="class in org.apache.juneau.internal">ClassUtils.MethodInfo</a> <a href="../../../../src-html/org/apache/juneau/internal/ClassUtils.html#line.738">getMethodInfo</a>(<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> m)</pre> +<pre>public static <a href="../../../../org/apache/juneau/internal/ClassUtils.MethodInfo.html" title="class in org.apache.juneau.internal">ClassUtils.MethodInfo</a> <a href="../../../../src-html/org/apache/juneau/internal/ClassUtils.html#line.744">getMethodInfo</a>(<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> m)</pre> <div class="block">Returns a <a href="../../../../org/apache/juneau/internal/ClassUtils.MethodInfo.html" title="class in org.apache.juneau.internal"><code>ClassUtils.MethodInfo</code></a> bean that describes the specified method.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> @@ -1065,7 +1065,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>getMethodInfo</h4> -<pre>public static <a href="../../../../org/apache/juneau/internal/ClassUtils.MethodInfo.html" title="class in org.apache.juneau.internal">ClassUtils.MethodInfo</a>[] <a href="../../../../src-html/org/apache/juneau/internal/ClassUtils.html#line.748">getMethodInfo</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<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>> m)</pre> +<pre>public static <a href="../../../../org/apache/juneau/internal/ClassUtils.MethodInfo.html" title="class in org.apache.juneau.internal">ClassUtils.MethodInfo</a>[] <a href="../../../../src-html/org/apache/juneau/internal/ClassUtils.html#line.754">getMethodInfo</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<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>> m)</pre> <div class="block">Returns <a href="../../../../org/apache/juneau/internal/ClassUtils.MethodInfo.html" title="class in org.apache.juneau.internal"><code>ClassUtils.MethodInfo</code></a> beans that describe the specified methods.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> @@ -1081,7 +1081,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>newInstance</h4> -<pre>public static <T> T <a href="../../../../src-html/org/apache/juneau/internal/ClassUtils.html#line.786">newInstance</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">Class</a><T> c, +<pre>public static <T> T <a href="../../../../src-html/org/apache/juneau/internal/ClassUtils.html#line.792">newInstance</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">Class</a><T> c, <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> c2, <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)</pre> <div class="block">Creates an instance of the specified class without throwing exceptions.</div> @@ -1104,7 +1104,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>newInstanceFromOuter</h4> -<pre>public static <T> T <a href="../../../../src-html/org/apache/juneau/internal/ClassUtils.html#line.805">newInstanceFromOuter</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> outer, +<pre>public static <T> T <a href="../../../../src-html/org/apache/juneau/internal/ClassUtils.html#line.811">newInstanceFromOuter</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> outer, <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, <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> c2, <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)</pre> @@ -1130,7 +1130,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>getAllFields</h4> -<pre>public static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Field.html?is-external=true" title="class or interface in java.lang.reflect">Field</a>> <a href="../../../../src-html/org/apache/juneau/internal/ClassUtils.html#line.844">getAllFields</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">Class</a> c, +<pre>public static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Field.html?is-external=true" title="class or interface in java.lang.reflect">Field</a>> <a href="../../../../src-html/org/apache/juneau/internal/ClassUtils.html#line.850">getAllFields</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">Class</a> c, boolean parentFirst)</pre> <div class="block">Returns all the fields in the specified class and all parent classes. @@ -1151,7 +1151,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>getAllMethods</h4> -<pre>public static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<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>> <a href="../../../../src-html/org/apache/juneau/internal/ClassUtils.html#line.902">getAllMethods</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">Class</a> c, +<pre>public static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<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>> <a href="../../../../src-html/org/apache/juneau/internal/ClassUtils.html#line.908">getAllMethods</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">Class</a> c, boolean parentFirst)</pre> <div class="block">Returns all the methods in the specified class and all parent classes. @@ -1172,7 +1172,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>sort</h4> -<pre>public static <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>[] <a href="../../../../src-html/org/apache/juneau/internal/ClassUtils.html#line.972">sort</a>(<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>[] m)</pre> +<pre>public static <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>[] <a href="../../../../src-html/org/apache/juneau/internal/ClassUtils.html#line.978">sort</a>(<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>[] m)</pre> <div class="block">Sorts methods in alphabetical order.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> @@ -1188,7 +1188,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>sort</h4> -<pre>public static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Field.html?is-external=true" title="class or interface in java.lang.reflect">Field</a>[] <a href="../../../../src-html/org/apache/juneau/internal/ClassUtils.html#line.991">sort</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Field.html?is-external=true" title="class or interface in java.lang.reflect">Field</a>[] m)</pre> +<pre>public static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Field.html?is-external=true" title="class or interface in java.lang.reflect">Field</a>[] <a href="../../../../src-html/org/apache/juneau/internal/ClassUtils.html#line.997">sort</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Field.html?is-external=true" title="class or interface in java.lang.reflect">Field</a>[] m)</pre> <div class="block">Sorts methods in alphabetical order.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> @@ -1204,7 +1204,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>getParentClasses</h4> -<pre>public static <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</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">Class</a><?>> <a href="../../../../src-html/org/apache/juneau/internal/ClassUtils.html#line.1004">getParentClasses</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">Class</a><?> c, +<pre>public static <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</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">Class</a><?>> <a href="../../../../src-html/org/apache/juneau/internal/ClassUtils.html#line.1010">getParentClasses</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">Class</a><?> c, boolean parentFirst, boolean includeInterfaces)</pre> <div class="block">Returns a list of all the parent classes of the specified class including the class itself.</div> @@ -1224,7 +1224,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>getPrimitiveDefault</h4> -<pre>public static <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/internal/ClassUtils.html#line.1034">getPrimitiveDefault</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">Class</a><?> primitiveClass)</pre> +<pre>public static <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/internal/ClassUtils.html#line.1040">getPrimitiveDefault</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">Class</a><?> primitiveClass)</pre> <div class="block">Returns the default value for the specified primitive class.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> @@ -1240,7 +1240,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>toString</h4> -<pre>public static <a href="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/internal/ClassUtils.html#line.1067">toString</a>(<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> m)</pre> +<pre>public static <a href="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/internal/ClassUtils.html#line.1073">toString</a>(<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> m)</pre> <div class="block">Returns a readable representation of the specified method. <p> @@ -1259,7 +1259,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>toString</h4> -<pre>public static <a href="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/internal/ClassUtils.html#line.1087">toString</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Field.html?is-external=true" title="class or interface in java.lang.reflect">Field</a> f)</pre> +<pre>public static <a href="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/internal/ClassUtils.html#line.1093">toString</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Field.html?is-external=true" title="class or interface in java.lang.reflect">Field</a> f)</pre> <div class="block">Returns a readable representation of the specified field. <p> @@ -1278,7 +1278,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockListLast"> <li class="blockList"> <h4>assertArgsOfType</h4> -<pre>public static void <a href="../../../../src-html/org/apache/juneau/internal/ClassUtils.html#line.1098">assertArgsOfType</a>(<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> m, +<pre>public static void <a href="../../../../src-html/org/apache/juneau/internal/ClassUtils.html#line.1104">assertArgsOfType</a>(<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> m, <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><?>... args) throws <a href="../../../../org/apache/juneau/FormattedIllegalArgumentException.html" title="class in org.apache.juneau">FormattedIllegalArgumentException</a></pre> <div class="block">Throws an <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><code>IllegalArgumentException</code></a> if the parameters on the method are not in the specified list provided.</div> http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/62afb533/content/site/apidocs/org/apache/juneau/internal/DelegateBeanMap.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/internal/DelegateBeanMap.html b/content/site/apidocs/org/apache/juneau/internal/DelegateBeanMap.html index 4f3cbdd..0b2047c 100644 --- a/content/site/apidocs/org/apache/juneau/internal/DelegateBeanMap.html +++ b/content/site/apidocs/org/apache/juneau/internal/DelegateBeanMap.html @@ -361,7 +361,7 @@ extends <a href="../../../../org/apache/juneau/BeanMap.html" title="class in org in a transformed value. For example, if the bean property type class is 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> and the bean property has the <a href="../../../../org/apache/juneau/transforms/DateSwap.ISO8601DT.html" title="class in org.apache.juneau.transforms"><code>DateSwap.ISO8601DT</code></a> swap associated with it through the - <a href="../../../../org/apache/juneau/annotation/BeanProperty.html#swap--"><code>@BeanProperty.swap()</code></a> annotation, the value being passed in must be + <a href="../../../../org/apache/juneau/annotation/Swap.html#value--"><code>@Swap.value()</code></a> annotation, the value being passed in must be a String containing an ISO8601 date-time string value. <h5 class='section'>Example:</h5> @@ -408,7 +408,7 @@ extends <a href="../../../../org/apache/juneau/BeanMap.html" title="class in org will return the transformed value. For example, if the bean property type class is 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> and the bean property has the <a href="../../../../org/apache/juneau/transforms/DateSwap.ISO8601DT.html" title="class in org.apache.juneau.transforms"><code>DateSwap.ISO8601DT</code></a> swap associated with it through the - <a href="../../../../org/apache/juneau/annotation/BeanProperty.html#swap--"><code>@BeanProperty.swap()</code></a> annotation, this method will return a String containing an + <a href="../../../../org/apache/juneau/annotation/Swap.html#value--"><code>@Swap.value()</code></a> annotation, this method will return a String containing an ISO8601 date-time string value. <h5 class='section'>Example:</h5> http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/62afb533/content/site/apidocs/org/apache/juneau/jena/RdfParserBuilder.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/jena/RdfParserBuilder.html b/content/site/apidocs/org/apache/juneau/jena/RdfParserBuilder.html index e5fc98b..7102a7a 100644 --- a/content/site/apidocs/org/apache/juneau/jena/RdfParserBuilder.html +++ b/content/site/apidocs/org/apache/juneau/jena/RdfParserBuilder.html @@ -2612,7 +2612,7 @@ extends <a href="../../../../org/apache/juneau/parser/ParserBuilder.html" title= There are two category of classes that can be passed in through this method: <ul> <li>Subclasses of <a href="../../../../org/apache/juneau/transform/PojoSwap.html" title="class in org.apache.juneau.transform"><code>PojoSwap</code></a>. - <li>Surrogate classes. A shortcut for defining a <a href="../../../../org/apache/juneau/transform/SurrogateSwap.html" title="class in org.apache.juneau.transform"><code>SurrogateSwap</code></a>. + <li>Implementations of <a href="../../../../org/apache/juneau/transform/Surrogate.html" title="interface in org.apache.juneau.transform"><code>Surrogate</code></a>. </ul> <h5 class='section'>Notes:</h5> http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/62afb533/content/site/apidocs/org/apache/juneau/jena/RdfSerializerBuilder.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/jena/RdfSerializerBuilder.html b/content/site/apidocs/org/apache/juneau/jena/RdfSerializerBuilder.html index 265eeed..25dc33d 100644 --- a/content/site/apidocs/org/apache/juneau/jena/RdfSerializerBuilder.html +++ b/content/site/apidocs/org/apache/juneau/jena/RdfSerializerBuilder.html @@ -3393,7 +3393,7 @@ extends <a href="../../../../org/apache/juneau/serializer/SerializerBuilder.html There are two category of classes that can be passed in through this method: <ul> <li>Subclasses of <a href="../../../../org/apache/juneau/transform/PojoSwap.html" title="class in org.apache.juneau.transform"><code>PojoSwap</code></a>. - <li>Surrogate classes. A shortcut for defining a <a href="../../../../org/apache/juneau/transform/SurrogateSwap.html" title="class in org.apache.juneau.transform"><code>SurrogateSwap</code></a>. + <li>Implementations of <a href="../../../../org/apache/juneau/transform/Surrogate.html" title="interface in org.apache.juneau.transform"><code>Surrogate</code></a>. </ul> <h5 class='section'>Notes:</h5> http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/62afb533/content/site/apidocs/org/apache/juneau/jso/JsoParserBuilder.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/jso/JsoParserBuilder.html b/content/site/apidocs/org/apache/juneau/jso/JsoParserBuilder.html index 1df7da9..9b66b4a 100644 --- a/content/site/apidocs/org/apache/juneau/jso/JsoParserBuilder.html +++ b/content/site/apidocs/org/apache/juneau/jso/JsoParserBuilder.html @@ -2172,7 +2172,7 @@ extends <a href="../../../../org/apache/juneau/parser/ParserBuilder.html" title= There are two category of classes that can be passed in through this method: <ul> <li>Subclasses of <a href="../../../../org/apache/juneau/transform/PojoSwap.html" title="class in org.apache.juneau.transform"><code>PojoSwap</code></a>. - <li>Surrogate classes. A shortcut for defining a <a href="../../../../org/apache/juneau/transform/SurrogateSwap.html" title="class in org.apache.juneau.transform"><code>SurrogateSwap</code></a>. + <li>Implementations of <a href="../../../../org/apache/juneau/transform/Surrogate.html" title="interface in org.apache.juneau.transform"><code>Surrogate</code></a>. </ul> <h5 class='section'>Notes:</h5> http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/62afb533/content/site/apidocs/org/apache/juneau/jso/JsoSerializerBuilder.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/jso/JsoSerializerBuilder.html b/content/site/apidocs/org/apache/juneau/jso/JsoSerializerBuilder.html index a615950..19e5b1e 100644 --- a/content/site/apidocs/org/apache/juneau/jso/JsoSerializerBuilder.html +++ b/content/site/apidocs/org/apache/juneau/jso/JsoSerializerBuilder.html @@ -2856,7 +2856,7 @@ extends <a href="../../../../org/apache/juneau/serializer/SerializerBuilder.html There are two category of classes that can be passed in through this method: <ul> <li>Subclasses of <a href="../../../../org/apache/juneau/transform/PojoSwap.html" title="class in org.apache.juneau.transform"><code>PojoSwap</code></a>. - <li>Surrogate classes. A shortcut for defining a <a href="../../../../org/apache/juneau/transform/SurrogateSwap.html" title="class in org.apache.juneau.transform"><code>SurrogateSwap</code></a>. + <li>Implementations of <a href="../../../../org/apache/juneau/transform/Surrogate.html" title="interface in org.apache.juneau.transform"><code>Surrogate</code></a>. </ul> <h5 class='section'>Notes:</h5> http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/62afb533/content/site/apidocs/org/apache/juneau/json/JsonParserBuilder.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/json/JsonParserBuilder.html b/content/site/apidocs/org/apache/juneau/json/JsonParserBuilder.html index 926f7b8..d8baf01 100644 --- a/content/site/apidocs/org/apache/juneau/json/JsonParserBuilder.html +++ b/content/site/apidocs/org/apache/juneau/json/JsonParserBuilder.html @@ -2172,7 +2172,7 @@ extends <a href="../../../../org/apache/juneau/parser/ParserBuilder.html" title= There are two category of classes that can be passed in through this method: <ul> <li>Subclasses of <a href="../../../../org/apache/juneau/transform/PojoSwap.html" title="class in org.apache.juneau.transform"><code>PojoSwap</code></a>. - <li>Surrogate classes. A shortcut for defining a <a href="../../../../org/apache/juneau/transform/SurrogateSwap.html" title="class in org.apache.juneau.transform"><code>SurrogateSwap</code></a>. + <li>Implementations of <a href="../../../../org/apache/juneau/transform/Surrogate.html" title="interface in org.apache.juneau.transform"><code>Surrogate</code></a>. </ul> <h5 class='section'>Notes:</h5>