public class EndpointToken extends ResourceBase
client, id, properties
dateFormat
Constructor and Description |
---|
EndpointToken(BandwidthClient client,
org.json.simple.JSONObject jsonObject) |
Modifier and Type | Method and Description |
---|---|
static EndpointToken |
create(BandwidthClient client,
java.lang.String domainId,
java.lang.String endpointId)
Creates an EndpointToken for the domain/endpoint
|
static EndpointToken |
create(BandwidthClient client,
java.lang.String domainId,
java.lang.String endpointId,
java.lang.Long expires)
Creates an EndpointToken for the domain/endpoint
|
static EndpointToken |
create(java.lang.String domainId,
java.lang.String endpointId)
Creates an EndpointToken for the domain/endpoint
|
static EndpointToken |
create(java.lang.String domainId,
java.lang.String endpointId,
java.lang.Long expires)
Creates an EndpointToken for the domain/endpoint
|
static void |
delete(BandwidthClient client,
java.lang.String domainId,
java.lang.String endpointId,
java.lang.String token)
Permanently deletes the Endpoint token.
|
static void |
delete(java.lang.String domainId,
java.lang.String endpointId,
java.lang.String token)
Permanently deletes the Endpoint token.
|
java.lang.Long |
getExpires() |
java.lang.String |
getToken() |
protected void |
setUp(org.json.simple.JSONObject jsonObject) |
static org.json.simple.JSONObject |
toJSONObject(RestResponse response) |
getClient, getId, getProperties, setId, toJSONArray
getProperty, getPropertyAsBoolean, getPropertyAsDate, getPropertyAsDouble, getPropertyAsLong, getPropertyAsString, getPropertyAsStringArray, putProperty, toMap, updateProperties
public EndpointToken(BandwidthClient client, org.json.simple.JSONObject jsonObject)
protected void setUp(org.json.simple.JSONObject jsonObject)
setUp
in class ResourceBase
public static org.json.simple.JSONObject toJSONObject(RestResponse response) throws org.json.simple.parser.ParseException
org.json.simple.parser.ParseException
public static EndpointToken create(BandwidthClient client, java.lang.String domainId, java.lang.String endpointId) throws AppPlatformException, org.json.simple.parser.ParseException, java.io.IOException
client
- the bandwidth client.domainId
- the domain id.endpointId
- the endpoint id.AppPlatformException
- API Exceptionorg.json.simple.parser.ParseException
- Error parsing datajava.io.IOException
- errorpublic static EndpointToken create(java.lang.String domainId, java.lang.String endpointId) throws AppPlatformException, org.json.simple.parser.ParseException, java.io.IOException
domainId
- the domain id.endpointId
- the endpoint id.AppPlatformException
- API Exceptionorg.json.simple.parser.ParseException
- Error parsing datajava.io.IOException
- errorpublic static EndpointToken create(BandwidthClient client, java.lang.String domainId, java.lang.String endpointId, java.lang.Long expires) throws AppPlatformException, org.json.simple.parser.ParseException, java.io.IOException
client
- the bandwidth client.domainId
- the domain id.endpointId
- the endpoint id.expires
- expiration in ms.AppPlatformException
- API Exceptionorg.json.simple.parser.ParseException
- Error parsing datajava.io.IOException
- errorpublic static EndpointToken create(java.lang.String domainId, java.lang.String endpointId, java.lang.Long expires) throws AppPlatformException, org.json.simple.parser.ParseException, java.io.IOException
domainId
- the domain id.endpointId
- the endpoint id.expires
- expiration in ms.AppPlatformException
- API Exceptionorg.json.simple.parser.ParseException
- Error parsing datajava.io.IOException
- errorpublic static void delete(BandwidthClient client, java.lang.String domainId, java.lang.String endpointId, java.lang.String token) throws AppPlatformException, org.json.simple.parser.ParseException, java.io.IOException
client
- the bandwidth client.domainId
- the domain id.endpointId
- the Endpoint id.token
- AppPlatformException
- API Exceptionjava.io.IOException
- unexpected errororg.json.simple.parser.ParseException
public static void delete(java.lang.String domainId, java.lang.String endpointId, java.lang.String token) throws AppPlatformException, org.json.simple.parser.ParseException, java.io.IOException
domainId
- the domain id.endpointId
- the Endpoint id.token
- AppPlatformException
- API Exceptionjava.io.IOException
- unexpected errororg.json.simple.parser.ParseException
public java.lang.Long getExpires()
public java.lang.String getToken()
Copyright © 2019. All Rights Reserved.