为Servlet添加支持REST式URL ServletREST
- 授权协议: Apache
- 开发语言: Java
- 操作系统: 跨平台
- 软件首页: http://code.google.com/p/servletrest/
软件介绍
为Servlet添加支持REST式URL: 不改变习惯,仅仅在servlet内部完成doGet, doPost,doDelete,doPut等方法即可映射到较为复杂的REST URL
eg:
/book/head first java/
对应的URL表达式为:
/book/*/
/book/head first java/chapter/1
对应的URL表达式为:
/book/*/chapter/*
您所要做的: 仅仅需要在web.xml中配置一个filter 仅仅需要在集成HttpServlet添加一个注解(eg:@RestSupport("/book/*/chapter/*"))
下面附加一个使用示范:
@RestSupport("/book/*/chapter/*")
public class ChapterServlet extends HttpServlet {
private static final long serialVersionUID = -1534235656L;
protected void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
// code here ...
}
protected void doPost(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
// code here ...
}
protected void doPut(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
// code here ...
}
protected void doDelete(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
// code here ...
}
}
算法交易与套利交易
赵胜民 / 厦门大学出版社 / 2010-9 / 35.00元
《算法交易与套利交易》主要介绍算法交易和一些套利交易的策略,以便于读者对相关方面的内容进行阅读和学习。在《算法交易与套利交易》的第一部分,我们回顾了投资学一些相关的基本内容。其中,前两章介绍了证券投资的收益和风险等特征,以及马可维茨的最优资产配置模型。第3章则介绍了股票投资分析当中常用的资本资产定价模型(CAPM)、套利定价模型(APT),以及因素模型。然后,第4、5章分别讲到了金融证券估值模型、......一起来看看 《算法交易与套利交易》 这本书的介绍吧!
