Package | Description |
---|---|
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.support |
This package provides generic HTTP support classes,
to be used by higher-level classes like RestTemplate.
|
org.springframework.http.converter.xml |
Provides an HttpMessageConverter implementations for handling XML.
|
org.springframework.http.server |
Contains an abstraction over server-side HTTP.
|
org.springframework.mock.http |
Mock implementations of client/server-side HTTP abstractions.
|
org.springframework.mock.web |
A comprehensive set of Servlet API 2.5 mock objects,
targeted at usage with Spring's web MVC framework.
|
org.springframework.test.web.client.response |
Contains built-in
ResponseCreator
implementations. |
org.springframework.test.web.servlet.request |
Contains built-in
RequestBuilder
implementations. |
org.springframework.test.web.servlet.result |
Contains built-in
ResultMatcher and ResultHandler implementations. |
org.springframework.web.client |
Core package of the client-side web support.
|
org.springframework.web.multipart |
Multipart resolution framework for handling file uploads.
|
org.springframework.web.multipart.support |
Support classes for the multipart resolution framework.
|
org.springframework.web.servlet.mvc.method.annotation |
MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation package. |
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
HttpMessage.getHeaders()
Return the headers of this message.
|
HttpHeaders |
HttpEntity.getHeaders()
Returns the headers of this entity.
|
static HttpHeaders |
HttpHeaders.readOnlyHttpHeaders(HttpHeaders headers)
Returns
HttpHeaders object that can only be read, not written to. |
Modifier and Type | Method and Description |
---|---|
static HttpHeaders |
HttpHeaders.readOnlyHttpHeaders(HttpHeaders headers)
Returns
HttpHeaders object that can only be read, not written to. |
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
AbstractClientHttpRequest.getHeaders() |
Modifier and Type | Method and Description |
---|---|
protected abstract ClientHttpResponse |
AbstractClientHttpRequest.executeInternal(HttpHeaders headers)
Abstract template method that writes the given headers and content to the HTTP request.
|
protected abstract OutputStream |
AbstractClientHttpRequest.getBodyInternal(HttpHeaders headers)
Abstract template method that returns the body.
|
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
HttpRequestWrapper.getHeaders()
Returns the headers of the wrapped request.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
Jaxb2RootElementHttpMessageConverter.readFromSource(Class<?> clazz,
HttpHeaders headers,
Source source) |
protected Object |
MarshallingHttpMessageConverter.readFromSource(Class<?> clazz,
HttpHeaders headers,
Source source) |
protected abstract T |
AbstractXmlHttpMessageConverter.readFromSource(Class<? extends T> clazz,
HttpHeaders headers,
Source source)
Abstract template method called from
AbstractHttpMessageConverter.read(Class, HttpInputMessage) . |
protected T |
Jaxb2CollectionHttpMessageConverter.readFromSource(Class<? extends T> clazz,
HttpHeaders headers,
Source source) |
protected void |
Jaxb2RootElementHttpMessageConverter.writeToResult(Object o,
HttpHeaders headers,
Result result) |
protected void |
MarshallingHttpMessageConverter.writeToResult(Object o,
HttpHeaders headers,
Result result) |
protected abstract void |
AbstractXmlHttpMessageConverter.writeToResult(T t,
HttpHeaders headers,
Result result)
Abstract template method called from
AbstractXmlHttpMessageConverter.writeInternal(Object, HttpOutputMessage) . |
protected void |
Jaxb2CollectionHttpMessageConverter.writeToResult(T t,
HttpHeaders headers,
Result result) |
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
ServletServerHttpResponse.getHeaders() |
HttpHeaders |
ServletServerHttpRequest.getHeaders() |
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
MockHttpInputMessage.getHeaders() |
HttpHeaders |
MockHttpOutputMessage.getHeaders()
Return the headers.
|
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
MockMultipartHttpServletRequest.getMultipartHeaders(String paramOrFileName) |
HttpHeaders |
MockMultipartHttpServletRequest.getRequestHeaders() |
Modifier and Type | Method and Description |
---|---|
DefaultResponseCreator |
DefaultResponseCreator.headers(HttpHeaders headers)
Copy all given headers.
|
Modifier and Type | Method and Description |
---|---|
MockHttpServletRequestBuilder |
MockHttpServletRequestBuilder.headers(HttpHeaders httpHeaders)
Add all headers to the request.
|
Modifier and Type | Method and Description |
---|---|
protected HttpHeaders |
PrintingResultHandler.getRequestHeaders(MockHttpServletRequest request) |
protected HttpHeaders |
PrintingResultHandler.getResponseHeaders(MockHttpServletResponse response) |
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
HttpStatusCodeException.getResponseHeaders()
Return the HTTP response headers.
|
HttpHeaders |
UnknownHttpStatusCodeException.getResponseHeaders()
Return the HTTP response headers.
|
HttpHeaders |
RestOperations.headForHeaders(String url,
Map<String,?> uriVariables)
Retrieve all headers of the resource specified by the URI template.
|
HttpHeaders |
RestTemplate.headForHeaders(String url,
Map<String,?> urlVariables) |
HttpHeaders |
RestOperations.headForHeaders(String url,
Object... uriVariables)
Retrieve all headers of the resource specified by the URI template.
|
HttpHeaders |
RestTemplate.headForHeaders(String url,
Object... urlVariables) |
HttpHeaders |
RestOperations.headForHeaders(URI url)
Retrieve all headers of the resource specified by the URL.
|
HttpHeaders |
RestTemplate.headForHeaders(URI url) |
Constructor and Description |
---|
HttpClientErrorException(HttpStatus statusCode,
String statusText,
HttpHeaders responseHeaders,
byte[] responseBody,
Charset responseCharset)
Construct a new instance of
HttpClientErrorException based on an
HttpStatus , status text, and response body content. |
HttpServerErrorException(HttpStatus statusCode,
String statusText,
HttpHeaders responseHeaders,
byte[] responseBody,
Charset responseCharset)
Construct a new instance of
HttpServerErrorException based on a
HttpStatus , status text, and response body content. |
HttpStatusCodeException(HttpStatus statusCode,
String statusText,
HttpHeaders responseHeaders,
byte[] responseBody,
Charset responseCharset)
Construct a new instance of
HttpStatusCodeException based on an
HttpStatus , status text, and response body content. |
UnknownHttpStatusCodeException(int rawStatusCode,
String statusText,
HttpHeaders responseHeaders,
byte[] responseBody,
Charset responseCharset)
Construct a new instance of
HttpStatusCodeException based on an
HttpStatus , status text, and response body content. |
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
MultipartHttpServletRequest.getMultipartHeaders(String paramOrFileName)
Return the headers associated with the specified part of the multipart request.
|
HttpHeaders |
MultipartHttpServletRequest.getRequestHeaders()
Return this request's headers as a convenient HttpHeaders instance.
|
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
RequestPartServletServerHttpRequest.getHeaders() |
HttpHeaders |
DefaultMultipartHttpServletRequest.getMultipartHeaders(String paramOrFileName) |
HttpHeaders |
StandardMultipartHttpServletRequest.getMultipartHeaders(String paramOrFileName) |
HttpHeaders |
AbstractMultipartHttpServletRequest.getRequestHeaders() |
Modifier and Type | Method and Description |
---|---|
protected ResponseEntity<Object> |
ResponseEntityExceptionHandler.handleBindException(BindException ex,
HttpHeaders headers,
HttpStatus status,
WebRequest request)
Customize the response for BindException.
|
protected ResponseEntity<Object> |
ResponseEntityExceptionHandler.handleConversionNotSupported(ConversionNotSupportedException ex,
HttpHeaders headers,
HttpStatus status,
WebRequest request)
Customize the response for ConversionNotSupportedException.
|
protected ResponseEntity<Object> |
ResponseEntityExceptionHandler.handleExceptionInternal(Exception ex,
Object body,
HttpHeaders headers,
HttpStatus status,
WebRequest request)
A single place to customize the response body of all Exception types.
|
protected ResponseEntity<Object> |
ResponseEntityExceptionHandler.handleHttpMediaTypeNotAcceptable(HttpMediaTypeNotAcceptableException ex,
HttpHeaders headers,
HttpStatus status,
WebRequest request)
Customize the response for HttpMediaTypeNotAcceptableException.
|
protected ResponseEntity<Object> |
ResponseEntityExceptionHandler.handleHttpMediaTypeNotSupported(HttpMediaTypeNotSupportedException ex,
HttpHeaders headers,
HttpStatus status,
WebRequest request)
Customize the response for HttpMediaTypeNotSupportedException.
|
protected ResponseEntity<Object> |
ResponseEntityExceptionHandler.handleHttpMessageNotReadable(HttpMessageNotReadableException ex,
HttpHeaders headers,
HttpStatus status,
WebRequest request)
Customize the response for HttpMessageNotReadableException.
|
protected ResponseEntity<Object> |
ResponseEntityExceptionHandler.handleHttpMessageNotWritable(HttpMessageNotWritableException ex,
HttpHeaders headers,
HttpStatus status,
WebRequest request)
Customize the response for HttpMessageNotWritableException.
|
protected ResponseEntity<Object> |
ResponseEntityExceptionHandler.handleHttpRequestMethodNotSupported(HttpRequestMethodNotSupportedException ex,
HttpHeaders headers,
HttpStatus status,
WebRequest request)
Customize the response for HttpRequestMethodNotSupportedException.
|
protected ResponseEntity<Object> |
ResponseEntityExceptionHandler.handleMethodArgumentNotValid(MethodArgumentNotValidException ex,
HttpHeaders headers,
HttpStatus status,
WebRequest request)
Customize the response for MethodArgumentNotValidException.
|
protected ResponseEntity<Object> |
ResponseEntityExceptionHandler.handleMissingServletRequestParameter(MissingServletRequestParameterException ex,
HttpHeaders headers,
HttpStatus status,
WebRequest request)
Customize the response for MissingServletRequestParameterException.
|
protected ResponseEntity<Object> |
ResponseEntityExceptionHandler.handleMissingServletRequestPart(MissingServletRequestPartException ex,
HttpHeaders headers,
HttpStatus status,
WebRequest request)
Customize the response for MissingServletRequestPartException.
|
protected ResponseEntity<Object> |
ResponseEntityExceptionHandler.handleNoSuchRequestHandlingMethod(NoSuchRequestHandlingMethodException ex,
HttpHeaders headers,
HttpStatus status,
WebRequest request)
Customize the response for NoSuchRequestHandlingMethodException.
|
protected ResponseEntity<Object> |
ResponseEntityExceptionHandler.handleServletRequestBindingException(ServletRequestBindingException ex,
HttpHeaders headers,
HttpStatus status,
WebRequest request)
Customize the response for ServletRequestBindingException.
|
protected ResponseEntity<Object> |
ResponseEntityExceptionHandler.handleTypeMismatch(TypeMismatchException ex,
HttpHeaders headers,
HttpStatus status,
WebRequest request)
Customize the response for TypeMismatchException.
|
Copyright © 2015. All rights reserved.