Class PermissionResponseErrorHandler
- java.lang.Object
-
- com.totvs.tjf.security.interceptor.PermissionResponseErrorHandler
-
- All Implemented Interfaces:
org.springframework.web.client.ResponseErrorHandler
public class PermissionResponseErrorHandler extends Object implements org.springframework.web.client.ResponseErrorHandler
ReturnsHttpClientPermissionErrorException
with the status code according to the code contained inClientHttpResponse
.- Author:
- Marcos Paulo dos Santos
- See Also:
ClientHttpResponse
,HttpClientPermissionErrorException
-
-
Constructor Summary
Constructors Constructor Description PermissionResponseErrorHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleError(org.springframework.http.client.ClientHttpResponse response)
boolean
hasError(org.springframework.http.client.ClientHttpResponse response)
-
-
-
Method Detail
-
handleError
public void handleError(org.springframework.http.client.ClientHttpResponse response) throws IOException
- Specified by:
handleError
in interfaceorg.springframework.web.client.ResponseErrorHandler
- Throws:
IOException
-
hasError
public boolean hasError(org.springframework.http.client.ClientHttpResponse response) throws IOException
- Specified by:
hasError
in interfaceorg.springframework.web.client.ResponseErrorHandler
- Throws:
IOException
-
-