Package com.twilio.http.bearertoken
Class BearerTokenTwilioRestClient
- java.lang.Object
-
- com.twilio.http.bearertoken.BearerTokenTwilioRestClient
-
public class BearerTokenTwilioRestClient extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BearerTokenTwilioRestClient.Builder
-
Field Summary
Fields Modifier and Type Field Description static int
HTTP_STATUS_CODE_CREATED
static int
HTTP_STATUS_CODE_NO_CONTENT
static int
HTTP_STATUS_CODE_OK
static Predicate<Integer>
SUCCESS
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isTokenExpired(String token)
void
logRequest(BearerTokenRequest request)
Response
request(BearerTokenRequest request)
-
-
-
Field Detail
-
HTTP_STATUS_CODE_CREATED
public static final int HTTP_STATUS_CODE_CREATED
- See Also:
- Constant Field Values
-
HTTP_STATUS_CODE_NO_CONTENT
public static final int HTTP_STATUS_CODE_NO_CONTENT
- See Also:
- Constant Field Values
-
HTTP_STATUS_CODE_OK
public static final int HTTP_STATUS_CODE_OK
- See Also:
- Constant Field Values
-
-
Method Detail
-
request
public Response request(BearerTokenRequest request)
-
isTokenExpired
public boolean isTokenExpired(String token)
-
logRequest
public void logRequest(BearerTokenRequest request)
-
-