Package com.google.api.gax.httpjson
Class HttpJsonStatusCode
- java.lang.Object
-
- com.google.api.gax.httpjson.HttpJsonStatusCode
-
- All Implemented Interfaces:
StatusCode
@BetaApi @InternalExtensionOnly public class HttpJsonStatusCode extends Object implements StatusCode
A failure code specific to an HTTP call.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.api.gax.rpc.StatusCode
StatusCode.Code
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StatusCode.CodegetCode()IntegergetTransportCode()Returns the status code from the http call.inthashCode()static HttpJsonStatusCodeof(int httpStatus)Creates a new instance with the given status code.static HttpJsonStatusCodeof(StatusCode.Code statusCode)static HttpJsonStatusCodeof(Code rpcCode)StringtoString()
-
-
-
Method Detail
-
of
public static HttpJsonStatusCode of(int httpStatus)
Creates a new instance with the given status code.
-
of
public static HttpJsonStatusCode of(StatusCode.Code statusCode)
-
of
public static HttpJsonStatusCode of(Code rpcCode)
-
getCode
public StatusCode.Code getCode()
- Specified by:
getCodein interfaceStatusCode
-
getTransportCode
public Integer getTransportCode()
Returns the status code from the http call.- Specified by:
getTransportCodein interfaceStatusCode
-
-