juneau-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jamesbog...@apache.org
Subject [20/51] [partial] incubator-juneau-website git commit: Update javadocs.
Date Sun, 27 Aug 2017 22:19:53 GMT
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/2ead32d5/content/site/apidocs/src-html/org/apache/juneau/parser/ParserSessionArgs.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/parser/ParserSessionArgs.html b/content/site/apidocs/src-html/org/apache/juneau/parser/ParserSessionArgs.html
index 0ea6e1b..28016b1 100644
--- a/content/site/apidocs/src-html/org/apache/juneau/parser/ParserSessionArgs.html
+++ b/content/site/apidocs/src-html/org/apache/juneau/parser/ParserSessionArgs.html
@@ -31,42 +31,37 @@
 <span class="sourceLineNo">023</span> */<a name="line.23"></a>
 <span class="sourceLineNo">024</span>public final class ParserSessionArgs extends BeanSessionArgs {<a name="line.24"></a>
 <span class="sourceLineNo">025</span><a name="line.25"></a>
-<span class="sourceLineNo">026</span>   /**<a name="line.26"></a>
-<span class="sourceLineNo">027</span>    * Default session arguments.<a name="line.27"></a>
-<span class="sourceLineNo">028</span>    */<a name="line.28"></a>
-<span class="sourceLineNo">029</span>   protected static final ParserSessionArgs DEFAULT = new ParserSessionArgs(ObjectMap.EMPTY_MAP, null, null, null, null, null);<a name="line.29"></a>
-<span class="sourceLineNo">030</span><a name="line.30"></a>
-<span class="sourceLineNo">031</span>   final Method javaMethod;<a name="line.31"></a>
-<span class="sourceLineNo">032</span>   final Object outer;<a name="line.32"></a>
-<span class="sourceLineNo">033</span><a name="line.33"></a>
-<span class="sourceLineNo">034</span>   /**<a name="line.34"></a>
-<span class="sourceLineNo">035</span>    * Constructor.<a name="line.35"></a>
-<span class="sourceLineNo">036</span>    *<a name="line.36"></a>
-<span class="sourceLineNo">037</span>    * @param properties<a name="line.37"></a>
-<span class="sourceLineNo">038</span>    *    Session-level properties.<a name="line.38"></a>
-<span class="sourceLineNo">039</span>    *    These override context-level properties.<a name="line.39"></a>
-<span class="sourceLineNo">040</span>    *    Can be &lt;jk&gt;null&lt;/jk&gt;.<a name="line.40"></a>
-<span class="sourceLineNo">041</span>    * @param javaMethod<a name="line.41"></a>
-<span class="sourceLineNo">042</span>    *    The java method that called this serializer, usually the method in a REST servlet.<a name="line.42"></a>
-<span class="sourceLineNo">043</span>    *    Can be &lt;jk&gt;null&lt;/jk&gt;.<a name="line.43"></a>
-<span class="sourceLineNo">044</span>    * @param locale<a name="line.44"></a>
-<span class="sourceLineNo">045</span>    *    The session locale.<a name="line.45"></a>
-<span class="sourceLineNo">046</span>    *    If &lt;jk&gt;null&lt;/jk&gt;, then the locale defined on the context is used.<a name="line.46"></a>
-<span class="sourceLineNo">047</span>    * @param timeZone<a name="line.47"></a>
-<span class="sourceLineNo">048</span>    *    The session timezone.<a name="line.48"></a>
-<span class="sourceLineNo">049</span>    *    If &lt;jk&gt;null&lt;/jk&gt;, then the timezone defined on the context is used.<a name="line.49"></a>
-<span class="sourceLineNo">050</span>    * @param mediaType<a name="line.50"></a>
-<span class="sourceLineNo">051</span>    *    The session media type (e.g. &lt;js&gt;"application/json"&lt;/js&gt;).<a name="line.51"></a>
-<span class="sourceLineNo">052</span>    *    Can be &lt;jk&gt;null&lt;/jk&gt;.<a name="line.52"></a>
-<span class="sourceLineNo">053</span>    * @param outer<a name="line.53"></a>
-<span class="sourceLineNo">054</span>    *    The outer object for instantiating top-level non-static inner classes.<a name="line.54"></a>
-<span class="sourceLineNo">055</span>    */<a name="line.55"></a>
-<span class="sourceLineNo">056</span>   public ParserSessionArgs(ObjectMap properties, Method javaMethod, Locale locale, TimeZone timeZone, MediaType mediaType, Object outer) {<a name="line.56"></a>
-<span class="sourceLineNo">057</span>      super(properties, locale, timeZone, mediaType);<a name="line.57"></a>
-<span class="sourceLineNo">058</span>      this.javaMethod = javaMethod;<a name="line.58"></a>
-<span class="sourceLineNo">059</span>      this.outer = outer;<a name="line.59"></a>
-<span class="sourceLineNo">060</span>   }<a name="line.60"></a>
-<span class="sourceLineNo">061</span>}<a name="line.61"></a>
+<span class="sourceLineNo">026</span>   final Method javaMethod;<a name="line.26"></a>
+<span class="sourceLineNo">027</span>   final Object outer;<a name="line.27"></a>
+<span class="sourceLineNo">028</span><a name="line.28"></a>
+<span class="sourceLineNo">029</span>   /**<a name="line.29"></a>
+<span class="sourceLineNo">030</span>    * Constructor.<a name="line.30"></a>
+<span class="sourceLineNo">031</span>    *<a name="line.31"></a>
+<span class="sourceLineNo">032</span>    * @param properties<a name="line.32"></a>
+<span class="sourceLineNo">033</span>    *    Session-level properties.<a name="line.33"></a>
+<span class="sourceLineNo">034</span>    *    These override context-level properties.<a name="line.34"></a>
+<span class="sourceLineNo">035</span>    *    Can be &lt;jk&gt;null&lt;/jk&gt;.<a name="line.35"></a>
+<span class="sourceLineNo">036</span>    * @param javaMethod<a name="line.36"></a>
+<span class="sourceLineNo">037</span>    *    The java method that called this serializer, usually the method in a REST servlet.<a name="line.37"></a>
+<span class="sourceLineNo">038</span>    *    Can be &lt;jk&gt;null&lt;/jk&gt;.<a name="line.38"></a>
+<span class="sourceLineNo">039</span>    * @param locale<a name="line.39"></a>
+<span class="sourceLineNo">040</span>    *    The session locale.<a name="line.40"></a>
+<span class="sourceLineNo">041</span>    *    If &lt;jk&gt;null&lt;/jk&gt;, then the locale defined on the context is used.<a name="line.41"></a>
+<span class="sourceLineNo">042</span>    * @param timeZone<a name="line.42"></a>
+<span class="sourceLineNo">043</span>    *    The session timezone.<a name="line.43"></a>
+<span class="sourceLineNo">044</span>    *    If &lt;jk&gt;null&lt;/jk&gt;, then the timezone defined on the context is used.<a name="line.44"></a>
+<span class="sourceLineNo">045</span>    * @param mediaType<a name="line.45"></a>
+<span class="sourceLineNo">046</span>    *    The session media type (e.g. &lt;js&gt;"application/json"&lt;/js&gt;).<a name="line.46"></a>
+<span class="sourceLineNo">047</span>    *    Can be &lt;jk&gt;null&lt;/jk&gt;.<a name="line.47"></a>
+<span class="sourceLineNo">048</span>    * @param outer<a name="line.48"></a>
+<span class="sourceLineNo">049</span>    *    The outer object for instantiating top-level non-static inner classes.<a name="line.49"></a>
+<span class="sourceLineNo">050</span>    */<a name="line.50"></a>
+<span class="sourceLineNo">051</span>   public ParserSessionArgs(ObjectMap properties, Method javaMethod, Locale locale, TimeZone timeZone, MediaType mediaType, Object outer) {<a name="line.51"></a>
+<span class="sourceLineNo">052</span>      super(properties, locale, timeZone, mediaType);<a name="line.52"></a>
+<span class="sourceLineNo">053</span>      this.javaMethod = javaMethod;<a name="line.53"></a>
+<span class="sourceLineNo">054</span>      this.outer = outer;<a name="line.54"></a>
+<span class="sourceLineNo">055</span>   }<a name="line.55"></a>
+<span class="sourceLineNo">056</span>}<a name="line.56"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/2ead32d5/content/site/apidocs/src-html/org/apache/juneau/parser/ReaderParser.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/parser/ReaderParser.html b/content/site/apidocs/src-html/org/apache/juneau/parser/ReaderParser.html
index 3f27d40..4172b59 100644
--- a/content/site/apidocs/src-html/org/apache/juneau/parser/ReaderParser.html
+++ b/content/site/apidocs/src-html/org/apache/juneau/parser/ReaderParser.html
@@ -21,42 +21,35 @@
 <span class="sourceLineNo">013</span>package org.apache.juneau.parser;<a name="line.13"></a>
 <span class="sourceLineNo">014</span><a name="line.14"></a>
 <span class="sourceLineNo">015</span>import org.apache.juneau.*;<a name="line.15"></a>
