Java EE 企业应用系统开发 - HTTP 响应处理编程
响应对象 响应对象功能和方法 HTTP 响应的内容 在 Web 服务器接收请求处理后,向客户端发送 HTTP 响应 (Response)。 O 响应的内容 ▶ 响应状态(Status Code) ▶ 响应头(Response Header) ▶ 响应体(Response Body) 大纲 HTTP 响应的内容 HTTP 响应对象 响应对象功能和方法 HTTP 响应状态行 表明响应的状态信息,如成功、失败、错误。 向客户端发送指定的错误信息码,可以是任意定义的整数。 1 response.setCharacterEncoding("GBK"); 2 response.sendError(580); O public void sendError(int sc, String msg) throws IOException 向客户端发送指定的错误信息码和自定义状态消息。 1 response.setCharacterEncoding("GBK"); setCharacterEncoding("GBK"); 2 response.sendError(580, "自定义错误"); 大纲 HTTP 响应的内容 HTTP 响应对象 响应对象功能和方法 设置响应头 当客户端接收到响应状态为 200 时,浏览器会继续接收响应头信 息,来确定响应体的类型和大小。 O public void setHeader(String name, String value) 将指定名称和值的响应头发送到客户端。0 码力 | 26 页 | 575.28 KB | 1 年前3Java 应用与开发 - 异常处理
0 码力 | 33 页 | 626.40 KB | 1 年前3Java EE 企业应用系统设计 - HTTP 请求处理编程
0 码力 | 27 页 | 565.27 KB | 1 年前3Spring Framwork Web on Reactive Stack v5.3.36 SNAPSHOT
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 1.3.4. Result Handling. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 Form Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 182 页 | 2.52 MB | 1 年前3Spring Framwork Web on Servlet Stack v5.3.36 SNAPSHOT
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 Exception Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135 Form Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 259 页 | 3.58 MB | 1 年前3Spring Framework Reference Documentation v4.3.2
access Package hierarchy Using the JDBC core classes to control basic JDBC processing and error handling JdbcTemplate Examples of JdbcTemplate class usage Querying (SELECT) Updating (INSERT/UPDATE/DELETE) problems with parameter and data value handling Providing SQL type information for parameters Handling BLOB and CLOB objects Passing in lists of values for IN clause Handling complex types for stored procedure parameters with @RequestParam Mapping the request body with the @RequestBody annotation Mapping the response body with the @ResponseBody annotation Creating REST Controllers with the @RestController annotation0 码力 | 1311 页 | 4.07 MB | 1 年前3Spring Framework Reference Documentation 4.3.26.RELEASE
access Package hierarchy Using the JDBC core classes to control basic JDBC processing and error handling JdbcTemplate Examples of JdbcTemplate class usage Querying (SELECT) Updating (INSERT/UPDATE/DELETE) problems with parameter and data value handling Providing SQL type information for parameters Handling BLOB and CLOB objects Passing in lists of values for IN clause Handling complex types for stored procedure parameters with @RequestParam Mapping the request body with the @RequestBody annotation Mapping the response body with the @ResponseBody annotation Creating REST Controllers with the @RestController annotation0 码力 | 1323 页 | 4.08 MB | 1 年前3Spring Framework Reference Documentation v4.3.2
Spring Framework xiv 19.2. Using the JDBC core classes to control basic JDBC processing and error handling ............................................................................................... parameter and data value handling .............................. 430 Providing SQL type information for parameters ................................................. 430 Handling BLOB and CLOB objects . lists of values for IN clause ............................................................ 432 Handling complex types for stored procedure calls ........................................... 432 19.8.0 码力 | 907 页 | 5.46 MB | 1 年前3Spring Framework Reference Documentation 4.3.26.RELEASE
.............. 409 19.2. Using the JDBC core classes to control basic JDBC processing and error handling ............................................................................................... parameter and data value handling .............................. 438 Providing SQL type information for parameters ................................................. 438 Handling BLOB and CLOB objects . lists of values for IN clause ............................................................ 440 Handling complex types for stored procedure calls ........................................... 440 19.8.0 码力 | 916 页 | 5.52 MB | 1 年前3Spring Framwork Integration v5.3.36 SNAPSHOT
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 4.5.4. Response Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . POST and returns the Location header from the response. postForObject Creates a new resource by using POST and returns the representation from the response. postForEntity Creates a new resource by using representation from the response. put Creates or updates a resource by using PUT. patchForObject Updates a resource by using PATCH and returns the representation from the response. Note that the JDK HttpURLConnection0 码力 | 141 页 | 2.13 MB | 1 年前3
共 391 条
- 1
- 2
- 3
- 4
- 5
- 6
- 40