@Beta public class UnparsedNotification extends AbstractNotification
Beta Implementation is not thread-safe.
| Constructor and Description |
|---|
UnparsedNotification(long messageNumber,
String resourceState,
String resourceId,
String resourceUri,
String channelId) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getContentStream()
Returns the notification content input stream or
null for none. |
String |
getContentType()
Returns the notification content media type for the content stream or
null for none or
unknown. |
UnparsedNotification |
setChanged(String changed)
Sets the type of change performed on the resource or
null for none. |
UnparsedNotification |
setChannelExpiration(String channelExpiration)
Sets the notification channel expiration time or
null for none. |
UnparsedNotification |
setChannelId(String channelId)
Sets the notification channel UUID provided by the client in the watch request.
|
UnparsedNotification |
setChannelToken(String channelToken)
Sets the notification channel token (an opaque string) provided by the client in the watch
request or
null for none. |
UnparsedNotification |
setContentStream(InputStream contentStream)
Sets the notification content content input stream or
null for none. |
UnparsedNotification |
setContentType(String contentType)
Sets the notification content media type for the content stream or
null for none or
unknown. |
UnparsedNotification |
setMessageNumber(long messageNumber)
Sets the message number (a monotonically increasing value starting with 1).
|
UnparsedNotification |
setResourceId(String resourceId)
Sets the opaque ID for the watched resource that is stable across API versions.
|
UnparsedNotification |
setResourceState(String resourceState)
Sets the
resource state. |
UnparsedNotification |
setResourceUri(String resourceUri)
Sets the opaque ID (in the form of a canonicalized URI) for the watched resource that is
sensitive to the API version.
|
String |
toString() |
getChanged, getChannelExpiration, getChannelId, getChannelToken, getMessageNumber, getResourceId, getResourceState, getResourceUri, toStringHelperpublic UnparsedNotification(long messageNumber,
String resourceState,
String resourceId,
String resourceUri,
String channelId)
messageNumber - message number (a monotonically increasing value starting with 1)resourceState - resource stateresourceId - opaque ID for the watched resource that is stable across API versionsresourceUri - opaque ID (in the form of a canonicalized URI) for the watched resource that
is sensitive to the API versionchannelId - notification channel UUID provided by the client in the watch requestpublic final String getContentType()
null for none or
unknown.public UnparsedNotification setContentType(String contentType)
null for none or
unknown.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
public final InputStream getContentStream()
null for none.public UnparsedNotification setContentStream(InputStream contentStream)
null for none.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
public UnparsedNotification setMessageNumber(long messageNumber)
AbstractNotificationOverriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
setMessageNumber in class AbstractNotificationpublic UnparsedNotification setResourceState(String resourceState)
AbstractNotificationresource state.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
setResourceState in class AbstractNotificationpublic UnparsedNotification setResourceId(String resourceId)
AbstractNotificationOverriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
setResourceId in class AbstractNotificationpublic UnparsedNotification setResourceUri(String resourceUri)
AbstractNotificationOverriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
setResourceUri in class AbstractNotificationpublic UnparsedNotification setChannelId(String channelId)
AbstractNotificationOverriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
setChannelId in class AbstractNotificationpublic UnparsedNotification setChannelExpiration(String channelExpiration)
AbstractNotificationnull for none.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
setChannelExpiration in class AbstractNotificationpublic UnparsedNotification setChannelToken(String channelToken)
AbstractNotificationnull for none.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
setChannelToken in class AbstractNotificationpublic UnparsedNotification setChanged(String changed)
AbstractNotificationnull for none.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
setChanged in class AbstractNotificationpublic String toString()
toString in class AbstractNotificationCopyright © 2010-2013 Google. All Rights Reserved.