com.cc.framework.adapter
Class HttpResourceTranslator
java.lang.Object
com.cc.framework.adapter.HttpResourceTranslator
- All Implemented Interfaces:
- ResourceTranslator
- public class HttpResourceTranslator
- extends java.lang.Object
- implements ResourceTranslator
Resource Translator for HTTP context
- Author:
- P001002
|
Method Summary |
java.lang.String |
translate(java.lang.String resourceKey,
boolean returnNull)
Translates the given resource key |
java.lang.String |
translate(java.lang.String resourceKey,
java.util.Locale locale,
boolean returnNull)
Translates the given resource key |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
context
private HttpContext context
adapter
private FrameworkAdapter adapter
HttpResourceTranslator
public HttpResourceTranslator(HttpContext context)
- Constructor
- Parameters:
context - the HTTP context
translate
public java.lang.String translate(java.lang.String resourceKey,
boolean returnNull)
throws java.lang.Exception
- Description copied from interface:
ResourceTranslator
- Translates the given resource key
- Specified by:
translate in interface ResourceTranslator
- Parameters:
resourceKey - resource key to translatereturnNull - controls whether to return null or a not present indicator
- Returns:
- translated key
- Throws:
java.lang.Exception- See Also:
ResourceTranslator.translate(java.lang.String, boolean)
translate
public java.lang.String translate(java.lang.String resourceKey,
java.util.Locale locale,
boolean returnNull)
throws java.lang.Exception
- Description copied from interface:
ResourceTranslator
- Translates the given resource key
- Specified by:
translate in interface ResourceTranslator
- Parameters:
resourceKey - resource key to translatelocale - the Locale to usereturnNull - controls whether to return null or a not present indicator
- Returns:
- translated key
- Throws:
java.lang.Exception- See Also:
ResourceTranslator.translate(java.lang.String, java.util.Locale, boolean)
Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.