类 RestfulResponse


  • public class RestfulResponse
    extends Object
    作者:
    Yun
    • 构造器详细资料

      • RestfulResponse

        public RestfulResponse​(javax.ws.rs.core.Response res,
                               Duration responseTime,
                               String httpMethod,
                               String httpUrl)
    • 方法详细资料

      • 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
      • getCookies

        public Map<String,​javax.ws.rs.core.NewCookie> getCookies()
        Get response cookies
      • getCookie

        public javax.ws.rs.core.NewCookie getCookie​(String name)
        Get the value of a response cookie by name
      • getHeaders

        public javax.ws.rs.core.MultivaluedMap<String,​String> getHeaders()
        Get response headers
      • 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()