public class CseClientHttpRequest extends Object 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 Map<String,Object> |
collectArguments() |
protected RequestMeta |
createRequestMeta(String httpMethod,
URI uri) |
protected org.apache.servicecomb.swagger.invocation.Response |
doInvoke(org.apache.servicecomb.core.Invocation invocation) |
org.springframework.http.client.ClientHttpResponse |
execute() |
protected String |
findUriPath(URI uri) |
OutputStream |
getBody() |
org.apache.servicecomb.swagger.invocation.context.InvocationContext |
getContext() |
org.springframework.http.HttpHeaders |
getHeaders() |
org.springframework.http.HttpMethod |
getMethod() |
String |
getMethodValue() |
String |
getPath() |
protected RequestMeta |
getRequestMeta() |
Type |
getResponseType() |
URI |
getURI() |
protected org.apache.servicecomb.core.Invocation |
prepareInvocation(Map<String,Object> swaggerArguments) |
void |
setContext(org.apache.servicecomb.swagger.invocation.context.InvocationContext context) |
void |
setHttpHeaders(org.springframework.http.HttpHeaders headers) |
void |
setMethod(org.springframework.http.HttpMethod method) |
void |
setPath(String path) |
protected void |
setQueryParams(Map<String,List<String>> queryParams) |
void |
setRequestBody(Object requestBody) |
protected void |
setRequestMeta(RequestMeta requestMeta) |
void |
setResponseType(Type responseType) |
void |
setUri(URI uri) |
public CseClientHttpRequest()
public CseClientHttpRequest(URI uri, org.springframework.http.HttpMethod method)
public String getPath()
public void setPath(String path)
protected RequestMeta getRequestMeta()
protected void setRequestMeta(RequestMeta requestMeta)
public void setUri(URI uri)
public void setMethod(org.springframework.http.HttpMethod method)
public org.apache.servicecomb.swagger.invocation.context.InvocationContext getContext()
public void setContext(org.apache.servicecomb.swagger.invocation.context.InvocationContext context)
public Type getResponseType()
public void setResponseType(Type responseType)
public void setRequestBody(Object requestBody)
public void setHttpHeaders(org.springframework.http.HttpHeaders headers)
public org.springframework.http.HttpMethod getMethod()
getMethod in interface org.springframework.http.HttpRequestpublic String getMethodValue()
getMethodValue 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()
getBody in interface org.springframework.http.HttpOutputMessagepublic org.springframework.http.client.ClientHttpResponse execute()
execute in interface org.springframework.http.client.ClientHttpRequestprotected RequestMeta createRequestMeta(String httpMethod, URI uri)
protected org.apache.servicecomb.core.Invocation prepareInvocation(Map<String,Object> swaggerArguments)
protected org.apache.servicecomb.swagger.invocation.Response doInvoke(org.apache.servicecomb.core.Invocation invocation)
Copyright © 2017–2020 The Apache Software Foundation. All rights reserved.