org.ogf.graap.wsag.api.rest.providers
Class ServiceExceptionMapper

java.lang.Object
  extended by org.ogf.graap.wsag.api.rest.providers.ServiceExceptionMapper
All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<WSAgreementException>, org.apache.cxf.jaxrs.client.ResponseExceptionMapper<WSAgreementException>

public class ServiceExceptionMapper
extends Object
implements javax.ws.rs.ext.ExceptionMapper<WSAgreementException>, org.apache.cxf.jaxrs.client.ResponseExceptionMapper<WSAgreementException>

Author:
owaeld

Field Summary
static String META_EC_HEADER
           
static String META_EM_HEADER
           
 
Constructor Summary
ServiceExceptionMapper()
           
 
Method Summary
 WSAgreementException fromResponse(javax.ws.rs.core.Response r)
          
 javax.ws.rs.core.Response toResponse(WSAgreementException exception)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

META_EC_HEADER

public static final String META_EC_HEADER
See Also:
Constant Field Values

META_EM_HEADER

public static final String META_EM_HEADER
See Also:
Constant Field Values
Constructor Detail

ServiceExceptionMapper

public ServiceExceptionMapper()
Method Detail

toResponse

public javax.ws.rs.core.Response toResponse(WSAgreementException exception)

Specified by:
toResponse in interface javax.ws.rs.ext.ExceptionMapper<WSAgreementException>
See Also:
ExceptionMapper.toResponse(java.lang.Throwable)

fromResponse

public WSAgreementException fromResponse(javax.ws.rs.core.Response r)

Specified by:
fromResponse in interface org.apache.cxf.jaxrs.client.ResponseExceptionMapper<WSAgreementException>
See Also:
ResponseExceptionMapper.fromResponse(javax.ws.rs.core.Response)


Copyright © 2008-2012. All Rights Reserved.