com.atlassian.gadgets.publisher.internal.rest
Class MessageBundleResource
java.lang.Object
com.atlassian.gadgets.publisher.internal.rest.MessageBundleResource
public class MessageBundleResource
- extends Object
REST endpoint that serves localized messages for gadgets.
|
Constructor Summary |
MessageBundleResource(com.atlassian.sal.api.message.I18nResolver i18nResolver)
Constructor. |
|
Method Summary |
javax.ws.rs.core.Response |
getMessages(String requestPrefix,
LocaleParser locale)
Returns an XML representation of the specified bundle prefix(es) and locale
suitable for use by the gadgets.msg JavaScript API. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageBundleResource
public MessageBundleResource(com.atlassian.sal.api.message.I18nResolver i18nResolver)
- Constructor.
- Parameters:
i18nResolver - the I18nResolver to use for getting translations
getMessages
public javax.ws.rs.core.Response getMessages(String requestPrefix,
LocaleParser locale)
- Returns an XML representation of the specified bundle prefix(es) and locale
suitable for use by the
gadgets.msg JavaScript API.
- Parameters:
requestPrefix - the message bundle prefix(es) to loadlocale - the locale for which to load the messages
- Returns:
- a
Response containing the messages
Copyright © 2009 Atlassian. All Rights Reserved.