Class OA2ExceptionHandler
- java.lang.Object
-
- org.oa4mp.server.loader.oauth2.servlet.OA2ExceptionHandler
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.servlet.ExceptionHandler
- Direct Known Subclasses:
DIServiceExceptionHandler
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)
protected void
error(String x)
edu.uiuc.ncsa.security.core.util.MyLoggingFacade
getLogger()
void
handleException(edu.uiuc.ncsa.security.servlet.ExceptionHandlerThingie xh)
protected void
handleOA2Error(OA2ATException oa2ATException, javax.servlet.http.HttpServletResponse response)
protected void
handleOA2Error(OA2GeneralError oa2GeneralError, javax.servlet.http.HttpServletResponse response)
protected void
handleOA2Error(OA2JSONException jsonException, javax.servlet.http.HttpServletResponse response)
protected void
handleOA2Error(OA2RedirectableError oa2RedirectableError, javax.servlet.http.HttpServletResponse response)
protected void
info(String x)
protected void
warn(String x)
-
-
-
Method Detail
-
getLogger
public edu.uiuc.ncsa.security.core.util.MyLoggingFacade getLogger()
- Specified by:
getLogger
in interfaceedu.uiuc.ncsa.security.servlet.ExceptionHandler
-
warn
protected void warn(String x)
-
info
protected void info(String x)
-
error
protected void error(String x)
-
handleException
public void handleException(edu.uiuc.ncsa.security.servlet.ExceptionHandlerThingie xh) 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(OA2JSONException jsonException, 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
-
-