类 RestfulResponse
- java.lang.Object
-
- tech.testnx.cah.common.ws.RestfulResponse
-
public class RestfulResponse extends Object
- 作者:
- Yun
-
-
构造器概要
构造器 构造器 说明 RestfulResponse(javax.ws.rs.core.Response res, Duration responseTime, String httpMethod, String httpUrl)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 javax.ws.rs.core.NewCookiegetCookie(String name)Get the value of a response cookie by nameMap<String,javax.ws.rs.core.NewCookie>getCookies()Get response cookiesjavax.ws.rs.core.MultivaluedMap<String,String>getHeaders()Get response headersStringgetHeaderValue(String name)Get the value of a response header by nameStringgetHttpMethod()StringgetHttpUrl()com.fasterxml.jackson.databind.JsonNodegetJsonBody()Get body with JsonNode typeJsonParsergetJsonParser()DurationgetResponseTime()intgetStatus()Get response statusStringgetStringBody()Get body with String type
-
-
-
方法详细资料
-
getStringBody
public String getStringBody()
Get body with String type
-
getJsonBody
public com.fasterxml.jackson.databind.JsonNode getJsonBody()
Get body with JsonNode type
-
getJsonParser
public JsonParser getJsonParser()
-
getStatus
public int getStatus()
Get response status
-
getCookie
public javax.ws.rs.core.NewCookie getCookie(String name)
Get the value of a response cookie by name
-
getHeaderValue
public String getHeaderValue(String name)
Get the value of a response header by name
-
getResponseTime
public Duration getResponseTime()
-
getHttpMethod
public String getHttpMethod()
-
getHttpUrl
public String getHttpUrl()
-
-