Package com.google.api.gax.httpjson
Class HttpJsonStatusCode
- java.lang.Object
-
- com.google.api.gax.httpjson.HttpJsonStatusCode
-
- All Implemented Interfaces:
com.google.api.gax.rpc.StatusCode
@BetaApi @InternalExtensionOnly public class HttpJsonStatusCode extends Object implements com.google.api.gax.rpc.StatusCode
A failure code specific to an HTTP call.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)com.google.api.gax.rpc.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(com.google.api.gax.rpc.StatusCode.Code statusCode)static HttpJsonStatusCodeof(com.google.rpc.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(com.google.api.gax.rpc.StatusCode.Code statusCode)
-
of
public static HttpJsonStatusCode of(com.google.rpc.Code rpcCode)
-
getCode
public com.google.api.gax.rpc.StatusCode.Code getCode()
- Specified by:
getCodein interfacecom.google.api.gax.rpc.StatusCode
-
getTransportCode
public Integer getTransportCode()
Returns the status code from the http call.- Specified by:
getTransportCodein interfacecom.google.api.gax.rpc.StatusCode
-
-