@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, toStringHelper
public UnparsedNotification(long messageNumber, String resourceState, String resourceId, String resourceUri, String channelId)
messageNumber
- message number (a monotonically increasing value starting with 1)resourceState
- resource state
resourceId
- 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)
AbstractNotification
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
setMessageNumber
in class AbstractNotification
public UnparsedNotification setResourceState(String resourceState)
AbstractNotification
resource state
.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
setResourceState
in class AbstractNotification
public UnparsedNotification setResourceId(String resourceId)
AbstractNotification
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
setResourceId
in class AbstractNotification
public UnparsedNotification setResourceUri(String resourceUri)
AbstractNotification
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
setResourceUri
in class AbstractNotification
public UnparsedNotification setChannelId(String channelId)
AbstractNotification
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
setChannelId
in class AbstractNotification
public UnparsedNotification setChannelExpiration(String channelExpiration)
AbstractNotification
null
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 AbstractNotification
public UnparsedNotification setChannelToken(String channelToken)
AbstractNotification
null
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 AbstractNotification
public UnparsedNotification setChanged(String changed)
AbstractNotification
null
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 AbstractNotification
public String toString()
toString
in class AbstractNotification
Copyright © 2010–2022 Google. All rights reserved.