Class AbstractJavaScriptRedirectWeChatService

  • All Implemented Interfaces:
    WeChatService, org.springframework.beans.factory.Aware, org.springframework.context.MessageSourceAware
    Direct Known Subclasses:
    WeChatServiceImpl

    public abstract class AbstractJavaScriptRedirectWeChatService
    extends AbstractSimpleRedirectWeChatService
    implements org.springframework.context.MessageSourceAware
    • Field Detail

      • messages

        protected org.springframework.context.support.MessageSourceAccessor messages
      • template

        private final String template
    • Constructor Detail

      • AbstractJavaScriptRedirectWeChatService

        public AbstractJavaScriptRedirectWeChatService()
    • Method Detail

      • setMessageSource

        public void setMessageSource​(org.springframework.context.MessageSource messageSource)
        Specified by:
        setMessageSource in interface org.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 interface WeChatService
        Overrides:
        redirectToAuthorize in class AbstractSimpleRedirectWeChatService
        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