Class AbstractSimpleRedirectWeChatService
- java.lang.Object
-
- org.oxerr.spring.security.wechat.web.authentication.AbstractSimpleRedirectWeChatService
-
- All Implemented Interfaces:
WeChatService
- Direct Known Subclasses:
AbstractJavaScriptRedirectWeChatService
public abstract class AbstractSimpleRedirectWeChatService extends Object implements WeChatService
-
-
Constructor Summary
Constructors Constructor Description AbstractSimpleRedirectWeChatService()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract String
getAuthorizationURL(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
void
redirectToAuthorize(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Redirect to WeChat server to authorize.
-
-
-
Method Detail
-
redirectToAuthorize
public void redirectToAuthorize(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
Redirect to WeChat server to authorize.- Specified by:
redirectToAuthorize
in interfaceWeChatService
- Parameters:
request
- the HTTP request.response
- the HTTP response.- Throws:
javax.servlet.ServletException
- indicates servlet exception.IOException
- indicates I/O exception.
-
getAuthorizationURL
public abstract String getAuthorizationURL(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
- Throws:
javax.servlet.ServletException
IOException
-
-