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 Stringencode(String x)protected voiderror(String x)edu.uiuc.ncsa.security.core.util.MyLoggingFacadegetLogger()voidhandleException(edu.uiuc.ncsa.security.servlet.ExceptionHandlerThingie xh)protected voidhandleOA2Error(org.oa4mp.delegation.server.OA2ATException oa2ATException, javax.servlet.http.HttpServletResponse response)protected voidhandleOA2Error(org.oa4mp.delegation.server.OA2GeneralError oa2GeneralError, javax.servlet.http.HttpServletResponse response)protected voidhandleOA2Error(org.oa4mp.delegation.server.OA2JSONException jsonException, javax.servlet.http.HttpServletResponse response)protected voidhandleOA2Error(org.oa4mp.delegation.server.OA2RedirectableError oa2RedirectableError, javax.servlet.http.HttpServletResponse response)protected voidinfo(String x)protected voidwarn(String x)
-
-
-
Method Detail
-
getLogger
public edu.uiuc.ncsa.security.core.util.MyLoggingFacade getLogger()
- Specified by:
getLoggerin 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:
handleExceptionin interfaceedu.uiuc.ncsa.security.servlet.ExceptionHandler- Throws:
IOExceptionjavax.servlet.ServletException
-
encode
protected String encode(String x) throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
handleOA2Error
protected void handleOA2Error(org.oa4mp.delegation.server.OA2GeneralError oa2GeneralError, javax.servlet.http.HttpServletResponse response) throws IOException- Throws:
IOException
-
handleOA2Error
protected void handleOA2Error(org.oa4mp.delegation.server.OA2JSONException jsonException, javax.servlet.http.HttpServletResponse response) throws IOException- Throws:
IOException
-
handleOA2Error
protected void handleOA2Error(org.oa4mp.delegation.server.OA2ATException oa2ATException, javax.servlet.http.HttpServletResponse response) throws IOException- Throws:
IOException
-
handleOA2Error
protected void handleOA2Error(org.oa4mp.delegation.server.OA2RedirectableError oa2RedirectableError, javax.servlet.http.HttpServletResponse response) throws IOException- Throws:
IOException
-
-