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 年前3Spring Framwork Web on Reactive Stack v5.3.36 SNAPSHOT
as Publisher) can produce data that an HTTP server (acting as Subscriber) can then write to the response. The 2 main purpose of Reactive Streams is to let the subscriber control how quickly or how slowly deserialization of HTTP request and response content. 1.2.1. HttpHandler HttpHandler is a simple contract with a single method to handle a request and a response. It is intentionally minimal, and its ResponseStatusExceptionHandler Provides handling for exceptions of type ResponseStatusException by setting the response to the HTTP status code of the exception. WebFluxResponseStatusException Handler Extension of0 码力 | 182 页 | 2.52 MB | 1 年前3Spring Framwork Web on Servlet Stack v5.3.36 SNAPSHOT
logical String-based view names returned from a handler to an actual View with which to render to the response. See View Resolution and View Technologies. LocaleResolver, LocaleContextResolver Resolve the controllers) is run to prepare a model for rendering. Alternatively, for annotated controllers, the response can be rendered (within the HandlerAdapter) instead of returning a view. • If a model is returned as any others. By default, this is set to false, in which case the DispatcherServlet sets the response status to 404 (NOT_FOUND) without raising an exception. Note that, if default servlet handling0 码力 | 259 页 | 3.58 MB | 1 年前3跟我学Shiro - 张开涛
ServletResponse response) throws Exception void postHandle(ServletRequest request, ServletResponse response) throws Exception void afterCompletion(ServletRequest request, ServletResponse response, Exception onPreHandle(ServletRequest request, ServletResponse response, Object mappedValue) throws Exception abstract boolean isAccessAllowed(ServletRequest request, ServletResponse response, Object mappedValue) throws Exception; quest request, ServletResponse response, Object mappedValue) throws Exception; abstract boolean onAccessDenied(ServletRequest request, ServletResponse response) throws Exception; 跟我学 Shir0 码力 | 219 页 | 4.16 MB | 10 月前3Apache ActiveMQ Artemis 1.2.0 User Manual
tight relationship between requests and responses. Most messaging systems also support a request-response mode but this is not a primary feature of messaging systems. Designing systems to be asynchronous to use your network bandwidth to its full capacity. With an RPC approach you have to wait for a response for each request you make so are limited by the network round trip time, or latency of your network that sent messages have reached the server without having to block on each message sent until a response is received. Blocking on each messages sent is costly since it requires a network round trip for0 码力 | 244 页 | 1.46 MB | 1 年前3Apache ActiveMQ Artemis 1.3.0 User Manual
tight relationship between requests and responses. Most messaging systems also support a request-response mode but this is not a primary feature of messaging systems. Designing systems to be asynchronous to use your network bandwidth to its full capacity. With an RPC approach you have to wait for a response for each request you make so are limited by the network round trip time, or latency of your network that sent messages have reached the server without having to block on each message sent until a response is received. Blocking on each messages sent is costly since it requires a network round trip for0 码力 | 247 页 | 1.47 MB | 1 年前3Apache ActiveMQ Artemis 1.1.0 User Manual
tight relationship between requests and responses. Most messaging systems also support a request-response mode but this is not a primary feature of messaging systems. Designing systems to be asynchronous to use your network bandwidth to its full capacity. With an RPC approach you have to wait for a response for each request you make so are limited by the network round trip time, or latency of your network that sent messages have reached the server without having to block on each message sent until a response is received. Blocking on each messages sent is costly since it requires a network round trip for0 码力 | 234 页 | 1.40 MB | 1 年前3Apache ActiveMQ Artemis 2.4.0 User Manual
tight relationship between requests and responses. Most messaging systems also support a request-response mode but this is not a primary feature of messaging systems. Designing systems to be asynchronous to use your network bandwidth to its full capacity. With an RPC approach you have to wait for a response for each request you make so are limited by the network round trip time, or latency of your network that sent messages have reached the server without having to block on each message sent until a response is received. Blocking on each messages sent is costly since it requires a network round trip for0 码力 | 265 页 | 2.84 MB | 1 年前3Apache ActiveMQ Artemis 2.3.0 User Manual
tight relationship between requests and responses. Most messaging systems also support a request- response mode but this is not a primary feature of messaging systems. Designing systems to be asynchronous to use your network bandwidth to its full capacity. With an RPC approach you have to wait for a response for each request you make so are limited by the network round trip time, or latency of your network messages have reached the server without having Using Core 65 to block on each message sent until a response is received. Blocking on each messages sent is costly since it requires a network round trip for0 码力 | 420 页 | 3.03 MB | 1 年前3Apache Wicket 10.x Reference Guide
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 9.2. Request and Response classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . abstraction for web pages and we still have to take care of web-related tasks such as HTTP request/response handling, URL mapping, storing data into user sessions and so on. The biggest limit of MVC frameworks MarkupStream parameter which represents the page markup stream that will be sent back to the client as response. onComponentTagBody can be used in combination with the Component's method replaceComponentTagBody0 码力 | 336 页 | 7.16 MB | 1 年前3
共 387 条
- 1
- 2
- 3
- 4
- 5
- 6
- 39