-<span class="sourceLineNo">016</span>import org.apache.juneau.annotation.*;<a name="line.16"></a>
-<span class="sourceLineNo">017</span><a name="line.17"></a>
-<span class="sourceLineNo">018</span>/**<a name="line.18"></a>
-<span class="sourceLineNo">019</span> * Subclass of {@link Parser} for characters-based parsers.<a name="line.19"></a>
-<span class="sourceLineNo">020</span> *<a name="line.20"></a>
-<span class="sourceLineNo">021</span> * &lt;h5 class='section'&gt;Description:&lt;/h5&gt;<a name="line.21"></a>
-<span class="sourceLineNo">022</span> *<a name="line.22"></a>
-<span class="sourceLineNo">023</span> * This class is typically the parent class of all character-based parsers.<a name="line.23"></a>
-<span class="sourceLineNo">024</span> * It has 1 abstract method to implement...<a name="line.24"></a>
-<span class="sourceLineNo">025</span> * &lt;ul&gt;<a name="line.25"></a>
-<span class="sourceLineNo">026</span> *    &lt;li&gt;&lt;code&gt;parse(ParserSession, ClassMeta)&lt;/code&gt;<a name="line.26"></a>
-<span class="sourceLineNo">027</span> * &lt;/ul&gt;<a name="line.27"></a>
-<span class="sourceLineNo">028</span> *<a name="line.28"></a>
-<span class="sourceLineNo">029</span> * &lt;h6 class='topic'&gt;@Consumes annotation&lt;/h6&gt;<a name="line.29"></a>
-<span class="sourceLineNo">030</span> *<a name="line.30"></a>
-<span class="sourceLineNo">031</span> * The media types that this parser can handle is specified through the {@link Consumes @Consumes} annotation.<a name="line.31"></a>
-<span class="sourceLineNo">032</span> *<a name="line.32"></a>
-<span class="sourceLineNo">033</span> * &lt;p&gt;<a name="line.33"></a>
-<span class="sourceLineNo">034</span> * However, the media types can also be specified programmatically by overriding the {@link #getMediaTypes()} method.<a name="line.34"></a>
-<span class="sourceLineNo">035</span> */<a name="line.35"></a>
-<span class="sourceLineNo">036</span>public abstract class ReaderParser extends Parser {<a name="line.36"></a>
-<span class="sourceLineNo">037</span><a name="line.37"></a>
-<span class="sourceLineNo">038</span>   /**<a name="line.38"></a>
-<span class="sourceLineNo">039</span>    * Constructor.<a name="line.39"></a>
-<span class="sourceLineNo">040</span>    *<a name="line.40"></a>
-<span class="sourceLineNo">041</span>    * @param propertyStore The property store containing all the settings for this object.<a name="line.41"></a>
-<span class="sourceLineNo">042</span>    */<a name="line.42"></a>
-<span class="sourceLineNo">043</span>   protected ReaderParser(PropertyStore propertyStore) {<a name="line.43"></a>
-<span class="sourceLineNo">044</span>      super(propertyStore);<a name="line.44"></a>
-<span class="sourceLineNo">045</span>   }<a name="line.45"></a>
-<span class="sourceLineNo">046</span><a name="line.46"></a>
-<span class="sourceLineNo">047</span>   @Override /* Parser */<a name="line.47"></a>
-<span class="sourceLineNo">048</span>   public final boolean isReaderParser() {<a name="line.48"></a>
-<span class="sourceLineNo">049</span>      return true;<a name="line.49"></a>
-<span class="sourceLineNo">050</span>   }<a name="line.50"></a>
-<span class="sourceLineNo">051</span>}<a name="line.51"></a>
+<span class="sourceLineNo">016</span><a name="line.16"></a>
+<span class="sourceLineNo">017</span>/**<a name="line.17"></a>
+<span class="sourceLineNo">018</span> * Subclass of {@link Parser} for characters-based parsers.<a name="line.18"></a>
+<span class="sourceLineNo">019</span> *<a name="line.19"></a>
+<span class="sourceLineNo">020</span> * &lt;h5 class='section'&gt;Description:&lt;/h5&gt;<a name="line.20"></a>
+<span class="sourceLineNo">021</span> *<a name="line.21"></a>
+<span class="sourceLineNo">022</span> * This class is typically the parent class of all character-based parsers.<a name="line.22"></a>
+<span class="sourceLineNo">023</span> * It has 1 abstract method to implement...<a name="line.23"></a>
+<span class="sourceLineNo">024</span> * &lt;ul&gt;<a name="line.24"></a>
+<span class="sourceLineNo">025</span> *    &lt;li&gt;&lt;code&gt;parse(ParserSession, ClassMeta)&lt;/code&gt;<a name="line.25"></a>
+<span class="sourceLineNo">026</span> * &lt;/ul&gt;<a name="line.26"></a>
+<span class="sourceLineNo">027</span> */<a name="line.27"></a>
+<span class="sourceLineNo">028</span>public abstract class ReaderParser extends Parser {<a name="line.28"></a>
+<span class="sourceLineNo">029</span><a name="line.29"></a>
+<span class="sourceLineNo">030</span>   /**<a name="line.30"></a>
+<span class="sourceLineNo">031</span>    * Constructor.<a name="line.31"></a>
+<span class="sourceLineNo">032</span>    *<a name="line.32"></a>
+<span class="sourceLineNo">033</span>    * @param propertyStore The property store containing all the settings for this object.<a name="line.33"></a>
+<span class="sourceLineNo">034</span>    * @param consumes The list of media types that this parser consumes (e.g. &lt;js&gt;"application/json"&lt;/js&gt;, &lt;js&gt;"*&amp;#8203;/json"&lt;/js&gt;).<a name="line.34"></a>
+<span class="sourceLineNo">035</span>    */<a name="line.35"></a>
+<span class="sourceLineNo">036</span>   protected ReaderParser(PropertyStore propertyStore, String...consumes) {<a name="line.36"></a>
+<span class="sourceLineNo">037</span>      super(propertyStore, consumes);<a name="line.37"></a>
+<span class="sourceLineNo">038</span>   }<a name="line.38"></a>
+<span class="sourceLineNo">039</span><a name="line.39"></a>
+<span class="sourceLineNo">040</span>   @Override /* Parser */<a name="line.40"></a>
+<span class="sourceLineNo">041</span>   public final boolean isReaderParser() {<a name="line.41"></a>
+<span class="sourceLineNo">042</span>      return true;<a name="line.42"></a>
+<span class="sourceLineNo">043</span>   }<a name="line.43"></a>
+<span class="sourceLineNo">044</span>}<a name="line.44"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/2ead32d5/content/site/apidocs/src-html/org/apache/juneau/plaintext/PlainTextParser.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/plaintext/PlainTextParser.html b/content/site/apidocs/src-html/org/apache/juneau/plaintext/PlainTextParser.html
index 87ad773..fe72f3b 100644
--- a/content/site/apidocs/src-html/org/apache/juneau/plaintext/PlainTextParser.html
+++ b/content/site/apidocs/src-html/org/apache/juneau/plaintext/PlainTextParser.html
@@ -21,63 +21,74 @@
 <span class="sourceLineNo">013</span>package org.apache.juneau.plaintext;<a name="line.13"></a>
 <span class="sourceLineNo">014</span><a name="line.14"></a>
 <span class="sourceLineNo">015</span>import org.apache.juneau.*;<a name="line.15"></a>
