Class OA2ClientExceptionHandler
- java.lang.Object
-
- org.oa4mp.client.api.servlet.ClientExceptionHandler
-
- org.oa4mp.client.loader.servlet.OA2ClientExceptionHandler
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.servlet.ExceptionHandler
public class OA2ClientExceptionHandler extends ClientExceptionHandler
Created by Jeff Gaynor
on 2/12/15 at 1:16 PM
-
-
Field Summary
-
Fields inherited from class edu.uiuc.ncsa.myproxy.oa4mp.client.servlet.ClientExceptionHandler
clientServlet
-
-
Constructor Summary
Constructors Constructor Description OA2ClientExceptionHandler(ClientServlet clientServlet, edu.uiuc.ncsa.security.core.util.MyLoggingFacade myLogger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
defaultSCXresponse(edu.uiuc.ncsa.security.servlet.ServiceClientHTTPException tt, javax.servlet.http.HttpServletRequest request)
Used in cases the response from the server cannot be parsed.void
handleException(Throwable t, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected void
parseContent(String content, javax.servlet.http.HttpServletRequest request)
This will parse the standard error reponse from an OIDC server.-
Methods inherited from class edu.uiuc.ncsa.myproxy.oa4mp.client.servlet.ClientExceptionHandler
getLogger, getNormalizedContextPath
-
-
-
-
Constructor Detail
-
OA2ClientExceptionHandler
public OA2ClientExceptionHandler(ClientServlet clientServlet, edu.uiuc.ncsa.security.core.util.MyLoggingFacade myLogger)
-
-
Method Detail
-
handleException
public void handleException(Throwable t, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
- Specified by:
handleException
in interfaceedu.uiuc.ncsa.security.servlet.ExceptionHandler
- Overrides:
handleException
in classClientExceptionHandler
- Throws:
IOException
javax.servlet.ServletException
-
parseContent
protected void parseContent(String content, javax.servlet.http.HttpServletRequest request)
This will parse the standard error reponse from an OIDC server.- Parameters:
content
-request
-
-
defaultSCXresponse
protected void defaultSCXresponse(edu.uiuc.ncsa.security.servlet.ServiceClientHTTPException tt, javax.servlet.http.HttpServletRequest request)
Used in cases the response from the server cannot be parsed.- Parameters:
tt
-request
-
-
-