juneau-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jamesbog...@apache.org
Subject [01/42] incubator-juneau-website git commit: Update javadocs.
Date Thu, 13 Apr 2017 20:44:47 GMT
Repository: incubator-juneau-website
Updated Branches:
  refs/heads/asf-site 1662e84df -> 80ff9b74d


http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/80ff9b74/content/site/apidocs/src-html/org/apache/juneau/urlencoding/UrlEncodingSerializerSession.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/urlencoding/UrlEncodingSerializerSession.html
b/content/site/apidocs/src-html/org/apache/juneau/urlencoding/UrlEncodingSerializerSession.html
index 7fe5584..de7ead1 100644
--- a/content/site/apidocs/src-html/org/apache/juneau/urlencoding/UrlEncodingSerializerSession.html
+++ b/content/site/apidocs/src-html/org/apache/juneau/urlencoding/UrlEncodingSerializerSession.html
@@ -34,66 +34,77 @@
 <span class="sourceLineNo">026</span> */<a name="line.26"></a>
 <span class="sourceLineNo">027</span>public class UrlEncodingSerializerSession
extends UonSerializerSession {<a name="line.27"></a>
 <span class="sourceLineNo">028</span><a name="line.28"></a>
-<span class="sourceLineNo">029</span>   private final boolean expandedParams;<a
name="line.29"></a>
+<span class="sourceLineNo">029</span>   private final boolean expandedParams,
plainTextParams;<a name="line.29"></a>
 <span class="sourceLineNo">030</span><a name="line.30"></a>
 <span class="sourceLineNo">031</span>   /**<a name="line.31"></a>
 <span class="sourceLineNo">032</span>    * Create a new session using properties
specified in the context.<a name="line.32"></a>
 <span class="sourceLineNo">033</span>    *<a name="line.33"></a>
 <span class="sourceLineNo">034</span>    * @param ctx The context creating this
session object.<a name="line.34"></a>
 <span class="sourceLineNo">035</span>    * The context contains all the configuration
settings for this object.<a name="line.35"></a>
-<span class="sourceLineNo">036</span>    * @param output The output object. 
See {@link JsonSerializerSession#getWriter()} for valid class types.<a name="line.36"></a>
-<span class="sourceLineNo">037</span>    * @param op The override properties.<a
name="line.37"></a>
-<span class="sourceLineNo">038</span>    * These override any context properties
defined in the context.<a name="line.38"></a>
-<span class="sourceLineNo">039</span>    * @param javaMethod The java method
that called this serializer, usually the method in a REST servlet.<a name="line.39"></a>
-<span class="sourceLineNo">040</span>    * @param locale 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 The session timezone.<a
name="line.42"></a>
-<span class="sourceLineNo">043</span>    * If &lt;jk&gt;null&lt;/jk&gt;,
then the timezone defined on the context is used.<a name="line.43"></a>
-<span class="sourceLineNo">044</span>    * @param mediaType The session media
type (e.g. &lt;js&gt;"application/json"&lt;/js&gt;).<a name="line.44"></a>
-<span class="sourceLineNo">045</span>    */<a name="line.45"></a>
-<span class="sourceLineNo">046</span>   public UrlEncodingSerializerSession(UrlEncodingSerializerContext
ctx, ObjectMap op, Object output, Method javaMethod, Locale locale, TimeZone timeZone, MediaType
mediaType) {<a name="line.46"></a>
-<span class="sourceLineNo">047</span>      super(ctx, op, output, javaMethod,
locale, timeZone, mediaType);<a name="line.47"></a>
-<span class="sourceLineNo">048</span>      if (op == null || op.isEmpty()) {<a
name="line.48"></a>
-<span class="sourceLineNo">049</span>         expandedParams = ctx.expandedParams;<a
name="line.49"></a>
-<span class="sourceLineNo">050</span>      } else {<a name="line.50"></a>
-<span class="sourceLineNo">051</span>         expandedParams = op.getBoolean(UrlEncodingContext.URLENC_expandedParams,
false);<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>   /**<a name="line.55"></a>
-<span class="sourceLineNo">056</span>    * Returns &lt;jk&gt;true&lt;/jk&gt;
if the specified bean property should be expanded as multiple key-value pairs.<a name="line.56"></a>
-<span class="sourceLineNo">057</span>    *<a name="line.57"></a>
-<span class="sourceLineNo">058</span>    * @param pMeta The metadata on the bean
property.<a name="line.58"></a>
-<span class="sourceLineNo">059</span>    * @return &lt;jk&gt;true&lt;/jk&gt;
if the specified bean property should be expanded as multiple key-value pairs.<a name="line.59"></a>
-<span class="sourceLineNo">060</span>    */<a name="line.60"></a>
-<span class="sourceLineNo">061</span>   public final boolean shouldUseExpandedParams(BeanPropertyMeta
pMeta) {<a name="line.61"></a>
-<span class="sourceLineNo">062</span>      ClassMeta&lt;?&gt; cm = pMeta.getClassMeta();<a
name="line.62"></a>
-<span class="sourceLineNo">063</span>      if (cm.isCollectionOrArray()) {<a
name="line.63"></a>
-<span class="sourceLineNo">064</span>         if (expandedParams)<a name="line.64"></a>
-<span class="sourceLineNo">065</span>            return true;<a name="line.65"></a>
-<span class="sourceLineNo">066</span>         if (pMeta.getBeanMeta().getClassMeta().getExtendedMeta(UrlEncodingClassMeta.class).isExpandedParams())<a
name="line.66"></a>
-<span class="sourceLineNo">067</span>            return true;<a name="line.67"></a>
-<span class="sourceLineNo">068</span>      }<a name="line.68"></a>
-<span class="sourceLineNo">069</span>      return false;<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>    * Returns &lt;jk&gt;true&lt;/jk&gt;
if the specified value should be represented as an expanded parameter list.<a name="line.73"></a>
-<span class="sourceLineNo">074</span>    *<a name="line.74"></a>
-<span class="sourceLineNo">075</span>    * @param value The value to check.<a
name="line.75"></a>
-<span class="sourceLineNo">076</span>    * @return &lt;jk&gt;true&lt;/jk&gt;
if the specified value should be represented as an expanded parameter list.<a name="line.76"></a>
-<span class="sourceLineNo">077</span>    */<a name="line.77"></a>
-<span class="sourceLineNo">078</span>   public final boolean shouldUseExpandedParams(Object
value) {<a name="line.78"></a>
-<span class="sourceLineNo">079</span>      if (value == null || ! expandedParams)<a
name="line.79"></a>
-<span class="sourceLineNo">080</span>         return false;<a name="line.80"></a>
-<span class="sourceLineNo">081</span>      ClassMeta&lt;?&gt; cm = getClassMetaForObject(value).getSerializedClassMeta();<a
name="line.81"></a>
-<span class="sourceLineNo">082</span>      if (cm.isCollectionOrArray()) {<a
name="line.82"></a>
-<span class="sourceLineNo">083</span>         if (expandedParams)<a name="line.83"></a>
-<span class="sourceLineNo">084</span>            return true;<a name="line.84"></a>
-<span class="sourceLineNo">085</span>      }<a name="line.85"></a>
-<span class="sourceLineNo">086</span>      return false;<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">036</span>    * @param encode Overrides the {@link
UonSerializerContext#UON_encodeChars} setting.<a name="line.36"></a>
+<span class="sourceLineNo">037</span>    * @param output The output object. 
See {@link JsonSerializerSession#getWriter()} for valid class types.<a name="line.37"></a>
+<span class="sourceLineNo">038</span>    * @param op The override properties.<a
name="line.38"></a>
+<span class="sourceLineNo">039</span>    * These override any context properties
defined in the context.<a name="line.39"></a>
+<span class="sourceLineNo">040</span>    * @param javaMethod The java method
that called this serializer, usually the method in a REST servlet.<a name="line.40"></a>
+<span class="sourceLineNo">041</span>    * @param locale The session locale.<a
name="line.41"></a>
+<span class="sourceLineNo">042</span>    * If &lt;jk&gt;null&lt;/jk&gt;,
then the locale defined on the context is used.<a name="line.42"></a>
+<span class="sourceLineNo">043</span>    * @param timeZone 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 The session media
type (e.g. &lt;js&gt;"application/json"&lt;/js&gt;).<a name="line.45"></a>
+<span class="sourceLineNo">046</span>    */<a name="line.46"></a>
+<span class="sourceLineNo">047</span>   public UrlEncodingSerializerSession(UrlEncodingSerializerContext
ctx, Boolean encode, ObjectMap op, Object output, Method javaMethod, Locale locale, TimeZone
timeZone, MediaType mediaType) {<a name="line.47"></a>
+<span class="sourceLineNo">048</span>      super(ctx, encode, op, output, javaMethod,
locale, timeZone, mediaType);<a name="line.48"></a>
+<span class="sourceLineNo">049</span>      if (op == null || op.isEmpty()) {<a
name="line.49"></a>
+<span class="sourceLineNo">050</span>         expandedParams = ctx.expandedParams;<a
name="line.50"></a>
+<span class="sourceLineNo">051</span>         plainTextParams = ctx.plainTextParams;<a
name="line.51"></a>
+<span class="sourceLineNo">052</span>      } else {<a name="line.52"></a>
+<span class="sourceLineNo">053</span>         expandedParams = op.getBoolean(UrlEncodingContext.URLENC_expandedParams,
false);<a name="line.53"></a>
+<span class="sourceLineNo">054</span>         plainTextParams = op.getString(UrlEncodingSerializerContext.URLENC_paramFormat,
"UON").equals("PLAINTEXT");<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><a name="line.57"></a>
+<span class="sourceLineNo">058</span>   /**<a name="line.58"></a>
+<span class="sourceLineNo">059</span>    * Returns &lt;jk&gt;true&lt;/jk&gt;
if the specified bean property should be expanded as multiple key-value pairs.<a name="line.59"></a>
+<span class="sourceLineNo">060</span>    *<a name="line.60"></a>
+<span class="sourceLineNo">061</span>    * @param pMeta The metadata on the bean
property.<a name="line.61"></a>
+<span class="sourceLineNo">062</span>    * @return &lt;jk&gt;true&lt;/jk&gt;
if the specified bean property should be expanded as multiple key-value pairs.<a name="line.62"></a>
+<span class="sourceLineNo">063</span>    */<a name="line.63"></a>
+<span class="sourceLineNo">064</span>   public final boolean shouldUseExpandedParams(BeanPropertyMeta
pMeta) {<a name="line.64"></a>
+<span class="sourceLineNo">065</span>      ClassMeta&lt;?&gt; cm = pMeta.getClassMeta();<a
name="line.65"></a>
+<span class="sourceLineNo">066</span>      if (cm.isCollectionOrArray()) {<a
name="line.66"></a>
+<span class="sourceLineNo">067</span>         if (expandedParams)<a name="line.67"></a>
+<span class="sourceLineNo">068</span>            return true;<a name="line.68"></a>
+<span class="sourceLineNo">069</span>         if (pMeta.getBeanMeta().getClassMeta().getExtendedMeta(UrlEncodingClassMeta.class).isExpandedParams())<a
name="line.69"></a>
+<span class="sourceLineNo">070</span>            return true;<a name="line.70"></a>
+<span class="sourceLineNo">071</span>      }<a name="line.71"></a>
+<span class="sourceLineNo">072</span>      return false;<a name="line.72"></a>
+<span class="sourceLineNo">073</span>   }<a name="line.73"></a>
+<span class="sourceLineNo">074</span><a name="line.74"></a>
+<span class="sourceLineNo">075</span>   /**<a name="line.75"></a>
+<span class="sourceLineNo">076</span>    * Returns &lt;jk&gt;true&lt;/jk&gt;
if the specified value should be represented as an expanded parameter list.<a name="line.76"></a>
+<span class="sourceLineNo">077</span>    *<a name="line.77"></a>
+<span class="sourceLineNo">078</span>    * @param value The value to check.<a
name="line.78"></a>
+<span class="sourceLineNo">079</span>    * @return &lt;jk&gt;true&lt;/jk&gt;
if the specified value should be represented as an expanded parameter list.<a name="line.79"></a>
+<span class="sourceLineNo">080</span>    */<a name="line.80"></a>
+<span class="sourceLineNo">081</span>   public final boolean shouldUseExpandedParams(Object
value) {<a name="line.81"></a>
+<span class="sourceLineNo">082</span>      if (value == null || ! expandedParams)<a
name="line.82"></a>
+<span class="sourceLineNo">083</span>         return false;<a name="line.83"></a>
+<span class="sourceLineNo">084</span>      ClassMeta&lt;?&gt; cm = getClassMetaForObject(value).getSerializedClassMeta();<a
name="line.84"></a>
+<span class="sourceLineNo">085</span>      if (cm.isCollectionOrArray()) {<a
name="line.85"></a>
+<span class="sourceLineNo">086</span>         if (expandedParams)<a name="line.86"></a>
+<span class="sourceLineNo">087</span>            return true;<a name="line.87"></a>
+<span class="sourceLineNo">088</span>      }<a name="line.88"></a>
+<span class="sourceLineNo">089</span>      return false;<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>   /**<a name="line.92"></a>
+<span class="sourceLineNo">093</span>    * Returns &lt;jk&gt;true&lt;/jk&gt;
if the {@link UrlEncodingSerializerContext#URLENC_paramFormat} is &lt;js&gt;"PLAINTEXT"&lt;/js&gt;.<a
name="line.93"></a>
+<span class="sourceLineNo">094</span>    * @return &lt;jk&gt;true&lt;/jk&gt;
if the {@link UrlEncodingSerializerContext#URLENC_paramFormat} is &lt;js&gt;"PLAINTEXT"&lt;/js&gt;.<a
name="line.94"></a>
+<span class="sourceLineNo">095</span>    */<a name="line.95"></a>
+<span class="sourceLineNo">096</span>   protected boolean plainTextParams() {<a
name="line.96"></a>
+<span class="sourceLineNo">097</span>      return plainTextParams;<a name="line.97"></a>
+<span class="sourceLineNo">098</span>   }<a name="line.98"></a>
+<span class="sourceLineNo">099</span>}<a name="line.99"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/80ff9b74/content/site/apidocs/src-html/org/apache/juneau/utils/AList.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/utils/AList.html b/content/site/apidocs/src-html/org/apache/juneau/utils/AList.html
index 32b1097..245d2e1 100644
--- a/content/site/apidocs/src-html/org/apache/juneau/utils/AList.html
+++ b/content/site/apidocs/src-html/org/apache/juneau/utils/AList.html
@@ -46,7 +46,18 @@
 <span class="sourceLineNo">038</span>      add(t);<a name="line.38"></a>
 <span class="sourceLineNo">039</span>      return this;<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">041</span><a name="line.41"></a>
+<span class="sourceLineNo">042</span>   /**<a name="line.42"></a>
+<span class="sourceLineNo">043</span>    * Adds multiple entries to this list.<a
name="line.43"></a>
+<span class="sourceLineNo">044</span>    *<a name="line.44"></a>
+<span class="sourceLineNo">045</span>    * @param t The entries to add to this
list.<a name="line.45"></a>
+<span class="sourceLineNo">046</span>    * @return This object (for method chaining).<a
name="line.46"></a>
+<span class="sourceLineNo">047</span>    */<a name="line.47"></a>
+<span class="sourceLineNo">048</span>   public AList&lt;T&gt; appendAll(T...t)
{<a name="line.48"></a>
+<span class="sourceLineNo">049</span>      addAll(Arrays.asList(t));<a name="line.49"></a>
+<span class="sourceLineNo">050</span>      return this;<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>
 
 
 

http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/80ff9b74/content/site/apidocs/src-html/org/apache/juneau/utils/ASet.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/utils/ASet.html b/content/site/apidocs/src-html/org/apache/juneau/utils/ASet.html
index 40e22f0..f900061 100644
--- a/content/site/apidocs/src-html/org/apache/juneau/utils/ASet.html
+++ b/content/site/apidocs/src-html/org/apache/juneau/utils/ASet.html
@@ -46,7 +46,18 @@
 <span class="sourceLineNo">038</span>      add(t);<a name="line.38"></a>
 <span class="sourceLineNo">039</span>      return this;<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">041</span><a name="line.41"></a>
+<span class="sourceLineNo">042</span>   /**<a name="line.42"></a>
+<span class="sourceLineNo">043</span>    * Adds multiple entries to this set.<a
name="line.43"></a>
+<span class="sourceLineNo">044</span>    *<a name="line.44"></a>
+<span class="sourceLineNo">045</span>    * @param t The entries to add to this
set.<a name="line.45"></a>
+<span class="sourceLineNo">046</span>    * @return This object (for method chaining).<a
name="line.46"></a>
+<span class="sourceLineNo">047</span>    */<a name="line.47"></a>
+<span class="sourceLineNo">048</span>   public ASet&lt;T&gt; appendAll(T...t)
{<a name="line.48"></a>
+<span class="sourceLineNo">049</span>      addAll(Arrays.asList(t));<a name="line.49"></a>
+<span class="sourceLineNo">050</span>      return this;<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>
 
 
 


Mime
View raw message