-<span class="sourceLineNo">016</span>import org.apache.juneau.annotation.*;<a name="line.16"></a>
-<span class="sourceLineNo">017</span>import org.apache.juneau.parser.*;<a name="line.17"></a>
-<span class="sourceLineNo">018</span>import org.apache.juneau.transform.*;<a name="line.18"></a>
-<span class="sourceLineNo">019</span><a name="line.19"></a>
-<span class="sourceLineNo">020</span>/**<a name="line.20"></a>
-<span class="sourceLineNo">021</span> * Parsers HTTP plain text request bodies into &lt;a class="doclink" href="../../../../overview-summary.html#Core.PojoCategories"&gt;Group 5&lt;/a&gt;<a name="line.21"></a>
-<span class="sourceLineNo">022</span> * POJOs.<a name="line.22"></a>
-<span class="sourceLineNo">023</span> *<a name="line.23"></a>
-<span class="sourceLineNo">024</span> * &lt;h5 class='section'&gt;Media types:&lt;/h5&gt;<a name="line.24"></a>
-<span class="sourceLineNo">025</span> *<a name="line.25"></a>
-<span class="sourceLineNo">026</span> * Handles &lt;code&gt;Accept&lt;/code&gt; types: &lt;code&gt;text/plain&lt;/code&gt;<a name="line.26"></a>
-<span class="sourceLineNo">027</span> *<a name="line.27"></a>
-<span class="sourceLineNo">028</span> * &lt;p&gt;<a name="line.28"></a>
-<span class="sourceLineNo">029</span> * Produces &lt;code&gt;Content-Type&lt;/code&gt; types: &lt;code&gt;text/plain&lt;/code&gt;<a name="line.29"></a>
-<span class="sourceLineNo">030</span> *<a name="line.30"></a>
-<span class="sourceLineNo">031</span> * &lt;h5 class='section'&gt;Description:&lt;/h5&gt;<a name="line.31"></a>
-<span class="sourceLineNo">032</span> *<a name="line.32"></a>
-<span class="sourceLineNo">033</span> * Essentially just converts plain text to POJOs via static &lt;code&gt;fromString()&lt;/code&gt; or &lt;code&gt;valueOf()&lt;/code&gt;, or<a name="line.33"></a>
-<span class="sourceLineNo">034</span> * through constructors that take a single string argument.<a name="line.34"></a>
-<span class="sourceLineNo">035</span> *<a name="line.35"></a>
-<span class="sourceLineNo">036</span> * &lt;p&gt;<a name="line.36"></a>
-<span class="sourceLineNo">037</span> * Also parses objects using a transform if the object class has an {@link PojoSwap PojoSwap&amp;lt;?,String&amp;gt;} transform<a name="line.37"></a>
-<span class="sourceLineNo">038</span> * defined on it.<a name="line.38"></a>
-<span class="sourceLineNo">039</span> *<a name="line.39"></a>
-<span class="sourceLineNo">040</span> * &lt;h5 class='section'&gt;Configurable properties:&lt;/h5&gt;<a name="line.40"></a>
-<span class="sourceLineNo">041</span> *<a name="line.41"></a>
-<span class="sourceLineNo">042</span> * This class has the following properties associated with it:<a name="line.42"></a>
-<span class="sourceLineNo">043</span> * &lt;ul&gt;<a name="line.43"></a>
-<span class="sourceLineNo">044</span> *    &lt;li&gt;{@link ParserContext}<a name="line.44"></a>
-<span class="sourceLineNo">045</span> * &lt;/ul&gt;<a name="line.45"></a>
-<span class="sourceLineNo">046</span> */<a name="line.46"></a>
-<span class="sourceLineNo">047</span>@Consumes("text/plain")<a name="line.47"></a>
-<span class="sourceLineNo">048</span>public class PlainTextParser extends ReaderParser {<a name="line.48"></a>
-<span class="sourceLineNo">049</span><a name="line.49"></a>
-<span class="sourceLineNo">050</span>   /** Default parser, all default settings.*/<a name="line.50"></a>
-<span class="sourceLineNo">051</span>   public static final PlainTextParser DEFAULT = new PlainTextParser(PropertyStore.create());<a name="line.51"></a>
-<span class="sourceLineNo">052</span><a name="line.52"></a>
-<span class="sourceLineNo">053</span><a name="line.53"></a>
-<span class="sourceLineNo">054</span>   /**<a name="line.54"></a>
-<span class="sourceLineNo">055</span>    * Constructor.<a name="line.55"></a>
-<span class="sourceLineNo">056</span>    *<a name="line.56"></a>
-<span class="sourceLineNo">057</span>    * @param propertyStore The property store containing all the settings for this object.<a name="line.57"></a>
-<span class="sourceLineNo">058</span>    */<a name="line.58"></a>
-<span class="sourceLineNo">059</span>   public PlainTextParser(PropertyStore propertyStore) {<a name="line.59"></a>
-<span class="sourceLineNo">060</span>      super(propertyStore);<a name="line.60"></a>
-<span class="sourceLineNo">061</span>   }<a name="line.61"></a>
-<span class="sourceLineNo">062</span><a name="line.62"></a>
-<span class="sourceLineNo">063</span>   @Override /* CoreObject */<a name="line.63"></a>
-<span class="sourceLineNo">064</span>   public PlainTextParserBuilder builder() {<a name="line.64"></a>
-<span class="sourceLineNo">065</span>      return new PlainTextParserBuilder(propertyStore);<a name="line.65"></a>
-<span class="sourceLineNo">066</span>   }<a name="line.66"></a>
-<span class="sourceLineNo">067</span><a name="line.67"></a>
-<span class="sourceLineNo">068</span>   @Override /* Parser */<a name="line.68"></a>
-<span class="sourceLineNo">069</span>   public ReaderParserSession createSession(ParserSessionArgs args) {<a name="line.69"></a>
-<span class="sourceLineNo">070</span>      return new PlainTextParserSession(args);<a name="line.70"></a>
-<span class="sourceLineNo">071</span>   }<a name="line.71"></a>
-<span class="sourceLineNo">072</span>}<a name="line.72"></a>
+<span class="sourceLineNo">016</span>import org.apache.juneau.parser.*;<a name="line.16"></a>
+<span class="sourceLineNo">017</span>import org.apache.juneau.transform.*;<a name="line.17"></a>
+<span class="sourceLineNo">018</span><a name="line.18"></a>
+<span class="sourceLineNo">019</span>/**<a name="line.19"></a>
+<span class="sourceLineNo">020</span> * Parsers HTTP plain text request bodies into &lt;a class="doclink" href="../../../../overview-summary.html#Core.PojoCategories"&gt;Group 5&lt;/a&gt;<a name="line.20"></a>
+<span class="sourceLineNo">021</span> * POJOs.<a name="line.21"></a>
+<span class="sourceLineNo">022</span> *<a name="line.22"></a>
+<span class="sourceLineNo">023</span> * &lt;h5 class='section'&gt;Media types:&lt;/h5&gt;<a name="line.23"></a>
+<span class="sourceLineNo">024</span> *<a name="line.24"></a>
+<span class="sourceLineNo">025</span> * Handles &lt;code&gt;Accept&lt;/code&gt; types: &lt;code&gt;text/plain&lt;/code&gt;<a name="line.25"></a>
+<span class="sourceLineNo">026</span> *<a name="line.26"></a>
+<span class="sourceLineNo">027</span> * &lt;p&gt;<a name="line.27"></a>
+<span class="sourceLineNo">028</span> * Produces &lt;code&gt;Content-Type&lt;/code&gt; types: &lt;code&gt;text/plain&lt;/code&gt;<a name="line.28"></a>
+<span class="sourceLineNo">029</span> *<a name="line.29"></a>
+<span class="sourceLineNo">030</span> * &lt;h5 class='section'&gt;Description:&lt;/h5&gt;<a name="line.30"></a>
+<span class="sourceLineNo">031</span> *<a name="line.31"></a>
+<span class="sourceLineNo">032</span> * Essentially just converts plain text to POJOs via static &lt;code&gt;fromString()&lt;/code&gt; or &lt;code&gt;valueOf()&lt;/code&gt;, or<a name="line.32"></a>
+<span class="sourceLineNo">033</span> * through constructors that take a single string argument.<a name="line.33"></a>
+<span class="sourceLineNo">034</span> *<a name="line.34"></a>
+<span class="sourceLineNo">035</span> * &lt;p&gt;<a name="line.35"></a>
+<span class="sourceLineNo">036</span> * Also parses objects using a transform if the object class has an {@link PojoSwap PojoSwap&amp;lt;?,String&amp;gt;} transform<a name="line.36"></a>
+<span class="sourceLineNo">037</span> * defined on it.<a name="line.37"></a>
+<span class="sourceLineNo">038</span> *<a name="line.38"></a>
+<span class="sourceLineNo">039</span> * &lt;h5 class='section'&gt;Configurable properties:&lt;/h5&gt;<a name="line.39"></a>
+<span class="sourceLineNo">040</span> *<a name="line.40"></a>
+<span class="sourceLineNo">041</span> * This class has the following properties associated with it:<a name="line.41"></a>
+<span class="sourceLineNo">042</span> * &lt;ul&gt;<a name="line.42"></a>
+<span class="sourceLineNo">043</span> *    &lt;li&gt;{@link ParserContext}<a name="line.43"></a>
+<span class="sourceLineNo">044</span> * &lt;/ul&gt;<a name="line.44"></a>
+<span class="sourceLineNo">045</span> */<a name="line.45"></a>
+<span class="sourceLineNo">046</span>public class PlainTextParser extends ReaderParser {<a name="line.46"></a>
+<span class="sourceLineNo">047</span><a name="line.47"></a>
+<span class="sourceLineNo">048</span>   /** Default parser, all default settings.*/<a name="line.48"></a>
+<span class="sourceLineNo">049</span>   public static final PlainTextParser DEFAULT = new PlainTextParser(PropertyStore.create());<a name="line.49"></a>
+<span class="sourceLineNo">050</span><a name="line.50"></a>
+<span class="sourceLineNo">051</span><a name="line.51"></a>
+<span class="sourceLineNo">052</span>   /**<a name="line.52"></a>
+<span class="sourceLineNo">053</span>    * Constructor.<a name="line.53"></a>
+<span class="sourceLineNo">054</span>    *<a name="line.54"></a>
+<span class="sourceLineNo">055</span>    * @param propertyStore The property store containing all the settings for this object.<a name="line.55"></a>
+<span class="sourceLineNo">056</span>    */<a name="line.56"></a>
+<span class="sourceLineNo">057</span>   public PlainTextParser(PropertyStore propertyStore) {<a name="line.57"></a>
+<span class="sourceLineNo">058</span>      this(propertyStore, "text/plain");<a name="line.58"></a>
+<span class="sourceLineNo">059</span>   }<a name="line.59"></a>
+<span class="sourceLineNo">060</span><a name="line.60"></a>
+<span class="sourceLineNo">061</span>   /**<a name="line.61"></a>
+<span class="sourceLineNo">062</span>    * Constructor.<a name="line.62"></a>
+<span class="sourceLineNo">063</span>    *<a name="line.63"></a>
+<span class="sourceLineNo">064</span>    * @param propertyStore The property store containing all the settings for this object.<a name="line.64"></a>
+<span class="sourceLineNo">065</span>    * @param consumes The media types that this parser consumes.<a name="line.65"></a>
+<span class="sourceLineNo">066</span>    *    &lt;p&gt;<a name="line.66"></a>
+<span class="sourceLineNo">067</span>    *    Can contain meta-characters per the &lt;code&gt;media-type&lt;/code&gt; specification of<a name="line.67"></a>
+<span class="sourceLineNo">068</span>    *    &lt;a class="doclink" href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1"&gt;RFC2616/14.1&lt;/a&gt;<a name="line.68"></a>
+<span class="sourceLineNo">069</span>    */<a name="line.69"></a>
+<span class="sourceLineNo">070</span>   public PlainTextParser(PropertyStore propertyStore, String...consumes) {<a name="line.70"></a>
+<span class="sourceLineNo">071</span>      super(propertyStore, consumes);<a name="line.71"></a>
+<span class="sourceLineNo">072</span>   }<a name="line.72"></a>
+<span class="sourceLineNo">073</span><a name="line.73"></a>
+<span class="sourceLineNo">074</span>   @Override /* CoreObject */<a name="line.74"></a>
+<span class="sourceLineNo">075</span>   public PlainTextParserBuilder builder() {<a name="line.75"></a>
+<span class="sourceLineNo">076</span>      return new PlainTextParserBuilder(propertyStore);<a name="line.76"></a>
+<span class="sourceLineNo">077</span>   }<a name="line.77"></a>
+<span class="sourceLineNo">078</span><a name="line.78"></a>
+<span class="sourceLineNo">079</span>   @Override /* Parser */<a name="line.79"></a>
+<span class="sourceLineNo">080</span>   public ReaderParserSession createSession(ParserSessionArgs args) {<a name="line.80"></a>
+<span class="sourceLineNo">081</span>      return new PlainTextParserSession(args);<a name="line.81"></a>
+<span class="sourceLineNo">082</span>   }<a name="line.82"></a>
+<span class="sourceLineNo">083</span>}<a name="line.83"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/2ead32d5/content/site/apidocs/src-html/org/apache/juneau/plaintext/PlainTextSerializer.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/plaintext/PlainTextSerializer.html b/content/site/apidocs/src-html/org/apache/juneau/plaintext/PlainTextSerializer.html
index 1a4f062..e3bb9c8 100644
--- a/content/site/apidocs/src-html/org/apache/juneau/plaintext/PlainTextSerializer.html
+++ b/content/site/apidocs/src-html/org/apache/juneau/plaintext/PlainTextSerializer.html
@@ -21,64 +21,89 @@
 <span class="sourceLineNo">013</span>package org.apache.juneau.plaintext;<a name="line.13"></a>
 <span class="sourceLineNo">014</span><a name="line.14"></a>
 <span class="sourceLineNo">015</span>import org.apache.juneau.*;<a name="line.15"></a>
