org.jboss.jbossts.star.provider
Class HttpResponseMapper

java.lang.Object
  extended by org.jboss.jbossts.star.provider.HttpResponseMapper
All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<HttpResponseException>

@Provider
public class HttpResponseMapper
extends Object
implements javax.ws.rs.ext.ExceptionMapper<HttpResponseException>

Maps an HttpResponseException to the HTTP code embedded in the exception


Constructor Summary
HttpResponseMapper()
           
 
Method Summary
 javax.ws.rs.core.Response toResponse(HttpResponseException exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpResponseMapper

public HttpResponseMapper()
Method Detail

toResponse

public javax.ws.rs.core.Response toResponse(HttpResponseException exception)
Specified by:
toResponse in interface javax.ws.rs.ext.ExceptionMapper<HttpResponseException>


Copyright © 2012. All Rights Reserved.