juneau-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jamesbog...@apache.org
Subject [juneau-website] branch asf-site updated: Javadocs
Date Mon, 17 Dec 2018 17:07:56 GMT
This is an automated email from the ASF dual-hosted git repository.

jamesbognar pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/juneau-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 0f0d060  Javadocs
0f0d060 is described below

commit 0f0d0601ae9a5ef9e3dd8e4124294ff23892048c
Author: JamesBognar <jamesbognar@apache.org>
AuthorDate: Mon Dec 17 12:07:42 2018 -0500

    Javadocs
---
 .../juneau-examples-rest-springboot.Heroku.1.png   | Bin 0 -> 100781 bytes
 .../juneau-examples-rest-springboot.Heroku.2.png   | Bin 0 -> 136990 bytes
 .../juneau-examples-rest-springboot.Heroku.3.png   | Bin 0 -> 293130 bytes
 .../juneau-examples-rest-springboot.Heroku.4.png   | Bin 0 -> 105931 bytes
 .../juneau-examples-rest-springboot.Heroku.4a.png  | Bin 0 -> 257041 bytes
 .../juneau-examples-rest-springboot.Heroku.5.png   | Bin 0 -> 13946 bytes
 .../juneau-examples-rest-springboot.Heroku.6.png   | Bin 0 -> 243630 bytes
 .../apache/juneau/rest/jaxrs/BasicProvider.html    |   8 +-
 content/site/apidocs-8.0.0/overview-summary.html   | 137 ++++++++++++++++++++-
 .../apidocs-8.0.0/resources/fragments/toc.html     |   2 +-
 .../site/apidocs-8.0.0/resources/juneau-doc.css    |  14 +++
 .../apache/juneau/rest/jaxrs/BasicProvider.html    | 113 +++++++++--------
 12 files changed, 212 insertions(+), 62 deletions(-)

diff --git a/content/site/apidocs-8.0.0/doc-files/juneau-examples-rest-springboot.Heroku.1.png
b/content/site/apidocs-8.0.0/doc-files/juneau-examples-rest-springboot.Heroku.1.png
new file mode 100644
index 0000000..d44ee06
Binary files /dev/null and b/content/site/apidocs-8.0.0/doc-files/juneau-examples-rest-springboot.Heroku.1.png
differ
diff --git a/content/site/apidocs-8.0.0/doc-files/juneau-examples-rest-springboot.Heroku.2.png
b/content/site/apidocs-8.0.0/doc-files/juneau-examples-rest-springboot.Heroku.2.png
new file mode 100644
index 0000000..24d3c26
Binary files /dev/null and b/content/site/apidocs-8.0.0/doc-files/juneau-examples-rest-springboot.Heroku.2.png
differ
diff --git a/content/site/apidocs-8.0.0/doc-files/juneau-examples-rest-springboot.Heroku.3.png
b/content/site/apidocs-8.0.0/doc-files/juneau-examples-rest-springboot.Heroku.3.png
new file mode 100644
index 0000000..47abc87
Binary files /dev/null and b/content/site/apidocs-8.0.0/doc-files/juneau-examples-rest-springboot.Heroku.3.png
differ
diff --git a/content/site/apidocs-8.0.0/doc-files/juneau-examples-rest-springboot.Heroku.4.png
b/content/site/apidocs-8.0.0/doc-files/juneau-examples-rest-springboot.Heroku.4.png
new file mode 100644
index 0000000..7aa189e
Binary files /dev/null and b/content/site/apidocs-8.0.0/doc-files/juneau-examples-rest-springboot.Heroku.4.png
differ
diff --git a/content/site/apidocs-8.0.0/doc-files/juneau-examples-rest-springboot.Heroku.4a.png
b/content/site/apidocs-8.0.0/doc-files/juneau-examples-rest-springboot.Heroku.4a.png
new file mode 100644
index 0000000..10be677
Binary files /dev/null and b/content/site/apidocs-8.0.0/doc-files/juneau-examples-rest-springboot.Heroku.4a.png
differ
diff --git a/content/site/apidocs-8.0.0/doc-files/juneau-examples-rest-springboot.Heroku.5.png
b/content/site/apidocs-8.0.0/doc-files/juneau-examples-rest-springboot.Heroku.5.png
new file mode 100644
index 0000000..d32ce52
Binary files /dev/null and b/content/site/apidocs-8.0.0/doc-files/juneau-examples-rest-springboot.Heroku.5.png
differ
diff --git a/content/site/apidocs-8.0.0/doc-files/juneau-examples-rest-springboot.Heroku.6.png
b/content/site/apidocs-8.0.0/doc-files/juneau-examples-rest-springboot.Heroku.6.png
new file mode 100644
index 0000000..7bbce5d
Binary files /dev/null and b/content/site/apidocs-8.0.0/doc-files/juneau-examples-rest-springboot.Heroku.6.png
differ
diff --git a/content/site/apidocs-8.0.0/org/apache/juneau/rest/jaxrs/BasicProvider.html b/content/site/apidocs-8.0.0/org/apache/juneau/rest/jaxrs/BasicProvider.html
index 42fd28f..77fbaf2 100644
--- a/content/site/apidocs-8.0.0/org/apache/juneau/rest/jaxrs/BasicProvider.html
+++ b/content/site/apidocs-8.0.0/org/apache/juneau/rest/jaxrs/BasicProvider.html
@@ -112,9 +112,9 @@
 <hr>
 <br>
 <pre>@Provider
