Class OA2ExceptionHandler
- java.lang.Object
-
- org.oa4mp.server.loader.oauth2.servlet.OA2ExceptionHandler
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.servlet.ExceptionHandler
public class OA2ExceptionHandler extends Object implements edu.uiuc.ncsa.security.servlet.ExceptionHandler
Created by Jeff Gaynor
on 2/12/15 at 3:16 PM
-
-
Constructor Summary
Constructors Constructor Description OA2ExceptionHandler(edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
encode(String x)
edu.uiuc.ncsa.security.core.util.MyLoggingFacade
getLogger()
void
handleException(Throwable t, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected void
handleOA2Error(OA2ATException oa2ATException, javax.servlet.http.HttpServletResponse response)
protected void
handleOA2Error(OA2GeneralError oa2GeneralError, javax.servlet.http.HttpServletResponse response)
protected void
handleOA2Error(OA2RedirectableError oa2RedirectableError, javax.servlet.http.HttpServletResponse response)
-
-
-
Method Detail
-
getLogger
public edu.uiuc.ncsa.security.core.util.MyLoggingFacade getLogger()
- Specified by:
getLogger
in interfaceedu.uiuc.ncsa.security.servlet.ExceptionHandler
-
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
- Throws:
IOException
javax.servlet.ServletException
-
encode
protected String encode(String x) throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
handleOA2Error
protected void handleOA2Error(OA2GeneralError oa2GeneralError, javax.servlet.http.HttpServletResponse response) throws IOException
- Throws:
IOException
-
handleOA2Error
protected void handleOA2Error(OA2ATException oa2ATException, javax.servlet.http.HttpServletResponse response) throws IOException
- Throws:
IOException
-
handleOA2Error
protected void handleOA2Error(OA2RedirectableError oa2RedirectableError, javax.servlet.http.HttpServletResponse response) throws IOException
- Throws:
IOException
-
-