java.lang.Object
org.ojalgo.netio.ServiceClient.Response<T>
- All Implemented Interfaces:
BasicLogger.Printable
- Enclosing class:
ServiceClient
This is actually a wrapper of a future response. The only things you can do without waiting/blocking
for the actual response is
isDone() and cancel().- Author:
- apete
-
Method Details
-
cancel
public boolean cancel() -
equals
-
getBody
-
getHeaders
-
getPreviousResponse
-
getRequest
Will recreate the request that resulted in the final response. If there has been one or more redirects, then this is NOT the same as the original request. -
getStatusCode
public int getStatusCode()- Returns:
- The http response status code, or -1 if this is not http/hhtps or if the code cannot be discerned from the response
-
getURI
-
hashCode
public int hashCode() -
isDone
public boolean isDone() -
isResponseOK
public boolean isResponseOK()- Returns:
- true if the status (response) code is in [200,300)
-
print
- Specified by:
printin interfaceBasicLogger.Printable
-
toString
-