- <a href="../../../../../org/apache/juneau/rest/jaxrs/JuneauProvider.html" title="annotation
in org.apache.juneau.rest.jaxrs">@JuneauProvider</a>(<a href="../../../../../org/apache/juneau/rest/jaxrs/JuneauProvider.html#serializers--">serializers</a>={<a
href="../../../../../org/apache/juneau/json/JsonSerializer.html" title="class in org.apache.juneau.json">JsonSerializer.class</a>,<a
href="../../../../../org/apache/juneau/json/SimpleJsonSerializer.html" title="class in org.apache.juneau.
[...]
-                <a href="../../../../../org/apache/juneau/rest/jaxrs/JuneauProvider.html#parsers--">parsers</a>={<a
href="../../../../../org/apache/juneau/json/JsonParser.html" title="class in org.apache.juneau.json">JsonParser.class</a>,<a
href="../../../../../org/apache/juneau/xml/XmlParser.html" title="class in org.apache.juneau.xml">XmlParser.class</a>,<a
href="../../../../../org/apache/juneau/html/HtmlParser.html" title="class in org.apache.juneau.html">HtmlParser.class</a>,<a
href= [...]
-public final class <a href="../../../../../src-html/org/apache/juneau/rest/jaxrs/BasicProvider.html#line.75">BasicProvider</a>
+ <a href="../../../../../org/apache/juneau/rest/jaxrs/JuneauProvider.html" title="annotation
in org.apache.juneau.rest.jaxrs">@JuneauProvider</a>(<a href="../../../../../org/apache/juneau/rest/jaxrs/JuneauProvider.html#serializers--">serializers</a>={<a
href="../../../../../org/apache/juneau/json/JsonSerializer.html" title="class in org.apache.juneau.json">JsonSerializer.class</a>,<a
href="../../../../../org/apache/juneau/json/SimpleJsonSerializer.html" title="class in org.apache.juneau.
[...]
+                <a href="../../../../../org/apache/juneau/rest/jaxrs/JuneauProvider.html#parsers--">parsers</a>={<a
href="../../../../../org/apache/juneau/json/JsonParser.html" title="class in org.apache.juneau.json">JsonParser.class</a>,<a
href="../../../../../org/apache/juneau/xml/XmlParser.html" title="class in org.apache.juneau.xml">XmlParser.class</a>,<a
href="../../../../../org/apache/juneau/html/HtmlParser.html" title="class in org.apache.juneau.html">HtmlParser.class</a>,<a
href= [...]
+public final class <a href="../../../../../src-html/org/apache/juneau/rest/jaxrs/BasicProvider.html#line.80">BasicProvider</a>
 extends <a href="../../../../../org/apache/juneau/rest/jaxrs/BaseProvider.html" title="class
in org.apache.juneau.rest.jaxrs">BaseProvider</a></pre>
 <div class="block">JAX-RS provider for the same serialize/parse support provided by
the <a href="../../../../../org/apache/juneau/rest/BasicRestServlet.html" title="class
in org.apache.juneau.rest"><code>BasicRestServlet</code></a> class.
 
@@ -185,7 +185,7 @@ extends <a href="../../../../../org/apache/juneau/rest/jaxrs/BaseProvider.html"
 <ul class="blockListLast">
 <li class="blockList">
 <h4>BasicProvider</h4>
-<pre>public&nbsp;<a href="../../../../../src-html/org/apache/juneau/rest/jaxrs/BasicProvider.html#line.75">BasicProvider</a>()</pre>
+<pre>public&nbsp;<a href="../../../../../src-html/org/apache/juneau/rest/jaxrs/BasicProvider.html#line.80">BasicProvider</a>()</pre>
 </li>
 </ul>
 </li>
diff --git a/content/site/apidocs-8.0.0/overview-summary.html b/content/site/apidocs-8.0.0/overview-summary.html
index e6bb869..74ee104 100644
--- a/content/site/apidocs-8.0.0/overview-summary.html
+++ b/content/site/apidocs-8.0.0/overview-summary.html
@@ -1077,7 +1077,7 @@
       <li><p class='new'><a class='doclink' href='#juneau-examples-rest-springboot.Installing'>Installing
in Eclipse</a></p>
       <li><p class='new'><a class='doclink' href='#juneau-examples-rest-springboot.Running'>Running
in Eclipse</a></p>
       <li><p class='new'><a class='doclink' href='#juneau-examples-rest-springboot.Building'>Building
and Running from Command-Line</a></p>
-      <li><p class='todo'><a class='doclink' href='#juneau-examples-rest-springboot.DeployingToHeroku'>Deploying
to Heroku</a></p>
+      <li><p class='new'><a class='doclink' href='#juneau-examples-rest-springboot.DeployingToHeroku'>Deploying
to Heroku</a></p>
    </ol>
    <li><p class='toc2'><a class='doclink' href='#Security'>Security Best-Practices</a></p>
    <ol>
@@ -29032,11 +29032,142 @@
 
 <!-- ====================================================================================================
-->
 
-<h3 class='topic todo' onclick='toggle(this)'><a href='#juneau-examples-rest-springboot.DeployingToHeroku'
id='juneau-examples-rest-springboot.DeployingToHeroku'>18.4 - Deploying to Heroku</a></h3>
+<h3 class='topic new' onclick='toggle(this)'><a href='#juneau-examples-rest-springboot.DeployingToHeroku'
id='juneau-examples-rest-springboot.DeployingToHeroku'>18.4 - Deploying to Heroku</a></h3>
 <div class='topic'><!-- START: 18.4 - juneau-examples-rest-springboot.DeployingToHeroku
-->
 <p>
-   TODO
+   <a href='https://www.heroku.com'>Heroku</a> is a platform-as-a-service that
allows applications to be quickly hosted
+   in the cloud.  
+   The <l>juneau-examples-rest-springboot</l> project contains additional metadata
files for quickly
+   deploying and running the examples in Heroku using free services. 
 </p>
+<ul class='spaced-list'>
+   <li>
+      <l>app.json</l>
+      <br><br>
+         This class provides basic metadata information to Heroku about our application.
+      <br><br>
+      <p class='bcode w800'>
+   {
+     <jok>"name"</jok>: <jov>"Start on Heroku: Juneau REST Examples"</jov>,
+     <jok>"description"</jok>: <jov>"Deployable REST examples to Heroku."</jov>
+   }
+      </p>
+   <li>
+      <l>Procfile</l>
+      <br><br>
+         This class tells Heroku how to deploy our application using the Web dyno.
+      <br><br>
+      <p class='bcode w800'>
+   web: java -jar target/juneau-examples-rest-springboot-8.0.0.jar
+      </p>
+   <li>
+      <l>settings.xml</l>     
+      <br><br>This is an optional Maven settings file that points to both the
main Maven repo in
+      addition to the Apache snapshots repo if you happen to be using a snapshot version
of Juneau.
+</ul>
+<p>
+   You'll need to sign up for an account on Heroku. 
+   Afterwards, you can go to the apps page to create a new application:
+</p>
+<p class='bpcode w1000'>
+   https://dashboard.heroku.com/apps
+</p>
+<img class='bordered w1000' src='doc-files/juneau-examples-rest-springboot.Heroku.1.png'>
+
+<p>
+   Click the <l>New</l> button to create a new app, give it a unique name:
+</p>
+<p class='bpcode w1000'>
+   https://dashboard.heroku.com/new-app
+</p>
+<img class='bordered w1000' src='doc-files/juneau-examples-rest-springboot.Heroku.2.png'>
+
+<p>
+   After clicking the <l>Create app</l> button, you should see this page:
+</p>
+<p class='bpcode w1000'>
+   https://dashboard.heroku.com/apps/juneau-examples-rest/deploy/heroku-git
+</p>
+<img class='bordered w1000' src='doc-files/juneau-examples-rest-springboot.Heroku.3.png'>
+
+<p>
+   For this example, we'll use the <l>Heroku Git</l> option for deploying our
application.
+   <br>Follow the instructions for installing the Heroku CLI and logging into Heroku:
+</p>
+<p class='bpcode w1000'>
+   https://dashboard.heroku.com/apps/juneau-examples-rest/deploy/heroku-git
+</p>
+<img class='bordered w1000' src='doc-files/juneau-examples-rest-springboot.Heroku.4.png'>
+
+<p>
+   Next, run the following commands to cd into our Eclipse project and initialize it as a
local git repo:
+</p>
+<p class='bpcode w800'>
+   $ cd juneau-examples-rest-springboot/
+   $ git init
+</p>
+<h5 class='figure'>Output</h5>
+<p class='bpcode w800 console'>
+   $ cd juneau-examples-rest-springboot/
+   $ git init
+   Initialized empty Git repository in /.../juneau-examples-rest-springboot/.git/
+</p>
+
+<p>
+   Next, run the following command to link our project to the Heroku app:
+</p>
+<p class='bpcode w800'>
+   $ heroku git:remote -a juneau-examples-rest
+</p>
+<h5 class='figure'>Output</h5>
+<p class='bpcode w800 console'>
+   $ heroku git:remote -a juneau-examples-rest
+   set git remote heroku to https://git.heroku.com/juneau-examples-rest.git
+</p>
+
+<p>
+   Next, run the following commands to add our files to the git repo and push to the Heroku
master branch:
+</p>
+<p class='bpcode w800'>
+   $ git add .
+   $ git commit -am "Initial deploy"
+   $ git push heroku master
+</p>
+<h5 class='figure'>Output</h5>
+<p class='bpcode w800 console'>
+   $ git add .
+   master (root-commit) 7c94cb9] Initial deploy
+    123 files changed, 11986 insertions(+)
+   Counting objects: 127, done.
+   $ git commit -am "Initial deploy"
+   $ git push heroku master
+   Delta compression using up to 8 threads.
+   Compressing objects: 100% (113/113), done.
+   Writing objects: 100% (127/127), 363.91 KiB | 21.41 MiB/s, done.
+   ...
+   remote: -----> Compressing...
+   remote:        Done: 85.9M
+   remote: -----> Launching...
+   remote:        Released v3
+   remote:        https://juneau-examples-rest.herokuapp.com/ deployed to Heroku
+   remote: 
+   remote: Verifying deploy... done.
+   To https://git.heroku.com/juneau-examples-rest.git
+    * [new branch]      master -> master
+</p>
+<p>
+   If no errors were shown, then our application should now be live.
+   You can click on the <l>Open app</l> button to open the examples application
in a browser:
+</p>
+<img class='bordered w400' src='doc-files/juneau-examples-rest-springboot.Heroku.5.png'>
+
+<p>
+   If everything worked, your browser should now be loaded with our example REST app:
+</p>
+<p class='bpcode w1000'>
+   https://juneau-examples-rest.herokuapp.com
+</p>
+<img class='bordered w1000' src='doc-files/juneau-examples-rest-springboot.Heroku.6.png'>
 </div><!-- END: 18.4 - juneau-examples-rest-springboot.DeployingToHeroku -->
 </div><!-- END: 18 - juneau-examples-rest-springboot -->
 
diff --git a/content/site/apidocs-8.0.0/resources/fragments/toc.html b/content/site/apidocs-8.0.0/resources/fragments/toc.html
index 83edf6b..22a9b56 100644
--- a/content/site/apidocs-8.0.0/resources/fragments/toc.html
+++ b/content/site/apidocs-8.0.0/resources/fragments/toc.html
@@ -397,7 +397,7 @@
 		<li><p class='new'><a class='doclink' href='{OVERVIEW_URL}#juneau-examples-rest-springboot.Installing'>Installing
in Eclipse</a></p>
 		<li><p class='new'><a class='doclink' href='{OVERVIEW_URL}#juneau-examples-rest-springboot.Running'>Running
in Eclipse</a></p>
 		<li><p class='new'><a class='doclink' href='{OVERVIEW_URL}#juneau-examples-rest-springboot.Building'>Building
and Running from Command-Line</a></p>
-		<li><p class='todo'><a class='doclink' href='{OVERVIEW_URL}#juneau-examples-rest-springboot.DeployingToHeroku'>Deploying
to Heroku</a></p>
+		<li><p class='new'><a class='doclink' href='{OVERVIEW_URL}#juneau-examples-rest-springboot.DeployingToHeroku'>Deploying
to Heroku</a></p>
 	</ol>
 	<li><p class='toc2'><a class='doclink' href='{OVERVIEW_URL}#Security'>Security
Best-Practices</a></p>
 	<ol>
diff --git a/content/site/apidocs-8.0.0/resources/juneau-doc.css b/content/site/apidocs-8.0.0/resources/juneau-doc.css
index 91ce80b..72d9e1e 100644
--- a/content/site/apidocs-8.0.0/resources/juneau-doc.css
+++ b/content/site/apidocs-8.0.0/resources/juneau-doc.css
@@ -408,6 +408,11 @@ a.doclink {
 }
 .w900 {
 	width:900px !important;
+	max-width:900px !important;
+}
+.w1000 {
+	width:1000px !important;
+	max-width:1000px !important;
 }
 
 hr {
@@ -416,3 +421,12 @@ hr {
 	max-width: 900px;
 }
 
+.console {
+	color: #8df900;
+	font-weight: bold;
+	font-family: monospace;
+	font-size: 1.1em;
+	background-color: black !important;
+}
+
+
diff --git a/content/site/apidocs-8.0.0/src-html/org/apache/juneau/rest/jaxrs/BasicProvider.html
b/content/site/apidocs-8.0.0/src-html/org/apache/juneau/rest/jaxrs/BasicProvider.html
index 07d9e41..9153abb 100644
--- a/content/site/apidocs-8.0.0/src-html/org/apache/juneau/rest/jaxrs/BasicProvider.html
+++ b/content/site/apidocs-8.0.0/src-html/org/apache/juneau/rest/jaxrs/BasicProvider.html
@@ -28,60 +28,65 @@
 <span class="sourceLineNo">020</span>import org.apache.juneau.json.*;<a name="line.20"></a>
 <span class="sourceLineNo">021</span>import org.apache.juneau.rest.*;<a name="line.21"></a>
 <span class="sourceLineNo">022</span>import org.apache.juneau.soap.*;<a name="line.22"></a>
-<span class="sourceLineNo">023</span>import org.apache.juneau.urlencoding.*;<a
name="line.23"></a>
-<span class="sourceLineNo">024</span>import org.apache.juneau.xml.*;<a name="line.24"></a>
-<span class="sourceLineNo">025</span>import org.apache.juneau.xmlschema.XmlSchemaDocSerializer;<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> * JAX-RS provider for the same serialize/parse
support provided by the {@link BasicRestServlet} class.<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;See
Also:&lt;/h5&gt;<a name="line.30"></a>
-<span class="sourceLineNo">031</span> * &lt;ul&gt;<a name="line.31"></a>
-<span class="sourceLineNo">032</span> *    &lt;li class='link'&gt;{@doc
juneau-rest-server-jaxrs}<a name="line.32"></a>
-<span class="sourceLineNo">033</span> * &lt;/ul&gt;<a name="line.33"></a>
-<span class="sourceLineNo">034</span> */<a name="line.34"></a>
-<span class="sourceLineNo">035</span>@Provider<a name="line.35"></a>
-<span class="sourceLineNo">036</span>@Produces({<a name="line.36"></a>
-<span class="sourceLineNo">037</span>   "application/json", "text/json",    
            // JsonSerializer<a name="line.37"></a>
-<span class="sourceLineNo">038</span>   "application/json+simple", "text/json+simple",
  // JsonSerializer.Simple<a name="line.38"></a>
-<span class="sourceLineNo">039</span>   "application/json+schema",          
            // JsonSchemaSerializer<a name="line.39"></a>
-<span class="sourceLineNo">040</span>   "text/xml",                         
            // XmlDocSerializer.Ns<a name="line.40"></a>
-<span class="sourceLineNo">041</span>   "text/xml+simple",                  
            // XmlDocSerializer<a name="line.41"></a>
-<span class="sourceLineNo">042</span>   "text/xml+schema",                  
            // XmlSchemaDocSerializer<a name="line.42"></a>
-<span class="sourceLineNo">043</span>   "text/html",                        
            // HtmlDocSerializer<a name="line.43"></a>
-<span class="sourceLineNo">044</span>   "application/x-www-form-urlencoded",
            // UrlEncodingSerializer<a name="line.44"></a>
-<span class="sourceLineNo">045</span>   "text/xml+soap",                    
            // SoapXmlSerializer<a name="line.45"></a>
-<span class="sourceLineNo">046</span>   "application/x-java-serialized-object"
          // JavaSerializedObjectSerializer<a name="line.46"></a>
-<span class="sourceLineNo">047</span>})<a name="line.47"></a>
-<span class="sourceLineNo">048</span>@Consumes({<a name="line.48"></a>
-<span class="sourceLineNo">049</span>   "application/json", "text/json",    
            // JsonParser<a name="line.49"></a>
-<span class="sourceLineNo">050</span>   "text/xml",                         
            // XmlParser<a name="line.50"></a>
-<span class="sourceLineNo">051</span>   "text/html",                        
            // HtmlParser<a name="line.51"></a>
-<span class="sourceLineNo">052</span>   "application/x-www-form-urlencoded",
            // UrlEncodingParser<a name="line.52"></a>
-<span class="sourceLineNo">053</span>   "application/x-java-serialized-object"
          // JavaSerializedObjectParser<a name="line.53"></a>
-<span class="sourceLineNo">054</span>})<a name="line.54"></a>
-<span class="sourceLineNo">055</span>@JuneauProvider(<a name="line.55"></a>
-<span class="sourceLineNo">056</span>   serializers={<a name="line.56"></a>
-<span class="sourceLineNo">057</span>      JsonSerializer.class,<a name="line.57"></a>
-<span class="sourceLineNo">058</span>      SimpleJsonSerializer.class,<a name="line.58"></a>
-<span class="sourceLineNo">059</span>      JsonSchemaSerializer.class,<a name="line.59"></a>
-<span class="sourceLineNo">060</span>      XmlDocSerializer.Ns.class,<a name="line.60"></a>
-<span class="sourceLineNo">061</span>      XmlDocSerializer.class,<a name="line.61"></a>
-<span class="sourceLineNo">062</span>      XmlSchemaDocSerializer.class,<a
name="line.62"></a>
-<span class="sourceLineNo">063</span>      HtmlDocSerializer.class,<a name="line.63"></a>
-<span class="sourceLineNo">064</span>      UrlEncodingSerializer.class,<a
name="line.64"></a>
-<span class="sourceLineNo">065</span>      SoapXmlSerializer.class,<a name="line.65"></a>
-<span class="sourceLineNo">066</span>      JsoSerializer.class<a name="line.66"></a>
-<span class="sourceLineNo">067</span>   },<a name="line.67"></a>
-<span class="sourceLineNo">068</span>   parsers={<a name="line.68"></a>
-<span class="sourceLineNo">069</span>      JsonParser.class,<a name="line.69"></a>
-<span class="sourceLineNo">070</span>      XmlParser.class,<a name="line.70"></a>
-<span class="sourceLineNo">071</span>      HtmlParser.class,<a name="line.71"></a>
-<span class="sourceLineNo">072</span>      UrlEncodingParser.class,<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>public final class BasicProvider extends
BaseProvider {}<a name="line.75"></a>
-<span class="sourceLineNo">076</span><a name="line.76"></a>
+<span class="sourceLineNo">023</span>import org.apache.juneau.uon.UonParser;<a
name="line.23"></a>
+<span class="sourceLineNo">024</span>import org.apache.juneau.uon.UonSerializer;<a
name="line.24"></a>
+<span class="sourceLineNo">025</span>import org.apache.juneau.urlencoding.*;<a
name="line.25"></a>
+<span class="sourceLineNo">026</span>import org.apache.juneau.xml.*;<a name="line.26"></a>
+<span class="sourceLineNo">027</span>import org.apache.juneau.xmlschema.XmlSchemaDocSerializer;<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> * JAX-RS provider for the same serialize/parse
support provided by the {@link BasicRestServlet} class.<a name="line.30"></a>
+<span class="sourceLineNo">031</span> *<a name="line.31"></a>
+<span class="sourceLineNo">032</span> * &lt;h5 class='section'&gt;See
Also:&lt;/h5&gt;<a name="line.32"></a>
+<span class="sourceLineNo">033</span> * &lt;ul&gt;<a name="line.33"></a>
+<span class="sourceLineNo">034</span> *    &lt;li class='link'&gt;{@doc
juneau-rest-server-jaxrs}<a name="line.34"></a>
+<span class="sourceLineNo">035</span> * &lt;/ul&gt;<a name="line.35"></a>
+<span class="sourceLineNo">036</span> */<a name="line.36"></a>
+<span class="sourceLineNo">037</span>@Provider<a name="line.37"></a>
+<span class="sourceLineNo">038</span>@Produces({<a name="line.38"></a>
+<span class="sourceLineNo">039</span>   "application/json", "text/json",    
            // JsonSerializer<a name="line.39"></a>
+<span class="sourceLineNo">040</span>   "application/json+simple", "text/json+simple",
  // JsonSerializer.Simple<a name="line.40"></a>
+<span class="sourceLineNo">041</span>   "application/json+schema",          
            // JsonSchemaSerializer<a name="line.41"></a>
+<span class="sourceLineNo">042</span>   "text/xml",                         
            // XmlDocSerializer.Ns<a name="line.42"></a>
+<span class="sourceLineNo">043</span>   "text/xml+simple",                  
            // XmlDocSerializer<a name="line.43"></a>
+<span class="sourceLineNo">044</span>   "text/xml+schema",                  
            // XmlSchemaDocSerializer<a name="line.44"></a>
+<span class="sourceLineNo">045</span>   "text/html",                        
            // HtmlDocSerializer<a name="line.45"></a>
+<span class="sourceLineNo">046</span>   "application/x-www-form-urlencoded",
            // UrlEncodingSerializer<a name="line.46"></a>
+<span class="sourceLineNo">047</span>   "text/xml+soap",                    
            // SoapXmlSerializer<a name="line.47"></a>
+<span class="sourceLineNo">048</span>   "application/x-java-serialized-object"
          // JavaSerializedObjectSerializer<a name="line.48"></a>
+<span class="sourceLineNo">049</span>})<a name="line.49"></a>
+<span class="sourceLineNo">050</span>@Consumes({<a name="line.50"></a>
+<span class="sourceLineNo">051</span>   "application/json", "text/json",    
            // JsonParser<a name="line.51"></a>
+<span class="sourceLineNo">052</span>   "text/xml",                         
            // XmlParser<a name="line.52"></a>
+<span class="sourceLineNo">053</span>   "text/html",                        
            // HtmlParser<a name="line.53"></a>
+<span class="sourceLineNo">054</span>   "application/x-www-form-urlencoded",
            // UrlEncodingParser<a name="line.54"></a>
+<span class="sourceLineNo">055</span>   "application/x-java-serialized-object"
          // JavaSerializedObjectParser<a name="line.55"></a>
+<span class="sourceLineNo">056</span>})<a name="line.56"></a>
+<span class="sourceLineNo">057</span>@JuneauProvider(<a name="line.57"></a>
+<span class="sourceLineNo">058</span>   serializers={<a name="line.58"></a>
+<span class="sourceLineNo">059</span>      JsonSerializer.class,<a name="line.59"></a>
+<span class="sourceLineNo">060</span>      SimpleJsonSerializer.class,<a name="line.60"></a>
+<span class="sourceLineNo">061</span>      JsonSchemaSerializer.class,<a name="line.61"></a>
+<span class="sourceLineNo">062</span>      XmlDocSerializer.Ns.class,<a name="line.62"></a>
+<span class="sourceLineNo">063</span>      XmlDocSerializer.class,<a name="line.63"></a>
+<span class="sourceLineNo">064</span>      XmlSchemaDocSerializer.class,<a
name="line.64"></a>
+<span class="sourceLineNo">065</span>      HtmlDocSerializer.class,<a name="line.65"></a>
+<span class="sourceLineNo">066</span>      UrlEncodingSerializer.class,<a
name="line.66"></a>
+<span class="sourceLineNo">067</span>      SoapXmlSerializer.class,<a name="line.67"></a>
+<span class="sourceLineNo">068</span>      HtmlSerializer.class,<a name="line.68"></a>
+<span class="sourceLineNo">069</span>      UonSerializer.class,<a name="line.69"></a>
+<span class="sourceLineNo">070</span>      JsoSerializer.class<a name="line.70"></a>
+<span class="sourceLineNo">071</span>   },<a name="line.71"></a>
+<span class="sourceLineNo">072</span>   parsers={<a name="line.72"></a>
+<span class="sourceLineNo">073</span>      JsonParser.class,<a name="line.73"></a>
+<span class="sourceLineNo">074</span>      XmlParser.class,<a name="line.74"></a>
+<span class="sourceLineNo">075</span>      HtmlParser.class,<a name="line.75"></a>
+<span class="sourceLineNo">076</span>      UonParser.class,<a name="line.76"></a>
+<span class="sourceLineNo">077</span>      UrlEncodingParser.class,<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>public final class BasicProvider extends
BaseProvider {}<a name="line.80"></a>
+<span class="sourceLineNo">081</span><a name="line.81"></a>
 
 
 


Mime
View raw message