Class WeChatServiceImpl
- java.lang.Object
-
- org.oxerr.spring.security.wechat.web.authentication.AbstractSimpleRedirectWeChatService
-
- org.oxerr.spring.security.wechat.web.authentication.AbstractJavaScriptRedirectWeChatService
-
- org.oxerr.spring.security.wechat.samples.helloworld.service.impl.WeChatServiceImpl
-
- All Implemented Interfaces:
WeChatService,org.springframework.beans.factory.Aware,org.springframework.context.MessageSourceAware
@Service public class WeChatServiceImpl extends AbstractJavaScriptRedirectWeChatService
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.logging.log4j.Loggerlogprivate com.foxinmy.weixin4j.mp.api.OauthApioauthApiprivate WeChatPropertiesweChatProperties-
Fields inherited from class org.oxerr.spring.security.wechat.web.authentication.AbstractJavaScriptRedirectWeChatService
messages
-
-
Constructor Summary
Constructors Constructor Description WeChatServiceImpl(WeChatProperties weChatProperties, com.foxinmy.weixin4j.mp.api.OauthApi oauthApi)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAuthorizationURL(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)private StringgetRedirectUri(javax.servlet.http.HttpServletRequest request)-
Methods inherited from class org.oxerr.spring.security.wechat.web.authentication.AbstractJavaScriptRedirectWeChatService
redirectToAuthorize, setMessageSource
-
-
-
-
Field Detail
-
log
private final org.apache.logging.log4j.Logger log
-
weChatProperties
private WeChatProperties weChatProperties
-
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:
getAuthorizationURLin classAbstractSimpleRedirectWeChatService- Throws:
javax.servlet.ServletExceptionIOException
-
getRedirectUri
private String getRedirectUri(javax.servlet.http.HttpServletRequest request)
-
-