-<span class="sourceLineNo">016</span>import org.apache.juneau.annotation.*;<a name="line.16"></a>
-<span class="sourceLineNo">017</span>import org.apache.juneau.serializer.*;<a name="line.17"></a>
-<span class="sourceLineNo">018</span>import org.apache.juneau.transform.*;<a name="line.18"></a>
-<span class="sourceLineNo">019</span><a name="line.19"></a>
-<span class="sourceLineNo">020</span>/**<a name="line.20"></a>
-<span class="sourceLineNo">021</span> * Serializes POJOs to plain text using just the &lt;code&gt;toString()&lt;/code&gt; method on the serialized object.<a name="line.21"></a>
-<span class="sourceLineNo">022</span> *<a name="line.22"></a>
-<span class="sourceLineNo">023</span> * &lt;h5 class='section'&gt;Media types:&lt;/h5&gt;<a name="line.23"></a>
-<span class="sourceLineNo">024</span> *<a name="line.24"></a>
-<span class="sourceLineNo">025</span> * Handles &lt;code&gt;Accept&lt;/code&gt; types: &lt;code&gt;text/plain&lt;/code&gt;<a name="line.25"></a>
-<span class="sourceLineNo">026</span> *<a name="line.26"></a>
-<span class="sourceLineNo">027</span> * &lt;p&gt;<a name="line.27"></a>
-<span class="sourceLineNo">028</span> * Produces &lt;code&gt;Content-Type&lt;/code&gt; types: &lt;code&gt;text/plain&lt;/code&gt;<a name="line.28"></a>
-<span class="sourceLineNo">029</span> *<a name="line.29"></a>
-<span class="sourceLineNo">030</span> * &lt;h5 class='section'&gt;Description:&lt;/h5&gt;<a name="line.30"></a>
-<span class="sourceLineNo">031</span> *<a name="line.31"></a>
-<span class="sourceLineNo">032</span> * Essentially converts POJOs to plain text using the &lt;code&gt;toString()&lt;/code&gt; method.<a name="line.32"></a>
-<span class="sourceLineNo">033</span> *<a name="line.33"></a>
-<span class="sourceLineNo">034</span> * &lt;p&gt;<a name="line.34"></a>
-<span class="sourceLineNo">035</span> * Also serializes objects using a transform if the object class has an {@link PojoSwap PojoSwap&amp;lt;?,String&amp;gt;}<a name="line.35"></a>
-<span class="sourceLineNo">036</span> * transform defined on it.<a name="line.36"></a>
-<span class="sourceLineNo">037</span> *<a name="line.37"></a>
-<span class="sourceLineNo">038</span> * &lt;h5 class='section'&gt;Configurable properties:&lt;/h5&gt;<a name="line.38"></a>
-<span class="sourceLineNo">039</span> *<a name="line.39"></a>
-<span class="sourceLineNo">040</span> * This class has the following properties associated with it:<a name="line.40"></a>
-<span class="sourceLineNo">041</span> * &lt;ul&gt;<a name="line.41"></a>
-<span class="sourceLineNo">042</span> *    &lt;li&gt;{@link SerializerContext}<a name="line.42"></a>
-<span class="sourceLineNo">043</span> *    &lt;li&gt;{@link BeanContext}<a name="line.43"></a>
-<span class="sourceLineNo">044</span> * &lt;/ul&gt;<a name="line.44"></a>
-<span class="sourceLineNo">045</span> */<a name="line.45"></a>
-<span class="sourceLineNo">046</span>@Produces("text/plain")<a name="line.46"></a>
-<span class="sourceLineNo">047</span>public class PlainTextSerializer extends WriterSerializer {<a name="line.47"></a>
-<span class="sourceLineNo">048</span><a name="line.48"></a>
-<span class="sourceLineNo">049</span>   /** Default serializer, all default settings.*/<a name="line.49"></a>
-<span class="sourceLineNo">050</span>   public static final PlainTextSerializer DEFAULT = new PlainTextSerializer(PropertyStore.create());<a name="line.50"></a>
+<span class="sourceLineNo">016</span>import org.apache.juneau.serializer.*;<a name="line.16"></a>
+<span class="sourceLineNo">017</span>import org.apache.juneau.transform.*;<a name="line.17"></a>
+<span class="sourceLineNo">018</span><a name="line.18"></a>
+<span class="sourceLineNo">019</span>/**<a name="line.19"></a>
+<span class="sourceLineNo">020</span> * Serializes POJOs to plain text using just the &lt;code&gt;toString()&lt;/code&gt; method on the serialized object.<a name="line.20"></a>
+<span class="sourceLineNo">021</span> *<a name="line.21"></a>
+<span class="sourceLineNo">022</span> * &lt;h5 class='section'&gt;Media types:&lt;/h5&gt;<a name="line.22"></a>
+<span class="sourceLineNo">023</span> *<a name="line.23"></a>
+<span class="sourceLineNo">024</span> * Handles &lt;code&gt;Accept&lt;/code&gt; types: &lt;code&gt;text/plain&lt;/code&gt;<a name="line.24"></a>
+<span class="sourceLineNo">025</span> *<a name="line.25"></a>
+<span class="sourceLineNo">026</span> * &lt;p&gt;<a name="line.26"></a>
+<span class="sourceLineNo">027</span> * Produces &lt;code&gt;Content-Type&lt;/code&gt; types: &lt;code&gt;text/plain&lt;/code&gt;<a name="line.27"></a>
+<span class="sourceLineNo">028</span> *<a name="line.28"></a>
+<span class="sourceLineNo">029</span> * &lt;h5 class='section'&gt;Description:&lt;/h5&gt;<a name="line.29"></a>
+<span class="sourceLineNo">030</span> *<a name="line.30"></a>
+<span class="sourceLineNo">031</span> * Essentially converts POJOs to plain text using the &lt;code&gt;toString()&lt;/code&gt; method.<a name="line.31"></a>
+<span class="sourceLineNo">032</span> *<a name="line.32"></a>
+<span class="sourceLineNo">033</span> * &lt;p&gt;<a name="line.33"></a>
+<span class="sourceLineNo">034</span> * Also serializes objects using a transform if the object class has an {@link PojoSwap PojoSwap&amp;lt;?,String&amp;gt;}<a name="line.34"></a>
+<span class="sourceLineNo">035</span> * transform defined on it.<a name="line.35"></a>
+<span class="sourceLineNo">036</span> *<a name="line.36"></a>
+<span class="sourceLineNo">037</span> * &lt;h5 class='section'&gt;Configurable properties:&lt;/h5&gt;<a name="line.37"></a>
+<span class="sourceLineNo">038</span> *<a name="line.38"></a>
+<span class="sourceLineNo">039</span> * This class has the following properties associated with it:<a name="line.39"></a>
+<span class="sourceLineNo">040</span> * &lt;ul&gt;<a name="line.40"></a>
+<span class="sourceLineNo">041</span> *    &lt;li&gt;{@link SerializerContext}<a name="line.41"></a>
+<span class="sourceLineNo">042</span> *    &lt;li&gt;{@link BeanContext}<a name="line.42"></a>
+<span class="sourceLineNo">043</span> * &lt;/ul&gt;<a name="line.43"></a>
+<span class="sourceLineNo">044</span> */<a name="line.44"></a>
+<span class="sourceLineNo">045</span>public class PlainTextSerializer extends WriterSerializer {<a name="line.45"></a>
+<span class="sourceLineNo">046</span><a name="line.46"></a>
+<span class="sourceLineNo">047</span>   /** Default serializer, all default settings.*/<a name="line.47"></a>
+<span class="sourceLineNo">048</span>   public static final PlainTextSerializer DEFAULT = new PlainTextSerializer(PropertyStore.create());<a name="line.48"></a>
+<span class="sourceLineNo">049</span><a name="line.49"></a>
+<span class="sourceLineNo">050</span>   private final SerializerContext ctx;<a name="line.50"></a>
 <span class="sourceLineNo">051</span><a name="line.51"></a>
-<span class="sourceLineNo">052</span>   private final SerializerContext ctx;<a name="line.52"></a>
-<span class="sourceLineNo">053</span><a name="line.53"></a>
-<span class="sourceLineNo">054</span>   /**<a name="line.54"></a>
-<span class="sourceLineNo">055</span>    * Constructor.<a name="line.55"></a>
-<span class="sourceLineNo">056</span>    *<a name="line.56"></a>
-<span class="sourceLineNo">057</span>    * @param propertyStore The property store containing all the settings for this object.<a name="line.57"></a>
-<span class="sourceLineNo">058</span>    */<a name="line.58"></a>
-<span class="sourceLineNo">059</span>   public PlainTextSerializer(PropertyStore propertyStore) {<a name="line.59"></a>
-<span class="sourceLineNo">060</span>      super(propertyStore);<a name="line.60"></a>
-<span class="sourceLineNo">061</span>      this.ctx = createContext(SerializerContext.class);<a name="line.61"></a>
-<span class="sourceLineNo">062</span>   }<a name="line.62"></a>
-<span class="sourceLineNo">063</span><a name="line.63"></a>
-<span class="sourceLineNo">064</span>   @Override /* CoreObject */<a name="line.64"></a>
-<span class="sourceLineNo">065</span>   public PlainTextSerializerBuilder builder() {<a name="line.65"></a>
-<span class="sourceLineNo">066</span>      return new PlainTextSerializerBuilder(propertyStore);<a name="line.66"></a>
-<span class="sourceLineNo">067</span>   }<a name="line.67"></a>
-<span class="sourceLineNo">068</span><a name="line.68"></a>
-<span class="sourceLineNo">069</span>   @Override /* Serializer */<a name="line.69"></a>
-<span class="sourceLineNo">070</span>   public WriterSerializerSession createSession(SerializerSessionArgs args) {<a name="line.70"></a>
-<span class="sourceLineNo">071</span>      return new PlainTextSerializerSession(ctx, args);<a name="line.71"></a>
-<span class="sourceLineNo">072</span>   }<a name="line.72"></a>
-<span class="sourceLineNo">073</span>}<a name="line.73"></a>
+<span class="sourceLineNo">052</span>   /**<a name="line.52"></a>
+<span class="sourceLineNo">053</span>    * Constructor.<a name="line.53"></a>
+<span class="sourceLineNo">054</span>    *<a name="line.54"></a>
+<span class="sourceLineNo">055</span>    * @param propertyStore<a name="line.55"></a>
+<span class="sourceLineNo">056</span>    *    The property store containing all the settings for this object.<a name="line.56"></a>
+<span class="sourceLineNo">057</span>    */<a name="line.57"></a>
+<span class="sourceLineNo">058</span>   public PlainTextSerializer(PropertyStore propertyStore) {<a name="line.58"></a>
+<span class="sourceLineNo">059</span>      this(propertyStore, "text/plain");<a name="line.59"></a>
+<span class="sourceLineNo">060</span>   }<a name="line.60"></a>
+<span class="sourceLineNo">061</span><a name="line.61"></a>
+<span class="sourceLineNo">062</span>   /**<a name="line.62"></a>
+<span class="sourceLineNo">063</span>    * Constructor.<a name="line.63"></a>
+<span class="sourceLineNo">064</span>    *<a name="line.64"></a>
+<span class="sourceLineNo">065</span>    * @param propertyStore<a name="line.65"></a>
+<span class="sourceLineNo">066</span>    *    The property store containing all the settings for this object.<a name="line.66"></a>
+<span class="sourceLineNo">067</span>    * @param produces<a name="line.67"></a>
+<span class="sourceLineNo">068</span>    *    The media type that this serializer produces.<a name="line.68"></a>
+<span class="sourceLineNo">069</span>    * @param accept<a name="line.69"></a>
+<span class="sourceLineNo">070</span>    *    The accept media types that the serializer can handle.<a name="line.70"></a>
+<span class="sourceLineNo">071</span>    *    &lt;p&gt;<a name="line.71"></a>
+<span class="sourceLineNo">072</span>    *    Can contain meta-characters per the &lt;code&gt;media-type&lt;/code&gt; specification of<a name="line.72"></a>
+<span class="sourceLineNo">073</span>    *    &lt;a class="doclink" href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1"&gt;RFC2616/14.1&lt;/a&gt;<a name="line.73"></a>
+<span class="sourceLineNo">074</span>    *    &lt;p&gt;<a name="line.74"></a>
+<span class="sourceLineNo">075</span>    *    If empty, then assumes the only media type supported is &lt;code&gt;produces&lt;/code&gt;.<a name="line.75"></a>
+<span class="sourceLineNo">076</span>    *    &lt;p&gt;<a name="line.76"></a>
+<span class="sourceLineNo">077</span>    *    For example, if this serializer produces &lt;js&gt;"application/json"&lt;/js&gt; but should handle media types of<a name="line.77"></a>
+<span class="sourceLineNo">078</span>    *    &lt;js&gt;"application/json"&lt;/js&gt; and &lt;js&gt;"text/json"&lt;/js&gt;, then the arguments should be:<a name="line.78"></a>
+<span class="sourceLineNo">079</span>    *    &lt;br&gt;&lt;code&gt;&lt;jk&gt;super&lt;/jk&gt;(propertyStore, &lt;js&gt;"application/json"&lt;/js&gt;, &lt;js&gt;"application/json"&lt;/js&gt;, &lt;js&gt;"text/json"&lt;/js&gt;);&lt;/code&gt;<a name="line.79"></a>
+<span class="sourceLineNo">080</span>    *    &lt;br&gt;...or...<a name="line.80"></a>
+<span class="sourceLineNo">081</span>    *    &lt;br&gt;&lt;code&gt;&lt;jk&gt;super&lt;/jk&gt;(propertyStore, &lt;js&gt;"application/json"&lt;/js&gt;, &lt;js&gt;"*&amp;#8203;/json"&lt;/js&gt;);&lt;/code&gt;<a name="line.81"></a>
+<span class="sourceLineNo">082</span>    */<a name="line.82"></a>
+<span class="sourceLineNo">083</span>   public PlainTextSerializer(PropertyStore propertyStore, String produces, String...accept) {<a name="line.83"></a>
+<span class="sourceLineNo">084</span>      super(propertyStore, produces, accept);<a name="line.84"></a>
+<span class="sourceLineNo">085</span>      this.ctx = createContext(SerializerContext.class);<a name="line.85"></a>
+<span class="sourceLineNo">086</span>   }<a name="line.86"></a>
+<span class="sourceLineNo">087</span><a name="line.87"></a>
+<span class="sourceLineNo">088</span><a name="line.88"></a>
+<span class="sourceLineNo">089</span>   @Override /* CoreObject */<a name="line.89"></a>
+<span class="sourceLineNo">090</span>   public PlainTextSerializerBuilder builder() {<a name="line.90"></a>
+<span class="sourceLineNo">091</span>      return new PlainTextSerializerBuilder(propertyStore);<a name="line.91"></a>
+<span class="sourceLineNo">092</span>   }<a name="line.92"></a>
+<span class="sourceLineNo">093</span><a name="line.93"></a>
+<span class="sourceLineNo">094</span>   @Override /* Serializer */<a name="line.94"></a>
+<span class="sourceLineNo">095</span>   public WriterSerializerSession createSession(SerializerSessionArgs args) {<a name="line.95"></a>
+<span class="sourceLineNo">096</span>      return new PlainTextSerializerSession(ctx, args);<a name="line.96"></a>
+<span class="sourceLineNo">097</span>   }<a name="line.97"></a>
+<span class="sourceLineNo">098</span>}<a name="line.98"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/2ead32d5/content/site/apidocs/src-html/org/apache/juneau/plaintext/PlainTextSerializerSession.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/plaintext/PlainTextSerializerSession.html b/content/site/apidocs/src-html/org/apache/juneau/plaintext/PlainTextSerializerSession.html
index c963851..d64696e 100644
--- a/content/site/apidocs/src-html/org/apache/juneau/plaintext/PlainTextSerializerSession.html
+++ b/content/site/apidocs/src-html/org/apache/juneau/plaintext/PlainTextSerializerSession.html
@@ -42,17 +42,16 @@
 <span class="sourceLineNo">034</span>    *    These specify session-level information such as locale and URI context.<a name="line.34"></a>
 <span class="sourceLineNo">035</span>    *    It also include session-level properties that override the properties defined on the bean and<a name="line.35"></a>
 <span class="sourceLineNo">036</span>    *    serializer contexts.<a name="line.36"></a>
