|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.web.client.RestTemplate.AcceptHeaderRequestCallback
private class RestTemplate.AcceptHeaderRequestCallback
Request callback implementation that prepares the request's accept headers.
| Field Summary | |
|---|---|
private java.lang.Class<?> |
responseType
|
| Constructor Summary | |
|---|---|
private |
RestTemplate.AcceptHeaderRequestCallback(java.lang.Class<?> responseType)
|
| Method Summary | |
|---|---|
void |
doWithRequest(ClientHttpRequest request)
Gets called by RestTemplate.execute(java.lang.String, org.springframework.http.HttpMethod, org.springframework.web.client.RequestCallback, org.springframework.web.client.ResponseExtractor with an opened ClientHttpRequest. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final java.lang.Class<?> responseType
| Constructor Detail |
|---|
private RestTemplate.AcceptHeaderRequestCallback(java.lang.Class<?> responseType)
| Method Detail |
|---|
public void doWithRequest(ClientHttpRequest request)
throws java.io.IOException
RequestCallbackRestTemplate.execute(java.lang.String, org.springframework.http.HttpMethod, org.springframework.web.client.RequestCallback, org.springframework.web.client.ResponseExtractor, java.lang.Object...) with an opened ClientHttpRequest.
Does not need to care about closing the request or about handling errors:
this will all be handled by the RestTemplate.
doWithRequest in interface RequestCallbackrequest - the active HTTP request
java.io.IOException - in case of I/O errors
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||