http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/f1f17bc3/content/site/apidocs/org/apache/juneau/internal/package-tree.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/internal/package-tree.html b/content/site/apidocs/org/apache/juneau/internal/package-tree.html index e64c13d..e627f19 100644 --- a/content/site/apidocs/org/apache/juneau/internal/package-tree.html +++ b/content/site/apidocs/org/apache/juneau/internal/package-tree.html @@ -134,10 +134,12 @@ <li type="circle">org.apache.juneau.internal.<a href="../../../../org/apache/juneau/internal/ArrayUtils.html" title="class in org.apache.juneau.internal"><span class="typeNameLink">ArrayUtils</span></a></li> <li type="circle">org.apache.juneau.internal.<a href="../../../../org/apache/juneau/internal/AsciiSet.html" title="class in org.apache.juneau.internal"><span class="typeNameLink">AsciiSet</span></a></li> <li type="circle">org.apache.juneau.internal.<a href="../../../../org/apache/juneau/internal/ByteArrayCache.html" title="class in org.apache.juneau.internal"><span class="typeNameLink">ByteArrayCache</span></a></li> +<li type="circle">org.apache.juneau.internal.<a href="../../../../org/apache/juneau/internal/Cache.html" title="class in org.apache.juneau.internal"><span class="typeNameLink">Cache</span></a><K,V></li> <li type="circle">org.apache.juneau.internal.<a href="../../../../org/apache/juneau/internal/ClassUtils.html" title="class in org.apache.juneau.internal"><span class="typeNameLink">ClassUtils</span></a></li> <li type="circle">org.apache.juneau.internal.<a href="../../../../org/apache/juneau/internal/ClassUtils.ClassComparator.html" title="class in org.apache.juneau.internal"><span class="typeNameLink">ClassUtils.ClassComparator</span></a> (implements java.util.<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util">Comparator</a><T>, java.io.<a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>)</li> <li type="circle">org.apache.juneau.internal.<a href="../../../../org/apache/juneau/internal/ClassUtils.MethodInfo.html" title="class in org.apache.juneau.internal"><span class="typeNameLink">ClassUtils.MethodInfo</span></a></li> <li type="circle">org.apache.juneau.internal.<a href="../../../../org/apache/juneau/internal/CollectionUtils.html" title="class in org.apache.juneau.internal"><span class="typeNameLink">CollectionUtils</span></a></li> +<li type="circle">org.apache.juneau.internal.<a href="../../../../org/apache/juneau/internal/DateUtils.html" title="class in org.apache.juneau.internal"><span class="typeNameLink">DateUtils</span></a></li> <li type="circle">org.apache.juneau.internal.<a href="../../../../org/apache/juneau/internal/FileUtils.html" title="class in org.apache.juneau.internal"><span class="typeNameLink">FileUtils</span></a></li> <li type="circle">org.apache.juneau.internal.<a href="../../../../org/apache/juneau/internal/HashCode.html" title="class in org.apache.juneau.internal"><span class="typeNameLink">HashCode</span></a></li> <li type="circle">org.apache.juneau.internal.<a href="../../../../org/apache/juneau/internal/IOUtils.html" title="class in org.apache.juneau.internal"><span class="typeNameLink">IOUtils</span></a></li> @@ -175,6 +177,7 @@ <li type="circle">org.apache.juneau.internal.<a href="../../../../org/apache/juneau/internal/Utils.html" title="class in org.apache.juneau.internal"><span class="typeNameLink">Utils</span></a></li> <li type="circle">org.apache.juneau.internal.<a href="../../../../org/apache/juneau/internal/Version.html" title="class in org.apache.juneau.internal"><span class="typeNameLink">Version</span></a></li> <li type="circle">org.apache.juneau.internal.<a href="../../../../org/apache/juneau/internal/VersionRange.html" title="class in org.apache.juneau.internal"><span class="typeNameLink">VersionRange</span></a></li> +<li type="circle">org.apache.juneau.internal.<a href="../../../../org/apache/juneau/internal/WrappedMap.html" title="class in org.apache.juneau.internal"><span class="typeNameLink">WrappedMap</span></a><K,V> (implements java.util.<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><K,V>)</li> <li type="circle">java.io.<a href="http://docs.oracle.com/javase/7/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io"><span class="typeNameLink">Writer</span></a> (implements java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Appendable.html?is-external=true" title="class or interface in java.lang">Appendable</a>, java.io.<a href="http://docs.oracle.com/javase/7/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a>, java.io.<a href="http://docs.oracle.com/javase/7/docs/api/java/io/Flushable.html?is-external=true" title="class or interface in java.io">Flushable</a>) <ul> <li type="circle">org.apache.juneau.internal.<a href="../../../../org/apache/juneau/internal/StringBuilderWriter.html" title="class in org.apache.juneau.internal"><span class="typeNameLink">StringBuilderWriter</span></a></li>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/f1f17bc3/content/site/apidocs/org/apache/juneau/microservice/package-summary.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/microservice/package-summary.html b/content/site/apidocs/org/apache/juneau/microservice/package-summary.html index 0377cbb..591c791 100644 --- a/content/site/apidocs/org/apache/juneau/microservice/package-summary.html +++ b/content/site/apidocs/org/apache/juneau/microservice/package-summary.html @@ -739,14 +739,14 @@ <ul> <li><l>$R{attribute.X}</l> - Value returned by <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletRequestWrapper.html?is-external=true#getAttribute-java.lang.String-" title="class or interface in javax.servlet"><code>ServletRequestWrapper.getAttribute(String)</code></a> converted to a string. <li><l>$R{contextPath}</l> - Value returned by <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServletRequestWrapper.html?is-external=true#getContextPath--" title="class or interface in javax.servlet.http"><code>HttpServletRequestWrapper.getContextPath()</code></a>. - <li><l>$R{formData.X}</l> - Value returned by <a href="../../../../org/apache/juneau/rest/RestRequest.html#getFormDataParameter-java.lang.String-"><code>RestRequest.getFormDataParameter(String)</code></a>. + <li><l>$R{formData.X}</l> - Value returned by <a href="../../../../org/apache/juneau/rest/RestRequest.html#getFormData-java.lang.String-"><code>RestRequest.getFormData(String)</code></a>. <li><l>$R{header.X}</l> - Value returned by <a href="../../../../org/apache/juneau/rest/RestRequest.html#getHeader-java.lang.String-"><code>RestRequest.getHeader(String)</code></a>. <li><l>$R{method}</l> - Value returned by <a href="../../../../org/apache/juneau/rest/RestRequest.html#getMethod--"><code>RestRequest.getMethod()</code></a>. <li><l>$R{methodSummary}</l> - Value returned by <a href="../../../../org/apache/juneau/rest/RestRequest.html#getMethodSummary--"><code>RestRequest.getMethodSummary()</code></a>. <li><l>$R{methodDescription}</l> - Value returned by <a href="../../../../org/apache/juneau/rest/RestRequest.html#getMethodDescription--"><code>RestRequest.getMethodDescription()</code></a>. <li><l>$R{path.X}</l> - Value returned by <a href="../../../../org/apache/juneau/rest/RestRequest.html#getPathParameter-java.lang.String-"><code>RestRequest.getPathParameter(String)</code></a>. <li><l>$R{pathInfo}</l> - Value returned by <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServletRequestWrapper.html?is-external=true#getPathInfo--" title="class or interface in javax.servlet.http"><code>HttpServletRequestWrapper.getPathInfo()</code></a>. - <li><l>$R{query.X}</l> - Value returned by <a href="../../../../org/apache/juneau/rest/RestRequest.html#getQueryParameter-java.lang.String-"><code>RestRequest.getQueryParameter(String)</code></a>. + <li><l>$R{query.X}</l> - Value returned by <a href="../../../../org/apache/juneau/rest/RestRequest.html#getQuery-java.lang.String-"><code>RestRequest.getQuery(String)</code></a>. <li><l>$R{requestParentURI}</l> - Value returned by <a href="../../../../org/apache/juneau/rest/RestRequest.html#getRequestParentURI--"><code>RestRequest.getRequestParentURI()</code></a>. <li><l>$R{requestURI}</l> - Value returned by <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServletRequestWrapper.html?is-external=true#getRequestURI--" title="class or interface in javax.servlet.http"><code>HttpServletRequestWrapper.getRequestURI()</code></a>. <li><l>$R{servletDescription}</l> - Value returned by <a href="../../../../org/apache/juneau/rest/RestRequest.html#getServletDescription--"><code>RestRequest.getServletDescription()</code></a>. http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/f1f17bc3/content/site/apidocs/org/apache/juneau/rest/Redirect.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/rest/Redirect.html b/content/site/apidocs/org/apache/juneau/rest/Redirect.html index 02ce7e6..95dee04 100644 --- a/content/site/apidocs/org/apache/juneau/rest/Redirect.html +++ b/content/site/apidocs/org/apache/juneau/rest/Redirect.html @@ -49,7 +49,7 @@ var activeTableTab = "activeTableTab"; <div class="subNav"> <ul class="navList"> <li><a href="../../../../org/apache/juneau/rest/ReaderResource.Builder.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">Prev Class</span></a></li> -<li><a href="../../../../org/apache/juneau/rest/ResponseHandler.html" title="interface in org.apache.juneau.rest"><span class="typeNameLink">Next Class</span></a></li> +<li><a href="../../../../org/apache/juneau/rest/RequestBody.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../../index.html?org/apache/juneau/rest/Redirect.html" target="_top">Frames</a></li> @@ -388,7 +388,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <div class="subNav"> <ul class="navList"> <li><a href="../../../../org/apache/juneau/rest/ReaderResource.Builder.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">Prev Class</span></a></li> -<li><a href="../../../../org/apache/juneau/rest/ResponseHandler.html" title="interface in org.apache.juneau.rest"><span class="typeNameLink">Next Class</span></a></li> +<li><a href="../../../../org/apache/juneau/rest/RequestBody.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../../index.html?org/apache/juneau/rest/Redirect.html" target="_top">Frames</a></li> http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/f1f17bc3/content/site/apidocs/org/apache/juneau/rest/RequestBody.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/rest/RequestBody.html b/content/site/apidocs/org/apache/juneau/rest/RequestBody.html new file mode 100644 index 0000000..ccb5625 --- /dev/null +++ b/content/site/apidocs/org/apache/juneau/rest/RequestBody.html @@ -0,0 +1,577 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<!-- NewPage --> +<html lang="en"> +<head> +<!-- Generated by javadoc --> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<title>RequestBody (Apache Juneau (incubating) 6.2.1-incubating-SNAPSHOT)</title> +<link rel="stylesheet" type="text/css" href="../../../../javadoc.css" title="Style"> +<script type="text/javascript" src="../../../../script.js"></script> +</head> +<body> +<script type="text/javascript"><!-- + try { + if (location.href.indexOf('is-external=true') == -1) { + parent.document.title="RequestBody (Apache Juneau (incubating) 6.2.1-incubating-SNAPSHOT)"; + } + } + catch(err) { + } +//--> +var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10}; +var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; +var altColor = "altColor"; +var rowColor = "rowColor"; +var tableTab = "tableTab"; +var activeTableTab = "activeTableTab"; +</script> +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<!-- ========= START OF TOP NAVBAR ======= --> +<div class="topNav"><a name="navbar.top"> +<!-- --> +</a> +<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> +<a name="navbar.top.firstrow"> +<!-- --> +</a> +<ul class="navList" title="Navigation"> +<li><a href="../../../../overview-summary.html">Overview</a></li> +<li><a href="package-summary.html">Package</a></li> +<li class="navBarCell1Rev">Class</li> +<li><a href="package-tree.html">Tree</a></li> +<li><a href="../../../../deprecated-list.html">Deprecated</a></li> +<li><a href="../../../../index-all.html">Index</a></li> +<li><a href="../../../../help-doc.html">Help</a></li> +</ul> +</div> +<div class="subNav"> +<ul class="navList"> +<li><a href="../../../../org/apache/juneau/rest/Redirect.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">Prev Class</span></a></li> +<li><a href="../../../../org/apache/juneau/rest/RequestFormData.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">Next Class</span></a></li> +</ul> +<ul class="navList"> +<li><a href="../../../../index.html?org/apache/juneau/rest/RequestBody.html" target="_top">Frames</a></li> +<li><a href="RequestBody.html" target="_top">No Frames</a></li> +</ul> +<ul class="navList" id="allclasses_navbar_top"> +<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> +</ul> +<div> +<script type="text/javascript"><!-- + allClassesLink = document.getElementById("allclasses_navbar_top"); + if(window==top) { + allClassesLink.style.display = "block"; + } + else { + allClassesLink.style.display = "none"; + } + //--> +</script> +</div> +<div> +<ul class="subNavList"> +<li>Summary: </li> +<li>Nested | </li> +<li>Field | </li> +<li>Constr | </li> +<li><a href="#method.summary">Method</a></li> +</ul> +<ul class="subNavList"> +<li>Detail: </li> +<li>Field | </li> +<li>Constr | </li> +<li><a href="#method.detail">Method</a></li> +</ul> +</div> +<a name="skip.navbar.top"> +<!-- --> +</a></div> +<!-- ========= END OF TOP NAVBAR ========= --> +<!-- ======== START OF CLASS DATA ======== --> +<div class="header"> +<div class="subTitle">org.apache.juneau.rest</div> +<h2 title="Class RequestBody" class="title">Class RequestBody</h2> +</div> +<div class="contentContainer"> +<ul class="inheritance"> +<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> +<li> +<ul class="inheritance"> +<li>org.apache.juneau.rest.RequestBody</li> +</ul> +</li> +</ul> +<div class="description"> +<ul class="blockList"> +<li class="blockList"> +<hr> +<br> +<pre>public class <a href="../../../../src-html/org/apache/juneau/rest/RequestBody.html#line.34">RequestBody</a> +extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre> +<div class="block">Contains the body of the HTTP request.</div> +</li> +</ul> +</div> +<div class="summary"> +<ul class="blockList"> +<li class="blockList"> +<!-- ========== METHOD SUMMARY =========== --> +<ul class="blockList"> +<li class="blockList"><a name="method.summary"> +<!-- --> +</a> +<h3>Method Summary</h3> +<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> +<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> +<tr> +<th class="colFirst" scope="col">Modifier and Type</th> +<th class="colLast" scope="col">Method and Description</th> +</tr> +<tr id="i0" class="altColor"> +<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestBody.html#asHex--">asHex</a></span>()</code> +<div class="block">Returns the HTTP body content as a simple hexadecimal character string.</div> +</td> +</tr> +<tr id="i1" class="rowColor"> +<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestBody.html#asString--">asString</a></span>()</code> +<div class="block">Returns the HTTP body content as a plain string.</div> +</td> +</tr> +<tr id="i2" class="altColor"> +<td class="colFirst"><code><T> T</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestBody.html#asType-java.lang.Class-">asType</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type)</code> +<div class="block">Reads the input from the HTTP request as JSON, XML, or HTML and converts the input to a POJO.</div> +</td> +</tr> +<tr id="i3" class="rowColor"> +<td class="colFirst"><code><T> T</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestBody.html#asType-java.lang.reflect.Type-java.lang.reflect.Type...-">asType</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> type, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>... args)</code> +<div class="block">Reads the input from the HTTP request as JSON, XML, or HTML and converts the input to a POJO.</div> +</td> +</tr> +<tr id="i4" class="altColor"> +<td class="colFirst"><code>int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestBody.html#getContentLength--">getContentLength</a></span>()</code> +<div class="block">Returns the content length of the body.</div> +</td> +</tr> +<tr id="i5" class="rowColor"> +<td class="colFirst"><code><a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletInputStream.html?is-external=true" title="class or interface in javax.servlet">ServletInputStream</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestBody.html#getInputStream--">getInputStream</a></span>()</code> +<div class="block">Returns the HTTP body content as an <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io"><code>InputStream</code></a>.</div> +</td> +</tr> +<tr id="i6" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestBody.html#getParser--">getParser</a></span>()</code> +<div class="block">Returns the parser matching the request <code>Content-Type</code> header.</div> +</td> +</tr> +<tr id="i7" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/parser/ParserMatch.html" title="class in org.apache.juneau.parser">ParserMatch</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestBody.html#getParserMatch--">getParserMatch</a></span>()</code> +<div class="block">Returns the parser and media type matching the request <code>Content-Type</code> header.</div> +</td> +</tr> +<tr id="i8" class="altColor"> +<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/BufferedReader.html?is-external=true" title="class or interface in java.io">BufferedReader</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestBody.html#getReader--">getReader</a></span>()</code> +<div class="block">Returns the HTTP body content as a <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io"><code>Reader</code></a>.</div> +</td> +</tr> +<tr id="i9" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/juneau/parser/ReaderParser.html" title="class in org.apache.juneau.parser">ReaderParser</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestBody.html#getReaderParser--">getReaderParser</a></span>()</code> +<div class="block">Returns the reader parser matching the request <code>Content-Type</code> header.</div> +</td> +</tr> +<tr id="i10" class="altColor"> +<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestBody.html#getUnbufferedReader--">getUnbufferedReader</a></span>()</code> +<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestBody.html#getReader--"><code>getReader()</code></a>, but doesn't encapsulate the result in a <a href="http://docs.oracle.com/javase/7/docs/api/java/io/BufferedReader.html?is-external=true" title="class or interface in java.io"><code>BufferedReader</code></a>;</div> +</td> +</tr> +</table> +<ul class="blockList"> +<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> +<!-- --> +</a> +<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> +<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang /Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> +</ul> +</li> +</ul> +</li> +</ul> +</div> +<div class="details"> +<ul class="blockList"> +<li class="blockList"> +<!-- ============ METHOD DETAIL ========== --> +<ul class="blockList"> +<li class="blockList"><a name="method.detail"> +<!-- --> +</a> +<h3>Method Detail</h3> +<a name="asType-java.lang.Class-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>asType</h4> +<pre>public <T> T <a href="../../../../src-html/org/apache/juneau/rest/RequestBody.html#line.161">asType</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type) + throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, + <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre> +<div class="block">Reads the input from the HTTP request as JSON, XML, or HTML and converts the input to a POJO. + <p> + If <code>allowHeaderParams</code> init parameter is <jk>true</jk>, then first looks for <code>&body=xxx</code> in the URL + query string. + <p> + If type is <jk>null</jk> or <code>Object.<jk>class</jk></code>, then the actual type will be determined + automatically based on the following input: + <table class='styled'> + <tr><th>Type</th><th>JSON input</th><th>XML input</th><th>Return type</th></tr> + <tr> + <td>object</td> + <td><js>"{...}"</js></td> + <td><code><xt><object></xt>...<xt></object></xt></code><br><code><xt><x</xt> <xa>type</xa>=<xs>'object'</xs><xt>></xt>...<xt></x></xt></code></td> + <td><a href="../../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau"><code>ObjectMap</code></a></td> + </tr> + <tr> + <td>array</td> + <td><js>"[...]"</js></td> + <td><code><xt><array></xt>...<xt></array></xt></code><br><code><xt><x</xt> <xa>type</xa>=<xs>'array'</xs><xt>></xt>...<xt></x></xt></code></td> + <td><a href="../../../../org/apache/juneau/ObjectList.html" title="class in org.apache.juneau"><code>ObjectList</code></a></td> + </tr> + <tr> + <td>string</td> + <td><js>"'...'"</js></td> + <td><code><xt><string></xt>...<xt></string></xt></code><br><code><xt><x</xt> <xa>type</xa>=<xs>'string'</xs><xt>></xt>...<xt></x></xt></code></td> + <td><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang"><code>String</code></a></td> + </tr> + <tr> + <td>number</td> + <td><code>123</code></td> + <td><code><xt><number></xt>123<xt></number></xt></code><br><code><xt><x</xt> <xa>type</xa>=<xs>'number'</xs><xt>></xt>...<xt></x></xt></code></td> + <td><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang"><code>Number</code></a></td> + </tr> + <tr> + <td>boolean</td> + <td><jk>true</jk></td> + <td><code><xt><boolean></xt>true<xt></boolean></xt></code><br><code><xt><x</xt> <xa>type</xa>=<xs>'boolean'</xs><xt>></xt>...<xt></x></xt></code></td> + <td><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a></td> + </tr> + <tr> + <td>null</td> + <td><jk>null</jk> or blank</td> + <td><code><xt><null/></xt></code> or blank<br><code><xt><x</xt> <xa>type</xa>=<xs>'null'</xs><xt>/></xt></code></td> + <td><jk>null</jk></td> + </tr> + </table> + <p> + Refer to <a class="doclink" href="../../../../overview-summary.html#Core.PojoCategories">POJO Categories</a> for + a complete definition of supported POJOs. + <p> + <h5 class='section'>Examples:</h5> + <p class='bcode'> + <jc>// Parse into an integer.</jc> + <jk>int</jk> body = req.getBody(<jk>int</jk>.<jk>class</jk>); + + <jc>// Parse into an int array.</jc> + <jk>int</jk>[] body = req.getBody(<jk>int</jk>[].<jk>class</jk>); + + <jc>// Parse into a bean.</jc> + MyBean body = req.getBody(MyBean.<jk>class</jk>); + + <jc>// Parse into a linked-list of objects.</jc> + List body = req.getBody(LinkedList.<jk>class</jk>); + + <jc>// Parse into a map of object keys/values.</jc> + Map body = req.getBody(TreeMap.<jk>class</jk>); + </p></div> +<dl> +<dt><span class="paramLabel">Type Parameters:</span></dt> +<dd><code>T</code> - The class type to instantiate.</dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>type</code> - The class type to instantiate.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The input parsed to a POJO.</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If a problem occurred trying to read from the reader.</dd> +<dd><code><a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></code> - If the input contains a syntax error or is malformed for the requested <code>Accept</code> + header or is not valid for the specified type.</dd> +</dl> +</li> +</ul> +<a name="asType-java.lang.reflect.Type-java.lang.reflect.Type...-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>asType</h4> +<pre>public <T> T <a href="../../../../src-html/org/apache/juneau/rest/RequestBody.html#line.193">asType</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> type, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>... args)</pre> +<div class="block">Reads the input from the HTTP request as JSON, XML, or HTML and converts the input to a POJO. + <p> + <h5 class='section'>Examples:</h5> + <p class='bcode'> + <jc>// Parse into a linked-list of strings.</jc> + List<String> body = req.getBody(LinkedList.<jk>class</jk>, String.<jk>class</jk>); + + <jc>// Parse into a linked-list of linked-lists of strings.</jc> + List<List<String>> body = req.getBody(LinkedList.<jk>class</jk>, LinkedList.<jk>class</jk>, String.<jk>class</jk>); + + <jc>// Parse into a map of string keys/values.</jc> + Map<String,String> body = req.getBody(TreeMap.<jk>class</jk>, String.<jk>class</jk>, String.<jk>class</jk>); + + <jc>// Parse into a map containing string keys and values of lists containing beans.</jc> + Map<String,List<MyBean>> body = req.getBody(TreeMap.<jk>class</jk>, String.<jk>class</jk>, List.<jk>class</jk>, MyBean.<jk>class</jk>); + </p></div> +<dl> +<dt><span class="paramLabel">Type Parameters:</span></dt> +<dd><code>T</code> - The class type to instantiate.</dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>type</code> - The type of object to create. + <br>Can be any of the following: <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau"><code>ClassMeta</code></a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang"><code>Class</code></a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/ParameterizedType.html?is-external=true" title="class or interface in java.lang.reflect"><code>ParameterizedType</code></a>, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/GenericArrayType.html?is-external=true" title="class or interface in java.lang.reflect"><code>GenericArrayType</code></a></dd> +<dd><code>args</code> - The type arguments of the class if it's a collection or map. + <br>Can be any of the following: <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau"><code>ClassMeta</code></a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang"><code>Class</code></a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/ParameterizedType.html?is-external=true" title="class or interface in java.lang.reflect"><code>ParameterizedType</code></a>, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/GenericArrayType.html?is-external=true" title="class or interface in java.lang.reflect"><code>GenericArrayType</code></a> + <br>Ignored if the main type is not a map or collection.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The input parsed to a POJO.</dd> +</dl> +</li> +</ul> +<a name="asString--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>asString</h4> +<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RequestBody.html#line.206">asString</a>() + throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> +<div class="block">Returns the HTTP body content as a plain string. + <p> + If <code>allowHeaderParams</code> init parameter is true, then first looks for <code>&body=xxx</code> in the URL query + string.</div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The incoming input from the connection as a plain string.</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If a problem occurred trying to read from the reader.</dd> +</dl> +</li> +</ul> +<a name="asHex--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>asHex</h4> +<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RequestBody.html#line.218">asHex</a>() + throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> +<div class="block">Returns the HTTP body content as a simple hexadecimal character string.</div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The incoming input from the connection as a plain string.</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If a problem occurred trying to read from the reader.</dd> +</dl> +</li> +</ul> +<a name="getReader--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getReader</h4> +<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/io/BufferedReader.html?is-external=true" title="class or interface in java.io">BufferedReader</a> <a href="../../../../src-html/org/apache/juneau/rest/RequestBody.html#line.234">getReader</a>() + throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> +<div class="block">Returns the HTTP body content as a <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io"><code>Reader</code></a>. + <p> + If <code>allowHeaderParams</code> init parameter is true, then first looks for <code>&body=xxx</code> in the URL query + string. + <p> + Automatically handles GZipped input streams.</div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The body contents as a reader.</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> +</dl> +</li> +</ul> +<a name="getUnbufferedReader--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getUnbufferedReader</h4> +<pre>protected <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</a> <a href="../../../../src-html/org/apache/juneau/rest/RequestBody.html#line.249">getUnbufferedReader</a>() + throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> +<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestBody.html#getReader--"><code>getReader()</code></a>, but doesn't encapsulate the result in a <a href="http://docs.oracle.com/javase/7/docs/api/java/io/BufferedReader.html?is-external=true" title="class or interface in java.io"><code>BufferedReader</code></a>;</div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>An unbuffered reader.</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> +</dl> +</li> +</ul> +<a name="getInputStream--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getInputStream</h4> +<pre>public <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletInputStream.html?is-external=true" title="class or interface in javax.servlet">ServletInputStream</a> <a href="../../../../src-html/org/apache/juneau/rest/RequestBody.html#line.264">getInputStream</a>() + throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> +<div class="block">Returns the HTTP body content as an <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io"><code>InputStream</code></a>. + <p> + Automatically handles GZipped input streams.</div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The negotiated input stream.</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If any error occurred while trying to get the input stream or wrap it + in the GZIP wrapper.</dd> +</dl> +</li> +</ul> +<a name="getParserMatch--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getParserMatch</h4> +<pre>public <a href="../../../../org/apache/juneau/parser/ParserMatch.html" title="class in org.apache.juneau.parser">ParserMatch</a> <a href="../../../../src-html/org/apache/juneau/rest/RequestBody.html#line.286">getParserMatch</a>()</pre> +<div class="block">Returns the parser and media type matching the request <code>Content-Type</code> header.</div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The parser matching the request <code>Content-Type</code> header, or <jk>null</jk> + if no matching parser was found. + Includes the matching media type.</dd> +</dl> +</li> +</ul> +<a name="getParser--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getParser</h4> +<pre>public <a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a> <a href="../../../../src-html/org/apache/juneau/rest/RequestBody.html#line.309">getParser</a>()</pre> +<div class="block">Returns the parser matching the request <code>Content-Type</code> header.</div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The parser matching the request <code>Content-Type</code> header, or <jk>null</jk> + if no matching parser was found.</dd> +</dl> +</li> +</ul> +<a name="getReaderParser--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getReaderParser</h4> +<pre>public <a href="../../../../org/apache/juneau/parser/ReaderParser.html" title="class in org.apache.juneau.parser">ReaderParser</a> <a href="../../../../src-html/org/apache/juneau/rest/RequestBody.html#line.320">getReaderParser</a>()</pre> +<div class="block">Returns the reader parser matching the request <code>Content-Type</code> header.</div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The reader parser matching the request <code>Content-Type</code> header, or <jk>null</jk> + if no matching reader parser was found, or the matching parser was an input stream parser.</dd> +</dl> +</li> +</ul> +<a name="getContentLength--"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>getContentLength</h4> +<pre>public int <a href="../../../../src-html/org/apache/juneau/rest/RequestBody.html#line.402">getContentLength</a>()</pre> +<div class="block">Returns the content length of the body.</div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The content length of the body in bytes.</dd> +</dl> +</li> +</ul> +</li> +</ul> +</li> +</ul> +</div> +</div> +<!-- ========= END OF CLASS DATA ========= --> +<!-- ======= START OF BOTTOM NAVBAR ====== --> +<div class="bottomNav"><a name="navbar.bottom"> +<!-- --> +</a> +<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> +<a name="navbar.bottom.firstrow"> +<!-- --> +</a> +<ul class="navList" title="Navigation"> +<li><a href="../../../../overview-summary.html">Overview</a></li> +<li><a href="package-summary.html">Package</a></li> +<li class="navBarCell1Rev">Class</li> +<li><a href="package-tree.html">Tree</a></li> +<li><a href="../../../../deprecated-list.html">Deprecated</a></li> +<li><a href="../../../../index-all.html">Index</a></li> +<li><a href="../../../../help-doc.html">Help</a></li> +</ul> +</div> +<div class="subNav"> +<ul class="navList"> +<li><a href="../../../../org/apache/juneau/rest/Redirect.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">Prev Class</span></a></li> +<li><a href="../../../../org/apache/juneau/rest/RequestFormData.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">Next Class</span></a></li> +</ul> +<ul class="navList"> +<li><a href="../../../../index.html?org/apache/juneau/rest/RequestBody.html" target="_top">Frames</a></li> +<li><a href="RequestBody.html" target="_top">No Frames</a></li> +</ul> +<ul class="navList" id="allclasses_navbar_bottom"> +<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> +</ul> +<div> +<script type="text/javascript"><!-- + allClassesLink = document.getElementById("allclasses_navbar_bottom"); + if(window==top) { + allClassesLink.style.display = "block"; + } + else { + allClassesLink.style.display = "none"; + } + //--> +</script> +</div> +<div> +<ul class="subNavList"> +<li>Summary: </li> +<li>Nested | </li> +<li>Field | </li> +<li>Constr | </li> +<li><a href="#method.summary">Method</a></li> +</ul> +<ul class="subNavList"> +<li>Detail: </li> +<li>Field | </li> +<li>Constr | </li> +<li><a href="#method.detail">Method</a></li> +</ul> +</div> +<a name="skip.navbar.bottom"> +<!-- --> +</a></div> +<!-- ======== END OF BOTTOM NAVBAR ======= --> +<p class="legalCopy"><small>Copyright © 2017 <a href="http://www.apache.org/">Apache</a>. All rights reserved.</small></p> +</body> +</html>