-<span class="sourceLineNo">037</span>    *    &lt;br&gt;If &lt;jk&gt;null&lt;/jk&gt;, defaults to {@link SerializerSessionArgs#DEFAULT}.<a name="line.37"></a>
-<span class="sourceLineNo">038</span>    */<a name="line.38"></a>
-<span class="sourceLineNo">039</span>   protected PlainTextSerializerSession(SerializerContext ctx, SerializerSessionArgs args) {<a name="line.39"></a>
-<span class="sourceLineNo">040</span>      super(ctx, args);<a name="line.40"></a>
-<span class="sourceLineNo">041</span>   }<a name="line.41"></a>
-<span class="sourceLineNo">042</span><a name="line.42"></a>
-<span class="sourceLineNo">043</span>   @Override /* SerializerSession */<a name="line.43"></a>
-<span class="sourceLineNo">044</span>   protected void doSerialize(SerializerPipe out, Object o) throws Exception {<a name="line.44"></a>
-<span class="sourceLineNo">045</span>      out.getWriter().write(o == null ? "null" : convertToType(o, String.class));<a name="line.45"></a>
-<span class="sourceLineNo">046</span>   }<a name="line.46"></a>
-<span class="sourceLineNo">047</span>}<a name="line.47"></a>
+<span class="sourceLineNo">037</span>    */<a name="line.37"></a>
+<span class="sourceLineNo">038</span>   protected PlainTextSerializerSession(SerializerContext ctx, SerializerSessionArgs args) {<a name="line.38"></a>
+<span class="sourceLineNo">039</span>      super(ctx, args);<a name="line.39"></a>
+<span class="sourceLineNo">040</span>   }<a name="line.40"></a>
+<span class="sourceLineNo">041</span><a name="line.41"></a>
+<span class="sourceLineNo">042</span>   @Override /* SerializerSession */<a name="line.42"></a>
+<span class="sourceLineNo">043</span>   protected void doSerialize(SerializerPipe out, Object o) throws Exception {<a name="line.43"></a>
+<span class="sourceLineNo">044</span>      out.getWriter().write(o == null ? "null" : convertToType(o, String.class));<a name="line.44"></a>
+<span class="sourceLineNo">045</span>   }<a name="line.45"></a>
+<span class="sourceLineNo">046</span>}<a name="line.46"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/2ead32d5/content/site/apidocs/src-html/org/apache/juneau/rest/response/DefaultHandler.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/rest/response/DefaultHandler.html b/content/site/apidocs/src-html/org/apache/juneau/rest/response/DefaultHandler.html
index 30fcb9a..225fa81 100644
--- a/content/site/apidocs/src-html/org/apache/juneau/rest/response/DefaultHandler.html
+++ b/content/site/apidocs/src-html/org/apache/juneau/rest/response/DefaultHandler.html
@@ -26,80 +26,79 @@
 <span class="sourceLineNo">018</span>import java.util.*;<a name="line.18"></a>
 <span class="sourceLineNo">019</span><a name="line.19"></a>
 <span class="sourceLineNo">020</span>import org.apache.juneau.*;<a name="line.20"></a>
