Class RestResponseOkHttp
java.lang.Object
org.infinispan.client.rest.impl.okhttp.RestResponseOkHttp
- All Implemented Interfaces:
AutoCloseable,RestEntity,RestResponse
- Since:
- 10.0
- Author:
- Tristan Tarrant <tristan@infinispan.org>
-
Field Summary
Fields inherited from interface org.infinispan.client.rest.RestResponse
ACCEPTED, BAD_REQUEST, CONFLICT, CREATED, FORBIDDEN, INTERNAL_SERVER_ERROR, METHOD_NOT_ALLOWED, NO_CONTENT, NOT_FOUND, NOT_MODIFIED, OK, SERVICE_UNAVAILABLE, TEMPORARY_REDIRECT, UNAUTHORIZED -
Method Summary
-
Method Details
-
getStatus
public int getStatus()- Specified by:
getStatusin interfaceRestResponse
-
headers
- Specified by:
headersin interfaceRestResponse
-
getHeader
Description copied from interface:RestResponseReturns the value of a header as a String. For multi-valued headers, values are separated by comma.- Specified by:
getHeaderin interfaceRestResponse
-
getBody
- Specified by:
getBodyin interfaceRestEntity
-
getBodyAsStream
- Specified by:
getBodyAsStreamin interfaceRestResponse
-
getBodyAsByteArray
public byte[] getBodyAsByteArray()- Specified by:
getBodyAsByteArrayin interfaceRestResponse
-
contentType
public org.infinispan.commons.dataconversion.MediaType contentType()- Specified by:
contentTypein interfaceRestEntity
-
getProtocol
- Specified by:
getProtocolin interfaceRestResponse
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceRestResponse
-
usedAuthentication
public boolean usedAuthentication()- Specified by:
usedAuthenticationin interfaceRestResponse
-