public class CseClientHttpRequest extends OutputStream implements org.springframework.http.client.ClientHttpRequest
| Constructor and Description |
|---|
CseClientHttpRequest() |
CseClientHttpRequest(URI uri,
org.springframework.http.HttpMethod method) |
| Modifier and Type | Method and Description |
|---|---|
protected io.servicecomb.swagger.invocation.Response |
doInvoke(io.servicecomb.core.Invocation invocation) |
org.springframework.http.client.ClientHttpResponse |
execute() |
OutputStream |
getBody() |
io.servicecomb.swagger.invocation.context.InvocationContext |
getContext() |
org.springframework.http.HttpHeaders |
getHeaders() |
org.springframework.http.HttpMethod |
getMethod() |
URI |
getURI() |
void |
setContext(io.servicecomb.swagger.invocation.context.InvocationContext context) |
void |
setRequestBody(Object requestBody) |
void |
write(int b)
不支持,从outputStream继承,仅仅是为了在CseHttpMessageConverter中,将requestBody保存进来而已
|
close, flush, write, writepublic CseClientHttpRequest()
public CseClientHttpRequest(URI uri, org.springframework.http.HttpMethod method)
public io.servicecomb.swagger.invocation.context.InvocationContext getContext()
public void setContext(io.servicecomb.swagger.invocation.context.InvocationContext context)
public void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void setRequestBody(Object requestBody)
public org.springframework.http.HttpMethod getMethod()
getMethod in interface org.springframework.http.HttpRequestpublic URI getURI()
getURI in interface org.springframework.http.HttpRequestpublic org.springframework.http.HttpHeaders getHeaders()
getHeaders in interface org.springframework.http.HttpMessagepublic OutputStream getBody() throws IOException
getBody in interface org.springframework.http.HttpOutputMessageIOExceptionpublic org.springframework.http.client.ClientHttpResponse execute()
throws IOException
execute in interface org.springframework.http.client.ClientHttpRequestIOExceptionprotected io.servicecomb.swagger.invocation.Response doInvoke(io.servicecomb.core.Invocation invocation)
Copyright © 2017. All rights reserved.