public final class SubscriptionHeaders extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CLIENT_TOKEN
Name of header for the client token (an opaque string) provided by the client in the subscribe
request and returned in the subscribe response.
|
static String |
SUBSCRIBE
Name of header for the notifications delivery method in the subscribe request.
|
static String |
SUBSCRIPTION_EXPIRES
Name of header for the HTTP Date indicating the time at which the subscription will expire
returned in the subscribe response or if not returned for an infinite TTL.
|
static String |
SUBSCRIPTION_ID
Name of header for the subscription UUID provided by the client in the subscribe request and
returned in the subscribe response.
|
static String |
TOPIC_ID
Name of header for the opaque ID for the subscribed resource that is stable across API versions
returned in the subscribe response.
|
static String |
TOPIC_URI
Name of header for the opaque ID (in the form of a canonicalized URI) for the subscribed
resource that is sensitive to the API version returned in the subscribe response.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
getClientToken(com.google.api.client.http.HttpHeaders headers)
Returns the client token (an opaque string) provided by the client in the subscribe request and
returned in the subscribe response or
null for none. |
static String |
getSubscribe(com.google.api.client.http.HttpHeaders headers)
Returns the notifications delivery method in the subscribe request or
null for none. |
static String |
getSubscriptionExpires(com.google.api.client.http.HttpHeaders headers)
Returns the HTTP Date indicating the time at which the subscription will expire returned in the
subscribe response or
null for an infinite TTL. |
static String |
getSubscriptionId(com.google.api.client.http.HttpHeaders headers)
Returns the subscription UUID provided by the client in the subscribe request and returned in
the subscribe response or
null for none. |
static String |
getTopicId(com.google.api.client.http.HttpHeaders headers)
Returns the opaque ID for the subscribed resource that is stable across API versions returned
in the subscribe response or
null for none. |
static String |
getTopicUri(com.google.api.client.http.HttpHeaders headers)
Returns the opaque ID (in the form of a canonicalized URI) for the subscribed resource that is
sensitive to the API version returned in the subscribe response or
null for none. |
static void |
setClientToken(com.google.api.client.http.HttpHeaders headers,
String clienToken)
Sets the client token (an opaque string) provided by the client in the subscribe request and
returned in the subscribe response or
null for none. |
static void |
setSubscribe(com.google.api.client.http.HttpHeaders headers,
String subscribe)
Sets the notifications delivery method in the subscribe request or
null for none. |
static void |
setSubscriptionExpires(com.google.api.client.http.HttpHeaders headers,
String subscriptionExpires)
Sets the HTTP Date indicating the time at which the subscription will expire returned in the
subscribe response or
null for an infinite TTL. |
static void |
setSubscriptionId(com.google.api.client.http.HttpHeaders headers,
String subscriptionId)
Sets the subscription UUID provided by the client in the subscribe request and returned in the
subscribe response or
null for none. |
static void |
setTopicId(com.google.api.client.http.HttpHeaders headers,
String topicId)
Sets the opaque ID for the subscribed resource that is stable across API versions returned in
the subscribe response or
null for none. |
static void |
setTopicUri(com.google.api.client.http.HttpHeaders headers,
String topicUri)
Sets the opaque ID (in the form of a canonicalized URI) for the subscribed resource that is
sensitive to the API version returned in the subscribe response or
null for none. |
public static final String CLIENT_TOKEN
public static final String SUBSCRIBE
public static final String SUBSCRIPTION_EXPIRES
public static final String SUBSCRIPTION_ID
public static final String TOPIC_ID
public static final String TOPIC_URI
public static String getClientToken(com.google.api.client.http.HttpHeaders headers)
null for none.public static void setClientToken(com.google.api.client.http.HttpHeaders headers,
String clienToken)
null for none.public static String getSubscribe(com.google.api.client.http.HttpHeaders headers)
null for none.headers - HTTP headerspublic static void setSubscribe(com.google.api.client.http.HttpHeaders headers,
String subscribe)
null for none.public static String getSubscriptionExpires(com.google.api.client.http.HttpHeaders headers)
null for an infinite TTL.public static void setSubscriptionExpires(com.google.api.client.http.HttpHeaders headers,
String subscriptionExpires)
null for an infinite TTL.public static String getSubscriptionId(com.google.api.client.http.HttpHeaders headers)
null for none.public static void setSubscriptionId(com.google.api.client.http.HttpHeaders headers,
String subscriptionId)
null for none.public static String getTopicId(com.google.api.client.http.HttpHeaders headers)
null for none.public static void setTopicId(com.google.api.client.http.HttpHeaders headers,
String topicId)
null for none.public static String getTopicUri(com.google.api.client.http.HttpHeaders headers)
null for none.public static void setTopicUri(com.google.api.client.http.HttpHeaders headers,
String topicUri)
null for none.Copyright © 2010-2012 Google. All Rights Reserved.