-<span class="sourceLineNo">021</span>import org.apache.juneau.annotation.*;<a name="line.21"></a>
-<span class="sourceLineNo">022</span>import org.apache.juneau.http.*;<a name="line.22"></a>
-<span class="sourceLineNo">023</span>import org.apache.juneau.internal.*;<a name="line.23"></a>
-<span class="sourceLineNo">024</span>import org.apache.juneau.rest.*;<a name="line.24"></a>
-<span class="sourceLineNo">025</span>import org.apache.juneau.serializer.*;<a name="line.25"></a>
-<span class="sourceLineNo">026</span><a name="line.26"></a>
-<span class="sourceLineNo">027</span>/**<a name="line.27"></a>
-<span class="sourceLineNo">028</span> * Response handler for POJOs not handled by other handlers.<a name="line.28"></a>
-<span class="sourceLineNo">029</span> *<a name="line.29"></a>
-<span class="sourceLineNo">030</span> * &lt;p&gt;<a name="line.30"></a>
-<span class="sourceLineNo">031</span> * This uses the serializers defined on the response to serialize the POJO.<a name="line.31"></a>
-<span class="sourceLineNo">032</span> *<a name="line.32"></a>
-<span class="sourceLineNo">033</span> * &lt;p&gt;<a name="line.33"></a>
-<span class="sourceLineNo">034</span> * The {@link Serializer} used is based on the &lt;code&gt;Accept&lt;/code&gt; header on the request.<a name="line.34"></a>
-<span class="sourceLineNo">035</span> *<a name="line.35"></a>
-<span class="sourceLineNo">036</span> * &lt;p&gt;<a name="line.36"></a>
-<span class="sourceLineNo">037</span> * The &lt;code&gt;Content-Type&lt;/code&gt; header is set to the mime-type defined on the selected serializer based on the<a name="line.37"></a>
-<span class="sourceLineNo">038</span> * {@link Produces#contentType() @Produces.contentType} annotation.<a name="line.38"></a>
-<span class="sourceLineNo">039</span> */<a name="line.39"></a>
-<span class="sourceLineNo">040</span>public class DefaultHandler implements ResponseHandler {<a name="line.40"></a>
-<span class="sourceLineNo">041</span><a name="line.41"></a>
-<span class="sourceLineNo">042</span>   @Override /* ResponseHandler */<a name="line.42"></a>
-<span class="sourceLineNo">043</span>   public boolean handle(RestRequest req, RestResponse res, Object output) throws IOException, RestException {<a name="line.43"></a>
-<span class="sourceLineNo">044</span>      SerializerGroup g = res.getSerializerGroup();<a name="line.44"></a>
-<span class="sourceLineNo">045</span>      String accept = req.getHeaders().getString("Accept", "");<a name="line.45"></a>
-<span class="sourceLineNo">046</span>      SerializerMatch sm = g.getSerializerMatch(accept);<a name="line.46"></a>
-<span class="sourceLineNo">047</span>      if (sm != null) {<a name="line.47"></a>
-<span class="sourceLineNo">048</span>         Serializer s = sm.getSerializer();<a name="line.48"></a>
-<span class="sourceLineNo">049</span>         MediaType mediaType = res.getMediaType();<a name="line.49"></a>
-<span class="sourceLineNo">050</span>         if (mediaType == null)<a name="line.50"></a>
-<span class="sourceLineNo">051</span>            mediaType = sm.getMediaType();<a name="line.51"></a>
-<span class="sourceLineNo">052</span>         res.setContentType(mediaType.toString());<a name="line.52"></a>
-<span class="sourceLineNo">053</span><a name="line.53"></a>
-<span class="sourceLineNo">054</span>         try {<a name="line.54"></a>
-<span class="sourceLineNo">055</span>            ObjectMap p = res.getProperties();<a name="line.55"></a>
-<span class="sourceLineNo">056</span>            if (req.isPlainText()) {<a name="line.56"></a>
-<span class="sourceLineNo">057</span>               res.setContentType("text/plain");<a name="line.57"></a>
-<span class="sourceLineNo">058</span>            }<a name="line.58"></a>
-<span class="sourceLineNo">059</span>            p.append("mediaType", mediaType).append("characterEncoding", res.getCharacterEncoding());<a name="line.59"></a>
-<span class="sourceLineNo">060</span><a name="line.60"></a>
-<span class="sourceLineNo">061</span>            SerializerSession session = s.createSession(new SerializerSessionArgs(p, req.getJavaMethod(), req.getLocale(), req.getHeaders().getTimeZone(), mediaType, req.getUriContext()));<a name="line.61"></a>
-<span class="sourceLineNo">062</span><a name="line.62"></a>
-<span class="sourceLineNo">063</span>            for (Map.Entry&lt;String,String&gt; h : session.getResponseHeaders().entrySet())<a name="line.63"></a>
-<span class="sourceLineNo">064</span>               res.setHeader(h.getKey(), h.getValue());<a name="line.64"></a>
-<span class="sourceLineNo">065</span><a name="line.65"></a>
-<span class="sourceLineNo">066</span>            if (! session.isWriterSerializer()) {<a name="line.66"></a>
-<span class="sourceLineNo">067</span>               if (req.isPlainText()) {<a name="line.67"></a>
-<span class="sourceLineNo">068</span>                  Writer w = res.getNegotiatedWriter();<a name="line.68"></a>
-<span class="sourceLineNo">069</span>                  ByteArrayOutputStream baos = new ByteArrayOutputStream();<a name="line.69"></a>
-<span class="sourceLineNo">070</span>                  session.serialize(baos, output);<a name="line.70"></a>
-<span class="sourceLineNo">071</span>                  w.write(StringUtils.toHex(baos.toByteArray()));<a name="line.71"></a>
-<span class="sourceLineNo">072</span>                  w.close();  // Leave open if exception occurs.<a name="line.72"></a>
-<span class="sourceLineNo">073</span>               } else {<a name="line.73"></a>
-<span class="sourceLineNo">074</span>                  OutputStream os = res.getNegotiatedOutputStream();<a name="line.74"></a>
-<span class="sourceLineNo">075</span>                  session.serialize(os, output);<a name="line.75"></a>
-<span class="sourceLineNo">076</span>                  os.close();  // Leave open if exception occurs.<a name="line.76"></a>
-<span class="sourceLineNo">077</span>               }<a name="line.77"></a>
-<span class="sourceLineNo">078</span>            } else {<a name="line.78"></a>
-<span class="sourceLineNo">079</span>               Writer w = res.getNegotiatedWriter();<a name="line.79"></a>
-<span class="sourceLineNo">080</span>               session.serialize(w, output);<a name="line.80"></a>
-<span class="sourceLineNo">081</span>               w.close();  // Leave open if exception occurs.<a name="line.81"></a>
-<span class="sourceLineNo">082</span>            }<a name="line.82"></a>
-<span class="sourceLineNo">083</span>         } catch (SerializeException e) {<a name="line.83"></a>
-<span class="sourceLineNo">084</span>            throw new RestException(SC_INTERNAL_SERVER_ERROR, e);<a name="line.84"></a>
-<span class="sourceLineNo">085</span>         }<a name="line.85"></a>
-<span class="sourceLineNo">086</span>      } else {<a name="line.86"></a>
-<span class="sourceLineNo">087</span>         throw new RestException(SC_NOT_ACCEPTABLE,<a name="line.87"></a>
-<span class="sourceLineNo">088</span>            "Unsupported media-type in request header ''Accept'': ''{0}''\n\tSupported media-types: {1}",<a name="line.88"></a>
-<span class="sourceLineNo">089</span>            req.getHeaders().getString("Accept", ""), g.getSupportedMediaTypes()<a name="line.89"></a>
-<span class="sourceLineNo">090</span>         );<a name="line.90"></a>
-<span class="sourceLineNo">091</span>      }<a name="line.91"></a>
-<span class="sourceLineNo">092</span>      return true;<a name="line.92"></a>
-<span class="sourceLineNo">093</span>   }<a name="line.93"></a>
-<span class="sourceLineNo">094</span>}<a name="line.94"></a>
+<span class="sourceLineNo">021</span>import org.apache.juneau.http.*;<a name="line.21"></a>
+<span class="sourceLineNo">022</span>import org.apache.juneau.internal.*;<a name="line.22"></a>
+<span class="sourceLineNo">023</span>import org.apache.juneau.rest.*;<a name="line.23"></a>
+<span class="sourceLineNo">024</span>import org.apache.juneau.serializer.*;<a name="line.24"></a>
+<span class="sourceLineNo">025</span><a name="line.25"></a>
+<span class="sourceLineNo">026</span>/**<a name="line.26"></a>
+<span class="sourceLineNo">027</span> * Response handler for POJOs not handled by other handlers.<a name="line.27"></a>
+<span class="sourceLineNo">028</span> *<a name="line.28"></a>
+<span class="sourceLineNo">029</span> * &lt;p&gt;<a name="line.29"></a>
+<span class="sourceLineNo">030</span> * This uses the serializers defined on the response to serialize the POJO.<a name="line.30"></a>
+<span class="sourceLineNo">031</span> *<a name="line.31"></a>
+<span class="sourceLineNo">032</span> * &lt;p&gt;<a name="line.32"></a>
+<span class="sourceLineNo">033</span> * The {@link Serializer} used is based on the &lt;code&gt;Accept&lt;/code&gt; header on the request.<a name="line.33"></a>
+<span class="sourceLineNo">034</span> *<a name="line.34"></a>
+<span class="sourceLineNo">035</span> * &lt;p&gt;<a name="line.35"></a>
+<span class="sourceLineNo">036</span> * The &lt;code&gt;Content-Type&lt;/code&gt; header is set to the mime-type defined on the selected serializer based on the<a name="line.36"></a>
+<span class="sourceLineNo">037</span> * &lt;code&gt;produces&lt;/code&gt; value passed in through the constructor.<a name="line.37"></a>
+<span class="sourceLineNo">038</span> */<a name="line.38"></a>
+<span class="sourceLineNo">039</span>public class DefaultHandler implements ResponseHandler {<a name="line.39"></a>
+<span class="sourceLineNo">040</span><a name="line.40"></a>
+<span class="sourceLineNo">041</span>   @Override /* ResponseHandler */<a name="line.41"></a>
+<span class="sourceLineNo">042</span>   public boolean handle(RestRequest req, RestResponse res, Object output) throws IOException, RestException {<a name="line.42"></a>
+<span class="sourceLineNo">043</span>      SerializerGroup g = res.getSerializerGroup();<a name="line.43"></a>
+<span class="sourceLineNo">044</span>      String accept = req.getHeaders().getString("Accept", "");<a name="line.44"></a>
+<span class="sourceLineNo">045</span>      SerializerMatch sm = g.getSerializerMatch(accept);<a name="line.45"></a>
+<span class="sourceLineNo">046</span>      if (sm != null) {<a name="line.46"></a>
+<span class="sourceLineNo">047</span>         Serializer s = sm.getSerializer();<a name="line.47"></a>
+<span class="sourceLineNo">048</span>         MediaType mediaType = res.getMediaType();<a name="line.48"></a>
+<span class="sourceLineNo">049</span>         if (mediaType == null)<a name="line.49"></a>
+<span class="sourceLineNo">050</span>            mediaType = sm.getMediaType();<a name="line.50"></a>
+<span class="sourceLineNo">051</span>         res.setContentType(mediaType.toString());<a name="line.51"></a>
+<span class="sourceLineNo">052</span><a name="line.52"></a>
+<span class="sourceLineNo">053</span>         try {<a name="line.53"></a>
+<span class="sourceLineNo">054</span>            ObjectMap p = res.getProperties();<a name="line.54"></a>
+<span class="sourceLineNo">055</span>            if (req.isPlainText()) {<a name="line.55"></a>
+<span class="sourceLineNo">056</span>               res.setContentType("text/plain");<a name="line.56"></a>
+<span class="sourceLineNo">057</span>            }<a name="line.57"></a>
+<span class="sourceLineNo">058</span>            p.append("mediaType", mediaType).append("characterEncoding", res.getCharacterEncoding());<a name="line.58"></a>
+<span class="sourceLineNo">059</span><a name="line.59"></a>
+<span class="sourceLineNo">060</span>            SerializerSession session = s.createSession(new SerializerSessionArgs(p, req.getJavaMethod(), req.getLocale(), req.getHeaders().getTimeZone(), mediaType, req.getUriContext()));<a name="line.60"></a>
+<span class="sourceLineNo">061</span><a name="line.61"></a>
+<span class="sourceLineNo">062</span>            for (Map.Entry&lt;String,String&gt; h : session.getResponseHeaders().entrySet())<a name="line.62"></a>
+<span class="sourceLineNo">063</span>               res.setHeader(h.getKey(), h.getValue());<a name="line.63"></a>
+<span class="sourceLineNo">064</span><a name="line.64"></a>
+<span class="sourceLineNo">065</span>            if (! session.isWriterSerializer()) {<a name="line.65"></a>
+<span class="sourceLineNo">066</span>               if (req.isPlainText()) {<a name="line.66"></a>
+<span class="sourceLineNo">067</span>                  Writer w = res.getNegotiatedWriter();<a name="line.67"></a>
+<span class="sourceLineNo">068</span>                  ByteArrayOutputStream baos = new ByteArrayOutputStream();<a name="line.68"></a>
+<span class="sourceLineNo">069</span>                  session.serialize(baos, output);<a name="line.69"></a>
+<span class="sourceLineNo">070</span>                  w.write(StringUtils.toHex(baos.toByteArray()));<a name="line.70"></a>
+<span class="sourceLineNo">071</span>                  w.close();  // Leave open if exception occurs.<a name="line.71"></a>
+<span class="sourceLineNo">072</span>               } else {<a name="line.72"></a>
+<span class="sourceLineNo">073</span>                  OutputStream os = res.getNegotiatedOutputStream();<a name="line.73"></a>
+<span class="sourceLineNo">074</span>                  session.serialize(os, output);<a name="line.74"></a>
+<span class="sourceLineNo">075</span>                  os.close();  // Leave open if exception occurs.<a name="line.75"></a>
+<span class="sourceLineNo">076</span>               }<a name="line.76"></a>
+<span class="sourceLineNo">077</span>            } else {<a name="line.77"></a>
+<span class="sourceLineNo">078</span>               Writer w = res.getNegotiatedWriter();<a name="line.78"></a>
+<span class="sourceLineNo">079</span>               session.serialize(w, output);<a name="line.79"></a>
+<span class="sourceLineNo">080</span>               w.close();  // Leave open if exception occurs.<a name="line.80"></a>
+<span class="sourceLineNo">081</span>            }<a name="line.81"></a>
+<span class="sourceLineNo">082</span>         } catch (SerializeException e) {<a name="line.82"></a>
+<span class="sourceLineNo">083</span>            throw new RestException(SC_INTERNAL_SERVER_ERROR, e);<a name="line.83"></a>
+<span class="sourceLineNo">084</span>         }<a name="line.84"></a>
+<span class="sourceLineNo">085</span>      } else {<a name="line.85"></a>
+<span class="sourceLineNo">086</span>         throw new RestException(SC_NOT_ACCEPTABLE,<a name="line.86"></a>
+<span class="sourceLineNo">087</span>            "Unsupported media-type in request header ''Accept'': ''{0}''\n\tSupported media-types: {1}",<a name="line.87"></a>
+<span class="sourceLineNo">088</span>            req.getHeaders().getString("Accept", ""), g.getSupportedMediaTypes()<a name="line.88"></a>
+<span class="sourceLineNo">089</span>         );<a name="line.89"></a>
+<span class="sourceLineNo">090</span>      }<a name="line.90"></a>
+<span class="sourceLineNo">091</span>      return true;<a name="line.91"></a>
+<span class="sourceLineNo">092</span>   }<a name="line.92"></a>
+<span class="sourceLineNo">093</span>}<a name="line.93"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/2ead32d5/content/site/apidocs/src-html/org/apache/juneau/serializer/OutputStreamSerializer.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/serializer/OutputStreamSerializer.html b/content/site/apidocs/src-html/org/apache/juneau/serializer/OutputStreamSerializer.html
index 2f8419f..8e28edd 100644
--- a/content/site/apidocs/src-html/org/apache/juneau/serializer/OutputStreamSerializer.html
+++ b/content/site/apidocs/src-html/org/apache/juneau/serializer/OutputStreamSerializer.html
@@ -23,71 +23,78 @@
 <span class="sourceLineNo">015</span>import static org.apache.juneau.internal.StringUtils.*;<a name="line.15"></a>
 <span class="sourceLineNo">016</span><a name="line.16"></a>
 <span class="sourceLineNo">017</span>import org.apache.juneau.*;<a name="line.17"></a>
