Class AbstractJavaScriptRedirectWeChatService
- java.lang.Object
-
- org.oxerr.spring.security.wechat.web.authentication.AbstractSimpleRedirectWeChatService
-
- org.oxerr.spring.security.wechat.web.authentication.AbstractJavaScriptRedirectWeChatService
-
- All Implemented Interfaces:
WeChatService
,org.springframework.beans.factory.Aware
,org.springframework.context.MessageSourceAware
public abstract class AbstractJavaScriptRedirectWeChatService extends AbstractSimpleRedirectWeChatService implements org.springframework.context.MessageSourceAware
-
-
Constructor Summary
Constructors Constructor Description AbstractJavaScriptRedirectWeChatService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private String
generateRedirectionPageHtml(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.void
setMessageSource(org.springframework.context.MessageSource messageSource)
-
Methods inherited from class org.oxerr.spring.security.wechat.web.authentication.AbstractSimpleRedirectWeChatService
getAuthorizationURL
-
-
-
-
Field Detail
-
messages
protected org.springframework.context.support.MessageSourceAccessor messages
-
template
private final String template
-
-
Method Detail
-
setMessageSource
public void setMessageSource(org.springframework.context.MessageSource messageSource)
- Specified by:
setMessageSource
in interfaceorg.springframework.context.MessageSourceAware
-
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
- Overrides:
redirectToAuthorize
in classAbstractSimpleRedirectWeChatService
- Parameters:
request
- the HTTP request.response
- the HTTP response.- Throws:
javax.servlet.ServletException
- indicates servlet exception.IOException
- indicates I/O exception.
-
generateRedirectionPageHtml
private String generateRedirectionPageHtml(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
- Throws:
javax.servlet.ServletException
IOException
-
-