• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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>JsonMappingExceptionMapper (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="JsonMappingExceptionMapper (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/JsonMappingExceptionMapper.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/JacksonJsonProvider.html" title="class in org.codehaus.jackson.jaxrs"><span class="strong">Prev Class</span></a></li>
40<li><a href="../../../../org/codehaus/jackson/jaxrs/JsonParseExceptionMapper.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/JsonMappingExceptionMapper.html" target="_top">Frames</a></li>
44<li><a href="JsonMappingExceptionMapper.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:&nbsp;</li>
64<li>Nested&nbsp;|&nbsp;</li>
65<li>Field&nbsp;|&nbsp;</li>
66<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
67<li><a href="#method_summary">Method</a></li>
68</ul>
69<ul class="subNavList">
70<li>Detail:&nbsp;</li>
71<li>Field&nbsp;|&nbsp;</li>
72<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</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 JsonMappingExceptionMapper" class="title">Class JsonMappingExceptionMapper</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.JsonMappingExceptionMapper</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/ExceptionMapper.html?is-external=true" title="class or interface in javax.ws.rs.ext">ExceptionMapper</a>&lt;<a href="../../../../org/codehaus/jackson/map/JsonMappingException.html" title="class in org.codehaus.jackson.map">JsonMappingException</a>&gt;</dd>
100</dl>
101<hr>
102<br>
103<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>
104public class <span class="strong">JsonMappingExceptionMapper</span>
105extends <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>
106implements <a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/ext/ExceptionMapper.html?is-external=true" title="class or interface in javax.ws.rs.ext">ExceptionMapper</a>&lt;<a href="../../../../org/codehaus/jackson/map/JsonMappingException.html" title="class in org.codehaus.jackson.map">JsonMappingException</a>&gt;</pre>
107<div class="block">Implementation if <a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/ext/ExceptionMapper.html?is-external=true" title="class or interface in javax.ws.rs.ext"><code>ExceptionMapper</code></a> to send down a "400 Bad Request"
108 response in the event that unmappable JSON is received.</div>
109</li>
110</ul>
111</div>
112<div class="summary">
113<ul class="blockList">
114<li class="blockList">
115<!-- ======== CONSTRUCTOR SUMMARY ======== -->
116<ul class="blockList">
117<li class="blockList"><a name="constructor_summary">
118<!--   -->
119</a>
120<h3>Constructor Summary</h3>
121<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
122<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
123<tr>
124<th class="colOne" scope="col">Constructor and Description</th>
125</tr>
126<tr class="altColor">
127<td class="colOne"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JsonMappingExceptionMapper.html#JsonMappingExceptionMapper()">JsonMappingExceptionMapper</a></strong>()</code>&nbsp;</td>
128</tr>
129</table>
130</li>
131</ul>
132<!-- ========== METHOD SUMMARY =========== -->
133<ul class="blockList">
134<li class="blockList"><a name="method_summary">
135<!--   -->
136</a>
137<h3>Method Summary</h3>
138<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
139<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
140<tr>
141<th class="colFirst" scope="col">Modifier and Type</th>
142<th class="colLast" scope="col">Method and Description</th>
143</tr>
144<tr class="altColor">
145<td class="colFirst"><code><a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/core/Response.html?is-external=true" title="class or interface in javax.ws.rs.core">Response</a></code></td>
146<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/jaxrs/JsonMappingExceptionMapper.html#toResponse(org.codehaus.jackson.map.JsonMappingException)">toResponse</a></strong>(<a href="../../../../org/codehaus/jackson/map/JsonMappingException.html" title="class in org.codehaus.jackson.map">JsonMappingException</a>&nbsp;exception)</code>&nbsp;</td>
147</tr>
148</table>
149<ul class="blockList">
150<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
151<!--   -->
152</a>
153<h3>Methods inherited from class&nbsp;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>
154<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>
155</ul>
156</li>
157</ul>
158</li>
159</ul>
160</div>
161<div class="details">
162<ul class="blockList">
163<li class="blockList">
164<!-- ========= CONSTRUCTOR DETAIL ======== -->
165<ul class="blockList">
166<li class="blockList"><a name="constructor_detail">
167<!--   -->
168</a>
169<h3>Constructor Detail</h3>
170<a name="JsonMappingExceptionMapper()">
171<!--   -->
172</a>
173<ul class="blockListLast">
174<li class="blockList">
175<h4>JsonMappingExceptionMapper</h4>
176<pre>public&nbsp;JsonMappingExceptionMapper()</pre>
177</li>
178</ul>
179</li>
180</ul>
181<!-- ============ METHOD DETAIL ========== -->
182<ul class="blockList">
183<li class="blockList"><a name="method_detail">
184<!--   -->
185</a>
186<h3>Method Detail</h3>
187<a name="toResponse(org.codehaus.jackson.map.JsonMappingException)">
188<!--   -->
189</a>
190<ul class="blockListLast">
191<li class="blockList">
192<h4>toResponse</h4>
193<pre>public&nbsp;<a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/core/Response.html?is-external=true" title="class or interface in javax.ws.rs.core">Response</a>&nbsp;toResponse(<a href="../../../../org/codehaus/jackson/map/JsonMappingException.html" title="class in org.codehaus.jackson.map">JsonMappingException</a>&nbsp;exception)</pre>
194<dl>
195<dt><strong>Specified by:</strong></dt>
196<dd><code><a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/ext/ExceptionMapper.html?is-external=true#toResponse(E)" title="class or interface in javax.ws.rs.ext">toResponse</a></code>&nbsp;in interface&nbsp;<code><a href="http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/ext/ExceptionMapper.html?is-external=true" title="class or interface in javax.ws.rs.ext">ExceptionMapper</a>&lt;<a href="../../../../org/codehaus/jackson/map/JsonMappingException.html" title="class in org.codehaus.jackson.map">JsonMappingException</a>&gt;</code></dd>
197</dl>
198</li>
199</ul>
200</li>
201</ul>
202</li>
203</ul>
204</div>
205</div>
206<!-- ========= END OF CLASS DATA ========= -->
207<!-- ======= START OF BOTTOM NAVBAR ====== -->
208<div class="bottomNav"><a name="navbar_bottom">
209<!--   -->
210</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
211<!--   -->
212</a>
213<ul class="navList" title="Navigation">
214<li><a href="../../../../overview-summary.html">Overview</a></li>
215<li><a href="package-summary.html">Package</a></li>
216<li class="navBarCell1Rev">Class</li>
217<li><a href="class-use/JsonMappingExceptionMapper.html">Use</a></li>
218<li><a href="package-tree.html">Tree</a></li>
219<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
220<li><a href="../../../../index-all.html">Index</a></li>
221<li><a href="../../../../help-doc.html">Help</a></li>
222</ul>
223</div>
224<div class="subNav">
225<ul class="navList">
226<li><a href="../../../../org/codehaus/jackson/jaxrs/JacksonJsonProvider.html" title="class in org.codehaus.jackson.jaxrs"><span class="strong">Prev Class</span></a></li>
227<li><a href="../../../../org/codehaus/jackson/jaxrs/JsonParseExceptionMapper.html" title="class in org.codehaus.jackson.jaxrs"><span class="strong">Next Class</span></a></li>
228</ul>
229<ul class="navList">
230<li><a href="../../../../index.html?org/codehaus/jackson/jaxrs/JsonMappingExceptionMapper.html" target="_top">Frames</a></li>
231<li><a href="JsonMappingExceptionMapper.html" target="_top">No Frames</a></li>
232</ul>
233<ul class="navList" id="allclasses_navbar_bottom">
234<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
235</ul>
236<div>
237<script type="text/javascript"><!--
238  allClassesLink = document.getElementById("allclasses_navbar_bottom");
239  if(window==top) {
240    allClassesLink.style.display = "block";
241  }
242  else {
243    allClassesLink.style.display = "none";
244  }
245  //-->
246</script>
247</div>
248<div>
249<ul class="subNavList">
250<li>Summary:&nbsp;</li>
251<li>Nested&nbsp;|&nbsp;</li>
252<li>Field&nbsp;|&nbsp;</li>
253<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
254<li><a href="#method_summary">Method</a></li>
255</ul>
256<ul class="subNavList">
257<li>Detail:&nbsp;</li>
258<li>Field&nbsp;|&nbsp;</li>
259<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
260<li><a href="#method_detail">Method</a></li>
261</ul>
262</div>
263<a name="skip-navbar_bottom">
264<!--   -->
265</a></div>
266<!-- ======== END OF BOTTOM NAVBAR ======= -->
267</body>
268</html>
269