-<span class="sourceLineNo">018</span>import org.apache.juneau.annotation.*;<a name="line.18"></a>
-<span class="sourceLineNo">019</span><a name="line.19"></a>
-<span class="sourceLineNo">020</span>/**<a name="line.20"></a>
-<span class="sourceLineNo">021</span> * Subclass of {@link Serializer} for byte-based serializers.<a name="line.21"></a>
-<span class="sourceLineNo">022</span> *<a name="line.22"></a>
-<span class="sourceLineNo">023</span> * &lt;h6 class='topic'&gt;@Produces annotation&lt;/h6&gt;<a name="line.23"></a>
-<span class="sourceLineNo">024</span> *<a name="line.24"></a>
-<span class="sourceLineNo">025</span> * The media types that this serializer can produce is specified through the {@link Produces @Produces} annotation.<a name="line.25"></a>
-<span class="sourceLineNo">026</span> *<a name="line.26"></a>
-<span class="sourceLineNo">027</span> * &lt;p&gt;<a name="line.27"></a>
-<span class="sourceLineNo">028</span> * However, the media types can also be specified programmatically by overriding the {@link #getMediaTypes()}<a name="line.28"></a>
-<span class="sourceLineNo">029</span> * and {@link #getResponseContentType()} methods.<a name="line.29"></a>
-<span class="sourceLineNo">030</span> */<a name="line.30"></a>
-<span class="sourceLineNo">031</span>public abstract class OutputStreamSerializer extends Serializer {<a name="line.31"></a>
-<span class="sourceLineNo">032</span><a name="line.32"></a>
-<span class="sourceLineNo">033</span>   /**<a name="line.33"></a>
-<span class="sourceLineNo">034</span>    * Constructor.<a name="line.34"></a>
-<span class="sourceLineNo">035</span>    *<a name="line.35"></a>
-<span class="sourceLineNo">036</span>    * @param propertyStore The property store containing all the settings for this object.<a name="line.36"></a>
-<span class="sourceLineNo">037</span>    */<a name="line.37"></a>
-<span class="sourceLineNo">038</span>   protected OutputStreamSerializer(PropertyStore propertyStore) {<a name="line.38"></a>
-<span class="sourceLineNo">039</span>      super(propertyStore);<a name="line.39"></a>
-<span class="sourceLineNo">040</span>   }<a name="line.40"></a>
-<span class="sourceLineNo">041</span><a name="line.41"></a>
-<span class="sourceLineNo">042</span><a name="line.42"></a>
-<span class="sourceLineNo">043</span>   //--------------------------------------------------------------------------------<a name="line.43"></a>
-<span class="sourceLineNo">044</span>   // Abstract methods<a name="line.44"></a>
-<span class="sourceLineNo">045</span>   //--------------------------------------------------------------------------------<a name="line.45"></a>
-<span class="sourceLineNo">046</span><a name="line.46"></a>
-<span class="sourceLineNo">047</span>   @Override /* SerializerSession */<a name="line.47"></a>
-<span class="sourceLineNo">048</span>   public abstract OutputStreamSerializerSession createSession(SerializerSessionArgs args);<a name="line.48"></a>
+<span class="sourceLineNo">018</span><a name="line.18"></a>
+<span class="sourceLineNo">019</span>/**<a name="line.19"></a>
+<span class="sourceLineNo">020</span> * Subclass of {@link Serializer} for byte-based serializers.<a name="line.20"></a>
+<span class="sourceLineNo">021</span> */<a name="line.21"></a>
+<span class="sourceLineNo">022</span>public abstract class OutputStreamSerializer extends Serializer {<a name="line.22"></a>
+<span class="sourceLineNo">023</span><a name="line.23"></a>
+<span class="sourceLineNo">024</span>   /**<a name="line.24"></a>
+<span class="sourceLineNo">025</span>    * Constructor.<a name="line.25"></a>
+<span class="sourceLineNo">026</span>    *<a name="line.26"></a>
+<span class="sourceLineNo">027</span>    * @param propertyStore<a name="line.27"></a>
+<span class="sourceLineNo">028</span>    *    The property store containing all the settings for this object.<a name="line.28"></a>
+<span class="sourceLineNo">029</span>    * @param produces<a name="line.29"></a>
+<span class="sourceLineNo">030</span>    *    The media type that this serializer produces.<a name="line.30"></a>
+<span class="sourceLineNo">031</span>    * @param accept<a name="line.31"></a>
+<span class="sourceLineNo">032</span>    *    The accept media types that the serializer can handle.<a name="line.32"></a>
+<span class="sourceLineNo">033</span>    *    &lt;p&gt;<a name="line.33"></a>
+<span class="sourceLineNo">034</span>    *    Can contain meta-characters per the &lt;code&gt;media-type&lt;/code&gt; specification of<a name="line.34"></a>
+<span class="sourceLineNo">035</span>    *    &lt;a class="doclink" href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1"&gt;RFC2616/14.1&lt;/a&gt;<a name="line.35"></a>
+<span class="sourceLineNo">036</span>    *    &lt;p&gt;<a name="line.36"></a>
+<span class="sourceLineNo">037</span>    *    If empty, then assumes the only media type supported is &lt;code&gt;produces&lt;/code&gt;.<a name="line.37"></a>
+<span class="sourceLineNo">038</span>    *    &lt;p&gt;<a name="line.38"></a>
+<span class="sourceLineNo">039</span>    *    For example, if this serializer produces &lt;js&gt;"application/json"&lt;/js&gt; but should handle media types of<a name="line.39"></a>
+<span class="sourceLineNo">040</span>    *    &lt;js&gt;"application/json"&lt;/js&gt; and &lt;js&gt;"text/json"&lt;/js&gt;, then the arguments should be:<a name="line.40"></a>
+<span class="sourceLineNo">041</span>    *    &lt;br&gt;&lt;code&gt;&lt;jk&gt;super&lt;/jk&gt;(propertyStore, &lt;js&gt;"application/json"&lt;/js&gt;, &lt;js&gt;"application/json"&lt;/js&gt;, &lt;js&gt;"text/json"&lt;/js&gt;);&lt;/code&gt;<a name="line.41"></a>
+<span class="sourceLineNo">042</span>    *    &lt;br&gt;...or...<a name="line.42"></a>
+<span class="sourceLineNo">043</span>    *    &lt;br&gt;&lt;code&gt;&lt;jk&gt;super&lt;/jk&gt;(propertyStore, &lt;js&gt;"application/json"&lt;/js&gt;, &lt;js&gt;"*&amp;#8203;/json"&lt;/js&gt;);&lt;/code&gt;<a name="line.43"></a>
+<span class="sourceLineNo">044</span>    */<a name="line.44"></a>
+<span class="sourceLineNo">045</span>   protected OutputStreamSerializer(PropertyStore propertyStore, String produces, String...accept) {<a name="line.45"></a>
+<span class="sourceLineNo">046</span>      super(propertyStore, produces, accept);<a name="line.46"></a>
+<span class="sourceLineNo">047</span>   }<a name="line.47"></a>
+<span class="sourceLineNo">048</span><a name="line.48"></a>
 <span class="sourceLineNo">049</span><a name="line.49"></a>
-<span class="sourceLineNo">050</span><a name="line.50"></a>
-<span class="sourceLineNo">051</span>   //--------------------------------------------------------------------------------<a name="line.51"></a>
-<span class="sourceLineNo">052</span>   // Other methods<a name="line.52"></a>
-<span class="sourceLineNo">053</span>   //--------------------------------------------------------------------------------<a name="line.53"></a>
-<span class="sourceLineNo">054</span><a name="line.54"></a>
-<span class="sourceLineNo">055</span>   @Override /* Serializer */<a name="line.55"></a>
-<span class="sourceLineNo">056</span>   public final boolean isWriterSerializer() {<a name="line.56"></a>
-<span class="sourceLineNo">057</span>      return false;<a name="line.57"></a>
-<span class="sourceLineNo">058</span>   }<a name="line.58"></a>
-<span class="sourceLineNo">059</span><a name="line.59"></a>
-<span class="sourceLineNo">060</span>   /**<a name="line.60"></a>
-<span class="sourceLineNo">061</span>    * Convenience method for serializing an object to a &lt;code&gt;&lt;jk&gt;byte&lt;/jk&gt;&lt;/code&gt;.<a name="line.61"></a>
-<span class="sourceLineNo">062</span>    *<a name="line.62"></a>
-<span class="sourceLineNo">063</span>    * @param o The object to serialize.<a name="line.63"></a>
-<span class="sourceLineNo">064</span>    * @return The output serialized to a byte array.<a name="line.64"></a>
-<span class="sourceLineNo">065</span>    * @throws SerializeException If a problem occurred trying to convert the output.<a name="line.65"></a>
-<span class="sourceLineNo">066</span>    */<a name="line.66"></a>
-<span class="sourceLineNo">067</span>   @Override<a name="line.67"></a>
-<span class="sourceLineNo">068</span>   public final byte[] serialize(Object o) throws SerializeException {<a name="line.68"></a>
-<span class="sourceLineNo">069</span>      return createSession(null).serialize(o);<a name="line.69"></a>
-<span class="sourceLineNo">070</span>   }<a name="line.70"></a>
-<span class="sourceLineNo">071</span><a name="line.71"></a>
-<span class="sourceLineNo">072</span>   /**<a name="line.72"></a>
-<span class="sourceLineNo">073</span>    * Convenience method for serializing an object to a hex-encoded String.<a name="line.73"></a>
-<span class="sourceLineNo">074</span>    *<a name="line.74"></a>
-<span class="sourceLineNo">075</span>    * @param o The object to serialize.<a name="line.75"></a>
-<span class="sourceLineNo">076</span>    * @return The output serialized to a hex-encoded string.<a name="line.76"></a>
-<span class="sourceLineNo">077</span>    * @throws SerializeException If a problem occurred trying to convert the output.<a name="line.77"></a>
-<span class="sourceLineNo">078</span>    */<a name="line.78"></a>
-<span class="sourceLineNo">079</span>   public final String serializeToHex(Object o) throws SerializeException {<a name="line.79"></a>
-<span class="sourceLineNo">080</span>      return toHex(serialize(o));<a name="line.80"></a>
-<span class="sourceLineNo">081</span>   }<a name="line.81"></a>
-<span class="sourceLineNo">082</span>}<a name="line.82"></a>
+<span class="sourceLineNo">050</span>   //--------------------------------------------------------------------------------<a name="line.50"></a>
+<span class="sourceLineNo">051</span>   // Abstract methods<a name="line.51"></a>
+<span class="sourceLineNo">052</span>   //--------------------------------------------------------------------------------<a name="line.52"></a>
+<span class="sourceLineNo">053</span><a name="line.53"></a>
+<span class="sourceLineNo">054</span>   @Override /* SerializerSession */<a name="line.54"></a>
+<span class="sourceLineNo">055</span>   public abstract OutputStreamSerializerSession createSession(SerializerSessionArgs args);<a name="line.55"></a>
+<span class="sourceLineNo">056</span><a name="line.56"></a>
+<span class="sourceLineNo">057</span><a name="line.57"></a>
+<span class="sourceLineNo">058</span>   //--------------------------------------------------------------------------------<a name="line.58"></a>
+<span class="sourceLineNo">059</span>   // Other methods<a name="line.59"></a>
+<span class="sourceLineNo">060</span>   //--------------------------------------------------------------------------------<a name="line.60"></a>
+<span class="sourceLineNo">061</span><a name="line.61"></a>
+<span class="sourceLineNo">062</span>   @Override /* Serializer */<a name="line.62"></a>
+<span class="sourceLineNo">063</span>   public final boolean isWriterSerializer() {<a name="line.63"></a>
+<span class="sourceLineNo">064</span>      return false;<a name="line.64"></a>
+<span class="sourceLineNo">065</span>   }<a name="line.65"></a>
+<span class="sourceLineNo">066</span><a name="line.66"></a>
+<span class="sourceLineNo">067</span>   /**<a name="line.67"></a>
+<span class="sourceLineNo">068</span>    * Convenience method for serializing an object to a &lt;code&gt;&lt;jk&gt;byte&lt;/jk&gt;&lt;/code&gt;.<a name="line.68"></a>
+<span class="sourceLineNo">069</span>    *<a name="line.69"></a>
+<span class="sourceLineNo">070</span>    * @param o The object to serialize.<a name="line.70"></a>
+<span class="sourceLineNo">071</span>    * @return The output serialized to a byte array.<a name="line.71"></a>
+<span class="sourceLineNo">072</span>    * @throws SerializeException If a problem occurred trying to convert the output.<a name="line.72"></a>
+<span class="sourceLineNo">073</span>    */<a name="line.73"></a>
+<span class="sourceLineNo">074</span>   @Override<a name="line.74"></a>
+<span class="sourceLineNo">075</span>   public final byte[] serialize(Object o) throws SerializeException {<a name="line.75"></a>
+<span class="sourceLineNo">076</span>      return createSession(createDefaultSessionArgs()).serialize(o);<a name="line.76"></a>
+<span class="sourceLineNo">077</span>   }<a name="line.77"></a>
+<span class="sourceLineNo">078</span><a name="line.78"></a>
+<span class="sourceLineNo">079</span>   /**<a name="line.79"></a>
+<span class="sourceLineNo">080</span>    * Convenience method for serializing an object to a hex-encoded String.<a name="line.80"></a>
+<span class="sourceLineNo">081</span>    *<a name="line.81"></a>
+<span class="sourceLineNo">082</span>    * @param o The object to serialize.<a name="line.82"></a>
+<span class="sourceLineNo">083</span>    * @return The output serialized to a hex-encoded string.<a name="line.83"></a>
+<span class="sourceLineNo">084</span>    * @throws SerializeException If a problem occurred trying to convert the output.<a name="line.84"></a>
+<span class="sourceLineNo">085</span>    */<a name="line.85"></a>
+<span class="sourceLineNo">086</span>   public final String serializeToHex(Object o) throws SerializeException {<a name="line.86"></a>
+<span class="sourceLineNo">087</span>      return toHex(serialize(o));<a name="line.87"></a>
+<span class="sourceLineNo">088</span>   }<a name="line.88"></a>
+<span class="sourceLineNo">089</span>}<a name="line.89"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/2ead32d5/content/site/apidocs/src-html/org/apache/juneau/serializer/OutputStreamSerializerSession.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/serializer/OutputStreamSerializerSession.html b/content/site/apidocs/src-html/org/apache/juneau/serializer/OutputStreamSerializerSession.html
index 75c92c4..4003186 100644
--- a/content/site/apidocs/src-html/org/apache/juneau/serializer/OutputStreamSerializerSession.html
+++ b/content/site/apidocs/src-html/org/apache/juneau/serializer/OutputStreamSerializerSession.html
@@ -46,41 +46,40 @@
 <span class="sourceLineNo">038</span>    *    These specify session-level information such as locale and URI context.<a name="line.38"></a>
 <span class="sourceLineNo">039</span>    *    It also include session-level properties that override the properties defined on the bean and<a name="line.39"></a>
 <span class="sourceLineNo">040</span>    *    serializer contexts.<a name="line.40"></a>
