Play-关于java开发的主要概念

这一节向你介绍了java编写一个Play应用程序中最常见的问题。了解关于 处理HTTP请求,发送HTTP响应,处理不同类型的数据,使用数据库等等。

Note:关于 Play APIs,java和Scala是分离开的两个不同的package。所有的 Java APIs 在 play 包下,所有的 Scala APIs 在 play.api 包下。例如,Java MVC API 在play.mcv 包中,Scala MVC API 在 play.api.mvc 包中。

HTTP 编程

  1. Actions, Controllers 和 Results
  2. HTTP路由
  3. 操作HTTP响应
  4. Session and Flash scopes
  5. Body parsers
  6. Actions composition
  7. HTTP Request Handlers / ActionCreator
  8. Content negotiation

异步 HTTP 编程

  1. Handing asynchronous results
  2. Streaming HTTP responses
  3. Comet
  4. WebSockets

Twirl 模版引擎

  1. Templates syntax
  2. Common use cases
  3. Custom formats

表单的提交和验证

  1. Form definitions
  2. Using the form template helpers
  3. Protecting against CSRF

Json的使用

  1. Handing and serving JSON

XML的使用

  1. Handing and serving XML requests

处理文件上传

  1. Direct upload and multipart/form-data

访问 SQL 数据库

  1. Configuring and using JDBC
  2. Integrating with JPA
  3. Using Ebean ORM

Cache 的使用

  1. Using the Cache

调用 Webservice

  1. The Play WS API
  2. Connecting to OpenID services
  3. Accessing resources protected by OAuth

整合 Akka

  1. Integrating with Akka

国际化

  1. Internationalization

依赖注入

  1. Dependency Injection with Guice

应用设置

  1. Application settings
  2. Essential Actions
  3. HTTP filters
  4. Error handing
  5. Global settings

测试你的应用

  1. Writing tests
  2. Writing functional tests
  3. Testing with Guice
  4. Testing with databases
  5. Testing web service clients

日志

  1. Logging
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容