Skip navigation links
com.fatwire.services.beans.response
Class MessageCollectors.VersioningMessageCollector
java.lang.Object
com.fatwire.services.beans.response.MessageCollectors.VersioningMessageCollector
- Enclosing class:
- MessageCollectors
-
public static final class MessageCollectors.VersioningMessageCollector
- extends java.lang.Object
Method Summary |
void |
addMessage(AssetId asset, java.lang.String message)
|
void |
addMessage(java.lang.String message)
|
java.lang.String |
getMessage()
Returns the message collected during the operation. |
java.lang.String |
getMessage(AssetId asset)
Returns the message collected for the specified asset. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageCollectors.VersioningMessageCollector
public MessageCollectors.VersioningMessageCollector()
addMessage
public void addMessage(AssetId asset,
java.lang.String message)
addMessage
public void addMessage(java.lang.String message)
getMessage
public java.lang.String getMessage(AssetId asset)
- Returns the message collected for the specified asset. This method is applicable in the case where the collector collects messages from an operation on multiple assets.
-
- Parameters:
asset
- the asset for which the message is to be read.
- Returns:
- the message for the specified asset.
getMessage
public java.lang.String getMessage()
- Returns the message collected during the operation. This method is applicable in the case where the collector collects messages from an operation on a single asset.
-
- Returns:
- the message.
Skip navigation links
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.