1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!-- NewPage --> 3<html lang="en"> 4<head> 5<!-- Generated by javadoc (version 1.7.0_10-ea) on Sun Jul 14 20:03:32 PDT 2013 --> 6<title>JacksonJsonProvider (Jackson JSON Processor)</title> 7<meta name="date" content="2013-07-14"> 8<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> 9</head> 10<body> 11<script type="text/javascript"><!-- 12 if (location.href.indexOf('is-external=true') == -1) { 13 parent.document.title="JacksonJsonProvider (Jackson JSON Processor)"; 14 } 15//--> 16</script> 17<noscript> 18<div>JavaScript is disabled on your browser.</div> 19</noscript> 20<!-- ========= START OF TOP NAVBAR ======= --> 21<div class="topNav"><a name="navbar_top"> 22<!-- --> 23</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> 24<!-- --> 25</a> 26<ul class="navList" title="Navigation"> 27<li><a href="../../../../overview-summary.html">Overview</a></li> 28<li><a href="package-summary.html">Package</a></li> 29<li class="navBarCell1Rev">Class</li> 30<li><a href="class-use/JacksonJsonProvider.html">Use</a></li> 31<li><a href="package-tree.html">Tree</a></li> 32<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 33<li><a href="../../../../index-all.html">Index</a></li> 34<li><a href="../../../../help-doc.html">Help</a></li> 35</ul> 36</div> 37<div class="subNav"> 38<ul class="navList"> 39<li><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJaxbJsonProvider.html" title="class in org.codehaus.jackson.jaxrs"><span class="strong">Prev Class</span></a></li> 40<li><a href="../../../../org/codehaus/jackson/jaxrs/JsonMappingExceptionMapper.html" title="class in org.codehaus.jackson.jaxrs"><span class="strong">Next Class</span></a></li> 41</ul> 42<ul class="navList"> 43<li><a href="../../../../index.html?org/codehaus/jackson/jaxrs/JacksonJsonProvider.html" target="_top">Frames</a></li> 44<li><a href="JacksonJsonProvider.html" target="_top">No Frames</a></li> 45</ul> 46<ul class="navList" id="allclasses_navbar_top"> 47<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 48</ul> 49<div> 50<script type="text/javascript"><!-- 51 allClassesLink = document.getElementById("allclasses_navbar_top"); 52 if(window==top) { 53 allClassesLink.style.display = "block"; 54 } 55 else { 56 allClassesLink.style.display = "none"; 57 } 58 //--> 59</script> 60</div> 61<div> 62<ul class="subNavList"> 63<li>Summary: </li> 64<li>Nested | </li> 65<li><a href="#field_summary">Field</a> | </li> 66<li><a href="#constructor_summary">Constr</a> | </li> 67<li><a href="#method_summary">Method</a></li> 68</ul> 69<ul class="subNavList"> 70<li>Detail: </li> 71<li><a href="#field_detail">Field</a> | </li> 72<li><a href="#constructor_detail">Constr</a> | </li> 73<li><a href="#method_detail">Method</a></li> 74</ul> 75</div> 76<a name="skip-navbar_top"> 77<!-- --> 78</a></div> 79<!-- ========= END OF TOP NAVBAR ========= --> 80<!-- ======== START OF CLASS DATA ======== --> 81<div class="header"> 82<div class="subTitle">org.codehaus.jackson.jaxrs</div> 83<h2 title="Class JacksonJsonProvider" class="title">Class JacksonJsonProvider</h2> 84</div> 85<div class="contentContainer"> 86<ul class="inheritance"> 87<li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> 88<li> 89<ul class="inheritance"> 90<li>org.codehaus.jackson.jaxrs.JacksonJsonProvider</li> 91</ul> 92</li> 93</ul> 94<div class="description"> 95<ul class="blockList"> 96<li class="blockList"> 97<dl> 98<dt>All Implemented Interfaces:</dt> 99<dd><a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/ext/MessageBodyReader.html?is-external=true" title="class or interface in javax.ws.rs.ext">MessageBodyReader</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>>, <a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/ext/MessageBodyWriter.html?is-external=true" title="class or interface in javax.ws.rs.ext">MessageBodyWriter</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>>, <a href="../../../../org/codehaus/jackson/Versioned.html" title="interface in org.codehaus.jackson">Versioned</a></dd> 100</dl> 101<dl> 102<dt>Direct Known Subclasses:</dt> 103<dd><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJaxbJsonProvider.html" title="class in org.codehaus.jackson.jaxrs">JacksonJaxbJsonProvider</a></dd> 104</dl> 105<hr> 106<br> 107<pre><a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/ext/Provider.html?is-external=true" title="class or interface in javax.ws.rs.ext">@Provider</a> 108public class <span class="strong">JacksonJsonProvider</span> 109extends <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> 110implements <a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/ext/MessageBodyReader.html?is-external=true" title="class or interface in javax.ws.rs.ext">MessageBodyReader</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>>, <a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/ext/MessageBodyWriter.html?is-external=true" title="class or interface in javax.ws.rs.ext">MessageBodyWriter</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>>, <a href="../../../../org/codehaus/jackson/Versioned.html" title="interface in org.codehaus.jackson">Versioned</a></pre> 111<div class="block">Basic implementation of JAX-RS abstractions (<a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/ext/MessageBodyReader.html?is-external=true" title="class or interface in javax.ws.rs.ext"><code>MessageBodyReader</code></a>, 112 <a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/ext/MessageBodyWriter.html?is-external=true" title="class or interface in javax.ws.rs.ext"><code>MessageBodyWriter</code></a>) needed for binding 113 JSON ("application/json") content to and from Java Objects ("POJO"s). 114<p> 115 Actual data binding functionality is implemented by <a href="../../../../org/codehaus/jackson/map/ObjectMapper.html" title="class in org.codehaus.jackson.map"><code>ObjectMapper</code></a>: 116 mapper to use can be configured in multiple ways: 117 <ul> 118 <li>By explicitly passing mapper to use in constructor 119 <li>By explictly setting mapper to use by <a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#setMapper(org.codehaus.jackson.map.ObjectMapper)"><code>setMapper(org.codehaus.jackson.map.ObjectMapper)</code></a> 120 <li>By defining JAX-RS <code>Provider</code> that returns <a href="../../../../org/codehaus/jackson/map/ObjectMapper.html" title="class in org.codehaus.jackson.map"><code>ObjectMapper</code></a>s. 121 <li>By doing none of above, in which case a default mapper instance is 122 constructed (and configured if configuration methods are called) 123 </ul> 124 The last method ("do nothing specific") is often good enough; explicit passing 125 of Mapper is simple and explicit; and Provider-based method may make sense 126 with Depedency Injection frameworks, or if Mapper has to be configured differently 127 for different media types. 128<p> 129 Note that the default mapper instance will be automatically created if 130 one of explicit configuration methods (like <a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#configure(org.codehaus.jackson.map.DeserializationConfig.Feature, boolean)"><code>configure(org.codehaus.jackson.map.DeserializationConfig.Feature, boolean)</code></a>) 131 is called: if so, Provider-based introspection is <b>NOT</b> used, but the 132 resulting Mapper is used as configured. 133<p> 134 Note: version 1.3 added a sub-class (<a href="../../../../org/codehaus/jackson/jaxrs/JacksonJaxbJsonProvider.html" title="class in org.codehaus.jackson.jaxrs"><code>JacksonJaxbJsonProvider</code></a>) which 135 is configured by default to use both Jackson and JAXB annotations for configuration 136 (base class when used as-is defaults to using just Jackson annotations)</div> 137<dl><dt><span class="strong">Author:</span></dt> 138 <dd>Tatu Saloranta</dd></dl> 139</li> 140</ul> 141</div> 142<div class="summary"> 143<ul class="blockList"> 144<li class="blockList"> 145<!-- =========== FIELD SUMMARY =========== --> 146<ul class="blockList"> 147<li class="blockList"><a name="field_summary"> 148<!-- --> 149</a> 150<h3>Field Summary</h3> 151<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> 152<caption><span>Fields</span><span class="tabEnd"> </span></caption> 153<tr> 154<th class="colFirst" scope="col">Modifier and Type</th> 155<th class="colLast" scope="col">Field and Description</th> 156</tr> 157<tr class="altColor"> 158<td class="colFirst"><code>protected boolean</code></td> 159<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#_cfgCheckCanDeserialize">_cfgCheckCanDeserialize</a></strong></code> 160<div class="block">Whether we want to actually check that Jackson has 161 a deserializer for given type.</div> 162</td> 163</tr> 164<tr class="rowColor"> 165<td class="colFirst"><code>protected boolean</code></td> 166<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#_cfgCheckCanSerialize">_cfgCheckCanSerialize</a></strong></code> 167<div class="block">Whether we want to actually check that Jackson has 168 a serializer for given type.</div> 169</td> 170</tr> 171<tr class="altColor"> 172<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/util/HashSet.html?is-external=true" title="class or interface in java.util">HashSet</a><<a href="../../../../org/codehaus/jackson/map/type/ClassKey.html" title="class in org.codehaus.jackson.map.type">ClassKey</a>></code></td> 173<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#_cfgCustomUntouchables">_cfgCustomUntouchables</a></strong></code> 174<div class="block">Set of types (classes) that provider should ignore for data binding</div> 175</td> 176</tr> 177<tr class="rowColor"> 178<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 179<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#_jsonpFunctionName">_jsonpFunctionName</a></strong></code> 180<div class="block">JSONP function name to use for automatic JSONP wrapping, if any; 181 if null, no JSONP wrapping is done.</div> 182</td> 183</tr> 184<tr class="altColor"> 185<td class="colFirst"><code>protected <a href="../../../../org/codehaus/jackson/jaxrs/MapperConfigurator.html" title="class in org.codehaus.jackson.jaxrs">MapperConfigurator</a></code></td> 186<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#_mapperConfig">_mapperConfig</a></strong></code> 187<div class="block">Helper object used for encapsulating configuration aspects 188 of <a href="../../../../org/codehaus/jackson/map/ObjectMapper.html" title="class in org.codehaus.jackson.map"><code>ObjectMapper</code></a></div> 189</td> 190</tr> 191<tr class="rowColor"> 192<td class="colFirst"><code>protected <a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/ext/Providers.html?is-external=true" title="class or interface in javax.ws.rs.ext">Providers</a></code></td> 193<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#_providers">_providers</a></strong></code> 194<div class="block">Injectable context object used to locate configured 195 instance of <a href="../../../../org/codehaus/jackson/map/ObjectMapper.html" title="class in org.codehaus.jackson.map"><code>ObjectMapper</code></a> to use for actual 196 serialization.</div> 197</td> 198</tr> 199<tr class="altColor"> 200<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?>[]</code></td> 201<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#_unreadableClasses">_unreadableClasses</a></strong></code> 202<div class="block">These are classes that we never use for reading 203 (never try to deserialize instances of these types).</div> 204</td> 205</tr> 206<tr class="rowColor"> 207<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/util/HashSet.html?is-external=true" title="class or interface in java.util">HashSet</a><<a href="../../../../org/codehaus/jackson/map/type/ClassKey.html" title="class in org.codehaus.jackson.map.type">ClassKey</a>></code></td> 208<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#_untouchables">_untouchables</a></strong></code> 209<div class="block">Looks like we need to worry about accidental 210 data binding for types we shouldn't be handling.</div> 211</td> 212</tr> 213<tr class="altColor"> 214<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?>[]</code></td> 215<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#_unwritableClasses">_unwritableClasses</a></strong></code> 216<div class="block">These are classes that we never use for writing 217 (never try to serialize instances of these types).</div> 218</td> 219</tr> 220<tr class="rowColor"> 221<td class="colFirst"><code>static <a href="../../../../org/codehaus/jackson/jaxrs/Annotations.html" title="enum in org.codehaus.jackson.jaxrs">Annotations</a>[]</code></td> 222<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#BASIC_ANNOTATIONS">BASIC_ANNOTATIONS</a></strong></code> 223<div class="block">Default annotation sets to use, if not explicitly defined during 224 construction: only Jackson annotations are used for the base 225 class.</div> 226</td> 227</tr> 228</table> 229</li> 230</ul> 231<!-- ======== CONSTRUCTOR SUMMARY ======== --> 232<ul class="blockList"> 233<li class="blockList"><a name="constructor_summary"> 234<!-- --> 235</a> 236<h3>Constructor Summary</h3> 237<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 238<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 239<tr> 240<th class="colOne" scope="col">Constructor and Description</th> 241</tr> 242<tr class="altColor"> 243<td class="colOne"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#JacksonJsonProvider()">JacksonJsonProvider</a></strong>()</code> 244<div class="block">Default constructor, usually used when provider is automatically 245 configured to be used with JAX-RS implementation.</div> 246</td> 247</tr> 248<tr class="rowColor"> 249<td class="colOne"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#JacksonJsonProvider(org.codehaus.jackson.jaxrs.Annotations...)">JacksonJsonProvider</a></strong>(<a href="../../../../org/codehaus/jackson/jaxrs/Annotations.html" title="enum in org.codehaus.jackson.jaxrs">Annotations</a>... annotationsToUse)</code> </td> 250</tr> 251<tr class="altColor"> 252<td class="colOne"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#JacksonJsonProvider(org.codehaus.jackson.map.ObjectMapper)">JacksonJsonProvider</a></strong>(<a href="../../../../org/codehaus/jackson/map/ObjectMapper.html" title="class in org.codehaus.jackson.map">ObjectMapper</a> mapper)</code> </td> 253</tr> 254<tr class="rowColor"> 255<td class="colOne"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#JacksonJsonProvider(org.codehaus.jackson.map.ObjectMapper, org.codehaus.jackson.jaxrs.Annotations[])">JacksonJsonProvider</a></strong>(<a href="../../../../org/codehaus/jackson/map/ObjectMapper.html" title="class in org.codehaus.jackson.map">ObjectMapper</a> mapper, 256 <a href="../../../../org/codehaus/jackson/jaxrs/Annotations.html" title="enum in org.codehaus.jackson.jaxrs">Annotations</a>[] annotationsToUse)</code> 257<div class="block">Constructor to use when a custom mapper (usually components 258 like serializer/deserializer factories that have been configured) 259 is to be used.</div> 260</td> 261</tr> 262</table> 263</li> 264</ul> 265<!-- ========== METHOD SUMMARY =========== --> 266<ul class="blockList"> 267<li class="blockList"><a name="method_summary"> 268<!-- --> 269</a> 270<h3>Method Summary</h3> 271<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 272<caption><span>Methods</span><span class="tabEnd"> </span></caption> 273<tr> 274<th class="colFirst" scope="col">Modifier and Type</th> 275<th class="colLast" scope="col">Method and Description</th> 276</tr> 277<tr class="altColor"> 278<td class="colFirst"><code>protected static boolean</code></td> 279<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#_containedIn(java.lang.Class, java.util.HashSet)">_containedIn</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> mainType, 280 <a href="http://docs.oracle.com/javase/6/docs/api/java/util/HashSet.html?is-external=true" title="class or interface in java.util">HashSet</a><<a href="../../../../org/codehaus/jackson/map/type/ClassKey.html" title="class in org.codehaus.jackson.map.type">ClassKey</a>> set)</code> </td> 281</tr> 282<tr class="rowColor"> 283<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?></code></td> 284<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#_findView(org.codehaus.jackson.map.ObjectMapper, java.lang.annotation.Annotation[])">_findView</a></strong>(<a href="../../../../org/codehaus/jackson/map/ObjectMapper.html" title="class in org.codehaus.jackson.map">ObjectMapper</a> mapper, 285 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation">Annotation</a>[] annotations)</code> </td> 286</tr> 287<tr class="altColor"> 288<td class="colFirst"><code>void</code></td> 289<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#addUntouchable(java.lang.Class)">addUntouchable</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> type)</code> 290<div class="block">Method for marking specified type as "untouchable", meaning that provider 291 will not try to read or write values of this type (or its subtypes).</div> 292</td> 293</tr> 294<tr class="rowColor"> 295<td class="colFirst"><code>void</code></td> 296<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#checkCanDeserialize(boolean)">checkCanDeserialize</a></strong>(boolean state)</code> 297<div class="block">Method for defining whether actual detection for existence of 298 a deserializer for type should be done when <a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#isReadable(java.lang.Class, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType)"><code>isReadable(java.lang.Class<?>, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType)</code></a> 299 is called.</div> 300</td> 301</tr> 302<tr class="altColor"> 303<td class="colFirst"><code>void</code></td> 304<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#checkCanSerialize(boolean)">checkCanSerialize</a></strong>(boolean state)</code> 305<div class="block">Method for defining whether actual detection for existence of 306 a serializer for type should be done when <a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#isWriteable(java.lang.Class, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType)"><code>isWriteable(java.lang.Class<?>, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType)</code></a> 307 is called.</div> 308</td> 309</tr> 310<tr class="rowColor"> 311<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html" title="class in org.codehaus.jackson.jaxrs">JacksonJsonProvider</a></code></td> 312<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#configure(org.codehaus.jackson.map.DeserializationConfig.Feature, boolean)">configure</a></strong>(<a href="../../../../org/codehaus/jackson/map/DeserializationConfig.Feature.html" title="enum in org.codehaus.jackson.map">DeserializationConfig.Feature</a> f, 313 boolean state)</code> </td> 314</tr> 315<tr class="altColor"> 316<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html" title="class in org.codehaus.jackson.jaxrs">JacksonJsonProvider</a></code></td> 317<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#configure(org.codehaus.jackson.JsonGenerator.Feature, boolean)">configure</a></strong>(<a href="../../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f, 318 boolean state)</code> </td> 319</tr> 320<tr class="rowColor"> 321<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html" title="class in org.codehaus.jackson.jaxrs">JacksonJsonProvider</a></code></td> 322<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#configure(org.codehaus.jackson.JsonParser.Feature, boolean)">configure</a></strong>(<a href="../../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f, 323 boolean state)</code> </td> 324</tr> 325<tr class="altColor"> 326<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html" title="class in org.codehaus.jackson.jaxrs">JacksonJsonProvider</a></code></td> 327<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#configure(org.codehaus.jackson.map.SerializationConfig.Feature, boolean)">configure</a></strong>(<a href="../../../../org/codehaus/jackson/map/SerializationConfig.Feature.html" title="enum in org.codehaus.jackson.map">SerializationConfig.Feature</a> f, 328 boolean state)</code> </td> 329</tr> 330<tr class="rowColor"> 331<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html" title="class in org.codehaus.jackson.jaxrs">JacksonJsonProvider</a></code></td> 332<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#disable(org.codehaus.jackson.map.DeserializationConfig.Feature, boolean)">disable</a></strong>(<a href="../../../../org/codehaus/jackson/map/DeserializationConfig.Feature.html" title="enum in org.codehaus.jackson.map">DeserializationConfig.Feature</a> f, 333 boolean state)</code> </td> 334</tr> 335<tr class="altColor"> 336<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html" title="class in org.codehaus.jackson.jaxrs">JacksonJsonProvider</a></code></td> 337<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#disable(org.codehaus.jackson.JsonGenerator.Feature, boolean)">disable</a></strong>(<a href="../../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f, 338 boolean state)</code> </td> 339</tr> 340<tr class="rowColor"> 341<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html" title="class in org.codehaus.jackson.jaxrs">JacksonJsonProvider</a></code></td> 342<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#disable(org.codehaus.jackson.JsonParser.Feature, boolean)">disable</a></strong>(<a href="../../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f, 343 boolean state)</code> </td> 344</tr> 345<tr class="altColor"> 346<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html" title="class in org.codehaus.jackson.jaxrs">JacksonJsonProvider</a></code></td> 347<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#disable(org.codehaus.jackson.map.SerializationConfig.Feature, boolean)">disable</a></strong>(<a href="../../../../org/codehaus/jackson/map/SerializationConfig.Feature.html" title="enum in org.codehaus.jackson.map">SerializationConfig.Feature</a> f, 348 boolean state)</code> </td> 349</tr> 350<tr class="rowColor"> 351<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html" title="class in org.codehaus.jackson.jaxrs">JacksonJsonProvider</a></code></td> 352<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#enable(org.codehaus.jackson.map.DeserializationConfig.Feature, boolean)">enable</a></strong>(<a href="../../../../org/codehaus/jackson/map/DeserializationConfig.Feature.html" title="enum in org.codehaus.jackson.map">DeserializationConfig.Feature</a> f, 353 boolean state)</code> </td> 354</tr> 355<tr class="altColor"> 356<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html" title="class in org.codehaus.jackson.jaxrs">JacksonJsonProvider</a></code></td> 357<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#enable(org.codehaus.jackson.JsonGenerator.Feature, boolean)">enable</a></strong>(<a href="../../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f, 358 boolean state)</code> </td> 359</tr> 360<tr class="rowColor"> 361<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html" title="class in org.codehaus.jackson.jaxrs">JacksonJsonProvider</a></code></td> 362<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#enable(org.codehaus.jackson.JsonParser.Feature, boolean)">enable</a></strong>(<a href="../../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f, 363 boolean state)</code> </td> 364</tr> 365<tr class="altColor"> 366<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html" title="class in org.codehaus.jackson.jaxrs">JacksonJsonProvider</a></code></td> 367<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#enable(org.codehaus.jackson.map.SerializationConfig.Feature, boolean)">enable</a></strong>(<a href="../../../../org/codehaus/jackson/map/SerializationConfig.Feature.html" title="enum in org.codehaus.jackson.map">SerializationConfig.Feature</a> f, 368 boolean state)</code> </td> 369</tr> 370<tr class="rowColor"> 371<td class="colFirst"><code>protected <a href="../../../../org/codehaus/jackson/JsonEncoding.html" title="enum in org.codehaus.jackson">JsonEncoding</a></code></td> 372<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#findEncoding(javax.ws.rs.core.MediaType, javax.ws.rs.core.MultivaluedMap)">findEncoding</a></strong>(<a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/core/MediaType.html?is-external=true" title="class or interface in javax.ws.rs.core">MediaType</a> mediaType, 373 <a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/core/MultivaluedMap.html?is-external=true" title="class or interface in javax.ws.rs.core">MultivaluedMap</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> httpHeaders)</code> 374<div class="block">Helper method to use for determining desired output encoding.</div> 375</td> 376</tr> 377<tr class="altColor"> 378<td class="colFirst"><code>long</code></td> 379<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#getSize(java.lang.Object, java.lang.Class, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType)">getSize</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value, 380 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> type, 381 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> genericType, 382 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation">Annotation</a>[] annotations, 383 <a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/core/MediaType.html?is-external=true" title="class or interface in javax.ws.rs.core">MediaType</a> mediaType)</code> 384<div class="block">Method that JAX-RS container calls to try to figure out 385 serialized length of given value.</div> 386</td> 387</tr> 388<tr class="rowColor"> 389<td class="colFirst"><code>protected boolean</code></td> 390<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#isJsonType(javax.ws.rs.core.MediaType)">isJsonType</a></strong>(<a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/core/MediaType.html?is-external=true" title="class or interface in javax.ws.rs.core">MediaType</a> mediaType)</code> 391<div class="block">Helper method used to check whether given media type 392 is JSON type or sub type.</div> 393</td> 394</tr> 395<tr class="altColor"> 396<td class="colFirst"><code>boolean</code></td> 397<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#isReadable(java.lang.Class, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType)">isReadable</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> type, 398 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> genericType, 399 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation">Annotation</a>[] annotations, 400 <a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/core/MediaType.html?is-external=true" title="class or interface in javax.ws.rs.core">MediaType</a> mediaType)</code> 401<div class="block">Method that JAX-RS container calls to try to check whether 402 values of given type (and media type) can be deserialized by 403 this provider.</div> 404</td> 405</tr> 406<tr class="rowColor"> 407<td class="colFirst"><code>boolean</code></td> 408<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#isWriteable(java.lang.Class, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType)">isWriteable</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> type, 409 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> genericType, 410 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation">Annotation</a>[] annotations, 411 <a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/core/MediaType.html?is-external=true" title="class or interface in javax.ws.rs.core">MediaType</a> mediaType)</code> 412<div class="block">Method that JAX-RS container calls to try to check whether 413 given value (of specified type) can be serialized by 414 this provider.</div> 415</td> 416</tr> 417<tr class="altColor"> 418<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/map/ObjectMapper.html" title="class in org.codehaus.jackson.map">ObjectMapper</a></code></td> 419<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#locateMapper(java.lang.Class, javax.ws.rs.core.MediaType)">locateMapper</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> type, 420 <a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/core/MediaType.html?is-external=true" title="class or interface in javax.ws.rs.core">MediaType</a> mediaType)</code> 421<div class="block">Method called to locate <a href="../../../../org/codehaus/jackson/map/ObjectMapper.html" title="class in org.codehaus.jackson.map"><code>ObjectMapper</code></a> to use for serialization 422 and deserialization.</div> 423</td> 424</tr> 425<tr class="rowColor"> 426<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> 427<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#readFrom(java.lang.Class, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType, javax.ws.rs.core.MultivaluedMap, java.io.InputStream)">readFrom</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> type, 428 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> genericType, 429 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation">Annotation</a>[] annotations, 430 <a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/core/MediaType.html?is-external=true" title="class or interface in javax.ws.rs.core">MediaType</a> mediaType, 431 <a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/core/MultivaluedMap.html?is-external=true" title="class or interface in javax.ws.rs.core">MultivaluedMap</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> httpHeaders, 432 <a href="http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> entityStream)</code> 433<div class="block">Method that JAX-RS container calls to deserialize given 434 value.</div> 435</td> 436</tr> 437<tr class="altColor"> 438<td class="colFirst"><code>void</code></td> 439<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#setAnnotationsToUse(org.codehaus.jackson.jaxrs.Annotations[])">setAnnotationsToUse</a></strong>(<a href="../../../../org/codehaus/jackson/jaxrs/Annotations.html" title="enum in org.codehaus.jackson.jaxrs">Annotations</a>[] annotationsToUse)</code> 440<div class="block">Method for configuring which annotation sets to use (including none).</div> 441</td> 442</tr> 443<tr class="rowColor"> 444<td class="colFirst"><code>void</code></td> 445<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#setJSONPFunctionName(java.lang.String)">setJSONPFunctionName</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fname)</code> </td> 446</tr> 447<tr class="altColor"> 448<td class="colFirst"><code>void</code></td> 449<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#setMapper(org.codehaus.jackson.map.ObjectMapper)">setMapper</a></strong>(<a href="../../../../org/codehaus/jackson/map/ObjectMapper.html" title="class in org.codehaus.jackson.map">ObjectMapper</a> m)</code> 450<div class="block">Method that can be used to directly define <a href="../../../../org/codehaus/jackson/map/ObjectMapper.html" title="class in org.codehaus.jackson.map"><code>ObjectMapper</code></a> to use 451 for serialization and deserialization; if null, will use the standard 452 provider discovery from context instead.</div> 453</td> 454</tr> 455<tr class="rowColor"> 456<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/Version.html" title="class in org.codehaus.jackson">Version</a></code></td> 457<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#version()">version</a></strong>()</code> 458<div class="block">Method that will return version information stored in and read from jar 459 that contains this class.</div> 460</td> 461</tr> 462<tr class="altColor"> 463<td class="colFirst"><code>void</code></td> 464<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#writeTo(java.lang.Object, java.lang.Class, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType, javax.ws.rs.core.MultivaluedMap, java.io.OutputStream)">writeTo</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value, 465 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> type, 466 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> genericType, 467 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation">Annotation</a>[] annotations, 468 <a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/core/MediaType.html?is-external=true" title="class or interface in javax.ws.rs.core">MediaType</a> mediaType, 469 <a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/core/MultivaluedMap.html?is-external=true" title="class or interface in javax.ws.rs.core">MultivaluedMap</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> httpHeaders, 470 <a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> entityStream)</code> 471<div class="block">Method that JAX-RS container calls to serialize given value.</div> 472</td> 473</tr> 474</table> 475<ul class="blockList"> 476<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 477<!-- --> 478</a> 479<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> 480<code><a href="http://docs.oracle.com/javase/6/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/6/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/6/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/6/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/6/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/6/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/6/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/6/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/6/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/6/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/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li> 481</ul> 482</li> 483</ul> 484</li> 485</ul> 486</div> 487<div class="details"> 488<ul class="blockList"> 489<li class="blockList"> 490<!-- ============ FIELD DETAIL =========== --> 491<ul class="blockList"> 492<li class="blockList"><a name="field_detail"> 493<!-- --> 494</a> 495<h3>Field Detail</h3> 496<a name="BASIC_ANNOTATIONS"> 497<!-- --> 498</a> 499<ul class="blockList"> 500<li class="blockList"> 501<h4>BASIC_ANNOTATIONS</h4> 502<pre>public static final <a href="../../../../org/codehaus/jackson/jaxrs/Annotations.html" title="enum in org.codehaus.jackson.jaxrs">Annotations</a>[] BASIC_ANNOTATIONS</pre> 503<div class="block">Default annotation sets to use, if not explicitly defined during 504 construction: only Jackson annotations are used for the base 505 class. Sub-classes can use other settings.</div> 506</li> 507</ul> 508<a name="_untouchables"> 509<!-- --> 510</a> 511<ul class="blockList"> 512<li class="blockList"> 513<h4>_untouchables</h4> 514<pre>public static final <a href="http://docs.oracle.com/javase/6/docs/api/java/util/HashSet.html?is-external=true" title="class or interface in java.util">HashSet</a><<a href="../../../../org/codehaus/jackson/map/type/ClassKey.html" title="class in org.codehaus.jackson.map.type">ClassKey</a>> _untouchables</pre> 515<div class="block">Looks like we need to worry about accidental 516 data binding for types we shouldn't be handling. This is 517 probably not a very good way to do it, but let's start by 518 blacklisting things we are not to handle. 519<p> 520 (why ClassKey? since plain old Class has no hashCode() defined, 521 lookups are painfully slow)</div> 522</li> 523</ul> 524<a name="_unreadableClasses"> 525<!-- --> 526</a> 527<ul class="blockList"> 528<li class="blockList"> 529<h4>_unreadableClasses</h4> 530<pre>public static final <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?>[] _unreadableClasses</pre> 531<div class="block">These are classes that we never use for reading 532 (never try to deserialize instances of these types).</div> 533</li> 534</ul> 535<a name="_unwritableClasses"> 536<!-- --> 537</a> 538<ul class="blockList"> 539<li class="blockList"> 540<h4>_unwritableClasses</h4> 541<pre>public static final <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?>[] _unwritableClasses</pre> 542<div class="block">These are classes that we never use for writing 543 (never try to serialize instances of these types).</div> 544</li> 545</ul> 546<a name="_mapperConfig"> 547<!-- --> 548</a> 549<ul class="blockList"> 550<li class="blockList"> 551<h4>_mapperConfig</h4> 552<pre>protected final <a href="../../../../org/codehaus/jackson/jaxrs/MapperConfigurator.html" title="class in org.codehaus.jackson.jaxrs">MapperConfigurator</a> _mapperConfig</pre> 553<div class="block">Helper object used for encapsulating configuration aspects 554 of <a href="../../../../org/codehaus/jackson/map/ObjectMapper.html" title="class in org.codehaus.jackson.map"><code>ObjectMapper</code></a></div> 555</li> 556</ul> 557<a name="_cfgCustomUntouchables"> 558<!-- --> 559</a> 560<ul class="blockList"> 561<li class="blockList"> 562<h4>_cfgCustomUntouchables</h4> 563<pre>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/util/HashSet.html?is-external=true" title="class or interface in java.util">HashSet</a><<a href="../../../../org/codehaus/jackson/map/type/ClassKey.html" title="class in org.codehaus.jackson.map.type">ClassKey</a>> _cfgCustomUntouchables</pre> 564<div class="block">Set of types (classes) that provider should ignore for data binding</div> 565<dl><dt><span class="strong">Since:</span></dt> 566 <dd>1.5</dd></dl> 567</li> 568</ul> 569<a name="_jsonpFunctionName"> 570<!-- --> 571</a> 572<ul class="blockList"> 573<li class="blockList"> 574<h4>_jsonpFunctionName</h4> 575<pre>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> _jsonpFunctionName</pre> 576<div class="block">JSONP function name to use for automatic JSONP wrapping, if any; 577 if null, no JSONP wrapping is done.</div> 578</li> 579</ul> 580<a name="_providers"> 581<!-- --> 582</a> 583<ul class="blockList"> 584<li class="blockList"> 585<h4>_providers</h4> 586<pre><a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/core/Context.html?is-external=true" title="class or interface in javax.ws.rs.core">@Context</a> 587protected <a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/ext/Providers.html?is-external=true" title="class or interface in javax.ws.rs.ext">Providers</a> _providers</pre> 588<div class="block">Injectable context object used to locate configured 589 instance of <a href="../../../../org/codehaus/jackson/map/ObjectMapper.html" title="class in org.codehaus.jackson.map"><code>ObjectMapper</code></a> to use for actual 590 serialization.</div> 591</li> 592</ul> 593<a name="_cfgCheckCanSerialize"> 594<!-- --> 595</a> 596<ul class="blockList"> 597<li class="blockList"> 598<h4>_cfgCheckCanSerialize</h4> 599<pre>protected boolean _cfgCheckCanSerialize</pre> 600<div class="block">Whether we want to actually check that Jackson has 601 a serializer for given type. Since this should generally 602 be the case (due to auto-discovery) and since the call 603 to check availability can be bit expensive, defaults to false.</div> 604</li> 605</ul> 606<a name="_cfgCheckCanDeserialize"> 607<!-- --> 608</a> 609<ul class="blockListLast"> 610<li class="blockList"> 611<h4>_cfgCheckCanDeserialize</h4> 612<pre>protected boolean _cfgCheckCanDeserialize</pre> 613<div class="block">Whether we want to actually check that Jackson has 614 a deserializer for given type. Since this should generally 615 be the case (due to auto-discovery) and since the call 616 to check availability can be bit expensive, defaults to false.</div> 617</li> 618</ul> 619</li> 620</ul> 621<!-- ========= CONSTRUCTOR DETAIL ======== --> 622<ul class="blockList"> 623<li class="blockList"><a name="constructor_detail"> 624<!-- --> 625</a> 626<h3>Constructor Detail</h3> 627<a name="JacksonJsonProvider()"> 628<!-- --> 629</a> 630<ul class="blockList"> 631<li class="blockList"> 632<h4>JacksonJsonProvider</h4> 633<pre>public JacksonJsonProvider()</pre> 634<div class="block">Default constructor, usually used when provider is automatically 635 configured to be used with JAX-RS implementation.</div> 636</li> 637</ul> 638<a name="JacksonJsonProvider(org.codehaus.jackson.jaxrs.Annotations...)"> 639<!-- --> 640</a> 641<ul class="blockList"> 642<li class="blockList"> 643<h4>JacksonJsonProvider</h4> 644<pre>public JacksonJsonProvider(<a href="../../../../org/codehaus/jackson/jaxrs/Annotations.html" title="enum in org.codehaus.jackson.jaxrs">Annotations</a>... annotationsToUse)</pre> 645<dl><dt><span class="strong">Parameters:</span></dt><dd><code>annotationsToUse</code> - Annotation set(s) to use for configuring 646 data binding</dd></dl> 647</li> 648</ul> 649<a name="JacksonJsonProvider(org.codehaus.jackson.map.ObjectMapper)"> 650<!-- --> 651</a> 652<ul class="blockList"> 653<li class="blockList"> 654<h4>JacksonJsonProvider</h4> 655<pre>public JacksonJsonProvider(<a href="../../../../org/codehaus/jackson/map/ObjectMapper.html" title="class in org.codehaus.jackson.map">ObjectMapper</a> mapper)</pre> 656</li> 657</ul> 658<a name="JacksonJsonProvider(org.codehaus.jackson.map.ObjectMapper, org.codehaus.jackson.jaxrs.Annotations[])"> 659<!-- --> 660</a> 661<ul class="blockListLast"> 662<li class="blockList"> 663<h4>JacksonJsonProvider</h4> 664<pre>public JacksonJsonProvider(<a href="../../../../org/codehaus/jackson/map/ObjectMapper.html" title="class in org.codehaus.jackson.map">ObjectMapper</a> mapper, 665 <a href="../../../../org/codehaus/jackson/jaxrs/Annotations.html" title="enum in org.codehaus.jackson.jaxrs">Annotations</a>[] annotationsToUse)</pre> 666<div class="block">Constructor to use when a custom mapper (usually components 667 like serializer/deserializer factories that have been configured) 668 is to be used.</div> 669</li> 670</ul> 671</li> 672</ul> 673<!-- ============ METHOD DETAIL ========== --> 674<ul class="blockList"> 675<li class="blockList"><a name="method_detail"> 676<!-- --> 677</a> 678<h3>Method Detail</h3> 679<a name="version()"> 680<!-- --> 681</a> 682<ul class="blockList"> 683<li class="blockList"> 684<h4>version</h4> 685<pre>public <a href="../../../../org/codehaus/jackson/Version.html" title="class in org.codehaus.jackson">Version</a> version()</pre> 686<div class="block">Method that will return version information stored in and read from jar 687 that contains this class.</div> 688<dl> 689<dt><strong>Specified by:</strong></dt> 690<dd><code><a href="../../../../org/codehaus/jackson/Versioned.html#version()">version</a></code> in interface <code><a href="../../../../org/codehaus/jackson/Versioned.html" title="interface in org.codehaus.jackson">Versioned</a></code></dd> 691<dt><span class="strong">Since:</span></dt> 692 <dd>1.6</dd></dl> 693</li> 694</ul> 695<a name="checkCanDeserialize(boolean)"> 696<!-- --> 697</a> 698<ul class="blockList"> 699<li class="blockList"> 700<h4>checkCanDeserialize</h4> 701<pre>public void checkCanDeserialize(boolean state)</pre> 702<div class="block">Method for defining whether actual detection for existence of 703 a deserializer for type should be done when <a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#isReadable(java.lang.Class, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType)"><code>isReadable(java.lang.Class<?>, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType)</code></a> 704 is called.</div> 705</li> 706</ul> 707<a name="checkCanSerialize(boolean)"> 708<!-- --> 709</a> 710<ul class="blockList"> 711<li class="blockList"> 712<h4>checkCanSerialize</h4> 713<pre>public void checkCanSerialize(boolean state)</pre> 714<div class="block">Method for defining whether actual detection for existence of 715 a serializer for type should be done when <a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#isWriteable(java.lang.Class, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType)"><code>isWriteable(java.lang.Class<?>, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType)</code></a> 716 is called.</div> 717</li> 718</ul> 719<a name="setAnnotationsToUse(org.codehaus.jackson.jaxrs.Annotations[])"> 720<!-- --> 721</a> 722<ul class="blockList"> 723<li class="blockList"> 724<h4>setAnnotationsToUse</h4> 725<pre>public void setAnnotationsToUse(<a href="../../../../org/codehaus/jackson/jaxrs/Annotations.html" title="enum in org.codehaus.jackson.jaxrs">Annotations</a>[] annotationsToUse)</pre> 726<div class="block">Method for configuring which annotation sets to use (including none). 727 Annotation sets are defined in order decreasing precedence; that is, 728 first one has the priority over following ones.</div> 729<dl><dt><span class="strong">Parameters:</span></dt><dd><code>annotationsToUse</code> - Ordered list of annotation sets to use; if null, 730 default</dd></dl> 731</li> 732</ul> 733<a name="setMapper(org.codehaus.jackson.map.ObjectMapper)"> 734<!-- --> 735</a> 736<ul class="blockList"> 737<li class="blockList"> 738<h4>setMapper</h4> 739<pre>public void setMapper(<a href="../../../../org/codehaus/jackson/map/ObjectMapper.html" title="class in org.codehaus.jackson.map">ObjectMapper</a> m)</pre> 740<div class="block">Method that can be used to directly define <a href="../../../../org/codehaus/jackson/map/ObjectMapper.html" title="class in org.codehaus.jackson.map"><code>ObjectMapper</code></a> to use 741 for serialization and deserialization; if null, will use the standard 742 provider discovery from context instead. Default setting is null.</div> 743</li> 744</ul> 745<a name="configure(org.codehaus.jackson.map.DeserializationConfig.Feature, boolean)"> 746<!-- --> 747</a> 748<ul class="blockList"> 749<li class="blockList"> 750<h4>configure</h4> 751<pre>public <a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html" title="class in org.codehaus.jackson.jaxrs">JacksonJsonProvider</a> configure(<a href="../../../../org/codehaus/jackson/map/DeserializationConfig.Feature.html" title="enum in org.codehaus.jackson.map">DeserializationConfig.Feature</a> f, 752 boolean state)</pre> 753</li> 754</ul> 755<a name="configure(org.codehaus.jackson.map.SerializationConfig.Feature, boolean)"> 756<!-- --> 757</a> 758<ul class="blockList"> 759<li class="blockList"> 760<h4>configure</h4> 761<pre>public <a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html" title="class in org.codehaus.jackson.jaxrs">JacksonJsonProvider</a> configure(<a href="../../../../org/codehaus/jackson/map/SerializationConfig.Feature.html" title="enum in org.codehaus.jackson.map">SerializationConfig.Feature</a> f, 762 boolean state)</pre> 763</li> 764</ul> 765<a name="configure(org.codehaus.jackson.JsonParser.Feature, boolean)"> 766<!-- --> 767</a> 768<ul class="blockList"> 769<li class="blockList"> 770<h4>configure</h4> 771<pre>public <a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html" title="class in org.codehaus.jackson.jaxrs">JacksonJsonProvider</a> configure(<a href="../../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f, 772 boolean state)</pre> 773</li> 774</ul> 775<a name="configure(org.codehaus.jackson.JsonGenerator.Feature, boolean)"> 776<!-- --> 777</a> 778<ul class="blockList"> 779<li class="blockList"> 780<h4>configure</h4> 781<pre>public <a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html" title="class in org.codehaus.jackson.jaxrs">JacksonJsonProvider</a> configure(<a href="../../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f, 782 boolean state)</pre> 783</li> 784</ul> 785<a name="enable(org.codehaus.jackson.map.DeserializationConfig.Feature, boolean)"> 786<!-- --> 787</a> 788<ul class="blockList"> 789<li class="blockList"> 790<h4>enable</h4> 791<pre>public <a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html" title="class in org.codehaus.jackson.jaxrs">JacksonJsonProvider</a> enable(<a href="../../../../org/codehaus/jackson/map/DeserializationConfig.Feature.html" title="enum in org.codehaus.jackson.map">DeserializationConfig.Feature</a> f, 792 boolean state)</pre> 793</li> 794</ul> 795<a name="enable(org.codehaus.jackson.map.SerializationConfig.Feature, boolean)"> 796<!-- --> 797</a> 798<ul class="blockList"> 799<li class="blockList"> 800<h4>enable</h4> 801<pre>public <a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html" title="class in org.codehaus.jackson.jaxrs">JacksonJsonProvider</a> enable(<a href="../../../../org/codehaus/jackson/map/SerializationConfig.Feature.html" title="enum in org.codehaus.jackson.map">SerializationConfig.Feature</a> f, 802 boolean state)</pre> 803</li> 804</ul> 805<a name="enable(org.codehaus.jackson.JsonParser.Feature, boolean)"> 806<!-- --> 807</a> 808<ul class="blockList"> 809<li class="blockList"> 810<h4>enable</h4> 811<pre>public <a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html" title="class in org.codehaus.jackson.jaxrs">JacksonJsonProvider</a> enable(<a href="../../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f, 812 boolean state)</pre> 813</li> 814</ul> 815<a name="enable(org.codehaus.jackson.JsonGenerator.Feature, boolean)"> 816<!-- --> 817</a> 818<ul class="blockList"> 819<li class="blockList"> 820<h4>enable</h4> 821<pre>public <a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html" title="class in org.codehaus.jackson.jaxrs">JacksonJsonProvider</a> enable(<a href="../../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f, 822 boolean state)</pre> 823</li> 824</ul> 825<a name="disable(org.codehaus.jackson.map.DeserializationConfig.Feature, boolean)"> 826<!-- --> 827</a> 828<ul class="blockList"> 829<li class="blockList"> 830<h4>disable</h4> 831<pre>public <a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html" title="class in org.codehaus.jackson.jaxrs">JacksonJsonProvider</a> disable(<a href="../../../../org/codehaus/jackson/map/DeserializationConfig.Feature.html" title="enum in org.codehaus.jackson.map">DeserializationConfig.Feature</a> f, 832 boolean state)</pre> 833</li> 834</ul> 835<a name="disable(org.codehaus.jackson.map.SerializationConfig.Feature, boolean)"> 836<!-- --> 837</a> 838<ul class="blockList"> 839<li class="blockList"> 840<h4>disable</h4> 841<pre>public <a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html" title="class in org.codehaus.jackson.jaxrs">JacksonJsonProvider</a> disable(<a href="../../../../org/codehaus/jackson/map/SerializationConfig.Feature.html" title="enum in org.codehaus.jackson.map">SerializationConfig.Feature</a> f, 842 boolean state)</pre> 843</li> 844</ul> 845<a name="disable(org.codehaus.jackson.JsonParser.Feature, boolean)"> 846<!-- --> 847</a> 848<ul class="blockList"> 849<li class="blockList"> 850<h4>disable</h4> 851<pre>public <a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html" title="class in org.codehaus.jackson.jaxrs">JacksonJsonProvider</a> disable(<a href="../../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f, 852 boolean state)</pre> 853</li> 854</ul> 855<a name="disable(org.codehaus.jackson.JsonGenerator.Feature, boolean)"> 856<!-- --> 857</a> 858<ul class="blockList"> 859<li class="blockList"> 860<h4>disable</h4> 861<pre>public <a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html" title="class in org.codehaus.jackson.jaxrs">JacksonJsonProvider</a> disable(<a href="../../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f, 862 boolean state)</pre> 863</li> 864</ul> 865<a name="addUntouchable(java.lang.Class)"> 866<!-- --> 867</a> 868<ul class="blockList"> 869<li class="blockList"> 870<h4>addUntouchable</h4> 871<pre>public void addUntouchable(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> type)</pre> 872<div class="block">Method for marking specified type as "untouchable", meaning that provider 873 will not try to read or write values of this type (or its subtypes).</div> 874<dl><dt><span class="strong">Parameters:</span></dt><dd><code>type</code> - Type to consider untouchable; can be any kind of class, 875 including abstract class or interface. No instance of this type 876 (including subtypes, i.e. types assignable to this type) will 877 be read or written by provider</dd><dt><span class="strong">Since:</span></dt> 878 <dd>1.5</dd></dl> 879</li> 880</ul> 881<a name="setJSONPFunctionName(java.lang.String)"> 882<!-- --> 883</a> 884<ul class="blockList"> 885<li class="blockList"> 886<h4>setJSONPFunctionName</h4> 887<pre>public void setJSONPFunctionName(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fname)</pre> 888</li> 889</ul> 890<a name="isReadable(java.lang.Class, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType)"> 891<!-- --> 892</a> 893<ul class="blockList"> 894<li class="blockList"> 895<h4>isReadable</h4> 896<pre>public boolean isReadable(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> type, 897 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> genericType, 898 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation">Annotation</a>[] annotations, 899 <a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/core/MediaType.html?is-external=true" title="class or interface in javax.ws.rs.core">MediaType</a> mediaType)</pre> 900<div class="block">Method that JAX-RS container calls to try to check whether 901 values of given type (and media type) can be deserialized by 902 this provider. 903 Implementation will first check that expected media type is 904 a JSON type (via call to <a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#isJsonType(javax.ws.rs.core.MediaType)"><code>isJsonType(javax.ws.rs.core.MediaType)</code></a>; then verify 905 that type is not one of "untouchable" types (types we will never 906 automatically handle), and finally that there is a deserializer 907 for type (iff <a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#checkCanDeserialize(boolean)"><code>checkCanDeserialize(boolean)</code></a> has been called with 908 true argument -- otherwise assumption is there will be a handler)</div> 909<dl> 910<dt><strong>Specified by:</strong></dt> 911<dd><code><a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/ext/MessageBodyReader.html?is-external=true#isReadable(java.lang.Class, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType)" title="class or interface in javax.ws.rs.ext">isReadable</a></code> in interface <code><a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/ext/MessageBodyReader.html?is-external=true" title="class or interface in javax.ws.rs.ext">MessageBodyReader</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>></code></dd> 912</dl> 913</li> 914</ul> 915<a name="readFrom(java.lang.Class, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType, javax.ws.rs.core.MultivaluedMap, java.io.InputStream)"> 916<!-- --> 917</a> 918<ul class="blockList"> 919<li class="blockList"> 920<h4>readFrom</h4> 921<pre>public <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> readFrom(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> type, 922 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> genericType, 923 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation">Annotation</a>[] annotations, 924 <a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/core/MediaType.html?is-external=true" title="class or interface in javax.ws.rs.core">MediaType</a> mediaType, 925 <a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/core/MultivaluedMap.html?is-external=true" title="class or interface in javax.ws.rs.core">MultivaluedMap</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> httpHeaders, 926 <a href="http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> entityStream) 927 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 928<div class="block">Method that JAX-RS container calls to deserialize given 929 value.</div> 930<dl> 931<dt><strong>Specified by:</strong></dt> 932<dd><code><a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/ext/MessageBodyReader.html?is-external=true#readFrom(java.lang.Class, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType, javax.ws.rs.core.MultivaluedMap, java.io.InputStream)" title="class or interface in javax.ws.rs.ext">readFrom</a></code> in interface <code><a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/ext/MessageBodyReader.html?is-external=true" title="class or interface in javax.ws.rs.ext">MessageBodyReader</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>></code></dd> 933<dt><span class="strong">Throws:</span></dt> 934<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl> 935</li> 936</ul> 937<a name="getSize(java.lang.Object, java.lang.Class, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType)"> 938<!-- --> 939</a> 940<ul class="blockList"> 941<li class="blockList"> 942<h4>getSize</h4> 943<pre>public long getSize(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value, 944 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> type, 945 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> genericType, 946 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation">Annotation</a>[] annotations, 947 <a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/core/MediaType.html?is-external=true" title="class or interface in javax.ws.rs.core">MediaType</a> mediaType)</pre> 948<div class="block">Method that JAX-RS container calls to try to figure out 949 serialized length of given value. Since computation of 950 this length is about as expensive as serialization itself, 951 implementation will return -1 to denote "not known", so 952 that container will determine length from actual serialized 953 output (if needed).</div> 954<dl> 955<dt><strong>Specified by:</strong></dt> 956<dd><code><a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/ext/MessageBodyWriter.html?is-external=true#getSize(T, java.lang.Class, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType)" title="class or interface in javax.ws.rs.ext">getSize</a></code> in interface <code><a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/ext/MessageBodyWriter.html?is-external=true" title="class or interface in javax.ws.rs.ext">MessageBodyWriter</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>></code></dd> 957</dl> 958</li> 959</ul> 960<a name="isWriteable(java.lang.Class, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType)"> 961<!-- --> 962</a> 963<ul class="blockList"> 964<li class="blockList"> 965<h4>isWriteable</h4> 966<pre>public boolean isWriteable(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> type, 967 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> genericType, 968 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation">Annotation</a>[] annotations, 969 <a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/core/MediaType.html?is-external=true" title="class or interface in javax.ws.rs.core">MediaType</a> mediaType)</pre> 970<div class="block">Method that JAX-RS container calls to try to check whether 971 given value (of specified type) can be serialized by 972 this provider. 973 Implementation will first check that expected media type is 974 a JSON type (via call to <a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#isJsonType(javax.ws.rs.core.MediaType)"><code>isJsonType(javax.ws.rs.core.MediaType)</code></a>; then verify 975 that type is not one of "untouchable" types (types we will never 976 automatically handle), and finally that there is a serializer 977 for type (iff <a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#checkCanSerialize(boolean)"><code>checkCanSerialize(boolean)</code></a> has been called with 978 true argument -- otherwise assumption is there will be a handler)</div> 979<dl> 980<dt><strong>Specified by:</strong></dt> 981<dd><code><a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/ext/MessageBodyWriter.html?is-external=true#isWriteable(java.lang.Class, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType)" title="class or interface in javax.ws.rs.ext">isWriteable</a></code> in interface <code><a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/ext/MessageBodyWriter.html?is-external=true" title="class or interface in javax.ws.rs.ext">MessageBodyWriter</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>></code></dd> 982</dl> 983</li> 984</ul> 985<a name="writeTo(java.lang.Object, java.lang.Class, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType, javax.ws.rs.core.MultivaluedMap, java.io.OutputStream)"> 986<!-- --> 987</a> 988<ul class="blockList"> 989<li class="blockList"> 990<h4>writeTo</h4> 991<pre>public void writeTo(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value, 992 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> type, 993 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> genericType, 994 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation">Annotation</a>[] annotations, 995 <a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/core/MediaType.html?is-external=true" title="class or interface in javax.ws.rs.core">MediaType</a> mediaType, 996 <a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/core/MultivaluedMap.html?is-external=true" title="class or interface in javax.ws.rs.core">MultivaluedMap</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> httpHeaders, 997 <a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> entityStream) 998 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 999<div class="block">Method that JAX-RS container calls to serialize given value.</div> 1000<dl> 1001<dt><strong>Specified by:</strong></dt> 1002<dd><code><a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/ext/MessageBodyWriter.html?is-external=true#writeTo(T, java.lang.Class, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType, javax.ws.rs.core.MultivaluedMap, java.io.OutputStream)" title="class or interface in javax.ws.rs.ext">writeTo</a></code> in interface <code><a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/ext/MessageBodyWriter.html?is-external=true" title="class or interface in javax.ws.rs.ext">MessageBodyWriter</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>></code></dd> 1003<dt><span class="strong">Throws:</span></dt> 1004<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl> 1005</li> 1006</ul> 1007<a name="findEncoding(javax.ws.rs.core.MediaType, javax.ws.rs.core.MultivaluedMap)"> 1008<!-- --> 1009</a> 1010<ul class="blockList"> 1011<li class="blockList"> 1012<h4>findEncoding</h4> 1013<pre>protected <a href="../../../../org/codehaus/jackson/JsonEncoding.html" title="enum in org.codehaus.jackson">JsonEncoding</a> findEncoding(<a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/core/MediaType.html?is-external=true" title="class or interface in javax.ws.rs.core">MediaType</a> mediaType, 1014 <a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/core/MultivaluedMap.html?is-external=true" title="class or interface in javax.ws.rs.core">MultivaluedMap</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> httpHeaders)</pre> 1015<div class="block">Helper method to use for determining desired output encoding. 1016 For now, will always just use UTF-8...</div> 1017<dl><dt><span class="strong">Since:</span></dt> 1018 <dd>1.7.0</dd></dl> 1019</li> 1020</ul> 1021<a name="isJsonType(javax.ws.rs.core.MediaType)"> 1022<!-- --> 1023</a> 1024<ul class="blockList"> 1025<li class="blockList"> 1026<h4>isJsonType</h4> 1027<pre>protected boolean isJsonType(<a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/core/MediaType.html?is-external=true" title="class or interface in javax.ws.rs.core">MediaType</a> mediaType)</pre> 1028<div class="block">Helper method used to check whether given media type 1029 is JSON type or sub type. 1030 Current implementation essentially checks to see whether 1031 <a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/core/MediaType.html?is-external=true#getSubtype()" title="class or interface in javax.ws.rs.core"><code>MediaType.getSubtype()</code></a> returns "json" or something 1032 ending with "+json".</div> 1033</li> 1034</ul> 1035<a name="locateMapper(java.lang.Class, javax.ws.rs.core.MediaType)"> 1036<!-- --> 1037</a> 1038<ul class="blockList"> 1039<li class="blockList"> 1040<h4>locateMapper</h4> 1041<pre>public <a href="../../../../org/codehaus/jackson/map/ObjectMapper.html" title="class in org.codehaus.jackson.map">ObjectMapper</a> locateMapper(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> type, 1042 <a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/core/MediaType.html?is-external=true" title="class or interface in javax.ws.rs.core">MediaType</a> mediaType)</pre> 1043<div class="block">Method called to locate <a href="../../../../org/codehaus/jackson/map/ObjectMapper.html" title="class in org.codehaus.jackson.map"><code>ObjectMapper</code></a> to use for serialization 1044 and deserialization. If an instance has been explicitly defined by 1045 <a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html#setMapper(org.codehaus.jackson.map.ObjectMapper)"><code>setMapper(org.codehaus.jackson.map.ObjectMapper)</code></a> (or non-null instance passed in constructor), that 1046 will be used. 1047 If not, will try to locate it using standard JAX-RS 1048 <a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/ext/ContextResolver.html?is-external=true" title="class or interface in javax.ws.rs.ext"><code>ContextResolver</code></a> mechanism, if it has been properly configured 1049 to access it (by JAX-RS runtime). 1050 Finally, if no mapper is found, will return a default unconfigured 1051 <a href="../../../../org/codehaus/jackson/map/ObjectMapper.html" title="class in org.codehaus.jackson.map"><code>ObjectMapper</code></a> instance (one constructed with default constructor 1052 and not modified in any way)</div> 1053<dl><dt><span class="strong">Parameters:</span></dt><dd><code>type</code> - Class of object being serialized or deserialized; 1054 not checked at this point, since it is assumed that unprocessable 1055 classes have been already weeded out, 1056 but will be passed to <a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/ext/ContextResolver.html?is-external=true" title="class or interface in javax.ws.rs.ext"><code>ContextResolver</code></a> as is.</dd><dd><code>mediaType</code> - Declared media type for the instance to process: 1057 not used by this method, 1058 but will be passed to <a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/ext/ContextResolver.html?is-external=true" title="class or interface in javax.ws.rs.ext"><code>ContextResolver</code></a> as is.</dd></dl> 1059</li> 1060</ul> 1061<a name="_containedIn(java.lang.Class, java.util.HashSet)"> 1062<!-- --> 1063</a> 1064<ul class="blockList"> 1065<li class="blockList"> 1066<h4>_containedIn</h4> 1067<pre>protected static boolean _containedIn(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> mainType, 1068 <a href="http://docs.oracle.com/javase/6/docs/api/java/util/HashSet.html?is-external=true" title="class or interface in java.util">HashSet</a><<a href="../../../../org/codehaus/jackson/map/type/ClassKey.html" title="class in org.codehaus.jackson.map.type">ClassKey</a>> set)</pre> 1069</li> 1070</ul> 1071<a name="_findView(org.codehaus.jackson.map.ObjectMapper, java.lang.annotation.Annotation[])"> 1072<!-- --> 1073</a> 1074<ul class="blockListLast"> 1075<li class="blockList"> 1076<h4>_findView</h4> 1077<pre>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> _findView(<a href="../../../../org/codehaus/jackson/map/ObjectMapper.html" title="class in org.codehaus.jackson.map">ObjectMapper</a> mapper, 1078 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation">Annotation</a>[] annotations) 1079 throws <a href="../../../../org/codehaus/jackson/map/JsonMappingException.html" title="class in org.codehaus.jackson.map">JsonMappingException</a></pre> 1080<dl><dt><span class="strong">Throws:</span></dt> 1081<dd><code><a href="../../../../org/codehaus/jackson/map/JsonMappingException.html" title="class in org.codehaus.jackson.map">JsonMappingException</a></code></dd></dl> 1082</li> 1083</ul> 1084</li> 1085</ul> 1086</li> 1087</ul> 1088</div> 1089</div> 1090<!-- ========= END OF CLASS DATA ========= --> 1091<!-- ======= START OF BOTTOM NAVBAR ====== --> 1092<div class="bottomNav"><a name="navbar_bottom"> 1093<!-- --> 1094</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 1095<!-- --> 1096</a> 1097<ul class="navList" title="Navigation"> 1098<li><a href="../../../../overview-summary.html">Overview</a></li> 1099<li><a href="package-summary.html">Package</a></li> 1100<li class="navBarCell1Rev">Class</li> 1101<li><a href="class-use/JacksonJsonProvider.html">Use</a></li> 1102<li><a href="package-tree.html">Tree</a></li> 1103<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 1104<li><a href="../../../../index-all.html">Index</a></li> 1105<li><a href="../../../../help-doc.html">Help</a></li> 1106</ul> 1107</div> 1108<div class="subNav"> 1109<ul class="navList"> 1110<li><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJaxbJsonProvider.html" title="class in org.codehaus.jackson.jaxrs"><span class="strong">Prev Class</span></a></li> 1111<li><a href="../../../../org/codehaus/jackson/jaxrs/JsonMappingExceptionMapper.html" title="class in org.codehaus.jackson.jaxrs"><span class="strong">Next Class</span></a></li> 1112</ul> 1113<ul class="navList"> 1114<li><a href="../../../../index.html?org/codehaus/jackson/jaxrs/JacksonJsonProvider.html" target="_top">Frames</a></li> 1115<li><a href="JacksonJsonProvider.html" target="_top">No Frames</a></li> 1116</ul> 1117<ul class="navList" id="allclasses_navbar_bottom"> 1118<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 1119</ul> 1120<div> 1121<script type="text/javascript"><!-- 1122 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 1123 if(window==top) { 1124 allClassesLink.style.display = "block"; 1125 } 1126 else { 1127 allClassesLink.style.display = "none"; 1128 } 1129 //--> 1130</script> 1131</div> 1132<div> 1133<ul class="subNavList"> 1134<li>Summary: </li> 1135<li>Nested | </li> 1136<li><a href="#field_summary">Field</a> | </li> 1137<li><a href="#constructor_summary">Constr</a> | </li> 1138<li><a href="#method_summary">Method</a></li> 1139</ul> 1140<ul class="subNavList"> 1141<li>Detail: </li> 1142<li><a href="#field_detail">Field</a> | </li> 1143<li><a href="#constructor_detail">Constr</a> | </li> 1144<li><a href="#method_detail">Method</a></li> 1145</ul> 1146</div> 1147<a name="skip-navbar_bottom"> 1148<!-- --> 1149</a></div> 1150<!-- ======== END OF BOTTOM NAVBAR ======= --> 1151</body> 1152</html> 1153