http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/2ead32d5/content/site/apidocs/org/apache/juneau/parser/Parser.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/parser/Parser.html b/content/site/apidocs/org/apache/juneau/parser/Parser.html index 2f52975..33260fc 100644 --- a/content/site/apidocs/org/apache/juneau/parser/Parser.html +++ b/content/site/apidocs/org/apache/juneau/parser/Parser.html @@ -18,7 +18,7 @@ catch(err) { } //--> -var methods = {"i0":10,"i1":10,"i2":6,"i3":10,"i4":10,"i5":6,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10}; +var methods = {"i0":10,"i1":10,"i2":10,"i3":6,"i4":10,"i5":10,"i6":6,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -117,17 +117,10 @@ var activeTableTab = "activeTableTab"; </dl> <hr> <br> -<pre>public abstract class <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.144">Parser</a> +<pre>public abstract class <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.133">Parser</a> extends <a href="../../../../org/apache/juneau/CoreObject.html" title="class in org.apache.juneau">CoreObject</a></pre> <div class="block">Parent class for all Juneau parsers. - <h6 class='topic'>@Consumes annotation</h6> - - The media types that this parser can handle is specified through the <a href="../../../../org/apache/juneau/annotation/Consumes.html" title="annotation in org.apache.juneau.annotation"><code>@Consumes</code></a> annotation. - - <p> - However, the media types can also be specified programmatically by overriding the <a href="../../../../org/apache/juneau/parser/Parser.html#getMediaTypes--"><code>getMediaTypes()</code></a> method. - <h6 class='topic'>Valid data conversions</h6> Parsers can parse any parsable POJO types, as specified in the <a class="doclink" @@ -273,43 +266,49 @@ extends <a href="../../../../org/apache/juneau/CoreObject.html" title="class in </td> </tr> <tr id="i1" class="rowColor"> +<td class="colFirst"><code>protected <a href="../../../../org/apache/juneau/parser/ParserSessionArgs.html" title="class in org.apache.juneau.parser">ParserSessionArgs</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/parser/Parser.html#createDefaultSessionArgs--">createDefaultSessionArgs</a></span>()</code> +<div class="block">Creates the session arguments object that gets passed to the <a href="../../../../org/apache/juneau/parser/Parser.html#createSession-org.apache.juneau.parser.ParserSessionArgs-"><code>createSession(ParserSessionArgs)</code></a> method.</div> +</td> +</tr> +<tr id="i2" class="altColor"> <td class="colFirst"><code><a href="../../../../org/apache/juneau/parser/ParserSession.html" title="class in org.apache.juneau.parser">ParserSession</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/parser/Parser.html#createSession--">createSession</a></span>()</code> <div class="block">Create a basic session object without overriding properties or specifying <code>javaMethod</code>.</div> </td> </tr> -<tr id="i2" class="altColor"> +<tr id="i3" class="rowColor"> <td class="colFirst"><code>abstract <a href="../../../../org/apache/juneau/parser/ParserSession.html" title="class in org.apache.juneau.parser">ParserSession</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/parser/Parser.html#createSession-org.apache.juneau.parser.ParserSessionArgs-">createSession</a></span>(<a href="../../../../org/apache/juneau/parser/ParserSessionArgs.html" title="class in org.apache.juneau.parser">ParserSessionArgs</a> args)</code> <div class="block">Create the session object that will be passed in to the parse method.</div> </td> </tr> -<tr id="i3" class="rowColor"> +<tr id="i4" 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/parser/Parser.html#getMediaTypes--">getMediaTypes</a></span>()</code> -<div class="block">Returns the media types handled based on the value of the <a href="../../../../org/apache/juneau/annotation/Consumes.html" title="annotation in org.apache.juneau.annotation"><code>Consumes</code></a> annotation on the parser class.</div> +<div class="block">Returns the media types handled based on the values passed to the <code>consumes</code> constructor parameter.</div> </td> </tr> -<tr id="i4" class="altColor"> +<tr id="i5" class="rowColor"> <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/parser/Parser.html#getPrimaryMediaType--">getPrimaryMediaType</a></span>()</code> -<div class="block">Returns the first media type specified on this parser via the <a href="../../../../org/apache/juneau/annotation/Consumes.html" title="annotation in org.apache.juneau.annotation"><code>Consumes</code></a> annotation.</div> +<div class="block">Returns the first media type handled based on the values passed to the <code>consumes</code> constructor parameter.</div> </td> </tr> -<tr id="i5" class="rowColor"> +<tr id="i6" class="altColor"> <td class="colFirst"><code>abstract boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/parser/Parser.html#isReaderParser--">isReaderParser</a></span>()</code> <div class="block">Returns <jk>true</jk> if this parser subclasses from <a href="../../../../org/apache/juneau/parser/ReaderParser.html" title="class in org.apache.juneau.parser"><code>ReaderParser</code></a>.</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/parser/Parser.html#parse-java.lang.Object-java.lang.Class-">parse</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, <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/parser/Parser.html#parse-java.lang.Object-java.lang.reflect.Type-java.lang.reflect.Type...-"><code>parse(Object, Type, Type...)</code></a> except optimized for a non-parameterized class.</div> </td> </tr> -<tr id="i7" class="rowColor"> +<tr id="i8" class="altColor"> <td class="colFirst"><code><T> T</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/parser/Parser.html#parse-java.lang.Object-org.apache.juneau.ClassMeta-">parse</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, <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><T> type)</code> @@ -317,7 +316,7 @@ extends <a href="../../../../org/apache/juneau/CoreObject.html" title="class in object.</div> </td> </tr> -<tr id="i8" class="altColor"> +<tr id="i9" class="rowColor"> <td class="colFirst"><code><T> T</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/parser/Parser.html#parse-java.lang.Object-java.lang.reflect.Type-java.lang.reflect.Type...-">parse</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, <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, @@ -325,7 +324,7 @@ extends <a href="../../../../org/apache/juneau/CoreObject.html" title="class in <div class="block">Parses input into the specified object type.</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/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/parser/Parser.html#parseArgs-java.lang.Object-java.lang.reflect.Type:A-">parseArgs</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, <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>[] argTypes)</code> @@ -333,7 +332,7 @@ extends <a href="../../../../org/apache/juneau/CoreObject.html" title="class in argument.</div> </td> </tr> -<tr id="i10" class="altColor"> +<tr id="i11" class="rowColor"> <td class="colFirst"><code><E> <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><E></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/parser/Parser.html#parseIntoCollection-java.lang.Object-java.util.Collection-java.lang.reflect.Type-">parseIntoCollection</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, <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><E> c, @@ -341,7 +340,7 @@ extends <a href="../../../../org/apache/juneau/CoreObject.html" title="class in <div class="block">Parses the contents of the specified reader and loads the results into the specified collection.</div> </td> </tr> -<tr id="i11" class="rowColor"> +<tr id="i12" class="altColor"> <td class="colFirst"><code><K,V> <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><K,V></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/parser/Parser.html#parseIntoMap-java.lang.Object-java.util.Map-java.lang.reflect.Type-java.lang.reflect.Type-">parseIntoMap</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, <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><K,V> m, @@ -385,7 +384,7 @@ extends <a href="../../../../org/apache/juneau/CoreObject.html" title="class in <ul class="blockList"> <li class="blockList"> <h4>builder</h4> -<pre>public <a href="../../../../org/apache/juneau/parser/ParserBuilder.html" title="class in org.apache.juneau.parser">ParserBuilder</a> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.165">builder</a>()</pre> +<pre>public <a href="../../../../org/apache/juneau/parser/ParserBuilder.html" title="class in org.apache.juneau.parser">ParserBuilder</a> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.149">builder</a>()</pre> <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../org/apache/juneau/CoreObject.html#builder--">CoreObject</a></code></span></div> <div class="block">Creates a new builder class for this object so that a new object can be created that expands upon the current object's settings.</div> @@ -403,7 +402,7 @@ extends <a href="../../../../org/apache/juneau/CoreObject.html" title="class in <ul class="blockList"> <li class="blockList"> <h4>isReaderParser</h4> -<pre>public abstract boolean <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.179">isReaderParser</a>()</pre> +<pre>public abstract boolean <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.163">isReaderParser</a>()</pre> <div class="block">Returns <jk>true</jk> if this parser subclasses from <a href="../../../../org/apache/juneau/parser/ReaderParser.html" title="class in org.apache.juneau.parser"><code>ReaderParser</code></a>.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> @@ -417,7 +416,7 @@ extends <a href="../../../../org/apache/juneau/CoreObject.html" title="class in <ul class="blockList"> <li class="blockList"> <h4>createSession</h4> -<pre>public abstract <a href="../../../../org/apache/juneau/parser/ParserSession.html" title="class in org.apache.juneau.parser">ParserSession</a> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.192">createSession</a>(<a href="../../../../org/apache/juneau/parser/ParserSessionArgs.html" title="class in org.apache.juneau.parser">ParserSessionArgs</a> args)</pre> +<pre>public abstract <a href="../../../../org/apache/juneau/parser/ParserSession.html" title="class in org.apache.juneau.parser">ParserSession</a> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.176">createSession</a>(<a href="../../../../org/apache/juneau/parser/ParserSessionArgs.html" title="class in org.apache.juneau.parser">ParserSessionArgs</a> args)</pre> <div class="block">Create the session object that will be passed in to the parse method. <p> @@ -437,7 +436,7 @@ extends <a href="../../../../org/apache/juneau/CoreObject.html" title="class in <ul class="blockList"> <li class="blockList"> <h4>parse</h4> -<pre>public final <T> T <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.275">parse</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> input, +<pre>public final <T> T <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.259">parse</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> input, <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> @@ -525,7 +524,7 @@ extends <a href="../../../../org/apache/juneau/CoreObject.html" title="class in <ul class="blockList"> <li class="blockList"> <h4>parse</h4> -<pre>public final <T> T <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.319">parse</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> input, +<pre>public final <T> T <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.303">parse</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> input, <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/parser/Parser.html#parse-java.lang.Object-java.lang.reflect.Type-java.lang.reflect.Type...-"><code>parse(Object, Type, Type...)</code></a> except optimized for a non-parameterized class. @@ -572,7 +571,7 @@ extends <a href="../../../../org/apache/juneau/CoreObject.html" title="class in <ul class="blockList"> <li class="blockList"> <h4>parse</h4> -<pre>public final <T> T <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.344">parse</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> input, +<pre>public final <T> T <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.328">parse</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> input, <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</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/parser/Parser.html#parse-java.lang.Object-java.lang.reflect.Type-java.lang.reflect.Type...-"><code>parse(Object, Type, Type...)</code></a> except the type has already been converted into a <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau"><code>ClassMeta</code></a> @@ -600,7 +599,7 @@ extends <a href="../../../../org/apache/juneau/CoreObject.html" title="class in <ul class="blockList"> <li class="blockList"> <h4>createSession</h4> -<pre>public final <a href="../../../../org/apache/juneau/parser/ParserSession.html" title="class in org.apache.juneau.parser">ParserSession</a> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.361">createSession</a>()</pre> +<pre>public final <a href="../../../../org/apache/juneau/parser/ParserSession.html" title="class in org.apache.juneau.parser">ParserSession</a> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.345">createSession</a>()</pre> <div class="block">Create a basic session object without overriding properties or specifying <code>javaMethod</code>. <p> @@ -611,13 +610,28 @@ extends <a href="../../../../org/apache/juneau/CoreObject.html" title="class in </dl> </li> </ul> +<a name="createDefaultSessionArgs--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>createDefaultSessionArgs</h4> +<pre>protected final <a href="../../../../org/apache/juneau/parser/ParserSessionArgs.html" title="class in org.apache.juneau.parser">ParserSessionArgs</a> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.356">createDefaultSessionArgs</a>()</pre> +<div class="block">Creates the session arguments object that gets passed to the <a href="../../../../org/apache/juneau/parser/Parser.html#createSession-org.apache.juneau.parser.ParserSessionArgs-"><code>createSession(ParserSessionArgs)</code></a> method.</div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>A new default session arguments object. + <p>The arguments can be modified before passing to the <a href="../../../../org/apache/juneau/parser/Parser.html#createSession-org.apache.juneau.parser.ParserSessionArgs-"><code>createSession(ParserSessionArgs)</code></a>.</dd> +</dl> +</li> +</ul> <a name="parseIntoMap-java.lang.Object-java.util.Map-java.lang.reflect.Type-java.lang.reflect.Type-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>parseIntoMap</h4> -<pre>public final <K,V> <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><K,V> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.394">parseIntoMap</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> input, +<pre>public final <K,V> <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><K,V> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.388">parseIntoMap</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> input, <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><K,V> m, <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> keyType, <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> valueType) @@ -657,7 +671,7 @@ extends <a href="../../../../org/apache/juneau/CoreObject.html" title="class in <ul class="blockList"> <li class="blockList"> <h4>parseIntoCollection</h4> -<pre>public final <E> <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><E> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.423">parseIntoCollection</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> input, +<pre>public final <E> <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><E> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.417">parseIntoCollection</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> input, <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><E> c, <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> elementType) throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre> @@ -691,7 +705,7 @@ extends <a href="../../../../org/apache/juneau/CoreObject.html" title="class in <ul class="blockList"> <li class="blockList"> <h4>parseArgs</h4> -<pre>public final <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/parser/Parser.html#line.453">parseArgs</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> input, +<pre>public final <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/parser/Parser.html#line.447">parseArgs</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> input, <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>[] argTypes) throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre> <div class="block">Parses the specified array input with each entry in the object defined by the <code>argTypes</code> @@ -724,11 +738,8 @@ extends <a href="../../../../org/apache/juneau/CoreObject.html" title="class in <ul class="blockList"> <li class="blockList"> <h4>getMediaTypes</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/parser/Parser.html#line.477">getMediaTypes</a>()</pre> -<div class="block">Returns the media types handled based on the value of the <a href="../../../../org/apache/juneau/annotation/Consumes.html" title="annotation in org.apache.juneau.annotation"><code>Consumes</code></a> annotation on the parser class. - - <p> - This method can be overridden by subclasses to determine the media types programmatically.</div> +<pre>public 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/parser/Parser.html#line.468">getMediaTypes</a>()</pre> +<div class="block">Returns the media types handled based on the values passed to the <code>consumes</code> constructor parameter.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>The list of media types. Never <jk>null</jk>.</dd> @@ -741,8 +752,8 @@ extends <a href="../../../../org/apache/juneau/CoreObject.html" title="class in <ul class="blockListLast"> <li class="blockList"> <h4>getPrimaryMediaType</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/parser/Parser.html#line.486">getPrimaryMediaType</a>()</pre> -<div class="block">Returns the first media type specified on this parser via the <a href="../../../../org/apache/juneau/annotation/Consumes.html" title="annotation in org.apache.juneau.annotation"><code>Consumes</code></a> annotation.</div> +<pre>public 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/parser/Parser.html#line.477">getPrimaryMediaType</a>()</pre> +<div class="block">Returns the first media type handled based on the values passed to the <code>consumes</code> constructor parameter.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>The media type.</dd>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/2ead32d5/content/site/apidocs/org/apache/juneau/parser/ParserSession.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/parser/ParserSession.html b/content/site/apidocs/org/apache/juneau/parser/ParserSession.html index f6fd602..7636b4e 100644 --- a/content/site/apidocs/org/apache/juneau/parser/ParserSession.html +++ b/content/site/apidocs/org/apache/juneau/parser/ParserSession.html @@ -426,7 +426,7 @@ extends <a href="../../../../org/apache/juneau/BeanSession.html" title="class in <ul class="blockList"> <li class="blockList"> <h4>doParse</h4> -<pre>protected abstract <T> T <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.100">doParse</a>(<a href="../../../../org/apache/juneau/parser/ParserPipe.html" title="class in org.apache.juneau.parser">ParserPipe</a> pipe, +<pre>protected abstract <T> T <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.98">doParse</a>(<a href="../../../../org/apache/juneau/parser/ParserPipe.html" title="class in org.apache.juneau.parser">ParserPipe</a> pipe, <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><T> type) 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> <div class="block">Workhorse method. Subclasses are expected to implement this method.</div> @@ -452,7 +452,7 @@ extends <a href="../../../../org/apache/juneau/BeanSession.html" title="class in <ul class="blockList"> <li class="blockList"> <h4>isReaderParser</h4> -<pre>public abstract boolean <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.107">isReaderParser</a>()</pre> +<pre>public abstract boolean <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.105">isReaderParser</a>()</pre> <div class="block">Returns <jk>true</jk> if this parser subclasses from <a href="../../../../org/apache/juneau/parser/ReaderParser.html" title="class in org.apache.juneau.parser"><code>ReaderParser</code></a>.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> @@ -466,7 +466,7 @@ extends <a href="../../../../org/apache/juneau/BeanSession.html" title="class in <ul class="blockList"> <li class="blockList"> <h4>createPipe</h4> -<pre>public final <a href="../../../../org/apache/juneau/parser/ParserPipe.html" title="class in org.apache.juneau.parser">ParserPipe</a> <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.142">createPipe</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> input)</pre> +<pre>public final <a href="../../../../org/apache/juneau/parser/ParserPipe.html" title="class in org.apache.juneau.parser">ParserPipe</a> <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.140">createPipe</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> input)</pre> <div class="block">Wraps the specified input object into a <a href="../../../../org/apache/juneau/parser/ParserPipe.html" title="class in org.apache.juneau.parser"><code>ParserPipe</code></a> object so that it can be easily converted into a stream or reader.</div> <dl> @@ -502,7 +502,7 @@ extends <a href="../../../../org/apache/juneau/BeanSession.html" title="class in <ul class="blockList"> <li class="blockList"> <h4>getLastLocation</h4> -<pre>public final <a href="../../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau">ObjectMap</a> <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.151">getLastLocation</a>()</pre> +<pre>public final <a href="../../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau">ObjectMap</a> <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.149">getLastLocation</a>()</pre> <div class="block">Returns information used to determine at what location in the parse a failure occurred.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> @@ -516,7 +516,7 @@ extends <a href="../../../../org/apache/juneau/BeanSession.html" title="class in <ul class="blockList"> <li class="blockList"> <h4>getJavaMethod</h4> -<pre>protected final <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/parser/ParserSession.html#line.169">getJavaMethod</a>()</pre> +<pre>protected final <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/parser/ParserSession.html#line.167">getJavaMethod</a>()</pre> <div class="block">Returns the Java method that invoked this parser. <p> @@ -534,7 +534,7 @@ extends <a href="../../../../org/apache/juneau/BeanSession.html" title="class in <ul class="blockList"> <li class="blockList"> <h4>getOuter</h4> -<pre>protected final <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/parser/ParserSession.html#line.181">getOuter</a>()</pre> +<pre>protected final <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/parser/ParserSession.html#line.179">getOuter</a>()</pre> <div class="block">Returns the outer object used for instantiating top-level non-static member classes. <p> @@ -551,7 +551,7 @@ extends <a href="../../../../org/apache/juneau/BeanSession.html" title="class in <ul class="blockList"> <li class="blockList"> <h4>setCurrentProperty</h4> -<pre>protected final void <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.190">setCurrentProperty</a>(<a href="../../../../org/apache/juneau/BeanPropertyMeta.html" title="class in org.apache.juneau">BeanPropertyMeta</a> currentProperty)</pre> +<pre>protected final void <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.188">setCurrentProperty</a>(<a href="../../../../org/apache/juneau/BeanPropertyMeta.html" title="class in org.apache.juneau">BeanPropertyMeta</a> currentProperty)</pre> <div class="block">Sets the current bean property being parsed for proper error messages.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> @@ -565,7 +565,7 @@ extends <a href="../../../../org/apache/juneau/BeanSession.html" title="class in <ul class="blockList"> <li class="blockList"> <h4>setCurrentClass</h4> -<pre>protected final void <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.199">setCurrentClass</a>(<a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><?> currentClass)</pre> +<pre>protected final void <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.197">setCurrentClass</a>(<a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><?> currentClass)</pre> <div class="block">Sets the current class being parsed for proper error messages.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> @@ -579,7 +579,7 @@ extends <a href="../../../../org/apache/juneau/BeanSession.html" title="class in <ul class="blockList"> <li class="blockList"> <h4>isTrimStrings</h4> -<pre>protected final boolean <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.208">isTrimStrings</a>()</pre> +<pre>protected final boolean <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.206">isTrimStrings</a>()</pre> <div class="block">Returns the <a href="../../../../org/apache/juneau/parser/ParserContext.html#PARSER_trimStrings"><code>ParserContext.PARSER_trimStrings</code></a> setting value for this session.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> @@ -593,7 +593,7 @@ extends <a href="../../../../org/apache/juneau/BeanSession.html" title="class in <ul class="blockList"> <li class="blockList"> <h4>isStrict</h4> -<pre>protected final boolean <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.217">isStrict</a>()</pre> +<pre>protected final boolean <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.215">isStrict</a>()</pre> <div class="block">Returns the <a href="../../../../org/apache/juneau/parser/ParserContext.html#PARSER_strict"><code>ParserContext.PARSER_strict</code></a> setting value for this session.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> @@ -609,7 +609,7 @@ extends <a href="../../../../org/apache/juneau/BeanSession.html" title="class in <ul class="blockList"> <li class="blockList"> <h4>trim</h4> -<pre>protected final <K> K <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.228">trim</a>(K o)</pre> +<pre>protected final <K> K <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.226">trim</a>(K o)</pre> <div class="block">Trims the specified object if it's a <code>String</code> and <a href="../../../../org/apache/juneau/parser/ParserSession.html#isTrimStrings--"><code>isTrimStrings()</code></a> returns <jk>true</jk>.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> @@ -625,7 +625,7 @@ extends <a href="../../../../org/apache/juneau/BeanSession.html" title="class in <ul class="blockList"> <li class="blockList"> <h4>trim</h4> -<pre>protected 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/parser/ParserSession.html#line.241">trim</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>protected 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/parser/ParserSession.html#line.239">trim</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">Trims the specified string if <a href="../../../../org/apache/juneau/parser/ParserSession.html#isTrimStrings--"><code>isTrimStrings()</code></a> returns <jk>true</jk>.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> @@ -641,7 +641,7 @@ extends <a href="../../../../org/apache/juneau/BeanSession.html" title="class in <ul class="blockList"> <li class="blockList"> <h4>cast</h4> -<pre>protected final <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/parser/ParserSession.html#line.256">cast</a>(<a href="../../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau">ObjectMap</a> m, +<pre>protected final <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/parser/ParserSession.html#line.254">cast</a>(<a href="../../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau">ObjectMap</a> m, <a href="../../../../org/apache/juneau/BeanPropertyMeta.html" title="class in org.apache.juneau">BeanPropertyMeta</a> pMeta, <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><?> eType)</pre> <div class="block">Converts the specified <code>ObjectMap</code> into a bean identified by the <js>"_type"</js> property in the map.</div> @@ -661,7 +661,7 @@ extends <a href="../../../../org/apache/juneau/BeanSession.html" title="class in <ul class="blockList"> <li class="blockList"> <h4>getClassMeta</h4> -<pre>protected final <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><?> <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.295">getClassMeta</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> typeName, +<pre>protected final <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><?> <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.293">getClassMeta</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> typeName, <a href="../../../../org/apache/juneau/BeanPropertyMeta.html" title="class in org.apache.juneau">BeanPropertyMeta</a> pMeta, <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><?> eType)</pre> <div class="block">Give the specified dictionary name, resolve it to a class.</div> @@ -681,7 +681,7 @@ extends <a href="../../../../org/apache/juneau/BeanSession.html" title="class in <ul class="blockList"> <li class="blockList"> <h4>onUnknownProperty</h4> -<pre>protected final <T> void <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.330">onUnknownProperty</a>(<a href="../../../../org/apache/juneau/parser/ParserPipe.html" title="class in org.apache.juneau.parser">ParserPipe</a> pipe, +<pre>protected final <T> void <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.328">onUnknownProperty</a>(<a href="../../../../org/apache/juneau/parser/ParserPipe.html" title="class in org.apache.juneau.parser">ParserPipe</a> pipe, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> propertyName, <a href="../../../../org/apache/juneau/BeanMap.html" title="class in org.apache.juneau">BeanMap</a><T> beanMap, int line, @@ -709,7 +709,7 @@ extends <a href="../../../../org/apache/juneau/BeanSession.html" title="class in <ul class="blockList"> <li class="blockList"> <h4>parse</h4> -<pre>public final <T> T <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.419">parse</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> input, +<pre>public final <T> T <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.417">parse</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> input, <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> @@ -797,7 +797,7 @@ extends <a href="../../../../org/apache/juneau/BeanSession.html" title="class in <ul class="blockList"> <li class="blockList"> <h4>parse</h4> -<pre>public final <T> T <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.463">parse</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> input, +<pre>public final <T> T <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.461">parse</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> input, <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/parser/ParserSession.html#parse-java.lang.Object-java.lang.reflect.Type-java.lang.reflect.Type...-"><code>parse(Object, Type, Type...)</code></a> except optimized for a non-parameterized class. @@ -844,7 +844,7 @@ extends <a href="../../../../org/apache/juneau/BeanSession.html" title="class in <ul class="blockList"> <li class="blockList"> <h4>parse</h4> -<pre>public final <T> T <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.488">parse</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> input, +<pre>public final <T> T <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.486">parse</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> input, <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</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/parser/ParserSession.html#parse-java.lang.Object-java.lang.reflect.Type-java.lang.reflect.Type...-"><code>parse(Object, Type, Type...)</code></a> except the type has already been converted into a <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau"><code>ClassMeta</code></a> @@ -872,7 +872,7 @@ extends <a href="../../../../org/apache/juneau/BeanSession.html" title="class in <ul class="blockList"> <li class="blockList"> <h4>parseIntoMap</h4> -<pre>public final <K,V> <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><K,V> <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.553">parseIntoMap</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> input, +<pre>public final <K,V> <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><K,V> <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.551">parseIntoMap</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> input, <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><K,V> m, <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> keyType, <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> valueType) @@ -912,7 +912,7 @@ extends <a href="../../../../org/apache/juneau/BeanSession.html" title="class in <ul class="blockList"> <li class="blockList"> <h4>doParseIntoMap</h4> -<pre>protected <K,V> <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><K,V> <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.579">doParseIntoMap</a>(<a href="../../../../org/apache/juneau/parser/ParserPipe.html" title="class in org.apache.juneau.parser">ParserPipe</a> pipe, +<pre>protected <K,V> <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><K,V> <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.577">doParseIntoMap</a>(<a href="../../../../org/apache/juneau/parser/ParserPipe.html" title="class in org.apache.juneau.parser">ParserPipe</a> pipe, <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><K,V> m, <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> keyType, <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> valueType) @@ -940,7 +940,7 @@ extends <a href="../../../../org/apache/juneau/BeanSession.html" title="class in <ul class="blockList"> <li class="blockList"> <h4>parseIntoCollection</h4> -<pre>public final <E> <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><E> <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.603">parseIntoCollection</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> input, +<pre>public final <E> <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><E> <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.601">parseIntoCollection</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> input, <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><E> c, <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> elementType) throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre> @@ -974,7 +974,7 @@ extends <a href="../../../../org/apache/juneau/BeanSession.html" title="class in <ul class="blockList"> <li class="blockList"> <h4>doParseIntoCollection</h4> -<pre>protected <E> <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><E> <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.634">doParseIntoCollection</a>(<a href="../../../../org/apache/juneau/parser/ParserPipe.html" title="class in org.apache.juneau.parser">ParserPipe</a> pipe, +<pre>protected <E> <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><E> <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.632">doParseIntoCollection</a>(<a href="../../../../org/apache/juneau/parser/ParserPipe.html" title="class in org.apache.juneau.parser">ParserPipe</a> pipe, <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><E> c, <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> elementType) 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> @@ -1000,7 +1000,7 @@ extends <a href="../../../../org/apache/juneau/BeanSession.html" title="class in <ul class="blockList"> <li class="blockList"> <h4>parseArgs</h4> -<pre>public final <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/parser/ParserSession.html#line.659">parseArgs</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> input, +<pre>public final <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/parser/ParserSession.html#line.657">parseArgs</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> input, <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>[] argTypes) throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre> <div class="block">Parses the specified array input with each entry in the object defined by the <code>argTypes</code> @@ -1033,7 +1033,7 @@ extends <a href="../../../../org/apache/juneau/BeanSession.html" title="class in <ul class="blockList"> <li class="blockList"> <h4>convertAttrToType</h4> -<pre>protected final <T> T <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.691">convertAttrToType</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>protected final <T> T <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.689">convertAttrToType</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/String.html?is-external=true" title="class or interface in java.lang">String</a> s, <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><T> type) 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> @@ -1059,7 +1059,7 @@ extends <a href="../../../../org/apache/juneau/BeanSession.html" title="class in <ul class="blockList"> <li class="blockList"> <h4>setParent</h4> -<pre>protected static final void <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.732">setParent</a>(<a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><?> cm, +<pre>protected static final void <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.730">setParent</a>(<a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><?> cm, <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, <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> parent) 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> @@ -1081,7 +1081,7 @@ extends <a href="../../../../org/apache/juneau/BeanSession.html" title="class in <ul class="blockListLast"> <li class="blockList"> <h4>setName</h4> -<pre>protected static final void <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.746">setName</a>(<a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><?> cm, +<pre>protected static final void <a href="../../../../src-html/org/apache/juneau/parser/ParserSession.html#line.744">setName</a>(<a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><?> cm, <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, <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> name) 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> http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/2ead32d5/content/site/apidocs/org/apache/juneau/parser/ParserSessionArgs.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/parser/ParserSessionArgs.html b/content/site/apidocs/org/apache/juneau/parser/ParserSessionArgs.html index f086d61..ff3bb6b 100644 --- a/content/site/apidocs/org/apache/juneau/parser/ParserSessionArgs.html +++ b/content/site/apidocs/org/apache/juneau/parser/ParserSessionArgs.html @@ -68,13 +68,13 @@ <ul class="subNavList"> <li>Summary: </li> <li>Nested | </li> -<li><a href="#field.summary">Field</a> | </li> +<li>Field | </li> <li><a href="#constructor.summary">Constr</a> | </li> <li><a href="#methods.inherited.from.class.java.lang.Object">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> -<li><a href="#field.detail">Field</a> | </li> +<li>Field | </li> <li><a href="#constructor.detail">Constr</a> | </li> <li>Method</li> </ul> @@ -121,27 +121,6 @@ extends <a href="../../../../org/apache/juneau/BeanSessionArgs.html" title="clas <div class="summary"> <ul class="blockList"> <li class="blockList"> -<!-- =========== FIELD SUMMARY =========== --> -<ul class="blockList"> -<li class="blockList"><a name="field.summary"> -<!-- --> -</a> -<h3>Field Summary</h3> -<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> -<caption><span>Fields</span><span class="tabEnd"> </span></caption> -<tr> -<th class="colFirst" scope="col">Modifier and Type</th> -<th class="colLast" scope="col">Field and Description</th> -</tr> -<tr class="altColor"> -<td class="colFirst"><code>protected static <a href="../../../../org/apache/juneau/parser/ParserSessionArgs.html" title="class in org.apache.juneau.parser">ParserSessionArgs</a></code></td> -<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/parser/ParserSessionArgs.html#DEFAULT">DEFAULT</a></span></code> -<div class="block">Default session arguments.</div> -</td> -</tr> -</table> -</li> -</ul> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor.summary"> @@ -187,24 +166,6 @@ extends <a href="../../../../org/apache/juneau/BeanSessionArgs.html" title="clas <div class="details"> <ul class="blockList"> <li class="blockList"> -<!-- ============ FIELD DETAIL =========== --> -<ul class="blockList"> -<li class="blockList"><a name="field.detail"> -<!-- --> -</a> -<h3>Field Detail</h3> -<a name="DEFAULT"> -<!-- --> -</a> -<ul class="blockListLast"> -<li class="blockList"> -<h4>DEFAULT</h4> -<pre>protected static final <a href="../../../../org/apache/juneau/parser/ParserSessionArgs.html" title="class in org.apache.juneau.parser">ParserSessionArgs</a> <a href="../../../../src-html/org/apache/juneau/parser/ParserSessionArgs.html#line.29">DEFAULT</a></pre> -<div class="block">Default session arguments.</div> -</li> -</ul> -</li> -</ul> <!-- ========= CONSTRUCTOR DETAIL ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor.detail"> @@ -217,7 +178,7 @@ extends <a href="../../../../org/apache/juneau/BeanSessionArgs.html" title="clas <ul class="blockListLast"> <li class="blockList"> <h4>ParserSessionArgs</h4> -<pre>public <a href="../../../../src-html/org/apache/juneau/parser/ParserSessionArgs.html#line.56">ParserSessionArgs</a>(<a href="../../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau">ObjectMap</a> properties, +<pre>public <a href="../../../../src-html/org/apache/juneau/parser/ParserSessionArgs.html#line.51">ParserSessionArgs</a>(<a href="../../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau">ObjectMap</a> properties, <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> javaMethod, <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> locale, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/TimeZone.html?is-external=true" title="class or interface in java.util">TimeZone</a> timeZone, @@ -294,13 +255,13 @@ extends <a href="../../../../org/apache/juneau/BeanSessionArgs.html" title="clas <ul class="subNavList"> <li>Summary: </li> <li>Nested | </li> -<li><a href="#field.summary">Field</a> | </li> +<li>Field | </li> <li><a href="#constructor.summary">Constr</a> | </li> <li><a href="#methods.inherited.from.class.java.lang.Object">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> -<li><a href="#field.detail">Field</a> | </li> +<li>Field | </li> <li><a href="#constructor.detail">Constr</a> | </li> <li>Method</li> </ul> http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/2ead32d5/content/site/apidocs/org/apache/juneau/parser/ReaderParser.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/parser/ReaderParser.html b/content/site/apidocs/org/apache/juneau/parser/ReaderParser.html index 41eddca..e8d8af1 100644 --- a/content/site/apidocs/org/apache/juneau/parser/ReaderParser.html +++ b/content/site/apidocs/org/apache/juneau/parser/ReaderParser.html @@ -122,7 +122,7 @@ var activeTableTab = "activeTableTab"; </dl> <hr> <br> -<pre>public abstract class <a href="../../../../src-html/org/apache/juneau/parser/ReaderParser.html#line.36">ReaderParser</a> +<pre>public abstract class <a href="../../../../src-html/org/apache/juneau/parser/ReaderParser.html#line.28">ReaderParser</a> extends <a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a></pre> <div class="block">Subclass of <a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser"><code>Parser</code></a> for characters-based parsers. @@ -132,14 +132,7 @@ extends <a href="../../../../org/apache/juneau/parser/Parser.html" title="class It has 1 abstract method to implement... <ul> <li><code>parse(ParserSession, ClassMeta)</code> - </ul> - - <h6 class='topic'>@Consumes annotation</h6> - - The media types that this parser can handle is specified through the <a href="../../../../org/apache/juneau/annotation/Consumes.html" title="annotation in org.apache.juneau.annotation"><code>@Consumes</code></a> annotation. - - <p> - However, the media types can also be specified programmatically by overriding the <a href="../../../../org/apache/juneau/parser/Parser.html#getMediaTypes--"><code>Parser.getMediaTypes()</code></a> method.</div> + </ul></div> </li> </ul> </div> @@ -175,7 +168,8 @@ extends <a href="../../../../org/apache/juneau/parser/Parser.html" title="class </tr> <tr class="altColor"> <td class="colFirst"><code>protected </code></td> -<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/parser/ReaderParser.html#ReaderParser-org.apache.juneau.PropertyStore-">ReaderParser</a></span>(<a href="../../../../org/apache/juneau/PropertyStore.html" title="class in org.apache.juneau">PropertyStore</a> propertyStore)</code> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/parser/ReaderParser.html#ReaderParser-org.apache.juneau.PropertyStore-java.lang.String...-">ReaderParser</a></span>(<a href="../../../../org/apache/juneau/PropertyStore.html" title="class in org.apache.juneau">PropertyStore</a> propertyStore, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>... consumes)</code> <div class="block">Constructor.</div> </td> </tr> @@ -206,7 +200,7 @@ extends <a href="../../../../org/apache/juneau/parser/Parser.html" title="class <!-- --> </a> <h3>Methods inherited from class org.apache.juneau.parser.<a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a></h3> -<code><a href="../../../../org/apache/juneau/parser/Parser.html#builder--">builder</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#createSession--">createSession</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#createSession-org.apache.juneau.parser.ParserSessionArgs-">createSession</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#getMediaTypes--">getMediaTypes</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#getPrimaryMediaType--">getPrimaryMediaType</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#parse-java.lang.Object-java.lang.Class-">parse</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#parse-java.lang.Object-org.apache.juneau.ClassMeta-">parse</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#parse-java.lang.Object-java.lang.reflect.Type-java.lang.reflect.Type...-">parse</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#parseArgs-java.lang.Object-java.lang.reflect.T ype:A-">parseArgs</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#parseIntoCollection-java.lang.Object-java.util.Collection-java.lang.reflect.Type-">parseIntoCollection</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#parseIntoMap-java.lang.Object-java.util.Map-java.lang.reflect.Type-java.lang.reflect.Type-">parseIntoMap</a></code></li> +<code><a href="../../../../org/apache/juneau/parser/Parser.html#builder--">builder</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#createDefaultSessionArgs--">createDefaultSessionArgs</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#createSession--">createSession</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#createSession-org.apache.juneau.parser.ParserSessionArgs-">createSession</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#getMediaTypes--">getMediaTypes</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#getPrimaryMediaType--">getPrimaryMediaType</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#parse-java.lang.Object-java.lang.Class-">parse</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#parse-java.lang.Object-org.apache.juneau.ClassMeta-">parse</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#parse-java.lang.Object-java.lang.reflect.Type-java.lang.reflect.Type...-" >parse</a>, <a >href="../../../../org/apache/juneau/parser/Parser.html#parseArgs-java.lang.Object-java.lang.reflect.Type:A-">parseArgs</a>, > <a >href="../../../../org/apache/juneau/parser/Parser.html#parseIntoCollection-java.lang.Object-java.util.Collection-java.lang.reflect.Type-">parseIntoCollection</a>, > <a >href="../../../../org/apache/juneau/parser/Parser.html#parseIntoMap-java.lang.Object-java.util.Map-java.lang.reflect.Type-java.lang.reflect.Type-">parseIntoMap</a></code></li> </ul> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.org.apache.juneau.CoreObject"> @@ -236,17 +230,19 @@ extends <a href="../../../../org/apache/juneau/parser/Parser.html" title="class <!-- --> </a> <h3>Constructor Detail</h3> -<a name="ReaderParser-org.apache.juneau.PropertyStore-"> +<a name="ReaderParser-org.apache.juneau.PropertyStore-java.lang.String...-"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>ReaderParser</h4> -<pre>protected <a href="../../../../src-html/org/apache/juneau/parser/ReaderParser.html#line.43">ReaderParser</a>(<a href="../../../../org/apache/juneau/PropertyStore.html" title="class in org.apache.juneau">PropertyStore</a> propertyStore)</pre> +<pre>protected <a href="../../../../src-html/org/apache/juneau/parser/ReaderParser.html#line.36">ReaderParser</a>(<a href="../../../../org/apache/juneau/PropertyStore.html" title="class in org.apache.juneau">PropertyStore</a> propertyStore, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>... consumes)</pre> <div class="block">Constructor.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>propertyStore</code> - The property store containing all the settings for this object.</dd> +<dd><code>consumes</code> - The list of media types that this parser consumes (e.g. <js>"application/json"</js>, <js>"*​/json"</js>).</dd> </dl> </li> </ul> @@ -264,7 +260,7 @@ extends <a href="../../../../org/apache/juneau/parser/Parser.html" title="class <ul class="blockListLast"> <li class="blockList"> <h4>isReaderParser</h4> -<pre>public final boolean <a href="../../../../src-html/org/apache/juneau/parser/ReaderParser.html#line.48">isReaderParser</a>()</pre> +<pre>public final boolean <a href="../../../../src-html/org/apache/juneau/parser/ReaderParser.html#line.41">isReaderParser</a>()</pre> <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../org/apache/juneau/parser/Parser.html#isReaderParser--">Parser</a></code></span></div> <div class="block">Returns <jk>true</jk> if this parser subclasses from <a href="../../../../org/apache/juneau/parser/ReaderParser.html" title="class in org.apache.juneau.parser"><code>ReaderParser</code></a>.</div> <dl> http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/2ead32d5/content/site/apidocs/org/apache/juneau/parser/package-summary.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/parser/package-summary.html b/content/site/apidocs/org/apache/juneau/parser/package-summary.html index 4aacd2b..4744e4d 100644 --- a/content/site/apidocs/org/apache/juneau/parser/package-summary.html +++ b/content/site/apidocs/org/apache/juneau/parser/package-summary.html @@ -293,15 +293,13 @@ <p> Defining a new parser is quite simple if you subclass directly from <a href="../../../../org/apache/juneau/parser/ReaderParser.html" title="class in org.apache.juneau.parser"><code>ReaderParser</code></a> or <a href="../../../../org/apache/juneau/parser/InputStreamParser.html" title="class in org.apache.juneau.parser"><code>InputStreamParser</code></a>. - In each case, you simply need to implement a single method and specify a - <a href="../../../../org/apache/juneau/annotation/Consumes.html" title="annotation in org.apache.juneau.annotation"><code>Consumes</code></a> annotation. + In each case, you simply need to implement a single method . </p> <p> The following example shows a simple parser that converts input streams to images using standard JRE classes. </p> <p class='bcode'> <jd>/** Parser for converting byte streams to images */</jd> - <ja>@Consumes</ja>(<js>"image/png,image/jpeg"</js>) <jk>public class</jk> ImageParser <jk>extends</jk> InputStreamParser { <jd>/** @@ -309,7 +307,7 @@ * <ja>@param</ja> propertyStore The property store containing all the settings for this object. */</jd> <jk>public</jk> ImageParser(PropertyStore propertyStore) { - <jk>super</jk>(propertyStore); + <jk>super</jk>(propertyStore, <js>"image/png"</js>, <js>"image/jpeg"</js>); } <ja>@Override</ja> <jc>/* Parser */</jc> http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/2ead32d5/content/site/apidocs/org/apache/juneau/plaintext/PlainTextParser.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/plaintext/PlainTextParser.html b/content/site/apidocs/org/apache/juneau/plaintext/PlainTextParser.html index e0199a5..85c11c4 100644 --- a/content/site/apidocs/org/apache/juneau/plaintext/PlainTextParser.html +++ b/content/site/apidocs/org/apache/juneau/plaintext/PlainTextParser.html @@ -123,8 +123,7 @@ var activeTableTab = "activeTableTab"; <li class="blockList"> <hr> <br> -<pre><a href="../../../../org/apache/juneau/annotation/Consumes.html" title="annotation in org.apache.juneau.annotation">@Consumes</a>(<a href="../../../../org/apache/juneau/annotation/Consumes.html#value--">value</a>="text/plain") -public class <a href="../../../../src-html/org/apache/juneau/plaintext/PlainTextParser.html#line.48">PlainTextParser</a> +<pre>public class <a href="../../../../src-html/org/apache/juneau/plaintext/PlainTextParser.html#line.46">PlainTextParser</a> extends <a href="../../../../org/apache/juneau/parser/ReaderParser.html" title="class in org.apache.juneau.parser">ReaderParser</a></pre> <div class="block">Parsers HTTP plain text request bodies into <a class="doclink" href="../../../../overview-summary.html#Core.PojoCategories">Group 5</a> POJOs. @@ -201,6 +200,12 @@ extends <a href="../../../../org/apache/juneau/parser/ReaderParser.html" title=" <div class="block">Constructor.</div> </td> </tr> +<tr class="rowColor"> +<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/plaintext/PlainTextParser.html#PlainTextParser-org.apache.juneau.PropertyStore-java.lang.String...-">PlainTextParser</a></span>(<a href="../../../../org/apache/juneau/PropertyStore.html" title="class in org.apache.juneau">PropertyStore</a> propertyStore, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>... consumes)</code> +<div class="block">Constructor.</div> +</td> +</tr> </table> </li> </ul> @@ -242,7 +247,7 @@ extends <a href="../../../../org/apache/juneau/parser/ReaderParser.html" title=" <!-- --> </a> <h3>Methods inherited from class org.apache.juneau.parser.<a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a></h3> -<code><a href="../../../../org/apache/juneau/parser/Parser.html#createSession--">createSession</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#getMediaTypes--">getMediaTypes</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#getPrimaryMediaType--">getPrimaryMediaType</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#parse-java.lang.Object-java.lang.Class-">parse</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#parse-java.lang.Object-org.apache.juneau.ClassMeta-">parse</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#parse-java.lang.Object-java.lang.reflect.Type-java.lang.reflect.Type...-">parse</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#parseArgs-java.lang.Object-java.lang.reflect.Type:A-">parseArgs</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#parseIntoCollection-java.lang.Object-java.util.Collection-java.lang.reflect.Type-">parseIntoCollection</a>, <a href="../../../../org/apac he/juneau/parser/Parser.html#parseIntoMap-java.lang.Object-java.util.Map-java.lang.reflect.Type-java.lang.reflect.Type-">parseIntoMap</a></code></li> +<code><a href="../../../../org/apache/juneau/parser/Parser.html#createDefaultSessionArgs--">createDefaultSessionArgs</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#createSession--">createSession</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#getMediaTypes--">getMediaTypes</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#getPrimaryMediaType--">getPrimaryMediaType</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#parse-java.lang.Object-java.lang.Class-">parse</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#parse-java.lang.Object-org.apache.juneau.ClassMeta-">parse</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#parse-java.lang.Object-java.lang.reflect.Type-java.lang.reflect.Type...-">parse</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#parseArgs-java.lang.Object-java.lang.reflect.Type:A-">parseArgs</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#parseIntoCollection-j ava.lang.Object-java.util.Collection-java.lang.reflect.Type-">parseIntoCollection</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#parseIntoMap-java.lang.Object-java.util.Map-java.lang.reflect.Type-java.lang.reflect.Type-">parseIntoMap</a></code></li> </ul> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.org.apache.juneau.CoreObject"> @@ -278,7 +283,7 @@ extends <a href="../../../../org/apache/juneau/parser/ReaderParser.html" title=" <ul class="blockListLast"> <li class="blockList"> <h4>DEFAULT</h4> -<pre>public static final <a href="../../../../org/apache/juneau/plaintext/PlainTextParser.html" title="class in org.apache.juneau.plaintext">PlainTextParser</a> <a href="../../../../src-html/org/apache/juneau/plaintext/PlainTextParser.html#line.51">DEFAULT</a></pre> +<pre>public static final <a href="../../../../org/apache/juneau/plaintext/PlainTextParser.html" title="class in org.apache.juneau.plaintext">PlainTextParser</a> <a href="../../../../src-html/org/apache/juneau/plaintext/PlainTextParser.html#line.49">DEFAULT</a></pre> <div class="block">Default parser, all default settings.</div> </li> </ul> @@ -293,14 +298,33 @@ extends <a href="../../../../org/apache/juneau/parser/ReaderParser.html" title=" <a name="PlainTextParser-org.apache.juneau.PropertyStore-"> <!-- --> </a> +<ul class="blockList"> +<li class="blockList"> +<h4>PlainTextParser</h4> +<pre>public <a href="../../../../src-html/org/apache/juneau/plaintext/PlainTextParser.html#line.57">PlainTextParser</a>(<a href="../../../../org/apache/juneau/PropertyStore.html" title="class in org.apache.juneau">PropertyStore</a> propertyStore)</pre> +<div class="block">Constructor.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>propertyStore</code> - The property store containing all the settings for this object.</dd> +</dl> +</li> +</ul> +<a name="PlainTextParser-org.apache.juneau.PropertyStore-java.lang.String...-"> +<!-- --> +</a> <ul class="blockListLast"> <li class="blockList"> <h4>PlainTextParser</h4> -<pre>public <a href="../../../../src-html/org/apache/juneau/plaintext/PlainTextParser.html#line.59">PlainTextParser</a>(<a href="../../../../org/apache/juneau/PropertyStore.html" title="class in org.apache.juneau">PropertyStore</a> propertyStore)</pre> +<pre>public <a href="../../../../src-html/org/apache/juneau/plaintext/PlainTextParser.html#line.70">PlainTextParser</a>(<a href="../../../../org/apache/juneau/PropertyStore.html" title="class in org.apache.juneau">PropertyStore</a> propertyStore, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>... consumes)</pre> <div class="block">Constructor.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>propertyStore</code> - The property store containing all the settings for this object.</dd> +<dd><code>consumes</code> - The media types that this parser consumes. + <p> + Can contain meta-characters per the <code>media-type</code> specification of + <a class="doclink" href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1">RFC2616/14.1</a></dd> </dl> </li> </ul> @@ -318,7 +342,7 @@ extends <a href="../../../../org/apache/juneau/parser/ReaderParser.html" title=" <ul class="blockList"> <li class="blockList"> <h4>builder</h4> -<pre>public <a href="../../../../org/apache/juneau/plaintext/PlainTextParserBuilder.html" title="class in org.apache.juneau.plaintext">PlainTextParserBuilder</a> <a href="../../../../src-html/org/apache/juneau/plaintext/PlainTextParser.html#line.64">builder</a>()</pre> +<pre>public <a href="../../../../org/apache/juneau/plaintext/PlainTextParserBuilder.html" title="class in org.apache.juneau.plaintext">PlainTextParserBuilder</a> <a href="../../../../src-html/org/apache/juneau/plaintext/PlainTextParser.html#line.75">builder</a>()</pre> <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../org/apache/juneau/CoreObject.html#builder--">CoreObject</a></code></span></div> <div class="block">Creates a new builder class for this object so that a new object can be created that expands upon the current object's settings.</div> @@ -336,7 +360,7 @@ extends <a href="../../../../org/apache/juneau/parser/ReaderParser.html" title=" <ul class="blockListLast"> <li class="blockList"> <h4>createSession</h4> -<pre>public <a href="../../../../org/apache/juneau/parser/ReaderParserSession.html" title="class in org.apache.juneau.parser">ReaderParserSession</a> <a href="../../../../src-html/org/apache/juneau/plaintext/PlainTextParser.html#line.69">createSession</a>(<a href="../../../../org/apache/juneau/parser/ParserSessionArgs.html" title="class in org.apache.juneau.parser">ParserSessionArgs</a> args)</pre> +<pre>public <a href="../../../../org/apache/juneau/parser/ReaderParserSession.html" title="class in org.apache.juneau.parser">ReaderParserSession</a> <a href="../../../../src-html/org/apache/juneau/plaintext/PlainTextParser.html#line.80">createSession</a>(<a href="../../../../org/apache/juneau/parser/ParserSessionArgs.html" title="class in org.apache.juneau.parser">ParserSessionArgs</a> args)</pre> <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../org/apache/juneau/parser/Parser.html#createSession-org.apache.juneau.parser.ParserSessionArgs-">Parser</a></code></span></div> <div class="block">Create the session object that will be passed in to the parse method.
