资源简介

最近刚做了易宝支付,这是从官网下载到的最新的接口文档和demo示例,有需要的可以直接拿走。

资源截图

代码片段和文件信息

package com.filter;

import java.util.ResourceBundle;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

public class ViewInterceptor extends HandlerInterceptorAdapter {

@Override
public boolean preHandle(HttpServletRequest request
HttpServletResponse response object handler) throws Exception {

ResourceBundle resb1 = ResourceBundle.getBundle(“payapi“);
String password = resb1.getString(“password“);

String s = (String) request.getSession().getAttribute(“yj_wappay“);
if (s != null) {
if (s.equals(password)) {
System.out.println(“可以查看“);
return true;
}
}
System.out.println(“不能查看“);
response.sendRedirect(request.getContextPath() + “/“);
return false;
}

@Override
public void postHandle(HttpServletRequest request
HttpServletResponse response object handler
ModelAndView modelAndView) throws Exception {
System.out.println(“===========HandlerInterceptor1 postHandle“);
}

@Override
public void afterCompletion(HttpServletRequest request
HttpServletResponse response object handler Exception ex)
throws Exception {
System.out.println(“===========HandlerInterceptor1 afterCompletion“);
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2014-04-10 10:46  yjpay-java-demo\
     文件        2797  2014-04-04 18:36  yjpay-java-demo\.classpath
     文件        6148  2014-04-10 10:24  yjpay-java-demo\.DS_Store
     目录           0  2014-04-10 10:46  __MACOSX\
     目录           0  2014-04-10 10:46  __MACOSX\yjpay-java-demo\
     文件          82  2014-04-10 10:24  __MACOSX\yjpay-java-demo\._.DS_Store
     文件        1014  2014-04-04 18:36  yjpay-java-demo\.project
     目录           0  2014-04-10 10:46  yjpay-java-demo\.settings\
     文件         491  2014-04-04 18:36  yjpay-java-demo\.settings\.jsdtscope
     文件         387  2014-04-04 18:36  yjpay-java-demo\.settings\org.eclipse.jdt.core.prefs
     文件         765  2014-04-04 18:36  yjpay-java-demo\.settings\org.eclipse.wst.common.component
     文件         296  2014-04-04 18:36  yjpay-java-demo\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2014-04-04 18:36  yjpay-java-demo\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2014-04-04 18:36  yjpay-java-demo\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2014-04-04 18:36  yjpay-java-demo\build\
     目录           0  2014-04-04 18:42  yjpay-java-demo\build\classes\
     文件        1820  2014-04-04 18:36  yjpay-java-demo\build\classes\applicationContext.xml
     目录           0  2014-04-04 18:42  yjpay-java-demo\build\classes\com\
     目录           0  2014-04-04 18:42  yjpay-java-demo\build\classes\com\filter\
     文件        2680  2014-04-04 18:42  yjpay-java-demo\build\classes\com\filter\ViewInterceptor.class
     目录           0  2014-04-04 18:42  yjpay-java-demo\build\classes\com\util\
     目录           0  2014-04-04 18:42  yjpay-java-demo\build\classes\com\util\common\
     文件        1067  2014-04-04 18:42  yjpay-java-demo\build\classes\com\util\common\RandomUtil.class
     文件        4570  2014-04-04 18:42  yjpay-java-demo\build\classes\com\util\common\YJPayUtil.class
     目录           0  2014-04-04 18:42  yjpay-java-demo\build\classes\com\util\encrypt\
     文件        3636  2014-04-04 18:42  yjpay-java-demo\build\classes\com\util\encrypt\AES.class
     文件        7971  2014-04-04 18:42  yjpay-java-demo\build\classes\com\util\encrypt\base64.class
     文件        1428  2014-04-04 18:42  yjpay-java-demo\build\classes\com\util\encrypt\CheckUtils.class
     文件         533  2014-04-04 18:42  yjpay-java-demo\build\classes\com\util\encrypt\ConfigureEncryptAndDecrypt.class
     文件        9808  2014-04-04 18:42  yjpay-java-demo\build\classes\com\util\encrypt\ConvertUtils.class
     文件        3896  2014-04-04 18:42  yjpay-java-demo\build\classes\com\util\encrypt\Digest.class
............此处省略233个文件信息

评论

共有 条评论