-<span class="sourceLineNo">041</span>    *    &lt;br&gt;If &lt;jk&gt;null&lt;/jk&gt;, defaults to {@link SerializerSessionArgs#DEFAULT}.<a name="line.41"></a>
-<span class="sourceLineNo">042</span>    */<a name="line.42"></a>
-<span class="sourceLineNo">043</span>   protected OutputStreamSerializerSession(SerializerContext ctx, SerializerSessionArgs args) {<a name="line.43"></a>
-<span class="sourceLineNo">044</span>      super(ctx, args);<a name="line.44"></a>
-<span class="sourceLineNo">045</span>   }<a name="line.45"></a>
-<span class="sourceLineNo">046</span><a name="line.46"></a>
-<span class="sourceLineNo">047</span>   /**<a name="line.47"></a>
-<span class="sourceLineNo">048</span>    * Constructor for sessions that don't require context.<a name="line.48"></a>
-<span class="sourceLineNo">049</span>    *<a name="line.49"></a>
-<span class="sourceLineNo">050</span>    * @param args<a name="line.50"></a>
-<span class="sourceLineNo">051</span>    *    Runtime session arguments.<a name="line.51"></a>
-<span class="sourceLineNo">052</span>    */<a name="line.52"></a>
-<span class="sourceLineNo">053</span>   protected OutputStreamSerializerSession(SerializerSessionArgs args) {<a name="line.53"></a>
-<span class="sourceLineNo">054</span>      this(null, args);<a name="line.54"></a>
-<span class="sourceLineNo">055</span>   }<a name="line.55"></a>
-<span class="sourceLineNo">056</span><a name="line.56"></a>
-<span class="sourceLineNo">057</span>   @Override /* SerializerSession */<a name="line.57"></a>
-<span class="sourceLineNo">058</span>   public final boolean isWriterSerializer() {<a name="line.58"></a>
-<span class="sourceLineNo">059</span>      return false;<a name="line.59"></a>
-<span class="sourceLineNo">060</span>   }<a name="line.60"></a>
-<span class="sourceLineNo">061</span><a name="line.61"></a>
-<span class="sourceLineNo">062</span>   /**<a name="line.62"></a>
-<span class="sourceLineNo">063</span>    * Convenience method for serializing an object to a &lt;code&gt;&lt;jk&gt;byte&lt;/jk&gt;&lt;/code&gt;.<a name="line.63"></a>
-<span class="sourceLineNo">064</span>    *<a name="line.64"></a>
-<span class="sourceLineNo">065</span>    * @param o The object to serialize.<a name="line.65"></a>
-<span class="sourceLineNo">066</span>    * @return The output serialized to a byte array.<a name="line.66"></a>
-<span class="sourceLineNo">067</span>    * @throws SerializeException If a problem occurred trying to convert the output.<a name="line.67"></a>
-<span class="sourceLineNo">068</span>    */<a name="line.68"></a>
-<span class="sourceLineNo">069</span>   @Override /* SerializerSession */<a name="line.69"></a>
-<span class="sourceLineNo">070</span>   public final byte[] serialize(Object o) throws SerializeException {<a name="line.70"></a>
-<span class="sourceLineNo">071</span>      ByteArrayOutputStream baos = new ByteArrayOutputStream();<a name="line.71"></a>
-<span class="sourceLineNo">072</span>      serialize(baos, o);<a name="line.72"></a>
-<span class="sourceLineNo">073</span>      return baos.toByteArray();<a name="line.73"></a>
-<span class="sourceLineNo">074</span>   }<a name="line.74"></a>
-<span class="sourceLineNo">075</span>}<a name="line.75"></a>
+<span class="sourceLineNo">041</span>    */<a name="line.41"></a>
+<span class="sourceLineNo">042</span>   protected OutputStreamSerializerSession(SerializerContext ctx, SerializerSessionArgs args) {<a name="line.42"></a>
+<span class="sourceLineNo">043</span>      super(ctx, args);<a name="line.43"></a>
+<span class="sourceLineNo">044</span>   }<a name="line.44"></a>
+<span class="sourceLineNo">045</span><a name="line.45"></a>
+<span class="sourceLineNo">046</span>   /**<a name="line.46"></a>
+<span class="sourceLineNo">047</span>    * Constructor for sessions that don't require context.<a name="line.47"></a>
+<span class="sourceLineNo">048</span>    *<a name="line.48"></a>
+<span class="sourceLineNo">049</span>    * @param args<a name="line.49"></a>
+<span class="sourceLineNo">050</span>    *    Runtime session arguments.<a name="line.50"></a>
+<span class="sourceLineNo">051</span>    */<a name="line.51"></a>
+<span class="sourceLineNo">052</span>   protected OutputStreamSerializerSession(SerializerSessionArgs args) {<a name="line.52"></a>
+<span class="sourceLineNo">053</span>      this(null, args);<a name="line.53"></a>
+<span class="sourceLineNo">054</span>   }<a name="line.54"></a>
+<span class="sourceLineNo">055</span><a name="line.55"></a>
+<span class="sourceLineNo">056</span>   @Override /* SerializerSession */<a name="line.56"></a>
+<span class="sourceLineNo">057</span>   public final boolean isWriterSerializer() {<a name="line.57"></a>
+<span class="sourceLineNo">058</span>      return false;<a name="line.58"></a>
+<span class="sourceLineNo">059</span>   }<a name="line.59"></a>
+<span class="sourceLineNo">060</span><a name="line.60"></a>
+<span class="sourceLineNo">061</span>   /**<a name="line.61"></a>
+<span class="sourceLineNo">062</span>    * Convenience method for serializing an object to a &lt;code&gt;&lt;jk&gt;byte&lt;/jk&gt;&lt;/code&gt;.<a name="line.62"></a>
+<span class="sourceLineNo">063</span>    *<a name="line.63"></a>
+<span class="sourceLineNo">064</span>    * @param o The object to serialize.<a name="line.64"></a>
+<span class="sourceLineNo">065</span>    * @return The output serialized to a byte array.<a name="line.65"></a>
+<span class="sourceLineNo">066</span>    * @throws SerializeException If a problem occurred trying to convert the output.<a name="line.66"></a>
+<span class="sourceLineNo">067</span>    */<a name="line.67"></a>
+<span class="sourceLineNo">068</span>   @Override /* SerializerSession */<a name="line.68"></a>
+<span class="sourceLineNo">069</span>   public final byte[] serialize(Object o) throws SerializeException {<a name="line.69"></a>
+<span class="sourceLineNo">070</span>      ByteArrayOutputStream baos = new ByteArrayOutputStream();<a name="line.70"></a>
+<span class="sourceLineNo">071</span>      serialize(baos, o);<a name="line.71"></a>
+<span class="sourceLineNo">072</span>      return baos.toByteArray();<a name="line.72"></a>
+<span class="sourceLineNo">073</span>   }<a name="line.73"></a>
+<span class="sourceLineNo">074</span>}<a name="line.74"></a>
 
 
 


Mime
View raw message