类的使用
cn.taketoday.web.client.RestClientException
使用RestClientException的程序包
-
cn.taketoday.web.client中RestClientException的使用
修饰符和类型类说明classException thrown when an HTTP 4xx is received.static final classHttpClientErrorExceptionfor status HTTP 400 Bad Request.static final classHttpClientErrorExceptionfor status HTTP 409 Conflict.static final classHttpClientErrorExceptionfor status HTTP 403 Forbidden.static final classHttpClientErrorExceptionfor status HTTP 410 Gone.static final classHttpClientErrorExceptionfor status HTTP 405 Method Not Allowed.static final classHttpClientErrorExceptionfor status HTTP 406 Not Acceptable.static final classHttpClientErrorExceptionfor status HTTP 404 Not Found.static final classHttpClientErrorExceptionfor status HTTP 429 Too Many Requests.static final classHttpClientErrorExceptionfor status HTTP 401 Unauthorized.static final classHttpClientErrorExceptionfor status HTTP 422 Unprocessable Entity.static final classHttpClientErrorExceptionfor status HTTP 415 Unsupported Media Type.classException thrown when an HTTP 5xx is received.static final classHttpServerErrorExceptionfor status HTTP HTTP 502 Bad Gateway.static final classHttpServerErrorExceptionfor status HTTP 504 Gateway Timeout.static final classHttpServerErrorExceptionfor status HTTP 500 Internal Server Error.static final classHttpServerErrorExceptionfor status HTTP 501 Not Implemented.static final classHttpServerErrorExceptionfor status HTTP 503 Service Unavailable.classAbstract base class for exceptions based on anHttpStatusCode.classException thrown when an I/O error occurs.classCommon base class for exceptions that contain actual HTTP response data.classRaised when no suitableHttpMessageConvertercould be found to extract the response.classException thrown when an unknown (or custom) HTTP status code is received.类型参数类型为RestClientException的cn.taketoday.web.client中的字段修饰符和类型字段说明private final Map<HttpStatus.Series,Class<? extends RestClientException>> ExtractingResponseErrorHandler.seriesMappingprivate final Map<HttpStatusCode,Class<? extends RestClientException>> ExtractingResponseErrorHandler.statusMapping类型变量类型为RestClientException的cn.taketoday.web.client中的方法参数修饰符和类型方法说明private voidExtractingResponseErrorHandler.extract(Class<? extends RestClientException> exceptionClass, ClientHttpResponse response) voidExtractingResponseErrorHandler.setSeriesMapping(Map<HttpStatus.Series, Class<? extends RestClientException>> seriesMapping) Set the mapping from HTTP status series toRestClientExceptionsubclass.voidExtractingResponseErrorHandler.setStatusMapping(Map<HttpStatusCode, Class<? extends RestClientException>> statusMapping) Set the mapping from HTTP status code toRestClientExceptionsubclass.修饰符和类型方法说明voidDelete the resources at the specified URI.voidDelete the resources at the specified URI.voidDelete the resources at the specified URL.voidvoidvoidprotected <T> TRestTemplate.doExecute(URI url, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor) Execute the given method on the provided URI.<T> ResponseEntity<T>RestOperations.exchange(RequestEntity<?> requestEntity, cn.taketoday.core.ParameterizedTypeReference<T> responseType) Execute the request specified in the givenRequestEntityand return the response asResponseEntity.<T> ResponseEntity<T>RestOperations.exchange(RequestEntity<?> requestEntity, Class<T> responseType) Execute the request specified in the givenRequestEntityand return the response asResponseEntity.<T> ResponseEntity<T>RestOperations.exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, cn.taketoday.core.ParameterizedTypeReference<T> responseType, Object... uriVariables) Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response asResponseEntity.<T> ResponseEntity<T>RestOperations.exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, cn.taketoday.core.ParameterizedTypeReference<T> responseType, Map<String, ?> uriVariables) Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response asResponseEntity.<T> ResponseEntity<T>RestOperations.exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType, Object... uriVariables) Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response asResponseEntity.<T> ResponseEntity<T>RestOperations.exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType, Map<String, ?> uriVariables) Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response asResponseEntity.<T> ResponseEntity<T>RestOperations.exchange(URI url, HttpMethod method, HttpEntity<?> requestEntity, cn.taketoday.core.ParameterizedTypeReference<T> responseType) Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response asResponseEntity.<T> ResponseEntity<T>RestOperations.exchange(URI url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType) Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response asResponseEntity.<T> ResponseEntity<T>RestTemplate.exchange(RequestEntity<?> entity, cn.taketoday.core.ParameterizedTypeReference<T> responseType) <T> ResponseEntity<T>RestTemplate.exchange(RequestEntity<?> entity, Class<T> responseType) <T> ResponseEntity<T>RestTemplate.exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, cn.taketoday.core.ParameterizedTypeReference<T> responseType, Object... uriVariables) <T> ResponseEntity<T>RestTemplate.exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, cn.taketoday.core.ParameterizedTypeReference<T> responseType, Map<String, ?> uriVariables) <T> ResponseEntity<T>RestTemplate.exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType, Object... uriVariables) <T> ResponseEntity<T>RestTemplate.exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType, Map<String, ?> uriVariables) <T> ResponseEntity<T>RestTemplate.exchange(URI url, HttpMethod method, HttpEntity<?> requestEntity, cn.taketoday.core.ParameterizedTypeReference<T> responseType) <T> ResponseEntity<T>RestTemplate.exchange(URI url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType) <T> TRestOperations.execute(String url, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor, Object... uriVariables) Execute the HTTP method to the given URI template, preparing the request with theRequestCallback, and reading the response with aResponseExtractor.<T> TRestOperations.execute(String url, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor, Map<String, ?> uriVariables) Execute the HTTP method to the given URI template, preparing the request with theRequestCallback, and reading the response with aResponseExtractor.<T> TRestOperations.execute(URI url, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor) Execute the HTTP method to the given URL, preparing the request with theRequestCallback, and reading the response with aResponseExtractor.<T> TRestTemplate.execute(String url, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor, Object... uriVariables) Execute the HTTP method to the given URI template, preparing the request with theRequestCallback, and reading the response with aResponseExtractor.<T> TRestTemplate.execute(String url, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor, Map<String, ?> uriVariables) Execute the HTTP method to the given URI template, preparing the request with theRequestCallback, and reading the response with aResponseExtractor.<T> TRestTemplate.execute(URI url, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor) Execute the HTTP method to the given URL, preparing the request with theRequestCallback, and reading the response with aResponseExtractor.<T> ResponseEntity<T>RestOperations.getForEntity(String url, Class<T> responseType, Object... uriVariables) Retrieve an entity by doing a GET on the specified URL.<T> ResponseEntity<T>RestOperations.getForEntity(String url, Class<T> responseType, Map<String, ?> uriVariables) Retrieve a representation by doing a GET on the URI template.<T> ResponseEntity<T>RestOperations.getForEntity(URI url, Class<T> responseType) Retrieve a representation by doing a GET on the URL .<T> ResponseEntity<T>RestTemplate.getForEntity(String url, Class<T> responseType, Object... uriVariables) <T> ResponseEntity<T>RestTemplate.getForEntity(String url, Class<T> responseType, Map<String, ?> uriVariables) <T> ResponseEntity<T>RestTemplate.getForEntity(URI url, Class<T> responseType) <T> TRestOperations.getForObject(String url, Class<T> responseType, Object... uriVariables) Retrieve a representation by doing a GET on the specified URL.<T> TRestOperations.getForObject(String url, Class<T> responseType, Map<String, ?> uriVariables) Retrieve a representation by doing a GET on the URI template.<T> TRestOperations.getForObject(URI url, Class<T> responseType) Retrieve a representation by doing a GET on the URL .<T> TRestTemplate.getForObject(String url, Class<T> responseType, Object... uriVariables) <T> TRestTemplate.getForObject(String url, Class<T> responseType, Map<String, ?> uriVariables) <T> TRestTemplate.getForObject(URI url, Class<T> responseType) RestOperations.headForHeaders(String url, Object... uriVariables) Retrieve all headers of the resource specified by the URI template.RestOperations.headForHeaders(String url, Map<String, ?> uriVariables) Retrieve all headers of the resource specified by the URI template.RestOperations.headForHeaders(URI url) Retrieve all headers of the resource specified by the URL.RestTemplate.headForHeaders(String url, Object... uriVariables) RestTemplate.headForHeaders(String url, Map<String, ?> uriVariables) RestTemplate.headForHeaders(URI url) RestOperations.optionsForAllow(String url, Object... uriVariables) Return the value of the Allow header for the given URI.RestOperations.optionsForAllow(String url, Map<String, ?> uriVariables) Return the value of the Allow header for the given URI.RestOperations.optionsForAllow(URI url) Return the value of the Allow header for the given URL.RestTemplate.optionsForAllow(String url, Object... uriVariables) RestTemplate.optionsForAllow(String url, Map<String, ?> uriVariables) RestTemplate.optionsForAllow(URI url) <T> TRestOperations.patchForObject(String url, Object request, Class<T> responseType, Object... uriVariables) Update a resource by PATCHing the given object to the URI template, and return the representation found in the response.<T> TRestOperations.patchForObject(String url, Object request, Class<T> responseType, Map<String, ?> uriVariables) Update a resource by PATCHing the given object to the URI template, and return the representation found in the response.<T> TRestOperations.patchForObject(URI url, Object request, Class<T> responseType) Update a resource by PATCHing the given object to the URL, and return the representation found in the response.<T> TRestTemplate.patchForObject(String url, Object request, Class<T> responseType, Object... uriVariables) <T> TRestTemplate.patchForObject(String url, Object request, Class<T> responseType, Map<String, ?> uriVariables) <T> TRestTemplate.patchForObject(URI url, Object request, Class<T> responseType) <T> ResponseEntity<T>RestOperations.postForEntity(String url, Object request, Class<T> responseType, Object... uriVariables) Create a new resource by POSTing the given object to the URI template, and returns the response asResponseEntity.<T> ResponseEntity<T>RestOperations.postForEntity(String url, Object request, Class<T> responseType, Map<String, ?> uriVariables) Create a new resource by POSTing the given object to the URI template, and returns the response asHttpEntity.<T> ResponseEntity<T>RestOperations.postForEntity(URI url, Object request, Class<T> responseType) Create a new resource by POSTing the given object to the URL, and returns the response asResponseEntity.<T> ResponseEntity<T>RestTemplate.postForEntity(String url, Object request, Class<T> responseType, Object... uriVariables) <T> ResponseEntity<T>RestTemplate.postForEntity(String url, Object request, Class<T> responseType, Map<String, ?> uriVariables) <T> ResponseEntity<T>RestTemplate.postForEntity(URI url, Object request, Class<T> responseType) RestOperations.postForLocation(String url, Object request, Object... uriVariables) Create a new resource by POSTing the given object to the URI template, and returns the value of theLocationheader.RestOperations.postForLocation(String url, Object request, Map<String, ?> uriVariables) Create a new resource by POSTing the given object to the URI template, and returns the value of theLocationheader.RestOperations.postForLocation(URI url, Object request) Create a new resource by POSTing the given object to the URL, and returns the value of theLocationheader.RestTemplate.postForLocation(String url, Object request, Object... uriVariables) RestTemplate.postForLocation(String url, Object request, Map<String, ?> uriVariables) RestTemplate.postForLocation(URI url, Object request) <T> TRestOperations.postForObject(String url, Object request, Class<T> responseType, Object... uriVariables) Create a new resource by POSTing the given object to the URI template, and returns the representation found in the response.<T> TRestOperations.postForObject(String url, Object request, Class<T> responseType, Map<String, ?> uriVariables) Create a new resource by POSTing the given object to the URI template, and returns the representation found in the response.<T> TRestOperations.postForObject(URI url, Object request, Class<T> responseType) Create a new resource by POSTing the given object to the URL, and returns the representation found in the response.<T> TRestTemplate.postForObject(String url, Object request, Class<T> responseType, Object... uriVariables) <T> TRestTemplate.postForObject(String url, Object request, Class<T> responseType, Map<String, ?> uriVariables) <T> TRestTemplate.postForObject(URI url, Object request, Class<T> responseType) voidCreate or update a resource by PUTting the given object to the URI.voidCreates a new resource by PUTting the given object to URI template.voidCreates a new resource by PUTting the given object to URL.voidvoidvoid