接口的使用
org.springframework.http.HttpMessage
使用HttpMessage的程序包 程序包 说明 org.springframework.http Contains a basic abstraction over client/server-side HTTP.org.springframework.http.client Contains an abstraction over client-side HTTP.org.springframework.http.client.reactive Abstractions for reactive HTTP client support includingClientHttpRequestandClientHttpResponseas well as aClientHttpConnector.org.springframework.http.client.support This package provides generic HTTP support classes, to be used by higher-level classes like RestTemplate.org.springframework.http.codec org.springframework.http.converter.json Provides HttpMessageConverter implementations for handling JSON.org.springframework.http.server Contains an abstraction over server-side HTTP.org.springframework.http.server.reactive Abstractions for reactive HTTP server support including aServerHttpRequestandServerHttpResponsealong with anHttpHandlerfor processing.org.springframework.mock.http Mock implementations of client/server-side HTTP abstractions.org.springframework.mock.http.client Mock implementations of client-side HTTP abstractions.org.springframework.mock.http.client.reactive Mock implementations of reactive HTTP client contracts.org.springframework.mock.http.server.reactive Mock implementations of reactive HTTP server contracts.org.springframework.web.multipart.support Support classes for the multipart resolution framework.org.springframework.http中HttpMessage的使用
org.springframework.http中HttpMessage的子接口 修饰符和类型 接口 说明 interfaceHttpInputMessageinterfaceHttpOutputMessageinterfaceHttpRequestinterfaceReactiveHttpInputMessageAn "reactive" HTTP input message that exposes the input asPublisher.interfaceReactiveHttpOutputMessageA "reactive" HTTP output message that accepts output as aPublisher.interfaceStreamingHttpOutputMessageRepresents an HTTP output message that allows for setting a streaming body.interfaceZeroCopyHttpOutputMessageSub-interface ofReactiveOutputMessagethat has support for "zero-copy" file transfers.org.springframework.http.client中HttpMessage的使用
org.springframework.http.client中HttpMessage的子接口 修饰符和类型 接口 说明 interfaceAsyncClientHttpRequest已过时。as of Spring 5.0, in favor ofClientRequestinterfaceClientHttpRequestRepresents a client-side HTTP request.interfaceClientHttpResponseRepresents a client-side HTTP response.实现HttpMessage的org.springframework.http.client中的类 修饰符和类型 类 说明 classAbstractClientHttpRequestAbstract base forClientHttpRequestthat makes sure that headers and body are not written multiple times.classAbstractClientHttpResponseAbstract base forClientHttpResponse.org.springframework.http.client.reactive中HttpMessage的使用
org.springframework.http.client.reactive中HttpMessage的子接口 修饰符和类型 接口 说明 interfaceClientHttpRequestRepresents a client-side reactive HTTP request.interfaceClientHttpResponseRepresents a client-side reactive HTTP response.实现HttpMessage的org.springframework.http.client.reactive中的类 修饰符和类型 类 说明 classAbstractClientHttpRequestBase class forClientHttpRequestimplementations.classClientHttpRequestDecoratorWraps anotherClientHttpRequestand delegates all methods to it.classClientHttpResponseDecoratorWraps anotherClientHttpResponseand delegates all methods to it.org.springframework.http.client.support中HttpMessage的使用
实现HttpMessage的org.springframework.http.client.support中的类 修饰符和类型 类 说明 classHttpRequestWrapperProvides a convenient implementation of theHttpRequestinterface that can be overridden to adapt the request.org.springframework.http.codec中HttpMessage的使用
参数类型为HttpMessage的org.springframework.http.codec中的方法 修饰符和类型 方法 说明 protected MediaTypeDecoderHttpMessageReader. getContentType(HttpMessage inputMessage)Determine the Content-Type of the HTTP message based on the "Content-Type" header or otherwise default toMediaType.APPLICATION_OCTET_STREAM.org.springframework.http.converter.json中HttpMessage的使用
实现HttpMessage的org.springframework.http.converter.json中的类 修饰符和类型 类 说明 classMappingJacksonInputMessageHttpInputMessagethat can eventually stores a Jackson view that will be used to deserialize the message.org.springframework.http.server中HttpMessage的使用
org.springframework.http.server中HttpMessage的子接口 修饰符和类型 接口 说明 interfaceServerHttpRequestRepresents a server-side HTTP request.interfaceServerHttpResponseRepresents a server-side HTTP response.实现HttpMessage的org.springframework.http.server中的类 修饰符和类型 类 说明 classServletServerHttpRequestServerHttpRequestimplementation that is based on aHttpServletRequest.classServletServerHttpResponseServerHttpResponseimplementation that is based on aHttpServletResponse.org.springframework.http.server.reactive中HttpMessage的使用
org.springframework.http.server.reactive中HttpMessage的子接口 修饰符和类型 接口 说明 interfaceServerHttpRequestRepresents a reactive server-side HTTP request.interfaceServerHttpResponseRepresents a reactive server-side HTTP response.实现HttpMessage的org.springframework.http.server.reactive中的类 修饰符和类型 类 说明 classAbstractListenerServerHttpResponseAbstract base class for listener-based server responses, e.g.classAbstractServerHttpRequestCommon base class forServerHttpRequestimplementations.classAbstractServerHttpResponseBase class forServerHttpResponseimplementations.classHttpHeadResponseDecoratorServerHttpResponsedecorator for HTTP HEAD requests.classServerHttpRequestDecoratorWraps anotherServerHttpRequestand delegates all methods to it.classServerHttpResponseDecoratorWraps anotherServerHttpResponseand delegates all methods to it.org.springframework.mock.http中HttpMessage的使用
实现HttpMessage的org.springframework.mock.http中的类 修饰符和类型 类 说明 classMockHttpInputMessageMock implementation ofHttpInputMessage.classMockHttpOutputMessageMock implementation ofHttpOutputMessage.org.springframework.mock.http.client中HttpMessage的使用
实现HttpMessage的org.springframework.mock.http.client中的类 修饰符和类型 类 说明 classMockAsyncClientHttpRequest已过时。as of Spring 5.0, with no direct replacementclassMockClientHttpRequestMock implementation ofClientHttpRequest.classMockClientHttpResponseMock implementation ofClientHttpResponse.org.springframework.mock.http.client.reactive中HttpMessage的使用
实现HttpMessage的org.springframework.mock.http.client.reactive中的类 修饰符和类型 类 说明 classMockClientHttpRequestMock implementation ofClientHttpRequest.classMockClientHttpResponseMock implementation ofClientHttpResponse.org.springframework.mock.http.server.reactive中HttpMessage的使用
实现HttpMessage的org.springframework.mock.http.server.reactive中的类 修饰符和类型 类 说明 classMockServerHttpRequestMock extension ofAbstractServerHttpRequestfor use in tests without an actual server.classMockServerHttpResponseMock extension ofAbstractServerHttpResponsefor use in tests without an actual server.org.springframework.web.multipart.support中HttpMessage的使用
实现HttpMessage的org.springframework.web.multipart.support中的类 修饰符和类型 类 说明 classRequestPartServletServerHttpRequestServerHttpRequestimplementation that accesses one part of a multipart request.