Class WeChatServiceImpl

  • All Implemented Interfaces:
    org.oxerr.spring.security.wechat.web.authentication.WeChatService, org.springframework.beans.factory.Aware, org.springframework.context.MessageSourceAware

    @Service
    public class WeChatServiceImpl
    extends org.oxerr.spring.security.wechat.web.authentication.AbstractJavaScriptRedirectWeChatService
    • Field Detail

      • log

        private final org.apache.logging.log4j.Logger log
      • oauthApi

        private com.foxinmy.weixin4j.mp.api.OauthApi oauthApi
    • Constructor Detail

      • WeChatServiceImpl

        @Autowired
        public WeChatServiceImpl​(WeChatProperties weChatProperties,
                                 com.foxinmy.weixin4j.mp.api.OauthApi oauthApi)
    • Method Detail

      • getAuthorizationURL

        public String getAuthorizationURL​(javax.servlet.http.HttpServletRequest request,
                                          javax.servlet.http.HttpServletResponse response)
                                   throws javax.servlet.ServletException,
                                          IOException
        Specified by:
        getAuthorizationURL in class org.oxerr.spring.security.wechat.web.authentication.AbstractSimpleRedirectWeChatService
        Throws:
        javax.servlet.ServletException
        IOException
      • getRedirectUri

        private String getRedirectUri​(javax.servlet.http.HttpServletRequest request)